Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_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.Models.Type1.Type1_N_1_M_2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_N_1_M_2") translateModel(ScalableTestGrids.Models.Type1.Type1_N_1_M_2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.Models.Type1.Type1_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.001503/0.001503, allocations: 103.1 kB / 18.26 MB, free: 4.762 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.001677/0.001677, allocations: 192.4 kB / 19.19 MB, free: 3.836 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.435/1.435, allocations: 205.1 MB / 225.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0635/0.0635, allocations: 14.17 MB / 286.6 MB, free: 13.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo): time 3.554/3.554, allocations: 461.2 MB / 0.7799 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.002283/0.002283, allocations: 87.88 kB / 0.9622 GB, free: 2.75 MB / 0.7327 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.431/1.434, allocations: 172.1 MB / 1.13 GB, free: 28.5 MB / 0.8735 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_N_1_M_2): time 0.05904/1.493, allocations: 63.81 MB / 1.193 GB, free: 12.21 MB / 0.9048 GB Notification: Performance of NFInst.instExpressions: time 0.0511/1.544, allocations: 23.29 MB / 1.215 GB, free: 8.574 MB / 0.9204 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01717/1.561, allocations: 241.1 kB / 1.216 GB, free: 8.504 MB / 0.9204 GB Notification: Performance of NFTyping.typeComponents: time 0.01357/1.575, allocations: 3.314 MB / 1.219 GB, free: 5.809 MB / 0.9204 GB Notification: Performance of NFTyping.typeBindings: time 0.03509/1.61, allocations: 8.857 MB / 1.227 GB, free: 14.22 MB / 0.936 GB Notification: Performance of NFTyping.typeClassSections: time 0.01143/1.622, allocations: 3.258 MB / 1.231 GB, free: 11.45 MB / 0.936 GB Notification: Performance of NFFlatten.flatten: time 0.03755/1.659, allocations: 21.16 MB / 1.251 GB, free: 14.48 MB / 0.9517 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008664/1.668, allocations: 2.513 MB / 1.254 GB, free: 13.15 MB / 0.9517 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01907/1.687, allocations: 6.964 MB / 1.261 GB, free: 8.902 MB / 0.9517 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01825/1.705, allocations: 7.56 MB / 1.268 GB, free: 3.68 MB / 0.9517 GB Notification: Performance of NFPackage.collectConstants: time 0.006227/1.712, allocations: 1.048 MB / 1.269 GB, free: 3.68 MB / 0.9517 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01353/1.725, allocations: 2.049 MB / 1.271 GB, free: 3.473 MB / 0.9517 GB Notification: Performance of NFScalarize.scalarize: time 0.005807/1.731, allocations: 2.315 MB / 1.273 GB, free: 1.414 MB / 0.9517 GB Notification: Performance of NFVerifyModel.verify: time 0.01907/1.75, allocations: 6.719 MB / 1.28 GB, free: 12.57 MB / 0.9673 GB Notification: Performance of NFConvertDAE.convert: time 0.03586/1.786, allocations: 15.94 MB / 1.295 GB, free: 15.5 MB / 0.9829 GB Notification: Performance of FrontEnd - DAE generated: time 9.408e-06/1.786, allocations: 0 / 1.295 GB, free: 15.5 MB / 0.9829 GB Notification: Performance of FrontEnd: time 1.493e-06/1.786, allocations: 0 / 1.295 GB, free: 15.5 MB / 0.9829 GB Notification: Performance of Transformations before backend: time 0.000721/1.787, allocations: 0 / 1.295 GB, free: 15.5 MB / 0.9829 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.06966/1.856, allocations: 16.38 MB / 1.311 GB, free: 15 MB / 0.9985 GB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/1.856, allocations: 8.031 kB / 1.311 GB, free: 14.99 MB / 0.9985 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01019/1.867, allocations: 1.65 MB / 1.313 GB, free: 13.33 MB / 0.9985 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01923/1.886, allocations: 6.9 MB / 1.32 GB, free: 6.336 MB / 0.9985 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006912/1.887, allocations: 0.6613 MB / 1.32 GB, free: 5.672 MB / 0.9985 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002515/1.889, allocations: 0.867 MB / 1.321 GB, free: 4.805 MB / 0.9985 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02141/1.911, allocations: 8.977 MB / 1.33 GB, free: 11.42 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001738/1.911, allocations: 19.81 kB / 1.33 GB, free: 11.4 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008706/1.912, allocations: 356 kB / 1.33 GB, free: 11.05 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001736/1.912, allocations: 212 kB / 1.331 GB, free: 10.85 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01811/1.93, allocations: 8.515 MB / 1.339 GB, free: 2.312 MB / 1.014 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.1103/2.04, allocations: 57.39 MB / 1.395 GB, free: 4.004 MB / 1.077 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02272/2.063, allocations: 10.65 MB / 1.405 GB, free: 9.316 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00888/2.072, allocations: 4.012 MB / 1.409 GB, free: 5.293 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008319/2.073, allocations: 115.1 kB / 1.409 GB, free: 5.18 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001422/2.073, allocations: 133.6 kB / 1.409 GB, free: 5.039 MB / 1.092 GB Notification: Performance of pre-optimization done (n=909): time 1.797e-05/2.073, allocations: 3.938 kB / 1.409 GB, free: 5.035 MB / 1.092 GB Notification: Performance of matching and sorting (n=909): time 0.03464/2.108, allocations: 12 MB / 1.421 GB, free: 9.008 MB / 1.108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002211/2.108, allocations: 360.1 kB / 1.422 GB, free: 8.594 MB / 1.108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01479/2.123, allocations: 6.309 MB / 1.428 GB, free: 2.332 MB / 1.108 GB Notification: Performance of collectPreVariables (initialization): time 0.001895/2.125, allocations: 197.7 kB / 1.428 GB, free: 2.133 MB / 1.108 GB Notification: Performance of collectInitialEqns (initialization): time 0.004441/2.129, allocations: 4.035 MB / 1.432 GB, free: 14.06 MB / 1.124 GB Notification: Performance of collectInitialBindings (initialization): time 0.005462/2.135, allocations: 3.138 MB / 1.435 GB, free: 10.88 MB / 1.124 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006147/2.141, allocations: 1.737 MB / 1.437 GB, free: 9.133 MB / 1.124 GB Notification: Performance of setup shared object (initialization): time 9.372e-05/2.141, allocations: 301.1 kB / 1.437 GB, free: 8.836 MB / 1.124 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007013/2.148, allocations: 3.28 MB / 1.44 GB, free: 5.547 MB / 1.124 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01003/2.158, allocations: 5.266 MB / 1.445 GB, free: 15.56 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01898/2.177, allocations: 8.584 MB / 1.454 GB, free: 6.254 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.761e-05/2.177, allocations: 20 kB / 1.454 GB, free: 6.234 MB / 1.139 GB Notification: Performance of matching and sorting (n=1351) (initialization): time 0.0518/2.229, allocations: 13.89 MB / 1.467 GB, free: 8.199 MB / 1.155 GB Notification: Performance of prepare postOptimizeDAE: time 0.00015/2.229, allocations: 28 kB / 1.467 GB, free: 8.172 MB / 1.155 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000156/2.229, allocations: 48 kB / 1.467 GB, free: 8.125 MB / 1.155 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06164/2.291, allocations: 6.156 MB / 1.473 GB, free: 1.898 MB / 1.155 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0169/2.308, allocations: 1.943 MB / 1.475 GB, free: 15.95 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1391/2.447, allocations: 58.18 MB / 1.532 GB, free: 2.902 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01327/2.461, allocations: 0.8481 MB / 1.533 GB, free: 2.047 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002193/2.463, allocations: 383.9 kB / 1.533 GB, free: 1.672 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01302/2.476, allocations: 4.258 MB / 1.537 GB, free: 13.41 MB / 1.233 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.01156/2.487, allocations: 5.024 MB / 1.542 GB, free: 7.652 MB / 1.233 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02056/2.508, allocations: 8.26 MB / 1.55 GB, free: 14.67 MB / 1.249 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.85e-05/2.508, allocations: 20 kB / 1.55 GB, free: 14.65 MB / 1.249 GB Notification: Performance of matching and sorting (n=1351) (initialization_lambda0): time 0.03903/2.547, allocations: 12.19 MB / 1.562 GB, free: 2.316 MB / 1.249 GB Notification: Performance of prepare postOptimizeDAE: time 6.898e-05/2.547, allocations: 27.94 kB / 1.562 GB, free: 2.289 MB / 1.249 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.967e-05/2.547, allocations: 48 kB / 1.562 GB, free: 2.242 MB / 1.249 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02652/2.574, allocations: 5.073 MB / 1.567 GB, free: 13.12 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00986/2.584, allocations: 2.087 MB / 1.569 GB, free: 11.03 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23/3.814, allocations: 47.71 MB / 1.616 GB, free: 371.8 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01245/3.826, allocations: 0.6572 MB / 1.617 GB, free: 371.6 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001887/3.828, allocations: 371.5 kB / 1.617 GB, free: 371.6 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.002135/3.83, allocations: 0.7377 MB / 1.618 GB, free: 371.1 MB / 1.28 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003647/3.834, allocations: 0.9012 MB / 1.618 GB, free: 371.1 MB / 1.28 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02195/3.856, allocations: 9.955 MB / 1.628 GB, free: 367.1 MB / 1.28 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002233/3.856, allocations: 46.08 kB / 1.628 GB, free: 367.1 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.719e-05/3.856, allocations: 0 / 1.628 GB, free: 367.1 MB / 1.28 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007585/3.864, allocations: 1.866 MB / 1.63 GB, free: 365.9 MB / 1.28 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003979/3.868, allocations: 162.4 kB / 1.63 GB, free: 365.8 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01001/3.878, allocations: 269.7 kB / 1.63 GB, free: 365.7 MB / 1.28 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002229/3.88, allocations: 0.7214 MB / 1.631 GB, free: 365.6 MB / 1.28 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.03081/3.911, allocations: 9.388 MB / 1.64 GB, free: 362.4 MB / 1.28 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1368/4.048, allocations: 47.57 MB / 1.687 GB, free: 339.1 MB / 1.28 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.007197/4.055, allocations: 3.007 MB / 1.69 GB, free: 337.8 MB / 1.28 GB Notification: Performance of sorting global known variables: time 0.01166/4.067, allocations: 4.065 MB / 1.694 GB, free: 336.3 MB / 1.28 GB Notification: Performance of Backend: time 1.352e-06/4.067, allocations: 1.156 kB / 1.694 GB, free: 336.3 MB / 1.28 GB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created initialization part: time 0.06676/4.133, allocations: 24.71 MB / 1.718 GB, free: 322.4 MB / 1.28 GB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of SimCode: time 0.06734/4.201, allocations: 32.88 MB / 1.75 GB, free: 295.9 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_2 could not be translated