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.001473/0.001473, allocations: 110.2 kB / 18.41 MB, free: 4.77 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.001333/0.001333, allocations: 189 kB / 19.34 MB, free: 3.844 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.536/1.536, allocations: 205.1 MB / 225.2 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06572/0.06572, allocations: 14.18 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.701/3.701, 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.002686/0.002686, allocations: 89.09 kB / 1.132 GB, free: 22.07 MB / 0.8735 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4327/0.4354, allocations: 172.1 MB / 1.3 GB, free: 6.965 MB / 0.9829 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_reduced_N_1_M_1): time 0.05741/0.4928, allocations: 55.69 MB / 1.354 GB, free: 15.05 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.04382/0.5366, allocations: 20.56 MB / 1.374 GB, free: 10.43 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01556/0.5522, allocations: 214.9 kB / 1.374 GB, free: 10.21 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.01468/0.5669, allocations: 2.891 MB / 1.377 GB, free: 7.305 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.03614/0.603, allocations: 8.184 MB / 1.385 GB, free: 15.08 MB / 1.077 GB Notification: Performance of NFTyping.typeClassSections: time 0.01164/0.6147, allocations: 3.136 MB / 1.388 GB, free: 11.94 MB / 1.077 GB Notification: Performance of NFFlatten.flatten: time 0.04107/0.6557, allocations: 18.56 MB / 1.406 GB, free: 9.316 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005326/0.6611, allocations: 1.394 MB / 1.408 GB, free: 7.844 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01432/0.6754, allocations: 6.258 MB / 1.414 GB, free: 1.562 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.015/0.6904, allocations: 6.626 MB / 1.42 GB, free: 10.91 MB / 1.108 GB Notification: Performance of NFPackage.collectConstants: time 0.005031/0.6954, allocations: 0.957 MB / 1.421 GB, free: 9.949 MB / 1.108 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009549/0.705, allocations: 1.847 MB / 1.423 GB, free: 8.105 MB / 1.108 GB Notification: Performance of NFScalarize.scalarize: time 0.004906/0.7099, allocations: 2.081 MB / 1.425 GB, free: 6.016 MB / 1.108 GB Notification: Performance of NFVerifyModel.verify: time 0.01583/0.7257, allocations: 5.921 MB / 1.431 GB, free: 68 kB / 1.108 GB Notification: Performance of NFConvertDAE.convert: time 0.03199/0.7577, allocations: 14.92 MB / 1.445 GB, free: 1.094 MB / 1.124 GB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.7577, allocations: 0 / 1.445 GB, free: 1.094 MB / 1.124 GB Notification: Performance of FrontEnd: time 5.711e-06/0.7577, allocations: 7.984 kB / 1.445 GB, free: 1.086 MB / 1.124 GB Notification: Performance of Transformations before backend: time 0.0005914/0.7583, allocations: 0 / 1.445 GB, free: 1.086 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: 1921 * Number of variables: 1921 Notification: Performance of Generate backend data structure: time 0.05965/0.8179, allocations: 14.54 MB / 1.46 GB, free: 2.43 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 6.334e-05/0.818, allocations: 12.03 kB / 1.46 GB, free: 2.418 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009137/0.8271, allocations: 1.486 MB / 1.461 GB, free: 0.9258 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01858/0.8457, allocations: 6.388 MB / 1.467 GB, free: 10.47 MB / 1.155 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006338/0.8464, allocations: 0.5771 MB / 1.468 GB, free: 9.895 MB / 1.155 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00244/0.8488, allocations: 0.7694 MB / 1.469 GB, free: 9.125 MB / 1.155 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02018/0.869, allocations: 7.891 MB / 1.476 GB, free: 0.9141 MB / 1.155 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001771/0.8691, allocations: 19.81 kB / 1.476 GB, free: 0.8945 MB / 1.155 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001147/0.8703, allocations: 312 kB / 1.477 GB, free: 0.5898 MB / 1.155 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001869/0.8705, allocations: 188 kB / 1.477 GB, free: 416 kB / 1.155 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02143/0.8919, allocations: 7.489 MB / 1.484 GB, free: 8.906 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.09778/0.9897, allocations: 48.95 MB / 1.532 GB, free: 3.863 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02192/1.012, allocations: 8.774 MB / 1.541 GB, free: 10.98 MB / 1.233 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01031/1.022, allocations: 3.163 MB / 1.544 GB, free: 7.793 MB / 1.233 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007971/1.023, allocations: 106.1 kB / 1.544 GB, free: 7.688 MB / 1.233 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001308/1.023, allocations: 112.7 kB / 1.544 GB, free: 7.566 MB / 1.233 GB Notification: Performance of pre-optimization done (n=787): time 1.174e-05/1.023, allocations: 0 / 1.544 GB, free: 7.566 MB / 1.233 GB Notification: Performance of matching and sorting (n=787): time 0.02916/1.052, allocations: 10.35 MB / 1.554 GB, free: 13.18 MB / 1.249 GB Notification: Performance of evaluateOutputsOnly (n=787 -> n=337): time 1.748/2.8, allocations: 435.7 MB / 1.979 GB, free: 1.074 MB / 1.358 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002264/2.8, allocations: 295.7 kB / 1.98 GB, free: 0.7227 MB / 1.358 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01728/2.818, allocations: 7.483 MB / 1.987 GB, free: 9.516 MB / 1.374 GB Notification: Performance of collectPreVariables (initialization): time 0.001733/2.819, allocations: 176 kB / 1.987 GB, free: 9.34 MB / 1.374 GB Notification: Performance of collectInitialEqns (initialization): time 0.004416/2.824, allocations: 2.843 MB / 1.99 GB, free: 7.23 MB / 1.374 GB Notification: Performance of collectInitialBindings (initialization): time 0.002523/2.826, allocations: 1.263 MB / 1.991 GB, free: 6.152 MB / 1.374 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004809/2.831, allocations: 1.845 MB / 1.993 GB, free: 4.293 MB / 1.374 GB Notification: Performance of setup shared object (initialization): time 0.0001522/2.831, allocations: 313 kB / 1.993 GB, free: 3.984 MB / 1.374 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006554/2.838, allocations: 2.948 MB / 1.996 GB, free: 1.02 MB / 1.374 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008431/2.846, allocations: 4.755 MB / 2.001 GB, free: 11.61 MB / 1.39 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01336/2.859, allocations: 6.55 MB / 2.007 GB, free: 4.461 MB / 1.39 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.782e-05/2.86, allocations: 12 kB / 2.007 GB, free: 4.449 MB / 1.39 GB Notification: Performance of matching and sorting (n=1195) (initialization): time 0.03665/2.896, allocations: 12.37 MB / 2.019 GB, free: 8.004 MB / 1.405 GB Notification: Performance of prepare postOptimizeDAE: time 6.143e-05/2.896, allocations: 24 kB / 2.019 GB, free: 7.98 MB / 1.405 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.752e-05/2.896, allocations: 47.98 kB / 2.019 GB, free: 7.934 MB / 1.405 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02713/2.923, allocations: 5.428 MB / 2.025 GB, free: 2.461 MB / 1.405 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008018/2.931, allocations: 1.74 MB / 2.026 GB, free: 0.7188 MB / 1.405 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0854/3.017, allocations: 54.07 MB / 2.079 GB, free: 7.922 MB / 1.468 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01343/3.03, allocations: 0.8921 MB / 2.08 GB, free: 7.219 MB / 1.468 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002048/3.032, allocations: 336 kB / 2.08 GB, free: 6.891 MB / 1.468 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01068/3.043, allocations: 3.571 MB / 2.084 GB, free: 3.312 MB / 1.468 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.008905/3.052, allocations: 4.514 MB / 2.088 GB, free: 14.14 MB / 1.483 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01264/3.065, allocations: 6.226 MB / 2.094 GB, free: 7.309 MB / 1.483 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.27e-05/3.065, allocations: 12 kB / 2.094 GB, free: 7.297 MB / 1.483 GB Notification: Performance of matching and sorting (n=1195) (initialization_lambda0): time 0.03008/3.095, allocations: 10.7 MB / 2.105 GB, free: 12.54 MB / 1.499 GB Notification: Performance of prepare postOptimizeDAE: time 5.469e-05/3.095, allocations: 24 kB / 2.105 GB, free: 12.52 MB / 1.499 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.894e-05/3.095, allocations: 48 kB / 2.105 GB, free: 12.47 MB / 1.499 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02202/3.117, allocations: 4.35 MB / 2.109 GB, free: 8.07 MB / 1.499 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008971/3.126, allocations: 1.888 MB / 2.111 GB, free: 6.18 MB / 1.499 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06162/3.187, allocations: 43.51 MB / 2.153 GB, free: 8.145 MB / 1.546 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01305/3.201, allocations: 0.6096 MB / 2.154 GB, free: 7.641 MB / 1.546 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00184/3.202, allocations: 330.3 kB / 2.154 GB, free: 7.32 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.001945/3.204, allocations: 0.6177 MB / 2.155 GB, free: 6.719 MB / 1.546 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003274/3.208, allocations: 0.7761 MB / 2.156 GB, free: 5.938 MB / 1.546 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01297/3.221, allocations: 5.335 MB / 2.161 GB, free: 0.5547 MB / 1.546 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.915e-05/3.221, allocations: 15.94 kB / 2.161 GB, free: 0.5391 MB / 1.546 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/3.221, allocations: 0 / 2.161 GB, free: 0.5391 MB / 1.546 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006013/3.227, allocations: 1.391 MB / 2.162 GB, free: 15.15 MB / 1.562 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003401/3.23, allocations: 68 kB / 2.162 GB, free: 15.08 MB / 1.562 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006775/3.237, allocations: 149.9 kB / 2.163 GB, free: 14.94 MB / 1.562 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00135/3.238, allocations: 401.9 kB / 2.163 GB, free: 14.54 MB / 1.562 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01655/3.255, allocations: 5.38 MB / 2.168 GB, free: 9.227 MB / 1.562 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1068/3.361, allocations: 38.88 MB / 2.206 GB, free: 2.055 MB / 1.593 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00331/3.365, allocations: 1.372 MB / 2.207 GB, free: 0.6719 MB / 1.593 GB Notification: Performance of sorting global known variables: time 1.391/4.756, allocations: 4.625 MB / 2.212 GB, free: 428.7 MB / 1.593 GB Notification: Performance of Backend: time 5.21e-07/4.756, allocations: 0 / 2.212 GB, free: 428.7 MB / 1.593 GB Notification: Performance of simCode: created initialization part: time 0.0565/4.812, allocations: 20.98 MB / 2.232 GB, free: 422.7 MB / 1.593 GB Notification: Performance of SimCode: time 0.04114/4.854, allocations: 22.22 MB / 2.254 GB, free: 414.3 MB / 1.593 GB [CodegenCpp.tpl:12254:11-12254: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:12254:11-12254: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:12254:11-12254: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:12254:11-12254: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