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.00141/0.00141, allocations: 110 kB / 18.41 MB, free: 4.664 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.001592/0.001592, allocations: 189.1 kB / 19.35 MB, free: 3.738 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.589/1.589, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06673/0.06673, 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.67/3.67, 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.002947/0.002947, allocations: 93.83 kB / 1.132 GB, free: 22.04 MB / 0.8735 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4238/0.4267, allocations: 172.1 MB / 1.3 GB, free: 6.977 MB / 0.9829 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_N_1_M_1): time 0.06741/0.4941, allocations: 55.68 MB / 1.354 GB, free: 15.07 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.05817/0.5523, allocations: 20.53 MB / 1.374 GB, free: 10.47 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0156/0.5679, allocations: 215 kB / 1.374 GB, free: 10.26 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.01349/0.5814, allocations: 2.894 MB / 1.377 GB, free: 7.348 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.03904/0.6204, allocations: 8.194 MB / 1.385 GB, free: 15.12 MB / 1.077 GB Notification: Performance of NFTyping.typeClassSections: time 0.01392/0.6344, allocations: 3.12 MB / 1.388 GB, free: 11.99 MB / 1.077 GB Notification: Performance of NFFlatten.flatten: time 0.0412/0.6756, allocations: 18.58 MB / 1.406 GB, free: 9.355 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005615/0.6812, allocations: 1.394 MB / 1.408 GB, free: 7.883 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01594/0.6971, allocations: 6.254 MB / 1.414 GB, free: 1.605 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01598/0.7131, allocations: 6.622 MB / 1.42 GB, free: 10.96 MB / 1.108 GB Notification: Performance of NFPackage.collectConstants: time 0.005521/0.7186, allocations: 0.957 MB / 1.421 GB, free: 10 MB / 1.108 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0106/0.7292, allocations: 1.847 MB / 1.423 GB, free: 8.152 MB / 1.108 GB Notification: Performance of NFScalarize.scalarize: time 0.005886/0.7351, allocations: 2.081 MB / 1.425 GB, free: 6.062 MB / 1.108 GB Notification: Performance of NFVerifyModel.verify: time 0.01743/0.7525, allocations: 5.921 MB / 1.431 GB, free: 116 kB / 1.108 GB Notification: Performance of NFConvertDAE.convert: time 0.03561/0.7881, allocations: 14.91 MB / 1.445 GB, free: 1.148 MB / 1.124 GB Notification: Performance of FrontEnd - DAE generated: time 1.056e-05/0.7882, allocations: 0 / 1.445 GB, free: 1.148 MB / 1.124 GB Notification: Performance of FrontEnd: time 8.506e-06/0.7882, allocations: 0 / 1.445 GB, free: 1.148 MB / 1.124 GB Notification: Performance of Transformations before backend: time 0.0009194/0.7891, allocations: 7.938 kB / 1.445 GB, free: 1.141 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.06207/0.8512, allocations: 14.54 MB / 1.46 GB, free: 2.48 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/0.8512, allocations: 8.031 kB / 1.46 GB, free: 2.473 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008934/0.8602, allocations: 1.486 MB / 1.461 GB, free: 0.9805 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01905/0.8792, allocations: 6.399 MB / 1.467 GB, free: 10.52 MB / 1.155 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007585/0.88, allocations: 0.5771 MB / 1.468 GB, free: 9.938 MB / 1.155 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002962/0.8829, allocations: 0.7655 MB / 1.469 GB, free: 9.172 MB / 1.155 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02295/0.9059, allocations: 7.887 MB / 1.476 GB, free: 0.9648 MB / 1.155 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001969/0.9061, allocations: 15.88 kB / 1.476 GB, free: 0.9492 MB / 1.155 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00144/0.9075, allocations: 312 kB / 1.477 GB, free: 0.6445 MB / 1.155 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001806/0.9077, allocations: 188 kB / 1.477 GB, free: 472 kB / 1.155 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02066/0.9283, allocations: 7.496 MB / 1.484 GB, free: 8.949 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.0975/1.026, allocations: 48.93 MB / 1.532 GB, free: 3.926 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01834/1.044, allocations: 8.778 MB / 1.541 GB, free: 11.04 MB / 1.233 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007728/1.052, allocations: 3.167 MB / 1.544 GB, free: 7.848 MB / 1.233 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005246/1.052, allocations: 94.12 kB / 1.544 GB, free: 7.754 MB / 1.233 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001189/1.053, allocations: 124.7 kB / 1.544 GB, free: 7.621 MB / 1.233 GB Notification: Performance of pre-optimization done (n=787): time 9.929e-06/1.053, allocations: 0 / 1.544 GB, free: 7.621 MB / 1.233 GB Notification: Performance of matching and sorting (n=787): time 0.02824/1.081, allocations: 10.34 MB / 1.554 GB, free: 13.23 MB / 1.249 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002432/1.081, allocations: 343.2 kB / 1.554 GB, free: 12.84 MB / 1.249 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01345/1.094, allocations: 5.663 MB / 1.56 GB, free: 7.195 MB / 1.249 GB Notification: Performance of collectPreVariables (initialization): time 0.001906/1.096, allocations: 173.7 kB / 1.56 GB, free: 7.02 MB / 1.249 GB Notification: Performance of collectInitialEqns (initialization): time 0.004331/1.101, allocations: 3.639 MB / 1.563 GB, free: 3.359 MB / 1.249 GB Notification: Performance of collectInitialBindings (initialization): time 0.005602/1.106, allocations: 2.866 MB / 1.566 GB, free: 480 kB / 1.249 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003843/1.11, allocations: 1.55 MB / 1.568 GB, free: 14.91 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 0.0001531/1.11, allocations: 305.1 kB / 1.568 GB, free: 14.61 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006769/1.117, allocations: 2.936 MB / 1.571 GB, free: 11.65 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009381/1.126, allocations: 4.744 MB / 1.576 GB, free: 6.25 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01705/1.144, allocations: 7.637 MB / 1.583 GB, free: 14 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.282e-05/1.144, allocations: 16 kB / 1.583 GB, free: 13.99 MB / 1.28 GB Notification: Performance of matching and sorting (n=1195) (initialization): time 0.03851/1.182, allocations: 12.35 MB / 1.595 GB, free: 1.57 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 7.283e-05/1.182, allocations: 27.94 kB / 1.595 GB, free: 1.543 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.777e-05/1.182, allocations: 44 kB / 1.595 GB, free: 1.5 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517/2.699, allocations: 5.425 MB / 1.6 GB, free: 263.3 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007549/2.707, allocations: 1.74 MB / 1.602 GB, free: 263.3 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07926/2.786, allocations: 54.06 MB / 1.655 GB, free: 227.9 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01089/2.797, allocations: 0.7944 MB / 1.656 GB, free: 227.7 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00213/2.799, allocations: 335.4 kB / 1.656 GB, free: 227.6 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0104/2.81, allocations: 3.801 MB / 1.66 GB, free: 225.8 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.007133/2.817, allocations: 4.502 MB / 1.664 GB, free: 222.6 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.012/2.829, allocations: 7.321 MB / 1.671 GB, free: 217.8 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.755e-05/2.829, allocations: 11.88 kB / 1.671 GB, free: 217.8 MB / 1.28 GB Notification: Performance of matching and sorting (n=1195) (initialization_lambda0): time 0.02569/2.855, allocations: 10.67 MB / 1.682 GB, free: 213.3 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 4.475e-05/2.855, allocations: 24.59 kB / 1.682 GB, free: 213.3 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.334e-05/2.855, allocations: 43.22 kB / 1.682 GB, free: 213.3 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02037/2.875, allocations: 4.353 MB / 1.686 GB, free: 212.1 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007727/2.883, allocations: 1.882 MB / 1.688 GB, free: 211.7 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04431/2.927, allocations: 43.52 MB / 1.73 GB, free: 171.4 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01108/2.938, allocations: 0.6029 MB / 1.731 GB, free: 170.9 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00182/2.94, allocations: 336 kB / 1.731 GB, free: 170.5 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.002325/2.942, allocations: 0.6734 MB / 1.732 GB, free: 169.9 MB / 1.28 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002978/2.945, allocations: 0.8346 MB / 1.733 GB, free: 169.1 MB / 1.28 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01481/2.96, allocations: 8.507 MB / 1.741 GB, free: 160.5 MB / 1.28 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.047e-05/2.96, allocations: 39.84 kB / 1.741 GB, free: 160.4 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.286e-05/2.96, allocations: 0 / 1.741 GB, free: 160.4 MB / 1.28 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005456/2.966, allocations: 1.681 MB / 1.743 GB, free: 158.8 MB / 1.28 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002459/2.968, allocations: 140 kB / 1.743 GB, free: 158.7 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007099/2.975, allocations: 252.5 kB / 1.743 GB, free: 158.4 MB / 1.28 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001102/2.976, allocations: 0.6183 MB / 1.744 GB, free: 157.8 MB / 1.28 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01819/2.994, allocations: 8.187 MB / 1.752 GB, free: 149.7 MB / 1.28 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.078/3.072, allocations: 42.57 MB / 1.793 GB, free: 106.9 MB / 1.28 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004478/3.077, allocations: 2.496 MB / 1.796 GB, free: 104.3 MB / 1.28 GB Notification: Performance of sorting global known variables: time 0.00631/3.083, allocations: 3.636 MB / 1.799 GB, free: 100.7 MB / 1.28 GB Notification: Performance of Backend: time 8.12e-07/3.083, allocations: 1.312 kB / 1.799 GB, free: 100.7 MB / 1.28 GB Notification: Performance of simCode: created initialization part: time 0.04832/3.132, allocations: 21.16 MB / 1.82 GB, free: 79.12 MB / 1.28 GB Notification: Performance of SimCode: time 0.0532/3.185, allocations: 29.12 MB / 1.848 GB, free: 49.87 MB / 1.28 GB [CodegenCpp.tpl:12254:11-12254: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:12254:11-12254: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:12254:11-12254: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:12254:11-12254: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