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.001183/0.001183, allocations: 111.3 kB / 18.41 MB, free: 4.672 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.0013/0.0013, allocations: 187.9 kB / 19.34 MB, free: 3.75 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.353/1.353, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0625/0.0625, allocations: 14.16 MB / 286.7 MB, free: 13.85 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo): time 3.755/3.755, 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.001858/0.001858, allocations: 91.2 kB / 1.132 GB, free: 22.05 MB / 0.8735 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3953/0.3972, allocations: 172.1 MB / 1.3 GB, free: 6.984 MB / 0.9829 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_N_1_M_1): time 0.05684/0.4541, allocations: 55.56 MB / 1.354 GB, free: 15.2 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.04405/0.4983, allocations: 20.52 MB / 1.374 GB, free: 10.61 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01435/0.5127, allocations: 214.9 kB / 1.374 GB, free: 10.4 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0118/0.5246, allocations: 2.887 MB / 1.377 GB, free: 7.492 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.03072/0.5553, allocations: 7.699 MB / 1.385 GB, free: 15.75 MB / 1.077 GB Notification: Performance of NFTyping.typeClassSections: time 0.01095/0.5663, allocations: 3.128 MB / 1.388 GB, free: 12.62 MB / 1.077 GB Notification: Performance of NFFlatten.flatten: time 0.03328/0.5996, allocations: 18.59 MB / 1.406 GB, free: 9.969 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005908/0.6056, allocations: 2.362 MB / 1.408 GB, free: 7.527 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01489/0.6205, allocations: 6.25 MB / 1.414 GB, free: 1.254 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01426/0.6348, allocations: 6.626 MB / 1.421 GB, free: 10.6 MB / 1.108 GB Notification: Performance of NFPackage.collectConstants: time 0.005262/0.6402, allocations: 0.957 MB / 1.422 GB, free: 9.645 MB / 1.108 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009945/0.6501, allocations: 1.836 MB / 1.423 GB, free: 7.809 MB / 1.108 GB Notification: Performance of NFScalarize.scalarize: time 0.004631/0.6548, allocations: 2.089 MB / 1.425 GB, free: 5.711 MB / 1.108 GB Notification: Performance of NFVerifyModel.verify: time 0.01624/0.6711, allocations: 5.917 MB / 1.431 GB, free: 15.76 MB / 1.124 GB Notification: Performance of NFConvertDAE.convert: time 0.03278/0.7039, allocations: 14.86 MB / 1.446 GB, free: 0.8594 MB / 1.124 GB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.704, allocations: 0 / 1.446 GB, free: 0.8594 MB / 1.124 GB Notification: Performance of FrontEnd: time 2.515e-06/0.704, allocations: 0 / 1.446 GB, free: 0.8594 MB / 1.124 GB Notification: Performance of Transformations before backend: time 0.0006492/0.7047, allocations: 0 / 1.446 GB, free: 0.8594 MB / 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.06546/0.7701, allocations: 14.27 MB / 1.46 GB, free: 2.484 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 5.844e-05/0.7702, allocations: 8.031 kB / 1.46 GB, free: 2.477 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00934/0.7796, allocations: 1.433 MB / 1.461 GB, free: 1.031 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0205/0.8001, allocations: 6.326 MB / 1.467 GB, free: 10.63 MB / 1.155 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008662/0.801, allocations: 0.581 MB / 1.468 GB, free: 10.05 MB / 1.155 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003177/0.8042, allocations: 0.7655 MB / 1.469 GB, free: 9.285 MB / 1.155 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02838/0.8326, allocations: 7.883 MB / 1.476 GB, free: 1.082 MB / 1.155 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005076/0.8332, allocations: 15.81 kB / 1.476 GB, free: 1.066 MB / 1.155 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00272/0.836, allocations: 316 kB / 1.477 GB, free: 0.7578 MB / 1.155 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002199/0.8362, allocations: 184 kB / 1.477 GB, free: 0.5781 MB / 1.155 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02344/0.8596, allocations: 7.496 MB / 1.484 GB, free: 9.07 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.1067/0.9664, allocations: 48.87 MB / 1.532 GB, free: 4.094 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.021/0.9875, allocations: 9.336 MB / 1.541 GB, free: 10.64 MB / 1.233 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008737/0.9964, allocations: 3.545 MB / 1.544 GB, free: 7.078 MB / 1.233 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008424/0.9972, allocations: 102.1 kB / 1.544 GB, free: 6.977 MB / 1.233 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001842/0.9974, allocations: 116.7 kB / 1.545 GB, free: 6.852 MB / 1.233 GB Notification: Performance of pre-optimization done (n=787): time 2.681e-05/0.9975, allocations: 0 / 1.545 GB, free: 6.852 MB / 1.233 GB Notification: Performance of matching and sorting (n=787): time 0.0308/1.028, allocations: 10.41 MB / 1.555 GB, free: 12.39 MB / 1.249 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002359/1.029, allocations: 343.2 kB / 1.555 GB, free: 11.99 MB / 1.249 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01617/1.045, allocations: 5.65 MB / 1.561 GB, free: 6.363 MB / 1.249 GB Notification: Performance of collectPreVariables (initialization): time 0.001983/1.047, allocations: 177.7 kB / 1.561 GB, free: 6.184 MB / 1.249 GB Notification: Performance of collectInitialEqns (initialization): time 0.004905/1.052, allocations: 3.563 MB / 1.564 GB, free: 2.59 MB / 1.249 GB Notification: Performance of collectInitialBindings (initialization): time 0.005469/1.057, allocations: 2.73 MB / 1.567 GB, free: 15.82 MB / 1.264 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007021/1.064, allocations: 1.546 MB / 1.568 GB, free: 14.26 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 0.0001284/1.064, allocations: 301.1 kB / 1.569 GB, free: 13.96 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008008/1.072, allocations: 2.94 MB / 1.572 GB, free: 11.01 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01043/1.083, allocations: 4.744 MB / 1.576 GB, free: 5.605 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01844/1.101, allocations: 7.637 MB / 1.584 GB, free: 13.36 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.665e-05/1.102, allocations: 12 kB / 1.584 GB, free: 13.35 MB / 1.28 GB Notification: Performance of matching and sorting (n=1195) (initialization): time 0.04291/1.145, allocations: 12.42 MB / 1.596 GB, free: 0.8516 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/1.145, allocations: 27.94 kB / 1.596 GB, free: 0.8242 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001115/1.145, allocations: 44 kB / 1.596 GB, free: 0.7812 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401/2.546, allocations: 5.419 MB / 1.601 GB, free: 265.6 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008428/2.554, allocations: 1.746 MB / 1.603 GB, free: 265.6 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08603/2.64, allocations: 53.97 MB / 1.656 GB, free: 230.9 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01145/2.652, allocations: 0.7663 MB / 1.656 GB, free: 230.6 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001962/2.654, allocations: 338.5 kB / 1.657 GB, free: 230.6 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.009638/2.663, allocations: 3.804 MB / 1.66 GB, free: 228.7 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.006131/2.669, allocations: 4.498 MB / 1.665 GB, free: 225.6 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01024/2.68, allocations: 7.318 MB / 1.672 GB, free: 220.8 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.809e-05/2.68, allocations: 15.84 kB / 1.672 GB, free: 220.8 MB / 1.28 GB Notification: Performance of matching and sorting (n=1195) (initialization_lambda0): time 0.02201/2.702, allocations: 10.73 MB / 1.682 GB, free: 216.2 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 5.48e-05/2.702, allocations: 27.28 kB / 1.682 GB, free: 216.2 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-05/2.702, allocations: 47.55 kB / 1.682 GB, free: 216.2 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02261/2.725, allocations: 4.35 MB / 1.687 GB, free: 215.4 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009817/2.734, allocations: 1.888 MB / 1.689 GB, free: 215 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05672/2.791, allocations: 43.43 MB / 1.731 GB, free: 174.4 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0127/2.804, allocations: 0.594 MB / 1.732 GB, free: 173.9 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002135/2.806, allocations: 328 kB / 1.732 GB, free: 173.6 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.004533/2.811, allocations: 0.6818 MB / 1.732 GB, free: 172.9 MB / 1.28 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003818/2.815, allocations: 0.7951 MB / 1.733 GB, free: 172.1 MB / 1.28 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02108/2.836, allocations: 8.614 MB / 1.742 GB, free: 163.4 MB / 1.28 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001975/2.836, allocations: 47.78 kB / 1.742 GB, free: 163.4 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.678e-05/2.836, allocations: 0 / 1.742 GB, free: 163.4 MB / 1.28 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008148/2.844, allocations: 1.645 MB / 1.743 GB, free: 161.8 MB / 1.28 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003754/2.848, allocations: 140 kB / 1.743 GB, free: 161.6 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008527/2.856, allocations: 245.6 kB / 1.744 GB, free: 161.4 MB / 1.28 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002022/2.859, allocations: 0.6222 MB / 1.744 GB, free: 160.8 MB / 1.28 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02422/2.883, allocations: 8.172 MB / 1.752 GB, free: 152.7 MB / 1.28 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1062/2.989, allocations: 42.37 MB / 1.794 GB, free: 110 MB / 1.28 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005255/2.994, allocations: 2.657 MB / 1.796 GB, free: 107.4 MB / 1.28 GB Notification: Performance of sorting global known variables: time 0.007901/3.002, allocations: 3.64 MB / 1.8 GB, free: 103.7 MB / 1.28 GB Notification: Performance of Backend: time 5.01e-07/3.002, allocations: 0 / 1.8 GB, free: 103.7 MB / 1.28 GB Notification: Performance of simCode: created initialization part: time 0.05417/3.056, allocations: 22.05 MB / 1.821 GB, free: 81.24 MB / 1.28 GB Notification: Performance of SimCode: time 0.05631/3.113, allocations: 28.64 MB / 1.849 GB, free: 52.5 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