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.0009181/0.0009182, allocations: 91 kB / 17.31 MB, free: 6.535 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.0008316/0.0008318, allocations: 178.2 kB / 18.21 MB, free: 5.676 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.479/1.479, allocations: 223.2 MB / 242.2 MB, free: 280 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2048/0.2048, allocations: 38.1 MB / 331.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003535/0.0003535, allocations: 8.281 kB / 401.4 MB, free: 34.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1356, allocations: 59.17 MB / 460.5 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.009037/0.1447, allocations: 7.774 MB / 468.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005667/0.1504, allocations: 2.754 MB / 471.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009417/0.1514, allocations: 47.69 kB / 471.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005868/0.152, allocations: 151 kB / 471.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001663/0.1536, allocations: 0.5526 MB / 471.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.1548, allocations: 463.4 kB / 472.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002664/0.1575, allocations: 2.491 MB / 474.8 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001858/0.1593, allocations: 1.046 MB / 475.8 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00115/0.1605, allocations: 0.6228 MB / 476.4 MB, free: 7.098 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001266/0.1618, allocations: 0.8881 MB / 477.3 MB, free: 6.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001506/0.162, allocations: 68 kB / 477.4 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.1631, allocations: 0.6239 MB / 478 MB, free: 5.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005586/0.1636, allocations: 0.5455 MB / 478.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007022/0.1644, allocations: 0.6121 MB / 479.2 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001421/0.1658, allocations: 1.559 MB / 480.7 MB, free: 2.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1658, allocations: 0 / 480.7 MB, free: 2.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1658, allocations: 0 / 480.7 MB, free: 2.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.618e-05/0.1658, allocations: 0 / 480.7 MB, free: 2.785 MB / 350.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.004028/0.1699, allocations: 1.675 MB / 482.4 MB, free: 1.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.1699, allocations: 20.02 kB / 482.4 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009062/0.1709, allocations: 171.5 kB / 482.6 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001843/0.1727, allocations: 0.8892 MB / 483.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006406/0.1734, allocations: 0.5301 MB / 484 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002769/0.1737, allocations: 107.9 kB / 484.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004421/0.1781, allocations: 2.137 MB / 486.2 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.243e-05/0.1781, allocations: 3.938 kB / 486.2 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00014/0.1783, allocations: 51.97 kB / 486.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002475/0.1785, allocations: 89.95 kB / 486.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00529/0.1838, allocations: 2.424 MB / 488.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009627/0.1935, allocations: 5.852 MB / 494.7 MB, free: 4.449 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004357/0.1979, allocations: 1.755 MB / 496.4 MB, free: 2.672 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002635/0.2006, allocations: 1.219 MB / 497.6 MB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.15e-05/0.2007, allocations: 18.25 kB / 497.7 MB, free: 1.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002827/0.2035, allocations: 1.414 MB / 499.1 MB, free: 0 / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 2.395e-06/0.2035, allocations: 0 / 499.1 MB, free: 0 / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.0295/0.233, allocations: 10.31 MB / 0.4974 GB, free: 5.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.301e-05/0.2331, allocations: 106 kB / 0.4975 GB, free: 5.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006678/0.2338, allocations: 0.5221 MB / 0.498 GB, free: 4.938 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002708/0.2341, allocations: 61.69 kB / 0.4981 GB, free: 4.871 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003019/0.2344, allocations: 396.2 kB / 0.4985 GB, free: 4.477 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000385/0.2348, allocations: 398.5 kB / 0.4989 GB, free: 4.082 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.235, allocations: 105.7 kB / 0.499 GB, free: 3.973 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.2352, allocations: 398.7 kB / 0.4993 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002093/0.2373, allocations: 1.049 MB / 0.5004 GB, free: 2.523 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002301/0.2396, allocations: 1.236 MB / 0.5016 GB, free: 1.234 MB / 382.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.2954/0.5349, allocations: 5.304 MB / 0.5068 GB, free: 55.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.535, allocations: 1.531 kB / 0.5068 GB, free: 55.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01794/0.5529, allocations: 5.214 MB / 0.5118 GB, free: 54.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001498/0.5531, allocations: 57.5 kB / 0.5119 GB, free: 54.59 MB / 382.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.003287/0.5564, allocations: 1.132 MB / 0.513 GB, free: 54.19 MB / 382.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated