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.001642/0.001642, allocations: 109.6 kB / 16.92 MB, free: 6.332 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.00185/0.00185, allocations: 191.4 kB / 17.85 MB, free: 5.414 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 / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1733/0.1733, allocations: 38.04 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 61.77 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1033, allocations: 58.05 MB / 456.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.008325/0.1117, allocations: 6.998 MB / 463.9 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003775/0.1155, allocations: 2.364 MB / 466.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004024/0.1159, allocations: 35.75 kB / 466.3 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001505/0.1174, allocations: 0.5093 MB / 466.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001244/0.1187, allocations: 0.6106 MB / 467.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.1197, allocations: 0.5029 MB / 467.9 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001779/0.1215, allocations: 1.977 MB / 469.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001082/0.1226, allocations: 0.9199 MB / 470.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001004/0.1236, allocations: 0.7906 MB / 471.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001251/0.1249, allocations: 0.939 MB / 472.5 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002379/0.1251, allocations: 156 kB / 472.7 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.1262, allocations: 0.6943 MB / 473.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006199/0.1268, allocations: 0.6509 MB / 474 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006784/0.1275, allocations: 0.6886 MB / 474.7 MB, free: 6.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001847/0.1294, allocations: 2.03 MB / 476.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1294, allocations: 0 / 476.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1294, allocations: 0 / 476.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.768e-05/0.1294, allocations: 0 / 476.7 MB, free: 4.129 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.00408/0.1335, allocations: 1.885 MB / 478.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.1336, allocations: 19.83 kB / 478.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007884/0.1344, allocations: 175.5 kB / 478.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00164/0.136, allocations: 0.8892 MB / 479.7 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005809/0.1366, allocations: 0.4989 MB / 480.2 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002472/0.1369, allocations: 107.9 kB / 480.3 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003756/0.1406, allocations: 2.044 MB / 482.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.861e-05/0.1407, allocations: 8 kB / 482.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/0.1408, allocations: 36 kB / 482.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002165/0.141, allocations: 97.92 kB / 482.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004711/0.1457, allocations: 2.252 MB / 484.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008515/0.1543, allocations: 5.77 MB / 490.5 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004051/0.1583, allocations: 1.603 MB / 492.1 MB, free: 4.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002427/0.1608, allocations: 1.12 MB / 493.2 MB, free: 3.215 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.783e-05/0.1609, allocations: 18.23 kB / 493.2 MB, free: 3.199 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002727/0.1636, allocations: 1.315 MB / 494.6 MB, free: 1.867 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 2.815e-06/0.1636, allocations: 4 kB / 494.6 MB, free: 1.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.0271/0.1907, allocations: 8.576 MB / 0.4913 GB, free: 9.191 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/0.1908, allocations: 102.1 kB / 0.4914 GB, free: 9.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006045/0.1915, allocations: 0.5144 MB / 0.4919 GB, free: 8.547 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001113/0.1916, allocations: 53.7 kB / 0.492 GB, free: 8.488 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003101/0.1919, allocations: 408.2 kB / 0.4924 GB, free: 8.082 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000337/0.1922, allocations: 394.4 kB / 0.4928 GB, free: 7.691 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003946/0.1926, allocations: 214.8 kB / 0.493 GB, free: 7.473 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1928, allocations: 394.8 kB / 0.4933 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001909/0.1947, allocations: 0.9706 MB / 0.4943 GB, free: 6.109 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002011/0.1967, allocations: 1.17 MB / 0.4954 GB, free: 4.883 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.2347/0.4315, allocations: 5.013 MB / 0.5003 GB, free: 55.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.4315, allocations: 1.375 kB / 0.5003 GB, free: 55.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01358/0.4451, allocations: 4.361 MB / 0.5046 GB, free: 55.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.4453, allocations: 63.64 kB / 0.5046 GB, free: 55.53 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.002153/0.4474, allocations: 1.045 MB / 0.5057 GB, free: 55.16 MB / 382.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated