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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001352/0.001352, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.608/1.608, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008263/0.0008265, allocations: 83.62 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1834/0.1834, allocations: 37.99 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.699e-05/1.7e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1093, allocations: 56.33 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4049/0.5143, allocations: 114.1 MB / 0.5674 GB, free: 12.8 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.5146, allocations: 95.94 kB / 0.5675 GB, free: 12.71 MB / 411.1 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 - DAE generated: time 0.08329/0.5979, allocations: 28.76 MB / 0.5956 GB, free: 15.66 MB / 443.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.5979, allocations: 0 / 0.5956 GB, free: 15.66 MB / 443.1 MB Notification: Performance of Transformations before backend: time 6.775e-05/0.598, allocations: 20 kB / 0.5956 GB, free: 15.64 MB / 443.1 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.004278/0.6023, allocations: 1.65 MB / 0.5972 GB, free: 13.91 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.6024, allocations: 16.03 kB / 0.5972 GB, free: 13.89 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009048/0.6033, allocations: 174.6 kB / 0.5974 GB, free: 13.72 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004843/0.6081, allocations: 1.631 MB / 0.599 GB, free: 12.05 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006337/0.6088, allocations: 498.3 kB / 0.5994 GB, free: 11.49 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001876/0.609, allocations: 56 kB / 0.5995 GB, free: 11.43 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002642/0.6116, allocations: 1.617 MB / 0.6011 GB, free: 9.816 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002554/0.6142, allocations: 1.671 MB / 0.6027 GB, free: 8.082 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.857e-05/0.6142, allocations: 0 / 0.6027 GB, free: 8.082 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001205/0.6144, allocations: 4 kB / 0.6027 GB, free: 8.078 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001484/0.6145, allocations: 77.95 kB / 0.6028 GB, free: 8.004 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00953/0.6241, allocations: 5.691 MB / 0.6083 GB, free: 2.199 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001805/0.6259, allocations: 1.208 MB / 0.6095 GB, free: 0.9727 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.6271, allocations: 0.9032 MB / 0.6104 GB, free: 68 kB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.776e-05/0.6273, allocations: 22.02 kB / 0.6104 GB, free: 48 kB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001577/0.6288, allocations: 1.106 MB / 0.6115 GB, free: 14.92 MB / 459.1 MB Notification: Performance of pre-optimization done (n=120): time 3.056e-06/0.6289, allocations: 3.938 kB / 0.6115 GB, free: 14.92 MB / 459.1 MB Notification: Performance of matching and sorting (n=122): time 0.01532/0.6442, allocations: 6.212 MB / 0.6176 GB, free: 8.645 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.984e-05/0.6443, allocations: 98.41 kB / 0.6177 GB, free: 8.531 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005575/0.6449, allocations: 369.1 kB / 0.618 GB, free: 8.164 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002934/0.6452, allocations: 37.69 kB / 0.6181 GB, free: 8.121 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003387/0.6455, allocations: 392.3 kB / 0.6184 GB, free: 7.73 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004049/0.6459, allocations: 398.2 kB / 0.6188 GB, free: 7.336 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.487e-05/0.646, allocations: 0 / 0.6188 GB, free: 7.336 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0001907/0.6462, allocations: 390.8 kB / 0.6192 GB, free: 6.945 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.6474, allocations: 0.8538 MB / 0.62 GB, free: 6.094 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001202/0.6486, allocations: 1.021 MB / 0.621 GB, free: 5.023 MB / 459.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01266/0.6612, allocations: 4.323 MB / 0.6252 GB, free: 0.6953 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.6613, allocations: 0 / 0.6252 GB, free: 0.6953 MB / 459.1 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.01216/0.6734, allocations: 4.611 MB / 0.6297 GB, free: 12.07 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/0.6736, allocations: 65.7 kB / 0.6298 GB, free: 12 MB / 475.1 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.002032/0.6756, allocations: 0.9781 MB / 0.6308 GB, free: 11.03 MB / 475.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated