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.001257/0.001257, allocations: 107.3 kB / 18.41 MB, free: 4.668 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.001373/0.001373, allocations: 187.9 kB / 19.34 MB, free: 3.742 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.309/1.309, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06347/0.06347, allocations: 14.17 MB / 286.7 MB, free: 13.89 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo): time 2.972/2.972, allocations: 461.2 MB / 0.7801 GB, free: 107.2 MB / 0.6546 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.001893/0.001893, allocations: 94.75 kB / 1.132 GB, free: 22.05 MB / 0.8736 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4016/0.4035, allocations: 172.1 MB / 1.3 GB, free: 7 MB / 0.9829 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2): time 0.05624/0.4599, allocations: 63.82 MB / 1.362 GB, free: 6.93 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.04744/0.5074, allocations: 23.28 MB / 1.385 GB, free: 15.57 MB / 1.077 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01711/0.5245, allocations: 238.9 kB / 1.385 GB, free: 15.34 MB / 1.077 GB Notification: Performance of NFTyping.typeComponents: time 0.01492/0.5395, allocations: 3.314 MB / 1.388 GB, free: 12 MB / 1.077 GB Notification: Performance of NFTyping.typeBindings: time 0.03843/0.578, allocations: 8.851 MB / 1.397 GB, free: 3.125 MB / 1.077 GB Notification: Performance of NFTyping.typeClassSections: time 0.01233/0.5904, allocations: 3.269 MB / 1.4 GB, free: 15.85 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.03808/0.6285, allocations: 21.25 MB / 1.421 GB, free: 10.53 MB / 1.108 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009263/0.6378, allocations: 2.526 MB / 1.423 GB, free: 7.922 MB / 1.108 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01763/0.6555, allocations: 7.142 MB / 1.43 GB, free: 0.7539 MB / 1.108 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01705/0.6726, allocations: 7.571 MB / 1.438 GB, free: 9.152 MB / 1.124 GB Notification: Performance of NFPackage.collectConstants: time 0.006155/0.6788, allocations: 1.047 MB / 1.439 GB, free: 8.105 MB / 1.124 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01119/0.69, allocations: 2.05 MB / 1.441 GB, free: 6.055 MB / 1.124 GB Notification: Performance of NFScalarize.scalarize: time 0.005426/0.6955, allocations: 2.307 MB / 1.443 GB, free: 3.738 MB / 1.124 GB Notification: Performance of NFVerifyModel.verify: time 0.01688/0.7124, allocations: 6.714 MB / 1.449 GB, free: 12.99 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.0316/0.744, allocations: 16.7 MB / 1.466 GB, free: 12.24 MB / 1.155 GB Notification: Performance of FrontEnd - DAE generated: time 9.498e-06/0.7441, allocations: 0 / 1.466 GB, free: 12.24 MB / 1.155 GB Notification: Performance of FrontEnd: time 2.985e-06/0.7441, allocations: 0 / 1.466 GB, free: 12.24 MB / 1.155 GB Notification: Performance of Transformations before backend: time 0.0007406/0.7449, allocations: 4 kB / 1.466 GB, free: 12.24 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.06722/0.8121, allocations: 16.24 MB / 1.482 GB, free: 11.88 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 6.587e-05/0.8122, allocations: 8.031 kB / 1.482 GB, free: 11.88 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009816/0.822, allocations: 1.65 MB / 1.483 GB, free: 10.21 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02053/0.8426, allocations: 7.079 MB / 1.49 GB, free: 3.035 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008827/0.8435, allocations: 0.6534 MB / 1.491 GB, free: 2.379 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003369/0.8469, allocations: 0.8748 MB / 1.492 GB, free: 1.504 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02699/0.8739, allocations: 8.977 MB / 1.5 GB, free: 8.125 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004361/0.8744, allocations: 11.88 kB / 1.5 GB, free: 8.113 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002376/0.8768, allocations: 352 kB / 1.501 GB, free: 7.77 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002391/0.8771, allocations: 216 kB / 1.501 GB, free: 7.559 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02362/0.9007, allocations: 8.519 MB / 1.509 GB, free: 15.02 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.1189/1.02, allocations: 57.07 MB / 1.565 GB, free: 1.023 MB / 1.249 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02274/1.042, allocations: 10.65 MB / 1.575 GB, free: 6.34 MB / 1.264 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009713/1.052, allocations: 4.024 MB / 1.579 GB, free: 2.301 MB / 1.264 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008949/1.053, allocations: 107.1 kB / 1.579 GB, free: 2.195 MB / 1.264 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002634/1.053, allocations: 129.6 kB / 1.58 GB, free: 2.059 MB / 1.264 GB Notification: Performance of pre-optimization done (n=909): time 2.839e-05/1.053, allocations: 4 kB / 1.58 GB, free: 2.055 MB / 1.264 GB Notification: Performance of matching and sorting (n=909): time 0.03882/1.092, allocations: 12.01 MB / 1.591 GB, free: 6.027 MB / 1.28 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002698/1.093, allocations: 348.2 kB / 1.592 GB, free: 5.625 MB / 1.28 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.533/2.625, allocations: 6.318 MB / 1.598 GB, free: 263.1 MB / 1.28 GB Notification: Performance of collectPreVariables (initialization): time 0.002264/2.628, allocations: 190.9 kB / 1.598 GB, free: 263.1 MB / 1.28 GB Notification: Performance of collectInitialEqns (initialization): time 0.005119/2.633, allocations: 4.033 MB / 1.602 GB, free: 262.9 MB / 1.28 GB Notification: Performance of collectInitialBindings (initialization): time 0.005778/2.639, allocations: 3.14 MB / 1.605 GB, free: 261 MB / 1.28 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003786/2.642, allocations: 1.738 MB / 1.607 GB, free: 260.6 MB / 1.28 GB Notification: Performance of setup shared object (initialization): time 7.255e-05/2.643, allocations: 302.5 kB / 1.607 GB, free: 260.3 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006816/2.649, allocations: 3.273 MB / 1.61 GB, free: 259 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009367/2.659, allocations: 5.263 MB / 1.615 GB, free: 255.5 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02147/2.68, allocations: 8.587 MB / 1.624 GB, free: 250.2 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002274/2.681, allocations: 13.81 kB / 1.624 GB, free: 250.2 MB / 1.28 GB Notification: Performance of matching and sorting (n=1351) (initialization): time 0.05265/2.733, allocations: 13.9 MB / 1.637 GB, free: 244.8 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002135/2.734, allocations: 28.06 kB / 1.637 GB, free: 244.8 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002393/2.734, allocations: 50.53 kB / 1.637 GB, free: 244.8 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03176/2.766, allocations: 6.094 MB / 1.643 GB, free: 244.1 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009678/2.775, allocations: 1.948 MB / 1.645 GB, free: 243.8 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08118/2.857, allocations: 58.01 MB / 1.702 GB, free: 199.8 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01302/2.87, allocations: 0.856 MB / 1.703 GB, free: 199.2 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002849/2.872, allocations: 376.9 kB / 1.703 GB, free: 199.1 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01595/2.888, allocations: 4.26 MB / 1.707 GB, free: 196.8 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0092/2.898, allocations: 5.021 MB / 1.712 GB, free: 192.9 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01538/2.913, allocations: 8.261 MB / 1.72 GB, free: 184.3 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.202e-05/2.913, allocations: 12 kB / 1.72 GB, free: 184.3 MB / 1.28 GB Notification: Performance of matching and sorting (n=1351) (initialization_lambda0): time 0.03633/2.95, allocations: 12.21 MB / 1.732 GB, free: 171.9 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 7.178e-05/2.95, allocations: 28.06 kB / 1.732 GB, free: 171.9 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.733e-05/2.95, allocations: 52 kB / 1.732 GB, free: 171.9 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02377/2.974, allocations: 5.015 MB / 1.737 GB, free: 166.8 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009417/2.983, allocations: 2.091 MB / 1.739 GB, free: 164.7 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05679/3.04, allocations: 47.56 MB / 1.786 GB, free: 114.6 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01242/3.052, allocations: 0.6588 MB / 1.786 GB, free: 113.9 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002108/3.054, allocations: 372 kB / 1.787 GB, free: 113.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.005779/3.06, allocations: 0.7476 MB / 1.787 GB, free: 112.8 MB / 1.28 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004662/3.065, allocations: 0.9032 MB / 1.788 GB, free: 111.9 MB / 1.28 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02345/3.088, allocations: 9.952 MB / 1.798 GB, free: 101.9 MB / 1.28 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001501/3.089, allocations: 43.83 kB / 1.798 GB, free: 101.9 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/3.089, allocations: 7.938 kB / 1.798 GB, free: 101.9 MB / 1.28 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007881/3.097, allocations: 1.859 MB / 1.8 GB, free: 99.98 MB / 1.28 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004586/3.101, allocations: 152 kB / 1.8 GB, free: 99.84 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01012/3.111, allocations: 271.6 kB / 1.8 GB, free: 99.57 MB / 1.28 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002156/3.113, allocations: 0.7283 MB / 1.801 GB, free: 98.84 MB / 1.28 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02552/3.139, allocations: 9.354 MB / 1.81 GB, free: 89.65 MB / 1.28 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1174/3.256, allocations: 47.54 MB / 1.856 GB, free: 41.82 MB / 1.28 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00591/3.262, allocations: 3 MB / 1.859 GB, free: 38.82 MB / 1.28 GB Notification: Performance of sorting global known variables: time 0.008775/3.271, allocations: 4.07 MB / 1.863 GB, free: 34.79 MB / 1.28 GB Notification: Performance of Backend: time 9.42e-07/3.271, allocations: 0 / 1.863 GB, free: 34.79 MB / 1.28 GB Notification: Performance of simCode: created initialization part: time 0.06085/3.332, allocations: 24.69 MB / 1.888 GB, free: 9.637 MB / 1.28 GB Notification: Performance of SimCode: time 0.07548/3.408, allocations: 32.62 MB / 1.919 GB, free: 8.887 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