Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_N_1_M_1.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_1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_N_1_M_1") translateModel(ScalableTestGrids.Models.Type1.Type1_N_1_M_1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_N_1_M_1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 113.4 kB / 18.41 MB, free: 4.691 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.001473/0.001473, allocations: 180.9 kB / 19.34 MB, free: 3.773 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.364/1.364, 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.06568/0.06568, 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.63/3.63, 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.002032/0.002033, allocations: 91.19 kB / 1.132 GB, free: 22.07 MB / 0.8735 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4223, 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_1): time 0.05135/0.4737, allocations: 55.56 MB / 1.354 GB, free: 15.23 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.04226/0.5161, allocations: 20.53 MB / 1.374 GB, free: 10.63 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01347/0.5296, allocations: 211 kB / 1.374 GB, free: 10.42 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.01119/0.5409, allocations: 2.898 MB / 1.377 GB, free: 7.504 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.03255/0.5735, allocations: 8.175 MB / 1.385 GB, free: 15.29 MB / 1.077 GB Notification: Performance of NFTyping.typeClassSections: time 0.01151/0.585, allocations: 3.136 MB / 1.388 GB, free: 12.15 MB / 1.077 GB Notification: Performance of NFFlatten.flatten: time 0.03268/0.6177, allocations: 18.58 MB / 1.406 GB, free: 9.508 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006571/0.6243, allocations: 2.366 MB / 1.409 GB, free: 7.062 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01398/0.6384, allocations: 6.254 MB / 1.415 GB, free: 0.7852 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01429/0.6527, allocations: 6.618 MB / 1.421 GB, free: 10.14 MB / 1.108 GB Notification: Performance of NFPackage.collectConstants: time 0.005023/0.6578, allocations: 0.957 MB / 1.422 GB, free: 9.18 MB / 1.108 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009484/0.6673, allocations: 1.843 MB / 1.424 GB, free: 7.34 MB / 1.108 GB Notification: Performance of NFScalarize.scalarize: time 0.004627/0.672, allocations: 2.081 MB / 1.426 GB, free: 5.25 MB / 1.108 GB Notification: Performance of NFVerifyModel.verify: time 0.01596/0.6879, allocations: 5.921 MB / 1.432 GB, free: 15.3 MB / 1.124 GB Notification: Performance of NFConvertDAE.convert: time 0.03246/0.7204, allocations: 14.86 MB / 1.446 GB, free: 408 kB / 1.124 GB Notification: Performance of FrontEnd - DAE generated: time 1.184e-05/0.7205, allocations: 4 kB / 1.446 GB, free: 404 kB / 1.124 GB Notification: Performance of FrontEnd: time 3.647e-06/0.7205, allocations: 0 / 1.446 GB, free: 404 kB / 1.124 GB Notification: Performance of Transformations before backend: time 0.000729/0.7213, allocations: 0 / 1.446 GB, free: 404 kB / 1.124 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1920 * Number of variables: 1920 Notification: Performance of Generate backend data structure: time 0.06229/0.7836, allocations: 14.27 MB / 1.46 GB, free: 2.02 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/0.7837, allocations: 8.031 kB / 1.46 GB, free: 2.012 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008851/0.7925, allocations: 1.437 MB / 1.462 GB, free: 0.5625 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01778/0.8103, allocations: 6.322 MB / 1.468 GB, free: 10.17 MB / 1.155 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005555/0.8109, allocations: 0.5771 MB / 1.468 GB, free: 9.59 MB / 1.155 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002725/0.8137, allocations: 0.7694 MB / 1.469 GB, free: 8.82 MB / 1.155 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02047/0.8342, allocations: 7.883 MB / 1.477 GB, free: 0.6172 MB / 1.155 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001585/0.8344, allocations: 11.88 kB / 1.477 GB, free: 0.6055 MB / 1.155 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008804/0.8353, allocations: 312 kB / 1.477 GB, free: 308 kB / 1.155 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001288/0.8354, allocations: 187.9 kB / 1.477 GB, free: 120 kB / 1.155 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01768/0.8531, allocations: 7.5 MB / 1.485 GB, free: 8.605 MB / 1.17 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.1003/0.9534, allocations: 48.87 MB / 1.532 GB, free: 3.629 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02009/0.9736, allocations: 9.34 MB / 1.541 GB, free: 10.17 MB / 1.233 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008641/0.9823, allocations: 3.542 MB / 1.545 GB, free: 6.613 MB / 1.233 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009/0.9832, allocations: 110.1 kB / 1.545 GB, free: 6.504 MB / 1.233 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001714/0.9834, allocations: 112.7 kB / 1.545 GB, free: 6.383 MB / 1.233 GB Notification: Performance of pre-optimization done (n=787): time 2.035e-05/0.9834, allocations: 0 / 1.545 GB, free: 6.383 MB / 1.233 GB Notification: Performance of matching and sorting (n=787): time 0.03165/1.015, allocations: 10.42 MB / 1.555 GB, free: 11.92 MB / 1.249 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001949/1.015, allocations: 343.2 kB / 1.556 GB, free: 11.52 MB / 1.249 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01546/1.031, allocations: 5.654 MB / 1.561 GB, free: 5.887 MB / 1.249 GB Notification: Performance of collectPreVariables (initialization): time 0.001847/1.033, allocations: 173.7 kB / 1.561 GB, free: 5.711 MB / 1.249 GB Notification: Performance of collectInitialEqns (initialization): time 0.004967/1.038, allocations: 3.56 MB / 1.565 GB, free: 2.121 MB / 1.249 GB Notification: Performance of collectInitialBindings (initialization): time 0.005915/1.044, allocations: 2.726 MB / 1.567 GB, free: 15.35 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008189/1.052, allocations: 1.546 MB / 1.569 GB, free: 13.79 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 0.0001319/1.052, allocations: 301.1 kB / 1.569 GB, free: 13.5 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006904/1.059, allocations: 2.944 MB / 1.572 GB, free: 10.54 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007445/1.066, allocations: 4.74 MB / 1.577 GB, free: 5.137 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01367/1.08, allocations: 7.641 MB / 1.584 GB, free: 12.89 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.203e-05/1.08, allocations: 12 kB / 1.584 GB, free: 12.88 MB / 1.28 GB Notification: Performance of matching and sorting (n=1195) (initialization): time 0.03608/1.116, allocations: 12.42 MB / 1.596 GB, free: 384 kB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001101/1.116, allocations: 23.94 kB / 1.596 GB, free: 360 kB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001031/1.117, allocations: 44.91 kB / 1.596 GB, free: 316 kB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503/2.619, allocations: 5.421 MB / 1.602 GB, free: 263.4 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007855/2.627, allocations: 1.74 MB / 1.603 GB, free: 263.4 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1007/2.728, allocations: 53.97 MB / 1.656 GB, free: 228.2 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01169/2.74, allocations: 0.7663 MB / 1.657 GB, free: 228 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00215/2.742, allocations: 336 kB / 1.657 GB, free: 227.9 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01212/2.754, allocations: 3.797 MB / 1.661 GB, free: 226.1 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.008835/2.763, allocations: 4.506 MB / 1.665 GB, free: 223 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01363/2.777, allocations: 7.322 MB / 1.672 GB, free: 218.2 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 0.000113/2.777, allocations: 15.08 kB / 1.672 GB, free: 218.2 MB / 1.28 GB Notification: Performance of matching and sorting (n=1195) (initialization_lambda0): time 0.03171/2.808, allocations: 10.73 MB / 1.683 GB, free: 213.6 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 9.295e-05/2.809, allocations: 27.61 kB / 1.683 GB, free: 213.6 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.828e-05/2.809, allocations: 40.53 kB / 1.683 GB, free: 213.6 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02109/2.83, allocations: 4.346 MB / 1.687 GB, free: 212.1 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008533/2.838, allocations: 1.884 MB / 1.689 GB, free: 211.7 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05192/2.89, allocations: 43.44 MB / 1.731 GB, free: 170.5 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01187/2.902, allocations: 0.5914 MB / 1.732 GB, free: 170.1 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002018/2.904, allocations: 332 kB / 1.732 GB, free: 169.7 MB / 1.28 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 193 * 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 (949): * Single equations (assignments): 929 * 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), (172,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.004248/2.909, allocations: 0.6716 MB / 1.733 GB, free: 169.1 MB / 1.28 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003988/2.913, allocations: 0.799 MB / 1.734 GB, free: 168.3 MB / 1.28 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02209/2.935, allocations: 8.624 MB / 1.742 GB, free: 159.6 MB / 1.28 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001506/2.935, allocations: 35.86 kB / 1.742 GB, free: 159.6 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.475e-05/2.935, allocations: 3.984 kB / 1.742 GB, free: 159.6 MB / 1.28 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006673/2.942, allocations: 1.643 MB / 1.744 GB, free: 157.9 MB / 1.28 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003487/2.945, allocations: 136 kB / 1.744 GB, free: 157.8 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008021/2.953, allocations: 251.5 kB / 1.744 GB, free: 157.6 MB / 1.28 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001642/2.955, allocations: 0.6183 MB / 1.745 GB, free: 156.9 MB / 1.28 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02296/2.978, allocations: 8.179 MB / 1.753 GB, free: 148.9 MB / 1.28 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1086/3.087, allocations: 42.37 MB / 1.794 GB, free: 106.2 MB / 1.28 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005663/3.092, allocations: 2.657 MB / 1.797 GB, free: 103.5 MB / 1.28 GB Notification: Performance of sorting global known variables: time 0.009537/3.102, allocations: 3.64 MB / 1.8 GB, free: 99.89 MB / 1.28 GB Notification: Performance of Backend: time 1.963e-06/3.102, allocations: 0 / 1.8 GB, free: 99.89 MB / 1.28 GB Notification: Performance of simCode: created initialization part: time 0.05668/3.159, allocations: 22.05 MB / 1.822 GB, free: 77.39 MB / 1.28 GB Notification: Performance of SimCode: time 0.06005/3.219, allocations: 28.65 MB / 1.85 GB, free: 48.65 MB / 1.28 GB [CodegenCpp.tpl:12250:11-12250: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:12250:11-12250: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:12250:11-12250: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:12250:11-12250: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_1 could not be translated