Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_N_1_M_2.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/PowerGrids 1.0.3/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo", uses=false) Using package ScalableTestGrids with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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(ScalableTestGrids.Models.Type1.Type1_N_1_M_2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_N_1_M_2") translateModel(ScalableTestGrids.Models.Type1.Type1_N_1_M_2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_N_1_M_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 111.3 kB / 18.41 MB, free: 4.645 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.001376/0.001376, allocations: 187.8 kB / 19.35 MB, free: 3.715 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.533/1.533, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06713/0.06713, allocations: 14.16 MB / 286.7 MB, free: 13.87 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo): time 3.956/3.956, allocations: 461.2 MB / 0.7801 GB, free: 107.2 MB / 0.6546 GB 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: ScalableTestGrids requested package PowerGrids of version 1.0.2. PowerGrids 1.0.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002605/0.002605, allocations: 97.11 kB / 1.132 GB, free: 22.02 MB / 0.8735 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3957/0.3983, allocations: 172.1 MB / 1.3 GB, free: 7.004 MB / 0.9829 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_N_1_M_2): time 0.06397/0.4622, allocations: 63.96 MB / 1.362 GB, free: 6.793 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.04642/0.5087, allocations: 23.31 MB / 1.385 GB, free: 15.41 MB / 1.077 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01653/0.5252, allocations: 238.9 kB / 1.385 GB, free: 15.17 MB / 1.077 GB Notification: Performance of NFTyping.typeComponents: time 0.01353/0.5387, allocations: 3.321 MB / 1.388 GB, free: 11.83 MB / 1.077 GB Notification: Performance of NFTyping.typeBindings: time 0.03574/0.5745, allocations: 9.416 MB / 1.398 GB, free: 2.367 MB / 1.077 GB Notification: Performance of NFTyping.typeClassSections: time 0.01149/0.586, allocations: 3.253 MB / 1.401 GB, free: 15.11 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.03776/0.6237, allocations: 21.27 MB / 1.422 GB, free: 9.773 MB / 1.108 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005501/0.6292, allocations: 1.473 MB / 1.423 GB, free: 8.223 MB / 1.108 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01731/0.6465, allocations: 7.149 MB / 1.43 GB, free: 1.047 MB / 1.108 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01732/0.6638, allocations: 7.567 MB / 1.437 GB, free: 9.449 MB / 1.124 GB Notification: Performance of NFPackage.collectConstants: time 0.006438/0.6703, allocations: 1.047 MB / 1.438 GB, free: 8.402 MB / 1.124 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01296/0.6832, allocations: 2.047 MB / 1.44 GB, free: 6.355 MB / 1.124 GB Notification: Performance of NFScalarize.scalarize: time 0.005976/0.6892, allocations: 2.311 MB / 1.443 GB, free: 4.035 MB / 1.124 GB Notification: Performance of NFVerifyModel.verify: time 0.01894/0.7081, allocations: 6.714 MB / 1.449 GB, free: 13.29 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.03802/0.7462, allocations: 16.78 MB / 1.466 GB, free: 12.45 MB / 1.155 GB Notification: Performance of FrontEnd - DAE generated: time 1.197e-05/0.7462, allocations: 4 kB / 1.466 GB, free: 12.45 MB / 1.155 GB Notification: Performance of FrontEnd: time 1.804e-06/0.7462, allocations: 0 / 1.466 GB, free: 12.45 MB / 1.155 GB Notification: Performance of Transformations before backend: time 0.0006709/0.7469, allocations: 0 / 1.466 GB, free: 12.45 MB / 1.155 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2196 * Number of variables: 2196 Notification: Performance of Generate backend data structure: time 0.06975/0.8166, allocations: 16.55 MB / 1.482 GB, free: 11.77 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 6.359e-05/0.8167, allocations: 12.03 kB / 1.482 GB, free: 11.75 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01026/0.8269, allocations: 1.704 MB / 1.483 GB, free: 10.04 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0203/0.8472, allocations: 7.149 MB / 1.49 GB, free: 2.805 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000772/0.848, allocations: 0.6535 MB / 1.491 GB, free: 2.148 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002929/0.8509, allocations: 0.8671 MB / 1.492 GB, free: 1.281 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02485/0.8758, allocations: 8.973 MB / 1.501 GB, free: 7.906 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002821/0.8761, allocations: 19.81 kB / 1.501 GB, free: 7.887 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0018/0.8779, allocations: 360 kB / 1.501 GB, free: 7.535 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000212/0.8781, allocations: 212 kB / 1.501 GB, free: 7.328 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02245/0.9005, allocations: 8.511 MB / 1.51 GB, free: 14.8 MB / 1.202 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1123/1.013, allocations: 57.14 MB / 1.565 GB, free: 0.7422 MB / 1.249 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02036/1.033, allocations: 10.01 MB / 1.575 GB, free: 6.699 MB / 1.264 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008414/1.042, allocations: 3.571 MB / 1.579 GB, free: 3.113 MB / 1.264 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006139/1.042, allocations: 111.1 kB / 1.579 GB, free: 3.004 MB / 1.264 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001138/1.042, allocations: 133.7 kB / 1.579 GB, free: 2.863 MB / 1.264 GB Notification: Performance of pre-optimization done (n=909): time 1.046e-05/1.042, allocations: 4 kB / 1.579 GB, free: 2.859 MB / 1.264 GB Notification: Performance of matching and sorting (n=909): time 0.03125/1.074, allocations: 11.91 MB / 1.59 GB, free: 6.93 MB / 1.28 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002551/1.074, allocations: 356.1 kB / 1.591 GB, free: 6.52 MB / 1.28 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01445/1.088, allocations: 6.322 MB / 1.597 GB, free: 252 kB / 1.28 GB Notification: Performance of collectPreVariables (initialization): time 0.00185/1.09, allocations: 189.7 kB / 1.597 GB, free: 56 kB / 1.28 GB Notification: Performance of collectInitialEqns (initialization): time 1.294/2.385, allocations: 4.122 MB / 1.601 GB, free: 264.5 MB / 1.28 GB Notification: Performance of collectInitialBindings (initialization): time 0.005371/2.39, allocations: 3.297 MB / 1.604 GB, free: 262.9 MB / 1.28 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005344/2.395, allocations: 1.738 MB / 1.606 GB, free: 262.7 MB / 1.28 GB Notification: Performance of setup shared object (initialization): time 6.174e-05/2.395, allocations: 302.1 kB / 1.606 GB, free: 262.4 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008194/2.404, allocations: 3.268 MB / 1.61 GB, free: 261.2 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01106/2.415, allocations: 5.27 MB / 1.615 GB, free: 257.7 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02302/2.438, allocations: 8.589 MB / 1.623 GB, free: 252.4 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000149/2.438, allocations: 13.78 kB / 1.623 GB, free: 252.4 MB / 1.28 GB Notification: Performance of matching and sorting (n=1351) (initialization): time 0.04912/2.487, allocations: 13.8 MB / 1.637 GB, free: 247 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001674/2.487, allocations: 25.72 kB / 1.637 GB, free: 247 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001747/2.487, allocations: 46.19 kB / 1.637 GB, free: 247 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02972/2.517, allocations: 6.095 MB / 1.643 GB, free: 246.3 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009103/2.526, allocations: 1.943 MB / 1.645 GB, free: 246.1 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07588/2.602, allocations: 58.15 MB / 1.701 GB, free: 201.9 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01481/2.617, allocations: 0.8634 MB / 1.702 GB, free: 201.4 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003524/2.62, allocations: 373.6 kB / 1.702 GB, free: 201.3 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0155/2.636, allocations: 4.256 MB / 1.707 GB, free: 199 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.008335/2.644, allocations: 5.032 MB / 1.712 GB, free: 194.6 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0137/2.658, allocations: 8.256 MB / 1.72 GB, free: 185.6 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.616e-05/2.658, allocations: 16 kB / 1.72 GB, free: 185.6 MB / 1.28 GB Notification: Performance of matching and sorting (n=1351) (initialization_lambda0): time 0.03075/2.689, allocations: 12.12 MB / 1.731 GB, free: 173.4 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 4.614e-05/2.689, allocations: 25 kB / 1.732 GB, free: 173.3 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.367e-05/2.689, allocations: 48 kB / 1.732 GB, free: 173.3 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02244/2.711, allocations: 5.023 MB / 1.736 GB, free: 168.2 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008368/2.72, allocations: 2.091 MB / 1.738 GB, free: 166.1 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05209/2.772, allocations: 47.67 MB / 1.785 GB, free: 115.9 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0131/2.785, allocations: 0.6667 MB / 1.786 GB, free: 115.4 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002181/2.787, allocations: 372 kB / 1.786 GB, free: 115 MB / 1.28 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 215 * Number of states: 0 () * Number of discrete variables: 10 (GEN_2_1.PSS.firstWashoutVsi2.integrator.local_reset,GEN_2_1.PSS.secondWashoutVsi1.integrator.local_reset,GEN_2_1.PSS.firstWashoutVsi1.integrator.local_reset,GEN_2_1.AVR.firstOrderLim.I.local_reset,GEN_2_1.TGOV.firstOrderLim.I.local_reset,GEN_1_1.PSS.firstWashoutVsi2.integrator.local_reset,GEN_1_1.PSS.secondWashoutVsi1.integrator.local_reset,GEN_1_1.PSS.firstWashoutVsi1.integrator.local_reset,GEN_1_1.AVR.firstOrderLim.I.local_reset,GEN_1_1.TGOV.firstOrderLim.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1061): * Single equations (assignments): 1041 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 20 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,0,100.0%), (2,0,100.0%), (3,0,66.7%), (3,0,66.7%), (2,0,100.0%), (2,0,100.0%), (3,0,66.7%), (3,0,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 12 systems {(38,0), (216,0), (2,0), (2,0), (2,0), (2,0), (10,0), (2,0), (2,0), (2,0), (2,0), (10,0)} Notification: Performance of prepare postOptimizeDAE: time 0.003093/2.79, allocations: 0.733 MB / 1.787 GB, free: 114.3 MB / 1.28 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003901/2.794, allocations: 0.9511 MB / 1.788 GB, free: 113.3 MB / 1.28 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01849/2.812, allocations: 9.825 MB / 1.797 GB, free: 103.5 MB / 1.28 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001194/2.813, allocations: 43.83 kB / 1.797 GB, free: 103.4 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.72e-05/2.813, allocations: 3.938 kB / 1.797 GB, free: 103.4 MB / 1.28 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006901/2.819, allocations: 1.906 MB / 1.799 GB, free: 101.6 MB / 1.28 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003291/2.823, allocations: 160 kB / 1.799 GB, free: 101.4 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008393/2.831, allocations: 273.7 kB / 1.8 GB, free: 101.1 MB / 1.28 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00155/2.833, allocations: 0.7245 MB / 1.8 GB, free: 100.4 MB / 1.28 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0233/2.856, allocations: 9.36 MB / 1.809 GB, free: 91.24 MB / 1.28 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1064/2.962, allocations: 47.78 MB / 1.856 GB, free: 43.2 MB / 1.28 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.006295/2.969, allocations: 2.82 MB / 1.859 GB, free: 40.37 MB / 1.28 GB Notification: Performance of sorting global known variables: time 0.00895/2.978, allocations: 4.062 MB / 1.863 GB, free: 36.35 MB / 1.28 GB Notification: Performance of Backend: time 7.22e-07/2.978, allocations: 0 / 1.863 GB, free: 36.35 MB / 1.28 GB Notification: Performance of simCode: created initialization part: time 0.06035/3.038, allocations: 23.68 MB / 1.886 GB, free: 12.21 MB / 1.28 GB Notification: Performance of SimCode: time 0.07164/3.11, allocations: 33.18 MB / 1.918 GB, free: 10.88 MB / 1.312 GB [CodegenCpp.tpl:12254:11-12254:11:writable] Error: Template error: Unsupported zero crossing at 0: GEN_1_1.TGOV.firstOrderLim.G.y >= 0.0 and GEN_1_1.TGOV.firstOrderLim.I.y > GEN_1_1.TGOV.firstOrderLim.lim.uMax or GEN_1_1.TGOV.firstOrderLim.G.y <= 0.0 and GEN_1_1.TGOV.firstOrderLim.I.y < GEN_1_1.TGOV.firstOrderLim.lim.uMin. [CodegenCpp.tpl:12254:11-12254:11:writable] Error: Template error: Unsupported zero crossing at 1: GEN_1_1.AVR.firstOrderLim.G.y >= 0.0 and GEN_1_1.AVR.firstOrderLim.I.y > GEN_1_1.AVR.firstOrderLim.lim.uMax or GEN_1_1.AVR.firstOrderLim.G.y <= 0.0 and GEN_1_1.AVR.firstOrderLim.I.y < GEN_1_1.AVR.firstOrderLim.lim.uMin. [CodegenCpp.tpl:12254:11-12254:11:writable] Error: Template error: Unsupported zero crossing at 2: GEN_2_1.TGOV.firstOrderLim.G.y >= 0.0 and GEN_2_1.TGOV.firstOrderLim.I.y > GEN_2_1.TGOV.firstOrderLim.lim.uMax or GEN_2_1.TGOV.firstOrderLim.G.y <= 0.0 and GEN_2_1.TGOV.firstOrderLim.I.y < GEN_2_1.TGOV.firstOrderLim.lim.uMin. [CodegenCpp.tpl:12254:11-12254:11:writable] Error: Template error: Unsupported zero crossing at 3: GEN_2_1.AVR.firstOrderLim.G.y >= 0.0 and GEN_2_1.AVR.firstOrderLim.I.y > GEN_2_1.AVR.firstOrderLim.lim.uMax or GEN_2_1.AVR.firstOrderLim.G.y <= 0.0 and GEN_2_1.AVR.firstOrderLim.I.y < GEN_2_1.AVR.firstOrderLim.lim.uMin. Error: Internal error SimCode DAEmode: The model ScalableTestGrids.Models.Type1.Type1_N_1_M_2 could not be translated