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.001501/0.001501, allocations: 103 kB / 17.74 MB, free: 5.316 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.001718/0.001718, allocations: 198.5 kB / 18.67 MB, free: 4.395 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.318/1.318, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1746/0.1746, allocations: 38.04 MB / 330.6 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 67.89 kB / 458.8 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2966, allocations: 58.06 MB / 0.5048 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.006664/0.3033, allocations: 6.989 MB / 0.5116 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003163/0.3064, allocations: 2.372 MB / 0.5139 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002889/0.3068, allocations: 30.81 kB / 0.5139 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001296/0.3081, allocations: 0.5237 MB / 0.5145 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.3092, allocations: 0.609 MB / 0.5151 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009662/0.3101, allocations: 0.5 MB / 0.5155 GB, free: 464 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001839/0.312, allocations: 1.999 MB / 0.5175 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0012/0.3132, allocations: 0.9161 MB / 0.5184 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.3144, allocations: 0.799 MB / 0.5192 GB, free: 14.85 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00123/0.3156, allocations: 0.9501 MB / 0.5201 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002237/0.3159, allocations: 158.2 kB / 0.5202 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001085/0.317, allocations: 0.6513 MB / 0.5209 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006925/0.3177, allocations: 0.6438 MB / 0.5215 GB, free: 14.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007205/0.3184, allocations: 0.6911 MB / 0.5222 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002204/0.3206, allocations: 2.068 MB / 0.5242 GB, free: 12.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3206, allocations: 0.8438 kB / 0.5242 GB, free: 12.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3206, allocations: 0 / 0.5242 GB, free: 12.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.233e-05/0.3207, allocations: 0 / 0.5242 GB, free: 12.98 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.004419/0.3251, allocations: 1.877 MB / 0.526 GB, free: 11.92 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.3251, allocations: 15.86 kB / 0.5261 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008892/0.326, allocations: 180 kB / 0.5262 GB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001893/0.3279, allocations: 0.9264 MB / 0.5271 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006107/0.3286, allocations: 0.4988 MB / 0.5276 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002884/0.3289, allocations: 111.5 kB / 0.5277 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004121/0.333, allocations: 2.043 MB / 0.5297 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.709e-05/0.333, allocations: 2.281 kB / 0.5297 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/0.3332, allocations: 40.11 kB / 0.5298 GB, free: 9.473 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002266/0.3334, allocations: 84.98 kB / 0.5298 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005016/0.3385, allocations: 2.264 MB / 0.5321 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008809/0.3473, allocations: 5.76 MB / 0.5377 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004238/0.3515, allocations: 1.602 MB / 0.5392 GB, free: 3.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002558/0.3541, allocations: 1.113 MB / 0.5403 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.398e-05/0.3542, allocations: 15.88 kB / 0.5403 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002851/0.3571, allocations: 1.317 MB / 0.5416 GB, free: 2.129 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.587e-06/0.3571, allocations: 1.094 kB / 0.5416 GB, free: 2.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.02799/0.3851, allocations: 8.578 MB / 0.55 GB, free: 9.777 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/0.3852, allocations: 102.1 kB / 0.5501 GB, free: 9.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006268/0.3858, allocations: 0.5221 MB / 0.5506 GB, free: 9.129 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001337/0.3859, allocations: 57.69 kB / 0.5507 GB, free: 9.066 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002971/0.3862, allocations: 404.2 kB / 0.5511 GB, free: 8.664 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000341/0.3866, allocations: 390.5 kB / 0.5514 GB, free: 8.277 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004204/0.387, allocations: 218.8 kB / 0.5516 GB, free: 8.055 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002127/0.3872, allocations: 398.7 kB / 0.552 GB, free: 7.656 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002002/0.3892, allocations: 0.9745 MB / 0.553 GB, free: 6.684 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002111/0.3914, allocations: 1.162 MB / 0.5541 GB, free: 5.465 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.01218/0.4036, allocations: 5.014 MB / 0.559 GB, free: 384 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.4036, allocations: 4 kB / 0.559 GB, free: 380 kB / 414.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01327/0.4169, allocations: 4.348 MB / 0.5632 GB, free: 12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.724e-05/0.4169, allocations: 65.7 kB / 0.5633 GB, free: 11.93 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.002097/0.419, allocations: 1.057 MB / 0.5643 GB, free: 10.87 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