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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 107 kB / 17.74 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001695/0.001695, allocations: 194.5 kB / 18.68 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1764/0.1764, allocations: 38.04 MB / 330.6 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 63.91 kB / 458.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2736, allocations: 58.05 MB / 0.5048 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.006571/0.2802, allocations: 6.992 MB / 0.5116 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003319/0.2835, allocations: 2.371 MB / 0.5139 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003548/0.2839, allocations: 30.56 kB / 0.5139 GB, free: 1.527 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.2852, allocations: 0.527 MB / 0.5145 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001168/0.2864, allocations: 0.61 MB / 0.5151 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.2874, allocations: 0.4996 MB / 0.5155 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001835/0.2893, allocations: 2.002 MB / 0.5175 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001219/0.2905, allocations: 0.9164 MB / 0.5184 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001246/0.2917, allocations: 0.8002 MB / 0.5192 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001337/0.2931, allocations: 0.9364 MB / 0.5201 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002661/0.2934, allocations: 159.2 kB / 0.5202 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001187/0.2946, allocations: 0.6591 MB / 0.5209 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007031/0.2953, allocations: 0.6399 MB / 0.5215 GB, free: 14.31 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008124/0.2961, allocations: 0.6959 MB / 0.5222 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002362/0.2985, allocations: 2.07 MB / 0.5242 GB, free: 13.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2985, allocations: 0.6562 kB / 0.5242 GB, free: 13.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2985, allocations: 0 / 0.5242 GB, free: 13.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.635e-05/0.2985, allocations: 0 / 0.5242 GB, free: 13.17 MB / 398.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.00449/0.303, allocations: 1.906 MB / 0.5261 GB, free: 12.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.3031, allocations: 13.41 kB / 0.5261 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008496/0.3039, allocations: 188 kB / 0.5263 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001845/0.3058, allocations: 0.929 MB / 0.5272 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005952/0.3064, allocations: 0.5021 MB / 0.5277 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002865/0.3067, allocations: 108.1 kB / 0.5278 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00395/0.3107, allocations: 2.047 MB / 0.5298 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.945e-05/0.3107, allocations: 4.734 kB / 0.5298 GB, free: 9.664 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001467/0.3109, allocations: 36.73 kB / 0.5298 GB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002132/0.3111, allocations: 93.31 kB / 0.5299 GB, free: 9.613 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004805/0.3159, allocations: 2.252 MB / 0.5321 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009053/0.325, allocations: 5.757 MB / 0.5377 GB, free: 4.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00392/0.3289, allocations: 1.613 MB / 0.5393 GB, free: 3.617 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002679/0.3316, allocations: 1.114 MB / 0.5404 GB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-05/0.3317, allocations: 15.88 kB / 0.5404 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00268/0.3344, allocations: 1.315 MB / 0.5417 GB, free: 2.293 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.667e-06/0.3344, allocations: 0 / 0.5417 GB, free: 2.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.02512/0.3595, allocations: 8.611 MB / 0.5501 GB, free: 9.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.3596, allocations: 102.1 kB / 0.5502 GB, free: 9.723 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006099/0.3603, allocations: 0.5105 MB / 0.5507 GB, free: 9.203 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001491/0.3604, allocations: 61.62 kB / 0.5507 GB, free: 9.137 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002914/0.3607, allocations: 409.2 kB / 0.5511 GB, free: 8.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003409/0.3611, allocations: 412.6 kB / 0.5515 GB, free: 8.324 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004319/0.3615, allocations: 218.9 kB / 0.5517 GB, free: 8.102 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3617, allocations: 402.7 kB / 0.5521 GB, free: 7.699 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001865/0.3635, allocations: 0.9745 MB / 0.5531 GB, free: 6.727 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001971/0.3655, allocations: 1.158 MB / 0.5542 GB, free: 5.512 MB / 414.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.01155/0.3771, allocations: 5.022 MB / 0.5591 GB, free: 424 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.239e-06/0.3771, allocations: 4 kB / 0.5591 GB, free: 420 kB / 414.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01184/0.389, allocations: 4.352 MB / 0.5634 GB, free: 12.04 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.304e-05/0.3891, allocations: 61.67 kB / 0.5634 GB, free: 11.97 MB / 430.1 MB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002064/0.3911, allocations: 1.058 MB / 0.5644 GB, free: 10.9 MB / 430.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated Error: Internal error SimCode DAEmode: The model PowerSystems.Examples.AC3ph.Inverters.InverterToGrid could not be translated