Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001113/0.001113, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.476/1.476, allocations: 194.3 MB / 203.1 MB, free: 9.262 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001805/0.001805, allocations: 123.9 kB / 248.1 MB, free: 6.336 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2841/0.2841, allocations: 37.92 MB / 330.9 MB, free: 7.309 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.53e-05/1.523e-05, allocations: 4 kB / 390.4 MB, free: 78.23 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 53.24 MB / 443.6 MB, free: 25.1 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3536/0.4618, allocations: 95.15 MB / 0.5261 GB, free: 9.562 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.4621, allocations: 86.67 kB / 0.5262 GB, free: 9.551 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04273/0.5048, allocations: 18.36 MB / 0.5441 GB, free: 13.89 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5049, allocations: 0 / 0.5441 GB, free: 13.89 MB / 363.1 MB Notification: Performance of Transformations before backend: time 7.057e-05/0.505, allocations: 12 kB / 0.5441 GB, free: 13.88 MB / 363.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002015/0.507, allocations: 0.8363 MB / 0.545 GB, free: 13.03 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.5071, allocations: 8.031 kB / 0.545 GB, free: 13.02 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001105/0.5082, allocations: 155.1 kB / 0.5451 GB, free: 12.87 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009778/0.5092, allocations: 488.8 kB / 0.5456 GB, free: 12.44 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.5092, allocations: 12 kB / 0.5456 GB, free: 12.43 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.5093, allocations: 38.66 kB / 0.5456 GB, free: 12.39 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007563/0.5101, allocations: 398.8 kB / 0.546 GB, free: 12.15 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009082/0.511, allocations: 0.5152 MB / 0.5465 GB, free: 11.75 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.5111, allocations: 4 kB / 0.5465 GB, free: 11.74 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.592e-05/0.5111, allocations: 0 / 0.5465 GB, free: 11.74 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-05/0.5112, allocations: 29.3 kB / 0.5465 GB, free: 11.71 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0037/0.5149, allocations: 2.456 MB / 0.5489 GB, free: 9.637 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009138/0.5158, allocations: 0.505 MB / 0.5494 GB, free: 9.246 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002415/0.5161, allocations: 156.5 kB / 0.5496 GB, free: 9.145 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.309e-05/0.5161, allocations: 4.328 kB / 0.5496 GB, free: 9.141 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003864/0.5165, allocations: 236.7 kB / 0.5498 GB, free: 8.949 MB / 363.1 MB Notification: Performance of pre-optimization done (n=41): time 2.354e-06/0.5165, allocations: 0 / 0.5498 GB, free: 8.949 MB / 363.1 MB Notification: Performance of matching and sorting (n=41): time 0.0007437/0.5173, allocations: 389.7 kB / 0.5502 GB, free: 8.652 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.24e-05/0.5174, allocations: 136.5 kB / 0.5503 GB, free: 8.488 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003831/0.5178, allocations: 329.3 kB / 0.5506 GB, free: 8.23 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 4.147e-05/0.5178, allocations: 29.33 kB / 0.5507 GB, free: 8.199 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.518, allocations: 282.2 kB / 0.5509 GB, free: 7.988 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.5182, allocations: 132.5 kB / 0.551 GB, free: 7.875 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.345e-05/0.5182, allocations: 4 kB / 0.5511 GB, free: 7.871 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.5184, allocations: 355.3 kB / 0.5514 GB, free: 7.535 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002137/0.5186, allocations: 135.6 kB / 0.5515 GB, free: 7.457 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002949/0.5189, allocations: 241.5 kB / 0.5517 GB, free: 7.238 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.5192, allocations: 154.6 kB / 0.5519 GB, free: 7.145 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.5192, allocations: 7.938 kB / 0.5519 GB, free: 7.137 MB / 363.1 MB Notification: Performance of matching and sorting (n=57) (initialization): time 0.001099/0.5203, allocations: 0.5548 MB / 0.5524 GB, free: 6.699 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005465/0.5208, allocations: 1.165 MB / 0.5536 GB, free: 5.461 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.5209, allocations: 4 kB / 0.5536 GB, free: 5.457 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000446/0.5213, allocations: 127.4 kB / 0.5537 GB, free: 5.363 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003937/0.5217, allocations: 99.19 kB / 0.5538 GB, free: 5.27 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009618/0.5227, allocations: 0.8197 MB / 0.5546 GB, free: 4.535 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004935/0.5232, allocations: 71.55 kB / 0.5547 GB, free: 4.465 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.886e-05/0.5233, allocations: 19.88 kB / 0.5547 GB, free: 4.449 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.5233, allocations: 7.953 kB / 0.5547 GB, free: 4.441 MB / 363.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009874/0.5243, allocations: 455.6 kB / 0.5551 GB, free: 4.117 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.768e-06/0.5243, allocations: 0 / 0.5551 GB, free: 4.117 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002947/0.5246, allocations: 115.4 kB / 0.5552 GB, free: 4.031 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003567/0.525, allocations: 91.75 kB / 0.5553 GB, free: 3.945 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00248/0.5275, allocations: 2.094 MB / 0.5574 GB, free: 2.113 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004428/0.5279, allocations: 59.7 kB / 0.5574 GB, free: 2.055 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/0.528, allocations: 15.56 kB / 0.5574 GB, free: 2.043 MB / 363.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hydroPlant.primaryControl.gainPID.y:VARIABLE() "Output signal connector" type: Real hydroPlant.add.y:VARIABLE() "Connector of Real output signal" 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: 6 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002124/0.5282, allocations: 123.5 kB / 0.5576 GB, free: 1.922 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.873e-05/0.5283, allocations: 43.44 kB / 0.5576 GB, free: 1.879 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007231/0.529, allocations: 393.5 kB / 0.558 GB, free: 1.602 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.529, allocations: 4 kB / 0.558 GB, free: 1.598 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.529, allocations: 3.953 kB / 0.558 GB, free: 1.594 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.148e-06/0.5291, allocations: 3.984 kB / 0.558 GB, free: 1.59 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001428/0.5305, allocations: 0.9432 MB / 0.5589 GB, free: 0.8516 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-05/0.5305, allocations: 3.953 kB / 0.5589 GB, free: 0.8477 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004567/0.531, allocations: 102.6 kB / 0.559 GB, free: 0.75 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.61e-05/0.5311, allocations: 36.14 kB / 0.5591 GB, free: 0.7188 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.285e-05/0.5311, allocations: 0 / 0.5591 GB, free: 0.7188 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009453/0.5321, allocations: 1.304 MB / 0.5603 GB, free: 15.38 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5321, allocations: 96 / 0.5603 GB, free: 15.38 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008992/0.533, allocations: 0.6868 MB / 0.561 GB, free: 14.84 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002091/0.5332, allocations: 165 kB / 0.5612 GB, free: 14.68 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.634e-05/0.5333, allocations: 0 / 0.5612 GB, free: 14.68 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003885/0.5337, allocations: 47.44 kB / 0.5612 GB, free: 14.63 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.5338, allocations: 39.22 kB / 0.5612 GB, free: 14.6 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.767e-05/0.5338, allocations: 11.69 kB / 0.5612 GB, free: 14.59 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0002898/0.5341, allocations: 254.6 kB / 0.5615 GB, free: 14.4 MB / 379.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5342, allocations: 0 / 0.5615 GB, free: 14.4 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0008845/0.535, allocations: 231.2 kB / 0.5617 GB, free: 14.17 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001927/0.5352, allocations: 114.7 kB / 0.5618 GB, free: 14.05 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.537, allocations: 0.9093 MB / 0.5627 GB, free: 13.31 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.537, allocations: 0 / 0.5627 GB, free: 13.31 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000376/0.5374, allocations: 276.3 kB / 0.563 GB, free: 13.09 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005366/0.5379, allocations: 86.94 kB / 0.5631 GB, free: 13.02 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.5397, allocations: 0.8639 MB / 0.5639 GB, free: 12.22 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000559/0.5402, allocations: 0.8965 MB / 0.5648 GB, free: 11.31 MB / 379.1 MB Notification: Performance of simCode: alias equations: time 0.0004777/0.5407, allocations: 127.2 kB / 0.5649 GB, free: 11.18 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.5408, allocations: 27.44 kB / 0.5649 GB, free: 11.16 MB / 379.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5408, allocations: 0 / 0.5649 GB, free: 11.16 MB / 379.1 MB Notification: Performance of Templates: time 0.01296/0.5538, allocations: 6.653 MB / 0.5714 GB, free: 4.535 MB / 379.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)