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.00152/0.00152, allocations: 110.3 kB / 16.51 MB, free: 6.715 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.001814/0.001815, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.47/1.47, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1749/0.1749, allocations: 38.04 MB / 329.3 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 61.39 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1033, allocations: 58.06 MB / 456.2 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.009389/0.1128, allocations: 8.234 MB / 464.4 MB, free: 252 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00621/0.119, allocations: 2.766 MB / 467.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008553/0.1199, allocations: 55.62 kB / 467.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001601/0.1216, allocations: 0.492 MB / 467.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001584/0.1232, allocations: 0.5604 MB / 468.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.1243, allocations: 451.4 kB / 468.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002902/0.1273, allocations: 2.491 MB / 471.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001354/0.1286, allocations: 0.7838 MB / 472 MB, free: 8.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001152/0.1298, allocations: 0.6695 MB / 472.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001229/0.131, allocations: 0.9427 MB / 473.6 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001965/0.1312, allocations: 80 kB / 473.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00131/0.1326, allocations: 0.6279 MB / 474.3 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006384/0.1332, allocations: 0.5806 MB / 474.9 MB, free: 5.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008466/0.1341, allocations: 0.6221 MB / 475.5 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002118/0.1362, allocations: 1.983 MB / 477.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1362, allocations: 0 / 477.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1362, allocations: 4 kB / 477.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.782e-05/0.1362, allocations: 0 / 477.5 MB, free: 3.105 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.004469/0.1407, allocations: 1.877 MB / 479.4 MB, free: 1.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.1408, allocations: 8.031 kB / 479.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009774/0.1418, allocations: 183.5 kB / 479.6 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001821/0.1436, allocations: 0.8814 MB / 480.4 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006187/0.1442, allocations: 0.495 MB / 480.9 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002816/0.1445, allocations: 111.9 kB / 481 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004129/0.1487, allocations: 2.055 MB / 483.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/0.1487, allocations: 0 / 483.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001395/0.1488, allocations: 43.98 kB / 483.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002194/0.1491, allocations: 85.94 kB / 483.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004789/0.1539, allocations: 2.256 MB / 485.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008945/0.1628, allocations: 5.762 MB / 491.2 MB, free: 4.961 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003843/0.1667, allocations: 1.603 MB / 492.8 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002368/0.1691, allocations: 1.128 MB / 494 MB, free: 2.207 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.023e-05/0.1692, allocations: 14.23 kB / 494 MB, free: 2.191 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00275/0.1719, allocations: 1.32 MB / 495.3 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 2.826e-06/0.172, allocations: 0 / 495.3 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.02568/0.1976, allocations: 8.572 MB / 0.4921 GB, free: 8.184 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.387e-05/0.1977, allocations: 102.1 kB / 0.4922 GB, free: 8.066 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006568/0.1984, allocations: 0.5104 MB / 0.4927 GB, free: 7.547 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001864/0.1986, allocations: 61.67 kB / 0.4927 GB, free: 7.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003883/0.199, allocations: 400.2 kB / 0.4931 GB, free: 7.082 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004274/0.1994, allocations: 398.4 kB / 0.4935 GB, free: 6.688 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004213/0.1999, allocations: 222.8 kB / 0.4937 GB, free: 6.461 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.2, allocations: 398.7 kB / 0.4941 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001925/0.202, allocations: 0.9706 MB / 0.495 GB, free: 5.094 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002067/0.2041, allocations: 1.16 MB / 0.4962 GB, free: 3.879 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.2025/0.4065, allocations: 5.013 MB / 0.5011 GB, free: 54.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.4066, allocations: 2.203 kB / 0.5011 GB, free: 54.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.0136/0.4202, allocations: 4.356 MB / 0.5053 GB, free: 54.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000127/0.4204, allocations: 61.67 kB / 0.5054 GB, free: 54.3 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.002411/0.4228, allocations: 1.053 MB / 0.5064 GB, free: 53.92 MB / 382.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated