Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_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.ThreeArea.SixthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.397/1.397, allocations: 222.9 MB / 240.1 MB, free: 4.379 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.001615/0.001615, allocations: 184.5 kB / 290.4 MB, free: 2.109 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.471/0.471, allocations: 78.54 MB / 419.1 MB, free: 3.176 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 76.11 kB / 0.5543 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4238/0.4253, allocations: 68.17 MB / 0.6209 GB, free: 9.574 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII): time 0.0119/0.4373, allocations: 13.82 MB / 0.6344 GB, free: 12.31 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.009915/0.4473, allocations: 3.511 MB / 0.6378 GB, free: 8.793 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003167/0.4505, allocations: 31.94 kB / 0.6379 GB, free: 8.762 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002066/0.4526, allocations: 0.5654 MB / 0.6384 GB, free: 8.188 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005882/0.4585, allocations: 1.451 MB / 0.6398 GB, free: 6.734 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003994/0.4625, allocations: 1.519 MB / 0.6413 GB, free: 5.234 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.006266/0.4688, allocations: 3.816 MB / 0.6451 GB, free: 1.402 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00179/0.4706, allocations: 0.8935 MB / 0.6459 GB, free: 468 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002815/0.4735, allocations: 1.56 MB / 0.6474 GB, free: 14.89 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003281/0.4768, allocations: 2.011 MB / 0.6494 GB, free: 12.87 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001369/0.4782, allocations: 296 kB / 0.6497 GB, free: 12.58 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001904/0.4801, allocations: 431.9 kB / 0.6501 GB, free: 12.16 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001289/0.4814, allocations: 0.7896 MB / 0.6509 GB, free: 11.37 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002003/0.4834, allocations: 1.658 MB / 0.6525 GB, free: 9.699 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004414/0.4878, allocations: 4.053 MB / 0.6565 GB, free: 5.637 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.4878, allocations: 0 / 0.6565 GB, free: 5.637 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4879, allocations: 0 / 0.6565 GB, free: 5.637 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.186e-05/0.4879, allocations: 0 / 0.6565 GB, free: 5.637 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 525 * Number of variables: 525 Notification: Performance of Generate backend data structure: time 0.02474/0.5127, allocations: 6.669 MB / 0.663 GB, free: 14.87 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.5128, allocations: 8.031 kB / 0.663 GB, free: 14.86 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01519/0.528, allocations: 2.279 MB / 0.6652 GB, free: 12.58 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004772/0.5328, allocations: 1.918 MB / 0.6671 GB, free: 10.59 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007686/0.5336, allocations: 0.7253 MB / 0.6678 GB, free: 9.754 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006161/0.5342, allocations: 215.9 kB / 0.668 GB, free: 9.543 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006716/0.5409, allocations: 3.063 MB / 0.671 GB, free: 6.402 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.714e-05/0.541, allocations: 0 / 0.671 GB, free: 6.402 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002609/0.5413, allocations: 87.94 kB / 0.6711 GB, free: 6.316 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-05/0.5413, allocations: 48 kB / 0.6711 GB, free: 6.27 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006083/0.5474, allocations: 2.803 MB / 0.6738 GB, free: 3.449 MB / 478.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.02/0.5674, allocations: 9.892 MB / 0.6835 GB, free: 9.133 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01137/0.5788, allocations: 4.224 MB / 0.6876 GB, free: 4.773 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005067/0.584, allocations: 1.983 MB / 0.6896 GB, free: 2.789 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003173/0.5843, allocations: 49.89 kB / 0.6896 GB, free: 2.738 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005027/0.5893, allocations: 2.252 MB / 0.6918 GB, free: 476 kB / 494.1 MB Notification: Performance of pre-optimization done (n=250): time 5.139e-06/0.5894, allocations: 0 / 0.6918 GB, free: 476 kB / 494.1 MB Notification: Performance of matching and sorting (n=250): time 0.1242/0.7136, allocations: 28.82 MB / 0.72 GB, free: 3.523 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.7138, allocations: 192.2 kB / 0.7201 GB, free: 3.301 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003783/0.7176, allocations: 2.329 MB / 0.7224 GB, free: 0.9531 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0008168/0.7184, allocations: 69.7 kB / 0.7225 GB, free: 0.8789 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009859/0.7194, allocations: 1.176 MB / 0.7236 GB, free: 15.69 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001295/0.7207, allocations: 0.8858 MB / 0.7245 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001116/0.7218, allocations: 0.5699 MB / 0.725 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.722, allocations: 301.1 kB / 0.7253 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004382/0.7263, allocations: 1.99 MB / 0.7273 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004794/0.7312, allocations: 2.362 MB / 0.7296 GB, free: 9.469 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05854/0.7897, allocations: 14.37 MB / 0.7436 GB, free: 10.87 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.296e-05/0.7898, allocations: 3.938 kB / 0.7436 GB, free: 10.87 MB / 0.545 GB Notification: Performance of matching and sorting (n=425) (initialization): time 0.04398/0.8338, allocations: 12.61 MB / 0.7559 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/0.834, allocations: 118.8 kB / 0.756 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.215e-05/0.834, allocations: 8 kB / 0.7561 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01925/0.8533, allocations: 5.438 MB / 0.7614 GB, free: 8.598 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003274/0.8566, allocations: 0.5695 MB / 0.7619 GB, free: 8.027 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4482/1.305, allocations: 23.64 MB / 0.785 GB, free: 121.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004818/1.31, allocations: 499.2 kB / 0.7855 GB, free: 121.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004847/1.31, allocations: 115 kB / 0.7856 GB, free: 121.3 MB / 0.5606 GB Warning: Assuming fixed start value for the following 6 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Syn2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (336): * Single equations (assignments): 331 * Array equations: 0 * Algorithm blocks: 4 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(63,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001296/1.311, allocations: 0.5351 MB / 0.7861 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006618/1.312, allocations: 303.1 kB / 0.7864 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0379/1.35, allocations: 11.95 MB / 0.7981 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.75e-05/1.35, allocations: 23.5 kB / 0.7981 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-05/1.35, allocations: 23.69 kB / 0.7981 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.974e-05/1.35, allocations: 15.38 kB / 0.7981 GB, free: 118.4 MB / 0.5606 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 postOpt removeSimpleEquations (simulation): time 0.04275/1.393, allocations: 15.59 MB / 0.8134 GB, free: 106.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.578e-05/1.393, allocations: 0 / 0.8134 GB, free: 106.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001685/1.395, allocations: 247.6 kB / 0.8136 GB, free: 106.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01691/1.412, allocations: 5.287 MB / 0.8188 GB, free: 100.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007766/1.413, allocations: 48 kB / 0.8188 GB, free: 100.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05362/1.466, allocations: 24.92 MB / 0.8431 GB, free: 75.47 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/1.466, allocations: 4.844 kB / 0.8431 GB, free: 75.47 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0429/1.509, allocations: 14.34 MB / 0.8571 GB, free: 61.02 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/1.51, allocations: 427.4 kB / 0.8576 GB, free: 60.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001293/1.512, allocations: 44 kB / 0.8576 GB, free: 60.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003831/1.515, allocations: 299.6 kB / 0.8579 GB, free: 60.25 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0022/1.518, allocations: 0.5802 MB / 0.8584 GB, free: 59.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002282/1.518, allocations: 63.98 kB / 0.8585 GB, free: 59.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002186/1.52, allocations: 1.543 MB / 0.86 GB, free: 58.05 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/1.52, allocations: 0 / 0.86 GB, free: 58.05 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004409/1.525, allocations: 1.2 MB / 0.8612 GB, free: 56.86 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 19 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e1d,Syn2.e2q,Syn2.e2d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(66,22,7.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005509/1.525, allocations: 176.9 kB / 0.8614 GB, free: 56.68 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0185/1.544, allocations: 6.787 MB / 0.868 GB, free: 49.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/1.544, allocations: 8 kB / 0.868 GB, free: 49.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01333/1.557, allocations: 4.414 MB / 0.8723 GB, free: 45.32 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/1.56, allocations: 272.6 kB / 0.8726 GB, free: 45.05 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/1.57, allocations: 5.537 MB / 0.878 GB, free: 39.48 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/1.571, allocations: 1.815 MB / 0.8797 GB, free: 37.64 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/1.572, allocations: 191.4 kB / 0.8799 GB, free: 37.45 MB / 0.5606 GB Notification: Performance of SimCode: time 7.61e-07/1.572, allocations: 0 / 0.8799 GB, free: 37.45 MB / 0.5606 GB Notification: Performance of Templates: time 0.08041/1.652, allocations: 64.89 MB / 0.9433 GB, free: 4.52 MB / 0.5919 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe 2>&1)