Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ScalableTestGrids_noopt_ScalableTestGrids.GridModelBuilders.Type1Sample_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.GridModelBuilders.Type1Sample_N_1_M_2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2") translateModel(ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_noopt_ScalableTestGrids.GridModelBuilders.Type1Sample_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.001415/0.001415, allocations: 111.3 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.001539/0.00154, allocations: 187.8 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.517/1.517, 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.07137/0.07137, allocations: 14.18 MB / 286.8 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.851/3.851, allocations: 461.2 MB / 0.7801 GB, free: 107.1 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.002182/0.002182, allocations: 85.95 kB / 1.132 GB, free: 22.03 MB / 0.8735 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3704, allocations: 172.1 MB / 1.3 GB, free: 6.945 MB / 0.9829 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2): time 0.05681/0.4273, allocations: 63.83 MB / 1.362 GB, free: 6.871 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.04799/0.4753, allocations: 23.27 MB / 1.385 GB, free: 15.52 MB / 1.077 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01632/0.4917, allocations: 238.9 kB / 1.385 GB, free: 15.29 MB / 1.077 GB Notification: Performance of NFTyping.typeComponents: time 0.01329/0.5051, allocations: 3.31 MB / 1.388 GB, free: 11.95 MB / 1.077 GB Notification: Performance of NFTyping.typeBindings: time 0.03496/0.5401, allocations: 8.863 MB / 1.397 GB, free: 3.062 MB / 1.077 GB Notification: Performance of NFTyping.typeClassSections: time 0.01193/0.5521, allocations: 3.264 MB / 1.4 GB, free: 15.8 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.03926/0.5913, allocations: 21.25 MB / 1.421 GB, free: 10.48 MB / 1.108 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009922/0.6013, allocations: 2.522 MB / 1.423 GB, free: 7.875 MB / 1.108 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01602/0.6174, allocations: 7.138 MB / 1.43 GB, free: 0.7109 MB / 1.108 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01526/0.6327, allocations: 7.571 MB / 1.438 GB, free: 9.105 MB / 1.124 GB Notification: Performance of NFPackage.collectConstants: time 0.005659/0.6384, allocations: 1.047 MB / 1.439 GB, free: 8.059 MB / 1.124 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01067/0.6491, allocations: 2.046 MB / 1.441 GB, free: 6.016 MB / 1.124 GB Notification: Performance of NFScalarize.scalarize: time 0.005183/0.6543, allocations: 2.311 MB / 1.443 GB, free: 3.695 MB / 1.124 GB Notification: Performance of NFVerifyModel.verify: time 0.01747/0.6718, allocations: 6.714 MB / 1.449 GB, free: 12.95 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.03275/0.7046, allocations: 16.7 MB / 1.466 GB, free: 12.2 MB / 1.155 GB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.7047, allocations: 0 / 1.466 GB, free: 12.2 MB / 1.155 GB Notification: Performance of FrontEnd: time 3.086e-06/0.7047, allocations: 0 / 1.466 GB, free: 12.2 MB / 1.155 GB Notification: Performance of Transformations before backend: time 0.0006997/0.7054, allocations: 8 kB / 1.466 GB, free: 12.19 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.0684/0.7739, allocations: 16.24 MB / 1.482 GB, free: 11.83 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 6.307e-05/0.7739, allocations: 8.031 kB / 1.482 GB, free: 11.82 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009984/0.7839, allocations: 1.65 MB / 1.483 GB, free: 10.16 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02145/0.8054, allocations: 7.072 MB / 1.49 GB, free: 2.992 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008846/0.8064, allocations: 0.6535 MB / 1.491 GB, free: 2.336 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00329/0.8097, allocations: 0.867 MB / 1.492 GB, free: 1.469 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02725/0.837, allocations: 8.984 MB / 1.5 GB, free: 8.082 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004643/0.8375, allocations: 11.88 kB / 1.5 GB, free: 8.07 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002401/0.8399, allocations: 356 kB / 1.501 GB, free: 7.723 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002197/0.8401, allocations: 216 kB / 1.501 GB, free: 7.512 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02239/0.8625, allocations: 8.523 MB / 1.509 GB, free: 14.97 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.1071/0.9697, allocations: 57.07 MB / 1.565 GB, free: 0.9688 MB / 1.249 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02089/0.9907, allocations: 10.65 MB / 1.575 GB, free: 6.285 MB / 1.264 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008587/0.9993, allocations: 4.024 MB / 1.579 GB, free: 2.246 MB / 1.264 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000881/1, allocations: 107.1 kB / 1.579 GB, free: 2.141 MB / 1.264 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001662/1, allocations: 137.7 kB / 1.58 GB, free: 1.996 MB / 1.264 GB Notification: Performance of pre-optimization done (n=909): time 2.695e-05/1, allocations: 4 kB / 1.58 GB, free: 1.992 MB / 1.264 GB Notification: Performance of matching and sorting (n=909): time 0.03384/1.034, allocations: 12 MB / 1.591 GB, free: 5.969 MB / 1.28 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002037/1.035, allocations: 348.2 kB / 1.592 GB, free: 5.566 MB / 1.28 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.461/2.495, allocations: 6.317 MB / 1.598 GB, free: 263 MB / 1.28 GB Notification: Performance of collectPreVariables (initialization): time 0.001951/2.497, allocations: 192.6 kB / 1.598 GB, free: 263 MB / 1.28 GB Notification: Performance of collectInitialEqns (initialization): time 0.004549/2.502, allocations: 4.026 MB / 1.602 GB, free: 262.8 MB / 1.28 GB Notification: Performance of collectInitialBindings (initialization): time 0.004638/2.507, allocations: 3.144 MB / 1.605 GB, free: 260.9 MB / 1.28 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003379/2.51, allocations: 1.735 MB / 1.607 GB, free: 260.6 MB / 1.28 GB Notification: Performance of setup shared object (initialization): time 5.655e-05/2.51, allocations: 302.9 kB / 1.607 GB, free: 260.3 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005918/2.516, allocations: 3.273 MB / 1.61 GB, free: 258.9 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008216/2.524, allocations: 5.262 MB / 1.615 GB, free: 255.4 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01925/2.543, allocations: 8.593 MB / 1.624 GB, free: 250.1 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001863/2.544, allocations: 13.69 kB / 1.624 GB, free: 250.1 MB / 1.28 GB Notification: Performance of matching and sorting (n=1351) (initialization): time 0.04789/2.592, allocations: 13.9 MB / 1.637 GB, free: 244.7 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002148/2.592, allocations: 27.84 kB / 1.637 GB, free: 244.7 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002027/2.592, allocations: 46.62 kB / 1.637 GB, free: 244.7 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03067/2.623, allocations: 6.091 MB / 1.643 GB, free: 243.9 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008712/2.631, allocations: 1.947 MB / 1.645 GB, free: 243.7 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07908/2.711, allocations: 58.02 MB / 1.702 GB, free: 199.7 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01508/2.726, allocations: 0.8517 MB / 1.703 GB, free: 199.1 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002318/2.728, allocations: 374.4 kB / 1.703 GB, free: 199 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01192/2.74, allocations: 4.258 MB / 1.707 GB, free: 196.7 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.008251/2.748, allocations: 5.021 MB / 1.712 GB, free: 192.8 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01504/2.763, allocations: 8.261 MB / 1.72 GB, free: 184.2 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.269e-05/2.764, allocations: 16 kB / 1.72 GB, free: 184.2 MB / 1.28 GB Notification: Performance of matching and sorting (n=1351) (initialization_lambda0): time 0.03154/2.795, allocations: 12.21 MB / 1.732 GB, free: 171.8 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 7.383e-05/2.795, allocations: 28 kB / 1.732 GB, free: 171.8 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.835e-05/2.795, allocations: 48 kB / 1.732 GB, free: 171.8 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02264/2.818, allocations: 5.018 MB / 1.737 GB, free: 166.7 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008538/2.827, allocations: 2.091 MB / 1.739 GB, free: 164.6 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05474/2.881, allocations: 47.56 MB / 1.786 GB, free: 114.5 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01265/2.894, allocations: 0.6588 MB / 1.786 GB, free: 113.8 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002158/2.896, allocations: 368 kB / 1.787 GB, free: 113.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.004514/2.901, allocations: 0.7345 MB / 1.787 GB, free: 112.7 MB / 1.28 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004626/2.905, allocations: 0.9071 MB / 1.788 GB, free: 111.8 MB / 1.28 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02269/2.928, allocations: 9.96 MB / 1.798 GB, free: 101.8 MB / 1.28 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000182/2.928, allocations: 39.84 kB / 1.798 GB, free: 101.8 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.838e-05/2.928, allocations: 7.938 kB / 1.798 GB, free: 101.8 MB / 1.28 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00669/2.935, allocations: 1.863 MB / 1.8 GB, free: 99.87 MB / 1.28 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003666/2.939, allocations: 152 kB / 1.8 GB, free: 99.72 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008984/2.948, allocations: 271.6 kB / 1.8 GB, free: 99.46 MB / 1.28 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001951/2.95, allocations: 0.7167 MB / 1.801 GB, free: 98.74 MB / 1.28 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02789/2.978, allocations: 9.362 MB / 1.81 GB, free: 89.54 MB / 1.28 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1065/3.084, allocations: 47.54 MB / 1.856 GB, free: 41.71 MB / 1.28 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005576/3.09, allocations: 3 MB / 1.859 GB, free: 38.7 MB / 1.28 GB Notification: Performance of sorting global known variables: time 0.008283/3.098, allocations: 4.066 MB / 1.863 GB, free: 34.68 MB / 1.28 GB Notification: Performance of Backend: time 3.31e-07/3.098, allocations: 1.859 kB / 1.863 GB, free: 34.68 MB / 1.28 GB Notification: Performance of simCode: created initialization part: time 0.05861/3.157, allocations: 24.69 MB / 1.888 GB, free: 9.531 MB / 1.28 GB Notification: Performance of SimCode: time 0.08109/3.238, allocations: 32.62 MB / 1.919 GB, free: 8.781 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.GridModelBuilders.Type1Sample_N_1_M_2 could not be translated