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.001232/0.001232, allocations: 108.1 kB / 18.41 MB, free: 4.672 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.001264/0.001264, allocations: 187 kB / 19.34 MB, free: 3.754 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.476/1.476, 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.06123/0.06123, allocations: 14.17 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.839/3.839, 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.002261/0.002261, allocations: 88.48 kB / 1.132 GB, free: 22 MB / 0.8735 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3768/0.3791, allocations: 172.1 MB / 1.3 GB, free: 6.961 MB / 0.9829 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.Models.Type1.Type1_N_1_M_2): time 0.06283/0.442, allocations: 63.81 MB / 1.362 GB, free: 6.898 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.04525/0.4873, allocations: 23.29 MB / 1.385 GB, free: 15.53 MB / 1.077 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01452/0.5019, allocations: 234.9 kB / 1.385 GB, free: 15.3 MB / 1.077 GB Notification: Performance of NFTyping.typeComponents: time 0.01291/0.5149, allocations: 3.318 MB / 1.388 GB, free: 11.96 MB / 1.077 GB Notification: Performance of NFTyping.typeBindings: time 0.03238/0.5473, allocations: 8.853 MB / 1.397 GB, free: 3.066 MB / 1.077 GB Notification: Performance of NFTyping.typeClassSections: time 0.01064/0.5579, allocations: 3.265 MB / 1.4 GB, free: 15.8 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.03458/0.5925, allocations: 21.26 MB / 1.421 GB, free: 10.46 MB / 1.108 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007491/0.6001, allocations: 2.522 MB / 1.423 GB, free: 7.863 MB / 1.108 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01444/0.6146, allocations: 7.153 MB / 1.43 GB, free: 0.6836 MB / 1.108 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01429/0.6289, allocations: 7.56 MB / 1.438 GB, free: 9.09 MB / 1.124 GB Notification: Performance of NFPackage.collectConstants: time 0.005501/0.6344, allocations: 1.047 MB / 1.439 GB, free: 8.043 MB / 1.124 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01109/0.6456, allocations: 2.043 MB / 1.441 GB, free: 6.004 MB / 1.124 GB Notification: Performance of NFScalarize.scalarize: time 0.004694/0.6503, allocations: 2.315 MB / 1.443 GB, free: 3.68 MB / 1.124 GB Notification: Performance of NFVerifyModel.verify: time 0.01636/0.6667, allocations: 6.71 MB / 1.449 GB, free: 12.94 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.03177/0.6985, allocations: 16.73 MB / 1.466 GB, free: 12.16 MB / 1.155 GB Notification: Performance of FrontEnd - DAE generated: time 1.03e-05/0.6985, allocations: 4 kB / 1.466 GB, free: 12.15 MB / 1.155 GB Notification: Performance of FrontEnd: time 2.675e-06/0.6985, allocations: 0 / 1.466 GB, free: 12.15 MB / 1.155 GB Notification: Performance of Transformations before backend: time 0.0006844/0.6992, allocations: 0 / 1.466 GB, free: 12.15 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.06976/0.769, allocations: 16.23 MB / 1.482 GB, free: 11.8 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.7691, allocations: 16.03 kB / 1.482 GB, free: 11.79 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009981/0.7791, allocations: 1.642 MB / 1.483 GB, free: 10.13 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02524/0.8044, allocations: 7.075 MB / 1.49 GB, free: 2.961 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001183/0.8056, allocations: 0.6535 MB / 1.491 GB, free: 2.305 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004256/0.8099, allocations: 0.8709 MB / 1.492 GB, free: 1.434 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02684/0.8368, allocations: 8.973 MB / 1.5 GB, free: 8.059 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004182/0.8372, allocations: 15.88 kB / 1.5 GB, free: 8.043 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00221/0.8395, allocations: 352 kB / 1.501 GB, free: 7.699 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002035/0.8397, allocations: 216 kB / 1.501 GB, free: 7.488 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0241/0.8638, allocations: 8.515 MB / 1.509 GB, free: 14.95 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.1105/0.9743, allocations: 57.08 MB / 1.565 GB, free: 0.9492 MB / 1.249 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02105/0.9954, allocations: 10.64 MB / 1.575 GB, free: 6.27 MB / 1.264 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009034/1.005, allocations: 4.02 MB / 1.579 GB, free: 2.234 MB / 1.264 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000887/1.005, allocations: 115.1 kB / 1.58 GB, free: 2.121 MB / 1.264 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001615/1.006, allocations: 125.7 kB / 1.58 GB, free: 1.988 MB / 1.264 GB Notification: Performance of pre-optimization done (n=909): time 2.102e-05/1.006, allocations: 4 kB / 1.58 GB, free: 1.984 MB / 1.264 GB Notification: Performance of matching and sorting (n=909): time 0.03161/1.037, allocations: 12 MB / 1.591 GB, free: 5.961 MB / 1.28 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002082/1.038, allocations: 352.2 kB / 1.592 GB, free: 5.555 MB / 1.28 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.486/2.524, allocations: 6.319 MB / 1.598 GB, free: 263.3 MB / 1.28 GB Notification: Performance of collectPreVariables (initialization): time 0.002/2.526, allocations: 193.2 kB / 1.598 GB, free: 263.3 MB / 1.28 GB Notification: Performance of collectInitialEqns (initialization): time 0.005544/2.532, allocations: 4.023 MB / 1.602 GB, free: 263.2 MB / 1.28 GB Notification: Performance of collectInitialBindings (initialization): time 0.005658/2.537, allocations: 3.144 MB / 1.605 GB, free: 261.2 MB / 1.28 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004737/2.542, allocations: 1.737 MB / 1.607 GB, free: 260.9 MB / 1.28 GB Notification: Performance of setup shared object (initialization): time 9.366e-05/2.542, allocations: 303.1 kB / 1.607 GB, free: 260.6 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00874/2.551, allocations: 3.275 MB / 1.61 GB, free: 259.2 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01211/2.563, allocations: 5.27 MB / 1.615 GB, free: 255.8 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02293/2.586, allocations: 8.586 MB / 1.624 GB, free: 250.4 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000272/2.586, allocations: 13.53 kB / 1.624 GB, free: 250.4 MB / 1.28 GB Notification: Performance of matching and sorting (n=1351) (initialization): time 0.0552/2.642, allocations: 13.9 MB / 1.637 GB, free: 245 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 0.00017/2.642, allocations: 26.09 kB / 1.637 GB, free: 245 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001727/2.642, allocations: 47.38 kB / 1.637 GB, free: 245 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03079/2.673, allocations: 6.097 MB / 1.643 GB, free: 244.3 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00942/2.682, allocations: 1.941 MB / 1.645 GB, free: 244.1 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08503/2.767, allocations: 58.03 MB / 1.702 GB, free: 200 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01329/2.781, allocations: 0.849 MB / 1.703 GB, free: 199.4 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002254/2.783, allocations: 372 kB / 1.703 GB, free: 199.3 MB / 1.28 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.01276/2.796, allocations: 4.256 MB / 1.707 GB, free: 197 MB / 1.28 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.009003/2.805, allocations: 5.026 MB / 1.712 GB, free: 193.1 MB / 1.28 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01534/2.82, allocations: 8.261 MB / 1.72 GB, free: 184.1 MB / 1.28 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.365e-05/2.82, allocations: 20 kB / 1.72 GB, free: 184.1 MB / 1.28 GB Notification: Performance of matching and sorting (n=1351) (initialization_lambda0): time 0.03235/2.853, allocations: 12.2 MB / 1.732 GB, free: 171.8 MB / 1.28 GB Notification: Performance of prepare postOptimizeDAE: time 6.853e-05/2.853, allocations: 24 kB / 1.732 GB, free: 171.8 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.92e-05/2.853, allocations: 48 kB / 1.732 GB, free: 171.7 MB / 1.28 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02345/2.876, allocations: 5.017 MB / 1.737 GB, free: 166.7 MB / 1.28 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008874/2.885, allocations: 2.095 MB / 1.739 GB, free: 164.6 MB / 1.28 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05467/2.94, allocations: 47.56 MB / 1.786 GB, free: 114.5 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01178/2.952, allocations: 0.6549 MB / 1.786 GB, free: 113.8 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001954/2.954, allocations: 373.4 kB / 1.787 GB, free: 113.4 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.004059/2.958, allocations: 0.7462 MB / 1.787 GB, free: 112.7 MB / 1.28 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00426/2.962, allocations: 0.8993 MB / 1.788 GB, free: 111.8 MB / 1.28 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02198/2.984, allocations: 9.956 MB / 1.798 GB, free: 101.8 MB / 1.28 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001587/2.984, allocations: 43.83 kB / 1.798 GB, free: 101.7 MB / 1.28 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.571e-05/2.984, allocations: 3.938 kB / 1.798 GB, free: 101.7 MB / 1.28 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00671/2.991, allocations: 1.863 MB / 1.8 GB, free: 99.84 MB / 1.28 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004066/2.995, allocations: 152 kB / 1.8 GB, free: 99.69 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009368/3.005, allocations: 271.6 kB / 1.8 GB, free: 99.43 MB / 1.28 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002329/3.007, allocations: 0.7167 MB / 1.801 GB, free: 98.7 MB / 1.28 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02675/3.034, allocations: 9.357 MB / 1.81 GB, free: 89.52 MB / 1.28 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1205/3.154, allocations: 47.55 MB / 1.856 GB, free: 41.68 MB / 1.28 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005597/3.16, allocations: 3 MB / 1.859 GB, free: 38.67 MB / 1.28 GB Notification: Performance of sorting global known variables: time 0.007771/3.168, allocations: 4.068 MB / 1.863 GB, free: 34.65 MB / 1.28 GB Notification: Performance of Backend: time 1.212e-06/3.168, allocations: 0 / 1.863 GB, free: 34.65 MB / 1.28 GB Notification: Performance of simCode: created initialization part: time 0.05782/3.226, allocations: 24.71 MB / 1.888 GB, free: 9.48 MB / 1.28 GB Notification: Performance of SimCode: time 0.06684/3.292, allocations: 32.63 MB / 1.919 GB, free: 8.715 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