Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_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.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006102/0.006102, allocations: 101.8 kB / 15.73 MB, free: 6.48 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.388/1.388, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001801/0.001801, allocations: 191.4 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4925/0.4925, allocations: 78.52 MB / 418.4 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001802, allocations: 80.14 kB / 0.5536 GB, free: 1 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3946/0.3965, allocations: 68.17 MB / 0.6202 GB, free: 9.637 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.006619/0.4031, allocations: 6.55 MB / 0.6266 GB, free: 3.664 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004353/0.4075, allocations: 1.966 MB / 0.6285 GB, free: 1.691 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001414/0.409, allocations: 8 kB / 0.6285 GB, free: 1.684 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001145/0.4102, allocations: 242 kB / 0.6288 GB, free: 1.445 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002915/0.4131, allocations: 0.8489 MB / 0.6296 GB, free: 0.5977 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001618/0.4147, allocations: 0.6243 MB / 0.6302 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002722/0.4175, allocations: 1.592 MB / 0.6318 GB, free: 14.38 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007405/0.4182, allocations: 326.4 kB / 0.6321 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001389/0.4196, allocations: 0.6613 MB / 0.6327 GB, free: 13.39 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001538/0.4212, allocations: 0.8206 MB / 0.6335 GB, free: 12.56 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005733/0.4218, allocations: 124 kB / 0.6336 GB, free: 12.44 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001042/0.4228, allocations: 247.9 kB / 0.6339 GB, free: 12.2 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006424/0.4235, allocations: 330.6 kB / 0.6342 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001292/0.4248, allocations: 0.668 MB / 0.6348 GB, free: 11.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002247/0.4271, allocations: 1.675 MB / 0.6365 GB, free: 9.527 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.4271, allocations: 4 kB / 0.6365 GB, free: 9.523 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4271, allocations: 0 / 0.6365 GB, free: 9.523 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.4271, allocations: 0 / 0.6365 GB, free: 9.523 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.009219/0.4363, allocations: 2.684 MB / 0.6391 GB, free: 6.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.4364, allocations: 8.031 kB / 0.6391 GB, free: 6.762 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00508/0.4415, allocations: 0.7787 MB / 0.6399 GB, free: 5.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001687/0.4432, allocations: 0.8786 MB / 0.6407 GB, free: 5.047 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003184/0.4435, allocations: 260.2 kB / 0.641 GB, free: 4.754 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.4437, allocations: 87.91 kB / 0.6411 GB, free: 4.668 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002305/0.446, allocations: 1.09 MB / 0.6421 GB, free: 3.566 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.446, allocations: 0 / 0.6421 GB, free: 3.566 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.825e-05/0.4461, allocations: 32 kB / 0.6421 GB, free: 3.535 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/0.4462, allocations: 16 kB / 0.6422 GB, free: 3.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002127/0.4483, allocations: 0.9916 MB / 0.6431 GB, free: 2.527 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.007014/0.4553, allocations: 3.796 MB / 0.6468 GB, free: 14.55 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007667/0.463, allocations: 2.379 MB / 0.6492 GB, free: 12.08 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001556/0.4646, allocations: 0.6723 MB / 0.6498 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001255/0.4647, allocations: 20.97 kB / 0.6498 GB, free: 11.39 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001934/0.4667, allocations: 0.8281 MB / 0.6506 GB, free: 10.54 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 3.747e-06/0.4667, allocations: 0 / 0.6506 GB, free: 10.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.03058/0.4973, allocations: 7.077 MB / 0.6576 GB, free: 3.398 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.49e-05/0.4974, allocations: 119.7 kB / 0.6577 GB, free: 3.258 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002089/0.4995, allocations: 1.083 MB / 0.6587 GB, free: 2.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002814/0.4998, allocations: 45.7 kB / 0.6588 GB, free: 2.109 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004542/0.5003, allocations: 492.8 kB / 0.6592 GB, free: 1.621 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005377/0.5008, allocations: 358.9 kB / 0.6596 GB, free: 1.266 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008387/0.5017, allocations: 287.5 kB / 0.6599 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.5018, allocations: 309 kB / 0.6602 GB, free: 0.6758 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001803/0.5036, allocations: 0.7691 MB / 0.6609 GB, free: 15.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001963/0.5056, allocations: 0.9304 MB / 0.6618 GB, free: 14.93 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02503/0.5307, allocations: 5.579 MB / 0.6673 GB, free: 9.27 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.397e-05/0.5307, allocations: 0 / 0.6673 GB, free: 9.27 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01511/0.5459, allocations: 4.34 MB / 0.6715 GB, free: 4.902 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.094e-05/0.546, allocations: 55.41 kB / 0.6716 GB, free: 4.836 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.546, allocations: 4 kB / 0.6716 GB, free: 4.832 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005874/0.5519, allocations: 1.52 MB / 0.673 GB, free: 3.309 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/0.5536, allocations: 303.5 kB / 0.6733 GB, free: 3.012 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02127/0.5749, allocations: 8.248 MB / 0.6814 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002244/0.5772, allocations: 202.8 kB / 0.6816 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003654/0.5775, allocations: 59.91 kB / 0.6816 GB, free: 10.35 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" 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 (166): * Single equations (assignments): 163 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009843/0.5785, allocations: 300.3 kB / 0.6819 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004319/0.579, allocations: 130.3 kB / 0.682 GB, free: 9.91 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01368/0.5927, allocations: 3.881 MB / 0.6858 GB, free: 5.992 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.396e-05/0.5927, allocations: 12 kB / 0.6859 GB, free: 5.98 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.1e-05/0.5928, allocations: 12 kB / 0.6859 GB, free: 5.969 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-05/0.5928, allocations: 3.984 kB / 0.6859 GB, free: 5.965 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.01691/0.6097, allocations: 5.448 MB / 0.6912 GB, free: 420 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/0.6098, allocations: 0 / 0.6912 GB, free: 420 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007218/0.6105, allocations: 103.8 kB / 0.6913 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006014/0.6165, allocations: 1.614 MB / 0.6929 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002082/0.6168, allocations: 16 kB / 0.6929 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02203/0.6388, allocations: 9.605 MB / 0.7023 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.6389, allocations: 0 / 0.7023 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01574/0.6546, allocations: 4.739 MB / 0.7069 GB, free: 8 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005771/0.6552, allocations: 223.2 kB / 0.7071 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004933/0.6557, allocations: 24 kB / 0.7071 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/0.6573, allocations: 111.9 kB / 0.7072 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007275/0.658, allocations: 196.7 kB / 0.7074 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001511/0.6582, allocations: 28 kB / 0.7074 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001422/0.6596, allocations: 0.7235 MB / 0.7081 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6596, allocations: 0 / 0.7081 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002071/0.6617, allocations: 471.5 kB / 0.7086 GB, free: 14.23 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,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 (64): * Single equations (assignments): 61 * 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004146/0.6621, allocations: 141.8 kB / 0.7087 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006944/0.6691, allocations: 2.498 MB / 0.7112 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.6692, allocations: 8 kB / 0.7112 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005016/0.6742, allocations: 1.61 MB / 0.7128 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001747/0.676, allocations: 120.5 kB / 0.7129 GB, free: 9.766 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005642/0.6816, allocations: 2.249 MB / 0.7151 GB, free: 7.492 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001097/0.6827, allocations: 1.116 MB / 0.7162 GB, free: 6.344 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006546/0.6834, allocations: 116 kB / 0.7163 GB, free: 6.227 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000414/0.6838, allocations: 87.41 kB / 0.7163 GB, free: 6.141 MB / 0.5137 GB Notification: Performance of SimCode: time 2.074e-06/0.6839, allocations: 0 / 0.7163 GB, free: 6.141 MB / 0.5137 GB Notification: Performance of Templates: time 0.04759/0.7315, allocations: 23.68 MB / 0.7395 GB, free: 14.46 MB / 0.545 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)