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.000981/0.0009811, allocations: 94.59 kB / 16.65 MB, free: 6.602 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.001148/0.001148, allocations: 172.7 kB / 17.56 MB, free: 6.203 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.561/1.561, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2013/0.2013, allocations: 38.06 MB / 310.1 MB, free: 5.906 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.0005704/0.0005705, allocations: 19.5 kB / 377.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2673, allocations: 56.33 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.00641/0.2738, allocations: 7.782 MB / 441.3 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004677/0.2785, allocations: 2.782 MB / 444.1 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009633/0.2795, allocations: 51.69 kB / 444.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005785/0.2801, allocations: 162.9 kB / 444.3 MB, free: 7.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001349/0.2815, allocations: 0.5487 MB / 444.8 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009846/0.2824, allocations: 467.3 kB / 445.3 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001648/0.2841, allocations: 2.491 MB / 447.8 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001186/0.2853, allocations: 1.046 MB / 448.8 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000776/0.2861, allocations: 0.6227 MB / 449.4 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00114/0.2872, allocations: 0.8842 MB / 450.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.2874, allocations: 72 kB / 450.4 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000853/0.2883, allocations: 0.62 MB / 451 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003911/0.2887, allocations: 0.5378 MB / 451.5 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005911/0.2893, allocations: 0.6199 MB / 452.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001584/0.2909, allocations: 1.939 MB / 454.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2909, allocations: 0 / 454.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.2909, allocations: 0 / 454.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.513e-05/0.2909, allocations: 0 / 454.1 MB, free: 13.95 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.00385/0.2948, allocations: 1.682 MB / 455.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.2948, allocations: 8.031 kB / 455.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008219/0.2956, allocations: 175.5 kB / 456 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00168/0.2973, allocations: 0.8893 MB / 456.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006258/0.298, allocations: 0.5262 MB / 457.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002823/0.2983, allocations: 107.8 kB / 457.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004227/0.3025, allocations: 2.157 MB / 459.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.743e-05/0.3025, allocations: 0 / 459.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.3027, allocations: 35.98 kB / 459.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002225/0.3029, allocations: 89.95 kB / 459.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00507/0.308, allocations: 2.424 MB / 462.2 MB, free: 5.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009217/0.3172, allocations: 5.863 MB / 468.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004365/0.3216, allocations: 1.757 MB / 469.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002669/0.3243, allocations: 1.219 MB / 471 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.815e-05/0.3245, allocations: 9 kB / 471 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003059/0.3275, allocations: 1.414 MB / 472.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 3.246e-06/0.3276, allocations: 0 / 472.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=118): time 0.03252/0.3601, allocations: 10.33 MB / 482.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001475/0.3603, allocations: 106.1 kB / 482.9 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008467/0.3611, allocations: 0.5105 MB / 483.4 MB, free: 96 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003897/0.3615, allocations: 57.69 kB / 483.4 MB, free: 32 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005707/0.3621, allocations: 404.2 kB / 483.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007806/0.3629, allocations: 390.4 kB / 484.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003246/0.3633, allocations: 105.7 kB / 484.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002444/0.3635, allocations: 398.7 kB / 484.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00243/0.3659, allocations: 1.053 MB / 485.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002453/0.3684, allocations: 1.232 MB / 487 MB, free: 12.39 MB / 366.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.01379/0.3822, allocations: 5.315 MB / 492.3 MB, free: 7.008 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/0.3823, allocations: 4 kB / 492.3 MB, free: 7.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.01515/0.3974, allocations: 5.215 MB / 497.5 MB, free: 1.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.3976, allocations: 61.67 kB / 497.6 MB, free: 1.703 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.002843/0.4005, allocations: 1.125 MB / 498.7 MB, free: 0.5703 MB / 366.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated