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.001352/0.001352, allocations: 112.7 kB / 17.75 MB, free: 5.332 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.001488/0.001488, allocations: 183 kB / 18.68 MB, free: 4.41 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.335/1.335, allocations: 205.1 MB / 224.6 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.176/0.176, allocations: 37.98 MB / 309.9 MB, free: 5.941 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.001451/0.001451, allocations: 67.91 kB / 432.5 MB, free: 15.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08858/0.09004, allocations: 55.24 MB / 487.8 MB, free: 8.453 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToGrid): time 0.01026/0.1003, allocations: 6.987 MB / 494.8 MB, free: 1.426 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004515/0.1049, allocations: 2.412 MB / 497.2 MB, free: 15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005596/0.1055, allocations: 31.81 kB / 497.2 MB, free: 14.97 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001576/0.1071, allocations: 0.5287 MB / 497.7 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001615/0.1087, allocations: 0.595 MB / 498.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.1099, allocations: 0.5069 MB / 498.9 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002288/0.1122, allocations: 1.992 MB / 0.4891 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001415/0.1136, allocations: 0.9199 MB / 0.49 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001247/0.1149, allocations: 0.8023 MB / 0.4908 GB, free: 9.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001468/0.1164, allocations: 0.9389 MB / 0.4917 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002426/0.1166, allocations: 156 kB / 0.4919 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.1177, allocations: 0.6554 MB / 0.4925 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005952/0.1183, allocations: 0.647 MB / 0.4931 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007168/0.119, allocations: 0.6886 MB / 0.4938 GB, free: 6.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001976/0.121, allocations: 2.069 MB / 0.4958 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.121, allocations: 0 / 0.4958 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.121, allocations: 0 / 0.4958 GB, free: 4.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.121, allocations: 0 / 0.4958 GB, free: 4.441 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.004187/0.1252, allocations: 1.889 MB / 0.4977 GB, free: 2.469 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1253, allocations: 11.89 kB / 0.4977 GB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008193/0.1261, allocations: 179.5 kB / 0.4978 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/0.128, allocations: 0.9204 MB / 0.4987 GB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005921/0.1286, allocations: 0.5028 MB / 0.4992 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002841/0.1289, allocations: 107.9 kB / 0.4993 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003827/0.1327, allocations: 2.051 MB / 0.5013 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.1328, allocations: 0 / 0.5013 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001384/0.1329, allocations: 39.98 kB / 0.5014 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002272/0.1332, allocations: 85.95 kB / 0.5015 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004735/0.1379, allocations: 2.256 MB / 0.5037 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008831/0.1468, allocations: 5.734 MB / 0.5093 GB, free: 6.277 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004095/0.1509, allocations: 1.608 MB / 0.5108 GB, free: 4.652 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002454/0.1533, allocations: 1.113 MB / 0.5119 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.236e-05/0.1534, allocations: 20.98 kB / 0.5119 GB, free: 3.516 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00266/0.1561, allocations: 1.324 MB / 0.5132 GB, free: 2.168 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.306e-06/0.1561, allocations: 0 / 0.5132 GB, free: 2.168 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.02577/0.1819, allocations: 8.579 MB / 0.5216 GB, free: 9.496 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.182, allocations: 102.1 kB / 0.5217 GB, free: 9.375 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005765/0.1826, allocations: 0.5105 MB / 0.5222 GB, free: 8.855 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001139/0.1827, allocations: 61.69 kB / 0.5223 GB, free: 8.789 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003569/0.1831, allocations: 400.2 kB / 0.5226 GB, free: 8.391 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003487/0.1834, allocations: 390.5 kB / 0.523 GB, free: 8.004 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000396/0.1838, allocations: 218.8 kB / 0.5232 GB, free: 7.781 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.184, allocations: 398.7 kB / 0.5236 GB, free: 7.383 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001926/0.1859, allocations: 0.9706 MB / 0.5246 GB, free: 6.414 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002041/0.188, allocations: 1.173 MB / 0.5257 GB, free: 5.184 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.01206/0.2001, allocations: 5.014 MB / 0.5306 GB, free: 100 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.2001, allocations: 0 / 0.5306 GB, free: 100 kB / 414.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.2004/0.4005, allocations: 4.353 MB / 0.5349 GB, free: 51.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.592e-05/0.4006, allocations: 60.89 kB / 0.5349 GB, free: 51.8 MB / 414.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.001988/0.4026, allocations: 1.052 MB / 0.5359 GB, free: 51.49 MB / 414.1 MB Error: post-optimization module simplifyComplexFunction (initialization) failed. Error: No system for the symbolic initialization was generated Error: Internal error SimCode DAEmode: The model PowerSystems.Examples.AC3ph.Inverters.InverterToGrid could not be translated