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.001221/0.001221, allocations: 110 kB / 18.41 MB, free: 4.652 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.001208/0.001208, allocations: 189.1 kB / 19.34 MB, free: 3.727 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.471/1.471, 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.06481/0.06481, 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.652/3.652, 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.003438/0.003438, allocations: 97.81 kB / 1.132 GB, free: 22.05 MB / 0.8735 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4372/0.4406, allocations: 172.1 MB / 1.3 GB, free: 6.98 MB / 0.9829 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_N_1_M_2): time 0.05706/0.4978, allocations: 63.82 MB / 1.362 GB, free: 6.902 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.04706/0.5449, allocations: 23.27 MB / 1.385 GB, free: 15.55 MB / 1.077 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01594/0.5609, allocations: 238.9 kB / 1.385 GB, free: 15.32 MB / 1.077 GB Notification: Performance of NFTyping.typeComponents: time 0.01295/0.5739, allocations: 3.318 MB / 1.388 GB, free: 11.98 MB / 1.077 GB Notification: Performance of NFTyping.typeBindings: time 0.03635/0.6103, allocations: 9.408 MB / 1.397 GB, free: 2.527 MB / 1.077 GB Notification: Performance of NFTyping.typeClassSections: time 0.01176/0.6221, allocations: 3.261 MB / 1.401 GB, free: 15.26 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.03681/0.659, allocations: 21.28 MB / 1.421 GB, free: 9.906 MB / 1.108 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007651/0.6666, allocations: 2.511 MB / 1.424 GB, free: 7.316 MB / 1.108 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0161/0.6828, allocations: 7.149 MB / 1.431 GB, free: 144 kB / 1.108 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01962/0.7024, allocations: 7.564 MB / 1.438 GB, free: 8.547 MB / 1.124 GB Notification: Performance of NFPackage.collectConstants: time 0.007456/0.71, allocations: 1.047 MB / 1.439 GB, free: 7.5 MB / 1.124 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0142/0.7242, allocations: 2.039 MB / 1.441 GB, free: 5.461 MB / 1.124 GB Notification: Performance of NFScalarize.scalarize: time 0.005509/0.7298, allocations: 2.315 MB / 1.443 GB, free: 3.137 MB / 1.124 GB Notification: Performance of NFVerifyModel.verify: time 0.01694/0.7467, allocations: 6.714 MB / 1.45 GB, free: 12.39 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.03372/0.7805, allocations: 16.72 MB / 1.466 GB, free: 11.62 MB / 1.155 GB Notification: Performance of FrontEnd - DAE generated: time 1.199e-05/0.7805, allocations: 0 / 1.466 GB, free: 11.62 MB / 1.155 GB Notification: Performance of FrontEnd: time 2.705e-06/0.7806, allocations: 11.94 kB / 1.466 GB, free: 11.61 MB / 1.155 GB Notification: Performance of Transformations before backend: time 0.0007276/0.7813, allocations: 0 / 1.466 GB, free: 11.61 MB / 1.155 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.07292/0.8542, allocations: 16.24 MB / 1.482 GB, free: 11.26 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 6.508e-05/0.8543, allocations: 12.03 kB / 1.482 GB, free: 11.25 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01122/0.8655, allocations: 1.65 MB / 1.484 GB, free: 9.582 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02472/0.8903, allocations: 7.075 MB / 1.491 GB, free: 2.41 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001053/0.8914, allocations: 0.6574 MB / 1.491 GB, free: 1.75 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004223/0.8957, allocations: 0.8709 MB / 1.492 GB, free: 0.8789 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03423/0.9299, allocations: 8.977 MB / 1.501 GB, free: 7.5 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000543/0.9305, allocations: 15.88 kB / 1.501 GB, free: 7.484 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003095/0.9336, allocations: 356 kB / 1.501 GB, free: 7.137 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002959/0.934, allocations: 216 kB / 1.502 GB, free: 6.926 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02598/0.9599, allocations: 8.511 MB / 1.51 GB, free: 14.39 MB / 1.202 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.1227/1.083, allocations: 57.07 MB / 1.566 GB, free: 404 kB / 1.249 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02345/1.106, allocations: 10.65 MB / 1.576 GB, free: 5.711 MB / 1.264 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01016/1.116, allocations: 4.024 MB / 1.58 GB, free: 1.672 MB / 1.264 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001047/1.117, allocations: 107.1 kB / 1.58 GB, free: 1.566 MB / 1.264 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001856/1.118, allocations: 129.7 kB / 1.58 GB, free: 1.43 MB / 1.264 GB Notification: Performance of pre-optimization done (n=909): time 2.117e-05/1.118, allocations: 0 / 1.58 GB, free: 1.43 MB / 1.264 GB Notification: Performance of matching and sorting (n=909): time 0.03615/1.154, allocations: 12 MB / 1.592 GB, free: 5.406 MB / 1.28 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002778/1.154, allocations: 356.1 kB / 1.592 GB, free: 4.996 MB / 1.28 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.436/2.59, allocations: 6.311 MB / 1.598 GB, free: 262.8 MB / 1.28 GB Notification: Performance of collectPreVariables (initialization): time 0.002539/2.593, allocations: 197.8 kB / 1.599 GB, free: 262.8 MB / 1.28 GB Notification: Performance of collectInitialEqns (initialization): time 0.004679/2.598, allocations: 4.032 MB / 1.603 GB, free: 262.6 MB / 1.28 GB Notification: Performance of collectInitialBindings (initialization): time 0.004791/2.603, allocations: 3.144 MB / 1.606 GB, free: 260.7 MB / 1.28 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00339/2.606, allocations: 1.731 MB / 1.607 GB, free: 260.2 MB / 1.28 GB Notification: Performance of setup shared object (initialization): time 7.109e-05/2.606, allocations: 309 kB / 1.608 GB, free: 259.9 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005953/2.612, allocations: 3.272 MB / 1.611 GB, free: 258.6 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008457/2.62, allocations: 5.267 MB / 1.616 GB, free: 255.1 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02239/2.643, allocations: 8.585 MB / 1.624 GB, free: 249.7 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001493/2.643, allocations: 14 kB / 1.624 GB, free: 249.7 MB / 1.28 GB Notification: Performance of matching and sorting (n=1351) (initialization): time 0.03856/2.682, allocations: 13.89 MB / 1.638 GB, free: 244.3 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001324/2.682, allocations: 25.28 kB / 1.638 GB, free: 244.3 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001395/2.682, allocations: 50.09 kB / 1.638 GB, free: 244.3 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02897/2.711, allocations: 6.099 MB / 1.644 GB, free: 243.6 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008661/2.72, allocations: 1.94 MB / 1.646 GB, free: 243.4 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07178/2.791, allocations: 58.01 MB / 1.702 GB, free: 199.2 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01232/2.804, allocations: 0.8517 MB / 1.703 GB, free: 198.6 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00215/2.806, allocations: 373.1 kB / 1.704 GB, free: 198.5 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0122/2.818, allocations: 4.257 MB / 1.708 GB, free: 196.2 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.008813/2.827, allocations: 5.029 MB / 1.713 GB, free: 192.2 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01535/2.843, allocations: 8.264 MB / 1.721 GB, free: 183.2 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.099e-05/2.843, allocations: 19.2 kB / 1.721 GB, free: 183.2 MB / 1.28 GB Notification: Performance of matching and sorting (n=1351) (initialization_lambda0): time 0.03159/2.874, allocations: 12.2 MB / 1.733 GB, free: 170.9 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 6.326e-05/2.874, allocations: 24 kB / 1.733 GB, free: 170.8 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.298e-05/2.874, allocations: 48 kB / 1.733 GB, free: 170.8 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02265/2.897, allocations: 5.019 MB / 1.738 GB, free: 165.7 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00874/2.906, allocations: 2.091 MB / 1.74 GB, free: 163.6 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05739/2.963, allocations: 47.56 MB / 1.786 GB, free: 113.5 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01241/2.976, allocations: 0.6627 MB / 1.787 GB, free: 112.8 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002008/2.978, allocations: 368 kB / 1.787 GB, free: 112.5 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.004231/2.982, allocations: 0.7462 MB / 1.788 GB, free: 111.7 MB / 1.28 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004403/2.986, allocations: 0.9071 MB / 1.789 GB, free: 110.8 MB / 1.28 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02083/3.007, allocations: 9.952 MB / 1.799 GB, free: 100.8 MB / 1.28 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-05/3.007, allocations: 43.83 kB / 1.799 GB, free: 100.8 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/3.008, allocations: 0 / 1.799 GB, free: 100.8 MB / 1.28 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006577/3.014, allocations: 1.863 MB / 1.8 GB, free: 98.88 MB / 1.28 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002899/3.017, allocations: 156 kB / 1.801 GB, free: 98.73 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008845/3.026, allocations: 267.6 kB / 1.801 GB, free: 98.47 MB / 1.28 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001455/3.027, allocations: 0.7206 MB / 1.801 GB, free: 97.74 MB / 1.28 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02684/3.054, allocations: 9.356 MB / 1.811 GB, free: 88.56 MB / 1.28 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1153/3.17, allocations: 47.55 MB / 1.857 GB, free: 40.73 MB / 1.28 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005751/3.175, allocations: 3.004 MB / 1.86 GB, free: 37.71 MB / 1.28 GB Notification: Performance of sorting global known variables: time 0.008823/3.184, allocations: 4.066 MB / 1.864 GB, free: 33.69 MB / 1.28 GB Notification: Performance of Backend: time 1.273e-06/3.184, allocations: 3.938 kB / 1.864 GB, free: 33.69 MB / 1.28 GB Notification: Performance of simCode: created initialization part: time 0.06191/3.246, allocations: 24.69 MB / 1.888 GB, free: 8.535 MB / 1.28 GB Notification: Performance of SimCode: time 0.08086/3.327, allocations: 32.63 MB / 1.92 GB, free: 7.766 MB / 1.312 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