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.0008367/0.0008367, allocations: 86.05 kB / 16.31 MB, free: 6.453 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.0008821/0.0008821, allocations: 175.6 kB / 17.2 MB, free: 6.328 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.337/1.337, allocations: 205.4 MB / 223.4 MB, free: 5.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2918/0.2918, allocations: 38.05 MB / 309.7 MB, free: 8.918 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.0005028/0.000503, allocations: 12 kB / 376.5 MB, free: 15.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1017, allocations: 56.34 MB / 432.9 MB, free: 6.707 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.007694/0.1095, allocations: 7.331 MB / 440.2 MB, free: 15.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004828/0.1143, allocations: 2.666 MB / 442.9 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000871/0.1152, allocations: 47.69 kB / 442.9 MB, free: 12.62 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007489/0.116, allocations: 190.6 kB / 443.1 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001769/0.1178, allocations: 0.6261 MB / 443.7 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.1191, allocations: 455.3 kB / 444.2 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002408/0.1215, allocations: 2.062 MB / 446.2 MB, free: 9.297 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002027/0.1236, allocations: 0.9337 MB / 447.2 MB, free: 8.324 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001301/0.1249, allocations: 0.6384 MB / 447.8 MB, free: 7.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001634/0.1265, allocations: 0.8884 MB / 448.7 MB, free: 6.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004385/0.127, allocations: 64 kB / 448.7 MB, free: 6.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001386/0.1284, allocations: 0.5616 MB / 449.3 MB, free: 6.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008709/0.1293, allocations: 0.5534 MB / 449.9 MB, free: 5.613 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005435/0.1298, allocations: 233.1 kB / 450.1 MB, free: 5.379 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001863/0.1317, allocations: 1.567 MB / 451.6 MB, free: 3.809 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1317, allocations: 0 / 451.6 MB, free: 3.809 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1317, allocations: 3.938 kB / 451.7 MB, free: 3.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.687e-05/0.1318, allocations: 0 / 451.7 MB, free: 3.805 MB / 382.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.004245/0.136, allocations: 1.69 MB / 453.3 MB, free: 2.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.1361, allocations: 8.031 kB / 453.4 MB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001056/0.1372, allocations: 174.5 kB / 453.5 MB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001861/0.139, allocations: 0.8766 MB / 454.4 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006094/0.1397, allocations: 0.5218 MB / 454.9 MB, free: 344 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002838/0.14, allocations: 107.9 kB / 455 MB, free: 236 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.188/0.328, allocations: 2.129 MB / 457.2 MB, free: 50.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.249e-05/0.328, allocations: 5.188 kB / 457.2 MB, free: 50.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.3282, allocations: 41.31 kB / 457.2 MB, free: 50.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000187/0.3284, allocations: 95.28 kB / 457.3 MB, free: 50.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004352/0.3327, allocations: 2.413 MB / 459.7 MB, free: 50.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007621/0.3404, allocations: 5.855 MB / 465.6 MB, free: 48.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003401/0.3438, allocations: 1.748 MB / 467.3 MB, free: 48.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00205/0.3459, allocations: 1.212 MB / 468.5 MB, free: 47.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-05/0.346, allocations: 18.06 kB / 468.5 MB, free: 47.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002219/0.3482, allocations: 1.41 MB / 469.9 MB, free: 47.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.176e-06/0.3482, allocations: 0 / 469.9 MB, free: 47.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=118): time 0.01627/0.3645, allocations: 7.925 MB / 477.9 MB, free: 44.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.3646, allocations: 106.1 kB / 478 MB, free: 44.76 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004811/0.3651, allocations: 0.5081 MB / 478.5 MB, free: 44.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.751e-05/0.3652, allocations: 53.58 kB / 478.5 MB, free: 44.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.3654, allocations: 407.3 kB / 478.9 MB, free: 44.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000225/0.3656, allocations: 389 kB / 479.3 MB, free: 43.87 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.619e-05/0.3657, allocations: 22.09 kB / 479.3 MB, free: 43.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.121e-05/0.3658, allocations: 395.2 kB / 479.7 MB, free: 43.51 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/0.3674, allocations: 1.027 MB / 480.8 MB, free: 43.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001681/0.3691, allocations: 1.215 MB / 482 MB, free: 42.71 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.009148/0.3782, allocations: 4.382 MB / 486.3 MB, free: 41.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.3783, allocations: 2.094 kB / 486.4 MB, free: 41.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.008925/0.3872, allocations: 4.145 MB / 490.5 MB, free: 40.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.614e-05/0.3873, allocations: 67.36 kB / 490.6 MB, free: 40.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.002271/0.3896, allocations: 1.109 MB / 491.7 MB, free: 40.03 MB / 382.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated