Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.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/Modelica 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/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005301/0.005301, allocations: 102.6 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 239.4 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 184.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4479/0.4479, allocations: 78.52 MB / 418.4 MB, free: 3.168 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 83.88 kB / 0.5536 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.358, allocations: 68.17 MB / 0.6202 GB, free: 9.691 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.005468/0.3635, allocations: 6.502 MB / 0.6265 GB, free: 3.68 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003298/0.3668, allocations: 1.955 MB / 0.6285 GB, free: 1.719 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005587/0.3675, allocations: 8 kB / 0.6285 GB, free: 1.711 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006237/0.3681, allocations: 249.9 kB / 0.6287 GB, free: 1.465 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001578/0.3697, allocations: 0.7969 MB / 0.6295 GB, free: 0.668 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001053/0.3707, allocations: 0.6202 MB / 0.6301 GB, free: 56 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001936/0.3727, allocations: 1.577 MB / 0.6316 GB, free: 14.47 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004741/0.3732, allocations: 326.4 kB / 0.6319 GB, free: 14.14 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007556/0.3739, allocations: 0.6574 MB / 0.6326 GB, free: 13.48 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008503/0.3748, allocations: 0.8206 MB / 0.6334 GB, free: 12.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001752/0.375, allocations: 124 kB / 0.6335 GB, free: 12.54 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004901/0.3755, allocations: 263.8 kB / 0.6338 GB, free: 12.28 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000295/0.3758, allocations: 322.6 kB / 0.6341 GB, free: 11.96 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005466/0.3763, allocations: 0.668 MB / 0.6347 GB, free: 11.29 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001595/0.378, allocations: 1.671 MB / 0.6363 GB, free: 9.617 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.378, allocations: 0 / 0.6363 GB, free: 9.617 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.378, allocations: 0 / 0.6363 GB, free: 9.617 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.858e-05/0.378, allocations: 4 kB / 0.6363 GB, free: 9.613 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.008135/0.3861, allocations: 2.684 MB / 0.639 GB, free: 6.859 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.3862, allocations: 8.031 kB / 0.639 GB, free: 6.852 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004897/0.3911, allocations: 0.7787 MB / 0.6397 GB, free: 6.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001469/0.3926, allocations: 0.8941 MB / 0.6406 GB, free: 5.121 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002904/0.3929, allocations: 256.2 kB / 0.6409 GB, free: 4.832 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.3931, allocations: 84 kB / 0.6409 GB, free: 4.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002133/0.3952, allocations: 1.09 MB / 0.642 GB, free: 3.648 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.3952, allocations: 0 / 0.642 GB, free: 3.648 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.009e-05/0.3953, allocations: 28 kB / 0.642 GB, free: 3.621 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.3954, allocations: 20 kB / 0.642 GB, free: 3.602 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00207/0.3974, allocations: 0.9916 MB / 0.643 GB, free: 2.609 MB / 446.1 MB 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.006437/0.4039, allocations: 3.785 MB / 0.6467 GB, free: 14.65 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007058/0.411, allocations: 2.373 MB / 0.649 GB, free: 12.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/0.4123, allocations: 0.6684 MB / 0.6497 GB, free: 11.51 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000115/0.4125, allocations: 20.98 kB / 0.6497 GB, free: 11.49 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001602/0.4141, allocations: 0.8269 MB / 0.6505 GB, free: 10.64 MB / 462.1 MB Notification: Performance of pre-optimization done (n=95): time 3.196e-06/0.4141, allocations: 0 / 0.6505 GB, free: 10.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=95): time 0.02763/0.4417, allocations: 7.186 MB / 0.6575 GB, free: 3.395 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.335e-05/0.4418, allocations: 115.8 kB / 0.6576 GB, free: 3.258 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001795/0.4436, allocations: 1.091 MB / 0.6587 GB, free: 2.152 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002006/0.4439, allocations: 41.7 kB / 0.6587 GB, free: 2.105 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004037/0.4443, allocations: 0.4968 MB / 0.6592 GB, free: 1.602 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004311/0.4447, allocations: 351.1 kB / 0.6596 GB, free: 1.254 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005729/0.4453, allocations: 283.4 kB / 0.6598 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.4454, allocations: 301.1 kB / 0.6601 GB, free: 0.6758 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001659/0.4471, allocations: 0.7575 MB / 0.6609 GB, free: 15.91 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001713/0.4488, allocations: 0.9265 MB / 0.6618 GB, free: 14.95 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02305/0.4719, allocations: 5.552 MB / 0.6672 GB, free: 9.312 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.137e-05/0.4719, allocations: 0 / 0.6672 GB, free: 9.312 MB / 478.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.0134/0.4853, allocations: 4.36 MB / 0.6714 GB, free: 4.922 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.634e-05/0.4854, allocations: 63.34 kB / 0.6715 GB, free: 4.848 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.4855, allocations: 7.984 kB / 0.6715 GB, free: 4.84 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005629/0.4911, allocations: 1.584 MB / 0.6731 GB, free: 3.254 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.4925, allocations: 275.6 kB / 0.6733 GB, free: 2.984 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01961/0.5122, allocations: 8.514 MB / 0.6816 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001783/0.514, allocations: 194.8 kB / 0.6818 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002051/0.5142, allocations: 59.91 kB / 0.6819 GB, free: 10.07 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006568/0.5149, allocations: 296.1 kB / 0.6822 GB, free: 9.758 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002709/0.5151, allocations: 130.5 kB / 0.6823 GB, free: 9.629 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01242/0.5276, allocations: 3.869 MB / 0.6861 GB, free: 5.723 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.5276, allocations: 8 kB / 0.6861 GB, free: 5.715 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/0.5276, allocations: 19.92 kB / 0.6861 GB, free: 5.695 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.5276, allocations: 3.984 kB / 0.6861 GB, free: 5.691 MB / 494.1 MB 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 postOpt removeSimpleEquations (simulation): time 0.01396/0.5416, allocations: 5.452 MB / 0.6914 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.5416, allocations: 0 / 0.6914 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005324/0.5422, allocations: 95.89 kB / 0.6915 GB, free: 40 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005376/0.5476, allocations: 1.599 MB / 0.6931 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/0.5477, allocations: 27.98 kB / 0.6931 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01959/0.5673, allocations: 9.634 MB / 0.7025 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.5673, allocations: 3.938 kB / 0.7025 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01365/0.581, allocations: 4.723 MB / 0.7071 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003913/0.5814, allocations: 219.3 kB / 0.7073 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002209/0.5816, allocations: 23.94 kB / 0.7074 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.5827, allocations: 111.9 kB / 0.7075 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005693/0.5833, allocations: 188.8 kB / 0.7076 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.82e-05/0.5834, allocations: 35.98 kB / 0.7077 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001103/0.5845, allocations: 0.7315 MB / 0.7084 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.11e-07/0.5845, allocations: 4 kB / 0.7084 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001372/0.5859, allocations: 471.6 kB / 0.7088 GB, free: 13.93 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002718/0.5862, allocations: 140.5 kB / 0.709 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005952/0.5922, allocations: 2.525 MB / 0.7114 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.5922, allocations: 0 / 0.7114 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003924/0.5961, allocations: 1.596 MB / 0.713 GB, free: 9.582 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000876/0.597, allocations: 117.4 kB / 0.7131 GB, free: 9.469 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003866/0.6009, allocations: 2.197 MB / 0.7153 GB, free: 7.246 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006881/0.6016, allocations: 1.124 MB / 0.7164 GB, free: 6.09 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003787/0.602, allocations: 120.1 kB / 0.7165 GB, free: 5.969 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002601/0.6023, allocations: 79.41 kB / 0.7165 GB, free: 5.891 MB / 0.5137 GB Notification: Performance of SimCode: time 3.51e-07/0.6023, allocations: 0 / 0.7165 GB, free: 5.891 MB / 0.5137 GB Notification: Performance of Templates: time 0.03669/0.639, allocations: 23.82 MB / 0.7398 GB, free: 14.08 MB / 0.545 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)