Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestGrids_noopt_ScalableTestGrids.GridModelBuilders.Type1Sample_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.GridModelBuilders.Type1Sample_N_1_M_2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2") translateModel(ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.GridModelBuilders.Type1Sample_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.001423/0.001423, allocations: 111 kB / 18.41 MB, free: 4.664 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.001423/0.001423, allocations: 188.9 kB / 19.35 MB, free: 3.734 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.487/1.487, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.08263/0.08263, allocations: 14.17 MB / 286.7 MB, free: 13.86 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo): time 3.516/3.516, allocations: 461.2 MB / 0.7801 GB, free: 107.2 MB / 0.6545 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.002585/0.002585, allocations: 92.12 kB / 1.132 GB, free: 22 MB / 0.8735 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3904/0.393, allocations: 172.1 MB / 1.3 GB, free: 6.977 MB / 0.9829 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2): time 0.06406/0.457, allocations: 63.97 MB / 1.362 GB, free: 6.758 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.04909/0.5061, allocations: 23.3 MB / 1.385 GB, free: 15.38 MB / 1.077 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01572/0.5218, allocations: 234.9 kB / 1.385 GB, free: 15.15 MB / 1.077 GB Notification: Performance of NFTyping.typeComponents: time 0.01459/0.5364, allocations: 3.321 MB / 1.388 GB, free: 11.8 MB / 1.077 GB Notification: Performance of NFTyping.typeBindings: time 0.03778/0.5742, allocations: 9.417 MB / 1.398 GB, free: 2.363 MB / 1.077 GB Notification: Performance of NFTyping.typeClassSections: time 0.01261/0.5868, allocations: 3.268 MB / 1.401 GB, free: 15.09 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.03969/0.6265, allocations: 21.23 MB / 1.422 GB, free: 9.785 MB / 1.108 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005133/0.6316, allocations: 1.48 MB / 1.423 GB, free: 8.227 MB / 1.108 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01797/0.6496, allocations: 7.142 MB / 1.43 GB, free: 1.059 MB / 1.108 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01755/0.6672, allocations: 7.579 MB / 1.437 GB, free: 9.449 MB / 1.124 GB Notification: Performance of NFPackage.collectConstants: time 0.005612/0.6728, allocations: 1.047 MB / 1.438 GB, free: 8.402 MB / 1.124 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01135/0.6841, allocations: 2.043 MB / 1.44 GB, free: 6.359 MB / 1.124 GB Notification: Performance of NFScalarize.scalarize: time 0.006355/0.6905, allocations: 2.311 MB / 1.443 GB, free: 4.039 MB / 1.124 GB Notification: Performance of NFVerifyModel.verify: time 0.02231/0.7128, allocations: 6.718 MB / 1.449 GB, free: 13.29 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.04138/0.7542, allocations: 16.76 MB / 1.466 GB, free: 12.47 MB / 1.155 GB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.7542, allocations: 0 / 1.466 GB, free: 12.47 MB / 1.155 GB Notification: Performance of FrontEnd: time 2.485e-06/0.7542, allocations: 0 / 1.466 GB, free: 12.47 MB / 1.155 GB Notification: Performance of Transformations before backend: time 0.0007095/0.7549, allocations: 0 / 1.466 GB, free: 12.47 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.07268/0.8276, allocations: 16.55 MB / 1.482 GB, free: 11.79 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 6.806e-05/0.8276, allocations: 12.03 kB / 1.482 GB, free: 11.78 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01152/0.8391, allocations: 1.704 MB / 1.483 GB, free: 10.07 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02528/0.8644, allocations: 7.147 MB / 1.49 GB, free: 2.832 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001141/0.8656, allocations: 0.6574 MB / 1.491 GB, free: 2.172 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003911/0.8695, allocations: 0.8671 MB / 1.492 GB, free: 1.305 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03165/0.9011, allocations: 8.977 MB / 1.501 GB, free: 7.926 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005225/0.9016, allocations: 23.81 kB / 1.501 GB, free: 7.902 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002914/0.9046, allocations: 356 kB / 1.501 GB, free: 7.555 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002933/0.9049, allocations: 212 kB / 1.501 GB, free: 7.348 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02713/0.932, allocations: 8.515 MB / 1.51 GB, free: 14.81 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.1168/1.049, allocations: 57.15 MB / 1.565 GB, free: 0.75 MB / 1.249 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02096/1.07, allocations: 10.01 MB / 1.575 GB, free: 6.703 MB / 1.264 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009569/1.079, allocations: 3.578 MB / 1.579 GB, free: 3.109 MB / 1.264 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008647/1.08, allocations: 107.1 kB / 1.579 GB, free: 3.004 MB / 1.264 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001357/1.08, allocations: 125.7 kB / 1.579 GB, free: 2.871 MB / 1.264 GB Notification: Performance of pre-optimization done (n=909): time 1.132e-05/1.08, allocations: 0 / 1.579 GB, free: 2.871 MB / 1.264 GB Notification: Performance of matching and sorting (n=909): time 0.03262/1.113, allocations: 11.92 MB / 1.59 GB, free: 6.938 MB / 1.28 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002528/1.113, allocations: 352.2 kB / 1.591 GB, free: 6.531 MB / 1.28 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01487/1.128, allocations: 6.322 MB / 1.597 GB, free: 264 kB / 1.28 GB Notification: Performance of collectPreVariables (initialization): time 0.001948/1.13, allocations: 193.7 kB / 1.597 GB, free: 64 kB / 1.28 GB Notification: Performance of collectInitialEqns (initialization): time 1.455/2.585, allocations: 4.113 MB / 1.601 GB, free: 264.5 MB / 1.28 GB Notification: Performance of collectInitialBindings (initialization): time 0.005083/2.59, allocations: 3.298 MB / 1.604 GB, free: 262.8 MB / 1.28 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004647/2.594, allocations: 1.746 MB / 1.606 GB, free: 262.7 MB / 1.28 GB Notification: Performance of setup shared object (initialization): time 6.183e-05/2.594, allocations: 305 kB / 1.606 GB, free: 262.4 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007941/2.602, allocations: 3.27 MB / 1.61 GB, free: 261.2 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01113/2.613, allocations: 5.267 MB / 1.615 GB, free: 257.7 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02482/2.638, allocations: 8.588 MB / 1.623 GB, free: 252.3 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001954/2.639, allocations: 13.91 kB / 1.623 GB, free: 252.3 MB / 1.28 GB Notification: Performance of matching and sorting (n=1351) (initialization): time 0.05146/2.69, allocations: 13.8 MB / 1.637 GB, free: 246.9 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002099/2.69, allocations: 26.81 kB / 1.637 GB, free: 246.9 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001899/2.69, allocations: 47.44 kB / 1.637 GB, free: 246.9 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03025/2.721, allocations: 6.097 MB / 1.643 GB, free: 246.2 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009057/2.73, allocations: 1.945 MB / 1.645 GB, free: 246 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08867/2.818, allocations: 58.14 MB / 1.701 GB, free: 201.9 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01461/2.833, allocations: 0.8684 MB / 1.702 GB, free: 201.5 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002639/2.836, allocations: 374.1 kB / 1.702 GB, free: 201.4 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01441/2.85, allocations: 4.259 MB / 1.707 GB, free: 199 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.01015/2.86, allocations: 5.026 MB / 1.712 GB, free: 194.6 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01748/2.878, allocations: 8.26 MB / 1.72 GB, free: 185.7 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.009e-05/2.878, allocations: 16 kB / 1.72 GB, free: 185.7 MB / 1.28 GB Notification: Performance of matching and sorting (n=1351) (initialization_lambda0): time 0.04404/2.922, allocations: 12.12 MB / 1.731 GB, free: 173.4 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001701/2.922, allocations: 27.98 kB / 1.732 GB, free: 173.4 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001285/2.922, allocations: 52.12 kB / 1.732 GB, free: 173.3 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03105/2.953, allocations: 5.015 MB / 1.736 GB, free: 168.3 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01233/2.965, allocations: 2.091 MB / 1.738 GB, free: 166.2 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05587/3.021, allocations: 47.66 MB / 1.785 GB, free: 116 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01231/3.034, allocations: 0.6683 MB / 1.786 GB, free: 115.4 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001979/3.036, allocations: 372 kB / 1.786 GB, free: 115.1 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.002944/3.039, allocations: 0.7427 MB / 1.787 GB, free: 114.4 MB / 1.28 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003492/3.042, allocations: 0.9433 MB / 1.788 GB, free: 113.4 MB / 1.28 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01799/3.06, allocations: 9.829 MB / 1.797 GB, free: 103.5 MB / 1.28 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000253/3.06, allocations: 39.84 kB / 1.797 GB, free: 103.5 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/3.06, allocations: 0 / 1.797 GB, free: 103.5 MB / 1.28 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007196/3.068, allocations: 1.912 MB / 1.799 GB, free: 101.6 MB / 1.28 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003228/3.071, allocations: 152 kB / 1.799 GB, free: 101.5 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009497/3.08, allocations: 274.8 kB / 1.8 GB, free: 101.2 MB / 1.28 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002189/3.082, allocations: 0.7245 MB / 1.8 GB, free: 100.5 MB / 1.28 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02685/3.109, allocations: 9.373 MB / 1.809 GB, free: 91.29 MB / 1.28 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.129/3.238, allocations: 47.76 MB / 1.856 GB, free: 43.27 MB / 1.28 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.006469/3.245, allocations: 2.824 MB / 1.859 GB, free: 40.43 MB / 1.28 GB Notification: Performance of sorting global known variables: time 0.009267/3.254, allocations: 4.074 MB / 1.863 GB, free: 36.4 MB / 1.28 GB Notification: Performance of Backend: time 8.71e-07/3.254, allocations: 0 / 1.863 GB, free: 36.4 MB / 1.28 GB Notification: Performance of simCode: created initialization part: time 0.06313/3.317, allocations: 23.66 MB / 1.886 GB, free: 12.28 MB / 1.28 GB Notification: Performance of SimCode: time 0.07361/3.391, allocations: 33.16 MB / 1.918 GB, free: 10.96 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.GridModelBuilders.Type1Sample_N_1_M_2 could not be translated