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.001409/0.001409, allocations: 110.2 kB / 17.06 MB, free: 5.969 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.001345/0.001345, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.524/1.524, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1884/0.1884, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 71.89 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3514, allocations: 58.06 MB / 0.5036 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.007499/0.3589, allocations: 6.98 MB / 0.5105 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004297/0.3633, allocations: 2.367 MB / 0.5128 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007225/0.364, allocations: 30.5 kB / 0.5128 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001463/0.3655, allocations: 0.5284 MB / 0.5133 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001685/0.3672, allocations: 0.6029 MB / 0.5139 GB, free: 324 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001373/0.3686, allocations: 0.5037 MB / 0.5144 GB, free: 80 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002932/0.3715, allocations: 1.992 MB / 0.5163 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001516/0.3731, allocations: 0.922 MB / 0.5172 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001701/0.3748, allocations: 0.7778 MB / 0.518 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001769/0.3766, allocations: 0.9472 MB / 0.5189 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002894/0.3769, allocations: 163.8 kB / 0.5191 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001452/0.3783, allocations: 0.6439 MB / 0.5197 GB, free: 14 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009064/0.3793, allocations: 0.6417 MB / 0.5203 GB, free: 13.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001141/0.3804, allocations: 0.6887 MB / 0.521 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003426/0.3838, allocations: 2.079 MB / 0.523 GB, free: 12.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3839, allocations: 0.5156 kB / 0.523 GB, free: 12.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3839, allocations: 0 / 0.523 GB, free: 12.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.92e-05/0.3839, allocations: 0 / 0.523 GB, free: 12.61 MB / 398.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.006134/0.3901, allocations: 1.91 MB / 0.5249 GB, free: 11.51 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.723e-05/0.3902, allocations: 13.23 kB / 0.5249 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003533/0.3905, allocations: 175 kB / 0.5251 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001144/0.3917, allocations: 179 kB / 0.5252 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002275/0.394, allocations: 0.9362 MB / 0.5262 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007838/0.3948, allocations: 0.5023 MB / 0.5267 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003313/0.3951, allocations: 103.8 kB / 0.5268 GB, free: 10.33 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004833/0.4, allocations: 2.042 MB / 0.5287 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.916e-05/0.4, allocations: 11.91 kB / 0.5288 GB, free: 9.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001518/0.4002, allocations: 39.08 kB / 0.5288 GB, free: 9.078 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002431/0.4004, allocations: 84.61 kB / 0.5289 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005956/0.4064, allocations: 2.26 MB / 0.5311 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01131/0.4177, allocations: 5.757 MB / 0.5367 GB, free: 3.879 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004821/0.4226, allocations: 1.605 MB / 0.5383 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00314/0.4258, allocations: 1.124 MB / 0.5394 GB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001207/0.4259, allocations: 19.84 kB / 0.5394 GB, free: 2.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003363/0.4293, allocations: 1.311 MB / 0.5407 GB, free: 1.734 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.677e-06/0.4293, allocations: 0 / 0.5407 GB, free: 1.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.03047/0.4598, allocations: 8.612 MB / 0.5491 GB, free: 9.594 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.46, allocations: 102.1 kB / 0.5492 GB, free: 9.477 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008443/0.4608, allocations: 0.5105 MB / 0.5497 GB, free: 8.957 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004597/0.4613, allocations: 65.61 kB / 0.5497 GB, free: 8.887 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000441/0.4617, allocations: 409.2 kB / 0.5501 GB, free: 8.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007585/0.4625, allocations: 412.5 kB / 0.5505 GB, free: 8.074 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005099/0.463, allocations: 222.9 kB / 0.5507 GB, free: 7.848 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002916/0.4633, allocations: 398.7 kB / 0.5511 GB, free: 7.449 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002233/0.4656, allocations: 0.9706 MB / 0.5521 GB, free: 6.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002435/0.468, allocations: 1.168 MB / 0.5532 GB, free: 5.258 MB / 414.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.01415/0.4822, allocations: 5.007 MB / 0.5581 GB, free: 180 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/0.4822, allocations: 4 kB / 0.5581 GB, free: 176 kB / 414.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01494/0.4972, allocations: 4.36 MB / 0.5624 GB, free: 11.79 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001188/0.4973, allocations: 57.67 kB / 0.5624 GB, free: 11.73 MB / 430.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.002869/0.5002, allocations: 1.058 MB / 0.5634 GB, free: 10.66 MB / 430.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated