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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007391/0.0007392, allocations: 91.75 kB / 16.65 MB, free: 6.586 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.0007954/0.0007955, allocations: 183.8 kB / 17.56 MB, free: 6.203 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.263/1.263, allocations: 223.3 MB / 241.6 MB, free: 252 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1652/0.1652, allocations: 38.09 MB / 330.8 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003613, allocations: 12 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1004, allocations: 59.17 MB / 460 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.008021/0.1085, allocations: 7.785 MB / 467.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004571/0.1131, allocations: 2.731 MB / 470.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000514/0.1137, allocations: 47.69 kB / 470.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004868/0.1142, allocations: 167 kB / 470.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001148/0.1153, allocations: 0.5565 MB / 471.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009105/0.1162, allocations: 455.3 kB / 471.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002154/0.1184, allocations: 2.487 MB / 474.2 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001456/0.1199, allocations: 1.061 MB / 475.3 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009042/0.1208, allocations: 0.6305 MB / 475.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001176/0.122, allocations: 0.8804 MB / 476.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001379/0.1221, allocations: 68 kB / 476.8 MB, free: 6.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009671/0.1231, allocations: 0.6122 MB / 477.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005123/0.1236, allocations: 0.5494 MB / 478 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006067/0.1242, allocations: 0.6199 MB / 478.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00175/0.126, allocations: 1.939 MB / 480.6 MB, free: 2.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.126, allocations: 0 / 480.6 MB, free: 2.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.126, allocations: 0 / 480.6 MB, free: 2.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.698e-05/0.126, allocations: 0 / 480.6 MB, free: 2.281 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.003896/0.1299, allocations: 1.679 MB / 482.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.13, allocations: 12.02 kB / 482.2 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002457/0.1302, allocations: 172.7 kB / 482.4 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007922/0.131, allocations: 183.4 kB / 482.6 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001658/0.1327, allocations: 0.8892 MB / 483.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006064/0.1333, allocations: 0.5221 MB / 484 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002658/0.1336, allocations: 108 kB / 484.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003958/0.1376, allocations: 2.145 MB / 486.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/0.1376, allocations: 4 kB / 486.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/0.1378, allocations: 39.98 kB / 486.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002165/0.138, allocations: 89.94 kB / 486.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004992/0.143, allocations: 2.432 MB / 488.8 MB, free: 9.754 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009055/0.1521, allocations: 5.844 MB / 494.7 MB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004263/0.1564, allocations: 1.759 MB / 496.4 MB, free: 1.984 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002592/0.159, allocations: 1.215 MB / 497.6 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.381e-05/0.1591, allocations: 14.23 kB / 497.6 MB, free: 0.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002846/0.1619, allocations: 1.422 MB / 499.1 MB, free: 15.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.186e-06/0.1619, allocations: 0 / 499.1 MB, free: 15.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=118): time 0.02944/0.1914, allocations: 10.32 MB / 0.4975 GB, free: 4.891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.24e-05/0.1915, allocations: 102.1 kB / 0.4975 GB, free: 4.773 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007315/0.1923, allocations: 0.5104 MB / 0.498 GB, free: 4.254 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002477/0.1925, allocations: 53.7 kB / 0.4981 GB, free: 4.195 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000298/0.1928, allocations: 404.2 kB / 0.4985 GB, free: 3.793 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003649/0.1932, allocations: 398.5 kB / 0.4989 GB, free: 3.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/0.1934, allocations: 109.7 kB / 0.499 GB, free: 3.285 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.1936, allocations: 398.7 kB / 0.4993 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002021/0.1956, allocations: 1.045 MB / 0.5004 GB, free: 1.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002184/0.1978, allocations: 1.232 MB / 0.5016 GB, free: 0.5547 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.218/0.4158, allocations: 5.314 MB / 0.5068 GB, free: 55.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.4159, allocations: 1.094 kB / 0.5068 GB, free: 55.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01465/0.4305, allocations: 5.21 MB / 0.5119 GB, free: 54.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.848e-05/0.4306, allocations: 61.64 kB / 0.5119 GB, free: 54.41 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.002333/0.433, allocations: 1.13 MB / 0.513 GB, free: 54.01 MB / 382.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated