Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToGrid") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00179/0.00179, allocations: 185.3 kB / 8.138 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.399/1.399, allocations: 205.2 MB / 213.7 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008566/0.0008565, allocations: 83.56 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1654/0.1654, allocations: 37.96 MB / 347.7 MB, free: 7.484 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.075e-06/8.105e-06, allocations: 4 kB / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09428/0.0943, allocations: 56.31 MB / 466.3 MB, free: 6.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.305/0.3994, allocations: 114.1 MB / 0.5668 GB, free: 12.49 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/0.3997, allocations: 93.83 kB / 0.5669 GB, free: 12.4 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:17:7-17:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:20:7-20:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. Notification: Performance of FrontEnd: time 0.08535/0.4851, allocations: 28.51 MB / 0.5947 GB, free: 15.61 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.654e-05/0.4852, allocations: 23.94 kB / 0.5948 GB, free: 15.59 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 264 * Number of variables: 264 Notification: Performance of Generate backend data structure: time 0.004511/0.4897, allocations: 1.658 MB / 0.5964 GB, free: 13.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.4898, allocations: 12.03 kB / 0.5964 GB, free: 13.83 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00133/0.4911, allocations: 178.5 kB / 0.5966 GB, free: 13.65 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005317/0.4964, allocations: 1.634 MB / 0.5981 GB, free: 11.98 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007139/0.4972, allocations: 0.4983 MB / 0.5986 GB, free: 11.4 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003372/0.4975, allocations: 59.98 kB / 0.5987 GB, free: 11.34 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002868/0.5004, allocations: 1.667 MB / 0.6003 GB, free: 9.676 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002637/0.5031, allocations: 1.714 MB / 0.602 GB, free: 7.895 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/0.5031, allocations: 8 kB / 0.602 GB, free: 7.887 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.5032, allocations: 3.984 kB / 0.602 GB, free: 7.883 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001619/0.5034, allocations: 81.95 kB / 0.6021 GB, free: 7.805 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01009/0.5135, allocations: 5.733 MB / 0.6077 GB, free: 1.957 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/0.5154, allocations: 1.24 MB / 0.6089 GB, free: 0.6992 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.5167, allocations: 0.9338 MB / 0.6098 GB, free: 15.76 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.937e-05/0.5168, allocations: 20.69 kB / 0.6098 GB, free: 15.74 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001472/0.5183, allocations: 1.091 MB / 0.6109 GB, free: 14.63 MB / 458.7 MB Notification: Performance of pre-optimization done (n=120): time 3.216e-06/0.5183, allocations: 0 / 0.6109 GB, free: 14.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=122): time 0.01498/0.5333, allocations: 6.453 MB / 0.6172 GB, free: 8.113 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.381e-05/0.5334, allocations: 106.1 kB / 0.6173 GB, free: 7.992 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005561/0.534, allocations: 357.1 kB / 0.6176 GB, free: 7.641 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000366/0.5343, allocations: 45.69 kB / 0.6177 GB, free: 7.59 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002889/0.5346, allocations: 340.2 kB / 0.618 GB, free: 7.25 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004727/0.5351, allocations: 398.2 kB / 0.6184 GB, free: 6.855 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.53e-05/0.5352, allocations: 0 / 0.6184 GB, free: 6.855 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.5354, allocations: 386.8 kB / 0.6187 GB, free: 6.469 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.5367, allocations: 0.8847 MB / 0.6196 GB, free: 5.582 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001267/0.538, allocations: 1.039 MB / 0.6206 GB, free: 4.496 MB / 458.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01269/0.5507, allocations: 3.694 MB / 0.6242 GB, free: 0.7891 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.5507, allocations: 0 / 0.6242 GB, free: 0.7891 MB / 458.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.01282/0.5635, allocations: 4.939 MB / 0.6291 GB, free: 11.84 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.5636, allocations: 4.625 kB / 0.6291 GB, free: 11.83 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/AC3ph/Impedances.mo:125:7-125:29:writable] Error: Initialization problem is structurally singular, error found sorting equations 112: $DER.ind.i[3] = 0.0; 60: 1.732050807568877 * $DER.ind.i[3] = 0.0; for variables meterDC.v(137), inverter.inverter.iDC1(92), inverter.inverter.v[2](84) Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002444/0.566, allocations: 0.9874 MB / 0.63 GB, free: 10.85 MB / 474.7 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated