Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_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.001327/0.001327, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001217/0.001217, allocations: 192 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.593/1.593, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2176/0.2176, allocations: 37.99 MB / 309.8 MB, free: 5.961 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 64.42 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3024, allocations: 55.25 MB / 432 MB, free: 19.47 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.01002/0.3125, allocations: 6.985 MB / 439 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005348/0.3179, allocations: 2.423 MB / 441.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001094/0.319, allocations: 27.81 kB / 441.5 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002205/0.3212, allocations: 0.5197 MB / 442 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002573/0.3238, allocations: 0.5989 MB / 442.6 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00178/0.3256, allocations: 0.5069 MB / 443.1 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002561/0.3282, allocations: 1.992 MB / 445.1 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001942/0.3302, allocations: 0.9199 MB / 446 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001587/0.3318, allocations: 0.7829 MB / 446.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001649/0.3334, allocations: 0.9272 MB / 447.7 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00062/0.3341, allocations: 160 kB / 447.9 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002016/0.3361, allocations: 0.6631 MB / 448.5 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001008/0.3371, allocations: 0.6432 MB / 449.2 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001449/0.3386, allocations: 0.6847 MB / 449.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002819/0.3414, allocations: 2.072 MB / 451.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3415, allocations: 0 / 451.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3415, allocations: 0 / 451.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.022e-05/0.3415, allocations: 4 kB / 451.9 MB, free: 15.48 MB / 334.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.006004/0.3475, allocations: 1.866 MB / 453.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.61e-05/0.3476, allocations: 19.88 kB / 453.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00134/0.3489, allocations: 171.6 kB / 454 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002995/0.352, allocations: 0.932 MB / 454.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009341/0.3529, allocations: 0.5028 MB / 455.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004455/0.3534, allocations: 127.8 kB / 455.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006158/0.3595, allocations: 2.04 MB / 457.6 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.628e-05/0.3596, allocations: 0 / 457.6 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002014/0.3598, allocations: 35.98 kB / 457.6 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003543/0.3602, allocations: 93.94 kB / 457.7 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007093/0.3673, allocations: 2.256 MB / 460 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01126/0.3786, allocations: 5.753 MB / 465.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004063/0.3827, allocations: 1.607 MB / 467.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00246/0.3852, allocations: 1.113 MB / 468.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001168/0.3854, allocations: 14.25 kB / 468.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003197/0.3886, allocations: 1.312 MB / 469.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 8.386e-06/0.3886, allocations: 0 / 469.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=118): time 0.02678/0.4154, allocations: 8.576 MB / 478.3 MB, free: 4.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001585/0.4156, allocations: 106 kB / 478.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009916/0.4166, allocations: 0.5104 MB / 479 MB, free: 3.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003549/0.417, allocations: 53.7 kB / 479 MB, free: 3.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005584/0.4176, allocations: 412.2 kB / 479.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007302/0.4183, allocations: 398.4 kB / 479.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006798/0.419, allocations: 218.8 kB / 480 MB, free: 2.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002574/0.4193, allocations: 390.8 kB / 480.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00208/0.4214, allocations: 0.9784 MB / 481.4 MB, free: 1.449 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002415/0.4238, allocations: 1.162 MB / 482.5 MB, free: 240 kB / 350.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.01245/0.4363, allocations: 5.026 MB / 487.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.4363, allocations: 0 / 487.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01211/0.4484, allocations: 4.351 MB / 491.9 MB, free: 6.762 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001196/0.4486, allocations: 61.67 kB / 492 MB, free: 6.695 MB / 366.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.002222/0.4508, allocations: 1.058 MB / 493 MB, free: 5.637 MB / 366.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated