Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001645/0.001645, allocations: 183.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 239.7 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009712/0.0009711, allocations: 99.56 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4378/0.4378, allocations: 78.48 MB / 418.5 MB, free: 8.824 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 63.91 kB / 497.4 MB, free: 10.7 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2473, allocations: 68.13 MB / 0.5523 GB, free: 20.2 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.008536/0.2559, allocations: 14.46 MB / 0.5664 GB, free: 5.676 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006014/0.262, allocations: 3.612 MB / 0.57 GB, free: 2.055 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001747/0.2637, allocations: 32 kB / 0.57 GB, free: 2.023 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001021/0.2648, allocations: 441.1 kB / 0.5704 GB, free: 1.59 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002754/0.2676, allocations: 1.231 MB / 0.5716 GB, free: 368 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002726/0.2703, allocations: 1.418 MB / 0.573 GB, free: 14.96 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003417/0.2737, allocations: 3.566 MB / 0.5765 GB, free: 11.38 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009266/0.2747, allocations: 0.804 MB / 0.5773 GB, free: 10.53 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001362/0.276, allocations: 1.403 MB / 0.5786 GB, free: 9.117 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001554/0.2776, allocations: 1.858 MB / 0.5804 GB, free: 7.25 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00031/0.2779, allocations: 176 kB / 0.5806 GB, free: 7.078 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006344/0.2786, allocations: 303.9 kB / 0.5809 GB, free: 6.781 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005018/0.2791, allocations: 0.6647 MB / 0.5816 GB, free: 6.113 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.2802, allocations: 1.526 MB / 0.583 GB, free: 4.578 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002822/0.283, allocations: 3.806 MB / 0.5868 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2831, allocations: 3.938 kB / 0.5868 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.2831, allocations: 3.938 kB / 0.5868 GB, free: 0.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.2e-05/0.2831, allocations: 0 / 0.5868 GB, free: 0.75 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02146/0.3046, allocations: 6.579 MB / 0.5932 GB, free: 10.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.3046, allocations: 12.03 kB / 0.5932 GB, free: 10.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01377/0.3184, allocations: 2.275 MB / 0.5954 GB, free: 7.781 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003096/0.3215, allocations: 1.867 MB / 0.5972 GB, free: 5.848 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005922/0.3221, allocations: 0.7291 MB / 0.598 GB, free: 5.004 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003706/0.3225, allocations: 212 kB / 0.5982 GB, free: 4.797 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005534/0.328, allocations: 3.028 MB / 0.6011 GB, free: 1.691 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.022e-05/0.3281, allocations: 3.938 kB / 0.6011 GB, free: 1.688 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002253/0.3283, allocations: 87.94 kB / 0.6012 GB, free: 1.602 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.881e-05/0.3284, allocations: 56 kB / 0.6013 GB, free: 1.547 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005467/0.3339, allocations: 2.78 MB / 0.604 GB, free: 14.75 MB / 426.7 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.01579/0.3497, allocations: 9.891 MB / 0.6136 GB, free: 4.438 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01056/0.3602, allocations: 4.193 MB / 0.6177 GB, free: 112 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004168/0.3644, allocations: 1.97 MB / 0.6196 GB, free: 14.13 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002845/0.3647, allocations: 41.88 kB / 0.6197 GB, free: 14.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004569/0.3693, allocations: 2.232 MB / 0.6219 GB, free: 11.84 MB / 442.7 MB Notification: Performance of pre-optimization done (n=248): time 3.847e-06/0.3693, allocations: 0 / 0.6219 GB, free: 11.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=248): time 0.1169/0.4862, allocations: 27.3 MB / 0.6485 GB, free: 420 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.31e-05/0.4864, allocations: 188.3 kB / 0.6487 GB, free: 192 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00363/0.49, allocations: 2.269 MB / 0.6509 GB, free: 13.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005356/0.4906, allocations: 73.7 kB / 0.651 GB, free: 13.82 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000863/0.4914, allocations: 1.164 MB / 0.6521 GB, free: 12.64 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001177/0.4926, allocations: 0.8665 MB / 0.653 GB, free: 11.77 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001726/0.4944, allocations: 0.5618 MB / 0.6535 GB, free: 11.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.105e-05/0.4944, allocations: 305.1 kB / 0.6538 GB, free: 10.89 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004456/0.4989, allocations: 1.958 MB / 0.6557 GB, free: 8.934 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004671/0.5036, allocations: 2.322 MB / 0.658 GB, free: 6.52 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05348/0.5571, allocations: 14.04 MB / 0.6717 GB, free: 8.242 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.32e-05/0.5571, allocations: 4 kB / 0.6717 GB, free: 8.238 MB / 490.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.2553/0.8124, allocations: 12.5 MB / 0.6839 GB, free: 106.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.705e-05/0.8126, allocations: 115.3 kB / 0.684 GB, free: 106.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.236e-05/0.8126, allocations: 6.688 kB / 0.684 GB, free: 106.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01807/0.8307, allocations: 5.294 MB / 0.6892 GB, free: 106.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002978/0.8337, allocations: 0.5656 MB / 0.6898 GB, free: 106.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05203/0.8857, allocations: 21.3 MB / 0.7106 GB, free: 98.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004083/0.8898, allocations: 496.3 kB / 0.711 GB, free: 97.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000526/0.8904, allocations: 116 kB / 0.7112 GB, free: 97.84 MB / 490.7 MB Warning: Assuming fixed start value for the following 7 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 order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_1.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 (330): * Single equations (assignments): 325 * 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): 1 system {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00128/0.8917, allocations: 0.5364 MB / 0.7117 GB, free: 97.29 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000605/0.8923, allocations: 297 kB / 0.712 GB, free: 97.05 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03724/0.9295, allocations: 11.9 MB / 0.7236 GB, free: 85.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/0.9296, allocations: 28 kB / 0.7236 GB, free: 85.07 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.922e-05/0.9296, allocations: 16 kB / 0.7236 GB, free: 85.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.06e-05/0.9297, allocations: 15.95 kB / 0.7236 GB, free: 85.04 MB / 490.7 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.04033/0.97, allocations: 15.51 MB / 0.7388 GB, free: 69.47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/0.97, allocations: 0 / 0.7388 GB, free: 69.47 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.9714, allocations: 247.7 kB / 0.739 GB, free: 69.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01656/0.988, allocations: 5.258 MB / 0.7442 GB, free: 63.96 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004537/0.9885, allocations: 51.98 kB / 0.7442 GB, free: 63.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04909/1.038, allocations: 22.69 MB / 0.7664 GB, free: 40.84 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/1.038, allocations: 128 / 0.7664 GB, free: 40.84 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.275/1.313, allocations: 93.21 MB / 0.8574 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008589/1.314, allocations: 408.9 kB / 0.8578 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008457/1.314, allocations: 44 kB / 0.8578 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00359/1.318, allocations: 303.6 kB / 0.8581 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002418/1.32, allocations: 0.5721 MB / 0.8587 GB, free: 9.539 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004426/1.321, allocations: 71.73 kB / 0.8587 GB, free: 9.473 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002765/1.324, allocations: 1.495 MB / 0.8602 GB, free: 7.973 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.2e-07/1.324, allocations: 0 / 0.8602 GB, free: 7.973 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005575/1.329, allocations: 1.647 MB / 0.8618 GB, free: 6.324 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,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 (157): * Single equations (assignments): 152 * 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 {(65,23,7.8%)} * 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.0005752/1.33, allocations: 177.5 kB / 0.862 GB, free: 6.141 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01916/1.349, allocations: 6.626 MB / 0.8684 GB, free: 15.44 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/1.349, allocations: 0 / 0.8684 GB, free: 15.44 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01415/1.363, allocations: 4.395 MB / 0.8727 GB, free: 10.98 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003109/1.366, allocations: 263.2 kB / 0.873 GB, free: 10.72 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02314/1.39, allocations: 10.07 MB / 0.8828 GB, free: 0.5508 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002179/1.392, allocations: 1.923 MB / 0.8847 GB, free: 14.59 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001535/1.393, allocations: 270.4 kB / 0.885 GB, free: 14.32 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008328/1.394, allocations: 167.4 kB / 0.8851 GB, free: 14.16 MB / 0.573 GB Notification: Performance of SimCode: time 8.41e-07/1.394, allocations: 0 / 0.8851 GB, free: 14.16 MB / 0.573 GB Notification: Performance of Templates: time 0.333/1.727, allocations: 86.03 MB / 0.9691 GB, free: 142.7 MB / 0.573 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)