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.001607/0.001607, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001767/0.001767, allocations: 190 kB / 17.54 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.418/1.418, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1793/0.1793, allocations: 38.03 MB / 329.4 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 65.83 kB / 398.3 MB, free: 34.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1038, allocations: 58.05 MB / 456.3 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.009707/0.1136, allocations: 8.238 MB / 464.6 MB, free: 128 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004741/0.1184, allocations: 2.742 MB / 467.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008293/0.1192, allocations: 51.69 kB / 467.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.1208, allocations: 0.4927 MB / 467.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001417/0.1222, allocations: 0.537 MB / 468.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.1234, allocations: 475.4 kB / 468.9 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001951/0.1254, allocations: 1.988 MB / 470.9 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001203/0.1266, allocations: 0.9512 MB / 471.8 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.1277, allocations: 0.7945 MB / 472.6 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001221/0.1289, allocations: 0.9895 MB / 473.6 MB, free: 7.078 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002168/0.1291, allocations: 160 kB / 473.7 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001322/0.1305, allocations: 0.6943 MB / 474.4 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008122/0.1313, allocations: 0.6432 MB / 475.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007239/0.132, allocations: 0.7003 MB / 475.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001878/0.1339, allocations: 2.049 MB / 477.8 MB, free: 2.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1339, allocations: 0 / 477.8 MB, free: 2.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1339, allocations: 0 / 477.8 MB, free: 2.824 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.741e-05/0.134, allocations: 0 / 477.8 MB, free: 2.824 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.004127/0.1381, allocations: 1.889 MB / 479.7 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.1381, allocations: 11.89 kB / 479.7 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008246/0.139, allocations: 175.5 kB / 479.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/0.1406, allocations: 0.8853 MB / 480.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005882/0.1412, allocations: 0.5067 MB / 481.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002602/0.1415, allocations: 107.9 kB / 481.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003836/0.1453, allocations: 2.04 MB / 483.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.994e-05/0.1453, allocations: 3.938 kB / 483.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/0.1455, allocations: 47.97 kB / 483.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002089/0.1457, allocations: 89.94 kB / 483.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004625/0.1503, allocations: 2.252 MB / 485.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008971/0.1593, allocations: 5.773 MB / 491.6 MB, free: 4.656 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00395/0.1633, allocations: 1.599 MB / 493.2 MB, free: 3.039 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002397/0.1657, allocations: 1.113 MB / 494.3 MB, free: 1.922 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.347e-05/0.1658, allocations: 22.25 kB / 494.3 MB, free: 1.902 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002675/0.1685, allocations: 1.316 MB / 495.7 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 2.895e-06/0.1685, allocations: 0 / 495.7 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.0247/0.1932, allocations: 8.568 MB / 0.4924 GB, free: 7.902 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/0.1933, allocations: 110 kB / 0.4925 GB, free: 7.773 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000617/0.194, allocations: 0.5143 MB / 0.493 GB, free: 7.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000138/0.1941, allocations: 53.69 kB / 0.4931 GB, free: 7.191 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002785/0.1944, allocations: 404.2 kB / 0.4935 GB, free: 6.789 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003272/0.1947, allocations: 398.4 kB / 0.4938 GB, free: 6.395 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003883/0.1951, allocations: 218.8 kB / 0.494 GB, free: 6.172 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.1953, allocations: 398.7 kB / 0.4944 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001856/0.1972, allocations: 0.9745 MB / 0.4954 GB, free: 4.801 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/0.1991, allocations: 1.158 MB / 0.4965 GB, free: 3.586 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.2008/0.3999, allocations: 5.017 MB / 0.5014 GB, free: 55.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.3999, allocations: 1.188 kB / 0.5014 GB, free: 55.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01274/0.4127, allocations: 4.364 MB / 0.5057 GB, free: 54.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.4128, allocations: 63.33 kB / 0.5057 GB, free: 54.61 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.002398/0.4152, allocations: 1.049 MB / 0.5068 GB, free: 54.24 MB / 382.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated