Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_reduced_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_reduced_N_1_M_1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_reduced_N_1_M_1") translateModel(ScalableTestGrids.Models.Type1.Type1_reduced_N_1_M_1,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_reduced_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.001422/0.001422, allocations: 111.4 kB / 18.41 MB, free: 4.641 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.00147/0.00147, allocations: 187.8 kB / 19.34 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.482/1.482, 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.0599/0.0599, allocations: 14.16 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.637/3.637, 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.002218/0.002218, allocations: 86.5 kB / 1.132 GB, free: 22.08 MB / 0.8735 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3846/0.3868, allocations: 172.1 MB / 1.3 GB, free: 6.973 MB / 0.9829 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_reduced_N_1_M_1): time 0.04791/0.4348, allocations: 55.58 MB / 1.354 GB, free: 15.18 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0372/0.4721, allocations: 20.52 MB / 1.374 GB, free: 10.58 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01346/0.4856, allocations: 215 kB / 1.374 GB, free: 10.37 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.01115/0.4968, allocations: 2.894 MB / 1.377 GB, free: 7.457 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.03079/0.5276, allocations: 8.179 MB / 1.385 GB, free: 15.24 MB / 1.077 GB Notification: Performance of NFTyping.typeClassSections: time 0.009747/0.5374, allocations: 3.124 MB / 1.388 GB, free: 12.11 MB / 1.077 GB Notification: Performance of NFFlatten.flatten: time 0.03541/0.5729, allocations: 18.59 MB / 1.406 GB, free: 9.461 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007498/0.5804, allocations: 2.366 MB / 1.409 GB, free: 7.016 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01407/0.5945, allocations: 6.254 MB / 1.415 GB, free: 0.7383 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01372/0.6083, allocations: 6.63 MB / 1.421 GB, free: 10.08 MB / 1.108 GB Notification: Performance of NFPackage.collectConstants: time 0.004923/0.6133, allocations: 0.957 MB / 1.422 GB, free: 9.125 MB / 1.108 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009175/0.6225, allocations: 1.836 MB / 1.424 GB, free: 7.289 MB / 1.108 GB Notification: Performance of NFScalarize.scalarize: time 0.004735/0.6273, allocations: 2.081 MB / 1.426 GB, free: 5.199 MB / 1.108 GB Notification: Performance of NFVerifyModel.verify: time 0.01449/0.6418, allocations: 5.925 MB / 1.432 GB, free: 15.24 MB / 1.124 GB Notification: Performance of NFConvertDAE.convert: time 0.02901/0.6708, allocations: 14.86 MB / 1.446 GB, free: 348 kB / 1.124 GB Notification: Performance of FrontEnd - DAE generated: time 9.358e-06/0.6709, allocations: 0 / 1.446 GB, free: 348 kB / 1.124 GB Notification: Performance of FrontEnd: time 2.264e-06/0.6709, allocations: 0 / 1.446 GB, free: 348 kB / 1.124 GB Notification: Performance of Transformations before backend: time 0.0006005/0.6715, allocations: 11.94 kB / 1.446 GB, free: 336 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: 1921 * Number of variables: 1921 Notification: Performance of Generate backend data structure: time 0.06032/0.7319, allocations: 14.26 MB / 1.46 GB, free: 1.965 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 6.703e-05/0.732, allocations: 8.031 kB / 1.46 GB, free: 1.957 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008652/0.7406, allocations: 1.437 MB / 1.462 GB, free: 0.5078 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.018/0.7586, allocations: 6.326 MB / 1.468 GB, free: 10.11 MB / 1.155 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007688/0.7595, allocations: 0.5849 MB / 1.468 GB, free: 9.523 MB / 1.155 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003078/0.7626, allocations: 0.7771 MB / 1.469 GB, free: 8.746 MB / 1.155 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0238/0.7864, allocations: 7.88 MB / 1.477 GB, free: 0.5469 MB / 1.155 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003914/0.7868, allocations: 15.88 kB / 1.477 GB, free: 0.5312 MB / 1.155 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002423/0.7893, allocations: 316 kB / 1.477 GB, free: 228 kB / 1.155 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002465/0.7896, allocations: 184 kB / 1.477 GB, free: 44 kB / 1.155 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0201/0.8097, allocations: 7.5 MB / 1.485 GB, free: 8.531 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.08991/0.8996, allocations: 48.86 MB / 1.532 GB, free: 3.562 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01846/0.9181, allocations: 9.34 MB / 1.541 GB, free: 10.11 MB / 1.233 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007827/0.926, allocations: 3.549 MB / 1.545 GB, free: 6.539 MB / 1.233 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007926/0.9269, allocations: 94.12 kB / 1.545 GB, free: 6.445 MB / 1.233 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001265/0.927, allocations: 120.7 kB / 1.545 GB, free: 6.316 MB / 1.233 GB Notification: Performance of pre-optimization done (n=787): time 1.085e-05/0.927, allocations: 0 / 1.545 GB, free: 6.316 MB / 1.233 GB Notification: Performance of matching and sorting (n=787): time 0.02713/0.9542, allocations: 10.41 MB / 1.555 GB, free: 11.86 MB / 1.249 GB Notification: Performance of evaluateOutputsOnly (n=787 -> n=337): time 1.736/2.69, allocations: 435.8 MB / 1.981 GB, free: 312 kB / 1.358 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001834/2.69, allocations: 293.9 kB / 1.981 GB, free: 15.96 MB / 1.374 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01479/2.705, allocations: 7.476 MB / 1.988 GB, free: 8.742 MB / 1.374 GB Notification: Performance of collectPreVariables (initialization): time 0.001707/2.707, allocations: 173.7 kB / 1.989 GB, free: 8.566 MB / 1.374 GB Notification: Performance of collectInitialEqns (initialization): time 0.003497/2.711, allocations: 2.798 MB / 1.991 GB, free: 6.453 MB / 1.374 GB Notification: Performance of collectInitialBindings (initialization): time 0.001916/2.712, allocations: 1.203 MB / 1.992 GB, free: 5.43 MB / 1.374 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003238/2.716, allocations: 1.837 MB / 1.994 GB, free: 3.578 MB / 1.374 GB Notification: Performance of setup shared object (initialization): time 0.000104/2.716, allocations: 309.1 kB / 1.995 GB, free: 3.273 MB / 1.374 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005488/2.721, allocations: 2.952 MB / 1.997 GB, free: 312 kB / 1.374 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007652/2.729, allocations: 4.762 MB / 2.002 GB, free: 10.89 MB / 1.39 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01211/2.741, allocations: 6.546 MB / 2.008 GB, free: 3.742 MB / 1.39 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.403e-05/2.741, allocations: 12 kB / 2.008 GB, free: 3.73 MB / 1.39 GB Notification: Performance of matching and sorting (n=1195) (initialization): time 0.03338/2.775, allocations: 12.45 MB / 2.021 GB, free: 7.203 MB / 1.405 GB Notification: Performance of prepare postOptimizeDAE: time 9.114e-05/2.775, allocations: 24 kB / 2.021 GB, free: 7.18 MB / 1.405 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.112e-05/2.775, allocations: 40 kB / 2.021 GB, free: 7.141 MB / 1.405 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02651/2.801, allocations: 5.436 MB / 2.026 GB, free: 1.66 MB / 1.405 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007864/2.809, allocations: 1.74 MB / 2.028 GB, free: 15.92 MB / 1.421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08072/2.89, allocations: 53.97 MB / 2.08 GB, free: 7.168 MB / 1.468 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01593/2.906, allocations: 0.8714 MB / 2.081 GB, free: 6.289 MB / 1.468 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002271/2.908, allocations: 336 kB / 2.082 GB, free: 5.961 MB / 1.468 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01156/2.92, allocations: 3.568 MB / 2.085 GB, free: 2.383 MB / 1.468 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.009273/2.929, allocations: 4.512 MB / 2.089 GB, free: 13.21 MB / 1.483 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01399/2.943, allocations: 6.233 MB / 2.096 GB, free: 6.375 MB / 1.483 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 0.0001025/2.944, allocations: 12 kB / 2.096 GB, free: 6.363 MB / 1.483 GB Notification: Performance of matching and sorting (n=1195) (initialization_lambda0): time 0.04023/2.984, allocations: 10.76 MB / 2.106 GB, free: 11.54 MB / 1.499 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/2.984, allocations: 22.34 kB / 2.106 GB, free: 11.52 MB / 1.499 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000156/2.984, allocations: 44 kB / 2.106 GB, free: 11.48 MB / 1.499 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02225/3.006, allocations: 4.345 MB / 2.11 GB, free: 7.086 MB / 1.499 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00832/3.015, allocations: 1.888 MB / 2.112 GB, free: 5.195 MB / 1.499 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05925/3.074, allocations: 43.44 MB / 2.155 GB, free: 7.215 MB / 1.546 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0121/3.086, allocations: 0.5891 MB / 2.155 GB, free: 6.621 MB / 1.546 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001857/3.088, allocations: 332 kB / 2.156 GB, free: 6.297 MB / 1.546 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.002953/3.091, allocations: 0.616 MB / 2.156 GB, free: 5.672 MB / 1.546 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003417/3.094, allocations: 0.7405 MB / 2.157 GB, free: 4.922 MB / 1.546 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01518/3.11, allocations: 5.445 MB / 2.162 GB, free: 15.43 MB / 1.562 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.174e-05/3.11, allocations: 15.94 kB / 2.162 GB, free: 15.41 MB / 1.562 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/3.11, allocations: 0 / 2.162 GB, free: 15.41 MB / 1.562 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00596/3.116, allocations: 1.354 MB / 2.164 GB, free: 14.03 MB / 1.562 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003748/3.12, allocations: 72 kB / 2.164 GB, free: 13.96 MB / 1.562 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006698/3.126, allocations: 147.9 kB / 2.164 GB, free: 13.82 MB / 1.562 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001139/3.127, allocations: 397.9 kB / 2.164 GB, free: 13.43 MB / 1.562 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01667/3.144, allocations: 5.371 MB / 2.169 GB, free: 8.121 MB / 1.562 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.103/3.247, allocations: 38.66 MB / 2.207 GB, free: 1.148 MB / 1.593 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.304/4.552, allocations: 1.435 MB / 2.209 GB, free: 429.3 MB / 1.593 GB Notification: Performance of sorting global known variables: time 0.01282/4.564, allocations: 4.628 MB / 2.213 GB, free: 429.1 MB / 1.593 GB Notification: Performance of Backend: time 1.573e-06/4.565, allocations: 0 / 2.213 GB, free: 429.1 MB / 1.593 GB Notification: Performance of simCode: created initialization part: time 0.05908/4.624, allocations: 21.9 MB / 2.234 GB, free: 423.3 MB / 1.593 GB Notification: Performance of SimCode: time 0.05136/4.675, allocations: 21.87 MB / 2.256 GB, free: 414.5 MB / 1.593 GB [CodegenCpp.tpl:12250:11-12250:11:writable] Error: Template error: Unsupported zero crossing at 1: 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 2: 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 3: 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 4: 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_reduced_N_1_M_1 could not be translated