Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.PowerWorld.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.PowerWorld,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.PowerWorld") translateModel(PowerSystems.Examples.PowerWorld.PowerWorld,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.PowerWorld") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002372/0.002372, allocations: 186 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.123/2.123, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 86.31 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.274/0.274, allocations: 37.97 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.178e-05/3.18e-05, allocations: 4 kB / 416.8 MB, free: 41.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1071, allocations: 56.3 MB / 473.1 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5818/0.6889, allocations: 120.2 MB / 0.5794 GB, free: 15.56 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002518/0.6915, allocations: 0.673 MB / 0.58 GB, free: 14.89 MB / 426.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:465:11-465:52:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:468:7-475:13:writable] Warning: Returning false from overconstrained operator applied to array components having size zero: Connections.isRoot({}). Notification: Performance of FrontEnd - DAE generated: time 0.7332/1.425, allocations: 102.6 MB / 0.6802 GB, free: 112.3 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.983e-06/1.425, allocations: 0 / 0.6802 GB, free: 112.3 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003273/1.425, allocations: 56.78 kB / 0.6803 GB, free: 112.3 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01019/1.435, allocations: 2.573 MB / 0.6828 GB, free: 111 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/1.435, allocations: 14.94 kB / 0.6828 GB, free: 111 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007627/1.443, allocations: 0.6623 MB / 0.6834 GB, free: 110.9 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005631/1.449, allocations: 1.58 MB / 0.685 GB, free: 110.4 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002322/1.449, allocations: 150.4 kB / 0.6851 GB, free: 110.4 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/1.45, allocations: 210.5 kB / 0.6853 GB, free: 110.4 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00842/1.458, allocations: 2.605 MB / 0.6879 GB, free: 109.3 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001124/1.459, allocations: 11.19 kB / 0.6879 GB, free: 109.3 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004023/1.459, allocations: 84.03 kB / 0.688 GB, free: 109.3 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000393/1.459, allocations: 129.5 kB / 0.6881 GB, free: 109.2 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008548/1.468, allocations: 2.713 MB / 0.6907 GB, free: 108.4 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02846/1.497, allocations: 9.486 MB / 0.7 GB, free: 103.1 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008385/1.505, allocations: 3.039 MB / 0.703 GB, free: 101.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003035/1.508, allocations: 1.085 MB / 0.704 GB, free: 101.1 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002437/1.508, allocations: 40.98 kB / 0.7041 GB, free: 101.1 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003633/1.512, allocations: 1.286 MB / 0.7053 GB, free: 100.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=218): time 6.562e-06/1.512, allocations: 4 kB / 0.7053 GB, free: 100.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=229): time 0.02309/1.535, allocations: 7.336 MB / 0.7125 GB, free: 97.25 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/1.535, allocations: 263.9 kB / 0.7127 GB, free: 96.97 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003325/1.539, allocations: 1.44 MB / 0.7141 GB, free: 96.4 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006816/1.539, allocations: 84.69 kB / 0.7142 GB, free: 96.33 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009286/1.54, allocations: 0.8593 MB / 0.7151 GB, free: 95.59 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001224/1.542, allocations: 0.7731 MB / 0.7158 GB, free: 95 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002366/1.542, allocations: 46.06 kB / 0.7159 GB, free: 94.96 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001799/1.542, allocations: 391.8 kB / 0.7162 GB, free: 94.62 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002666/1.545, allocations: 0.9003 MB / 0.7171 GB, free: 94.25 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003234/1.548, allocations: 1.266 MB / 0.7184 GB, free: 93.36 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003146/1.551, allocations: 1.115 MB / 0.7194 GB, free: 92.37 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.237e-05/1.551, allocations: 4 kB / 0.7194 GB, free: 92.36 MB / 474.7 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.008871/1.56, allocations: 2.97 MB / 0.7223 GB, free: 89.63 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006216/1.561, allocations: 2.942 MB / 0.7252 GB, free: 86.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.464e-05/1.561, allocations: 8 kB / 0.7252 GB, free: 86.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002675/1.564, allocations: 0.5458 MB / 0.7258 GB, free: 85.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004103/1.568, allocations: 491.3 kB / 0.7262 GB, free: 85.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/1.578, allocations: 5.69 MB / 0.7318 GB, free: 79.47 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003596/1.582, allocations: 199.7 kB / 0.732 GB, free: 79.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00065/1.582, allocations: 83.97 kB / 0.7321 GB, free: 79.19 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/1.582, allocations: 4 kB / 0.7321 GB, free: 79.19 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009164/1.591, allocations: 2.9 MB / 0.7349 GB, free: 76.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.781e-05/1.592, allocations: 8 kB / 0.7349 GB, free: 76.26 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002172/1.594, allocations: 473.5 kB / 0.7353 GB, free: 75.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00394/1.598, allocations: 467.3 kB / 0.7358 GB, free: 75.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009931/1.608, allocations: 5.653 MB / 0.7413 GB, free: 69.42 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002548/1.61, allocations: 151.8 kB / 0.7415 GB, free: 69.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003834/1.611, allocations: 79.98 kB / 0.7415 GB, free: 69.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 31 ($whenCondition5,$PRE.windFarm.wind.nextTimeEvent,$whenCondition3,$PRE.city.data.nextTimeEvent,$whenCondition2,$PRE.dispatcher.data.nextTimeEvent,system.initime,$whenCondition6,$whenCondition4,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,dispatcher.data.nextTimeEvent,$PRE.dispatcher.data.nextTimeEventScaled,dispatcher.data.nextTimeEventScaled,$PRE.dispatcher.hydroDaily.T_start,dispatcher.hydroDaily.T_start,$PRE.dispatcher.hydroDaily.count,dispatcher.hydroDaily.count,hydroPlant.reservoirLevel.local_reset,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset,dispatcher.secondaryControl.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (230): * Single equations (assignments): 226 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 33,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0007028/1.611, allocations: 243.6 kB / 0.7418 GB, free: 68.95 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007111/1.612, allocations: 221.3 kB / 0.742 GB, free: 68.73 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01108/1.623, allocations: 3.194 MB / 0.7451 GB, free: 65.48 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.439e-05/1.623, allocations: 24 kB / 0.7451 GB, free: 65.45 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/1.623, allocations: 4 kB / 0.7451 GB, free: 65.45 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.11e-05/1.623, allocations: 15.7 kB / 0.7451 GB, free: 65.44 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01797/1.641, allocations: 6.134 MB / 0.7511 GB, free: 59.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.249e-05/1.641, allocations: 288 / 0.7511 GB, free: 59.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003943/1.645, allocations: 451.3 kB / 0.7516 GB, free: 58.77 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002318/1.648, allocations: 469 kB / 0.752 GB, free: 58.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006769/1.649, allocations: 63.97 kB / 0.7521 GB, free: 58.24 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01132/1.66, allocations: 6.098 MB / 0.758 GB, free: 51.89 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.66, allocations: 0 / 0.758 GB, free: 51.89 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01252/1.672, allocations: 4.649 MB / 0.7626 GB, free: 47.05 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00212/1.675, allocations: 0.5565 MB / 0.7631 GB, free: 46.47 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007248/1.675, allocations: 75.98 kB / 0.7632 GB, free: 46.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003016/1.678, allocations: 171.8 kB / 0.7633 GB, free: 46.23 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00076/1.679, allocations: 217.6 kB / 0.7636 GB, free: 46.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002468/1.679, allocations: 79.97 kB / 0.7636 GB, free: 45.94 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00245/1.682, allocations: 1.104 MB / 0.7647 GB, free: 44.84 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.682, allocations: 0 / 0.7647 GB, free: 44.84 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005648/1.688, allocations: 1 MB / 0.7657 GB, free: 43.84 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 13 (dispatcher.secondaryControl.I.y,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y,hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1],system.theta) * Number of discrete variables: 17 (system.initime,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count,city.data.nextTimeEvent,city.data.nextTimeEventScaled,dispatcher.data.nextTimeEvent,dispatcher.data.nextTimeEventScaled,dispatcher.hydroDaily.T_start,dispatcher.hydroDaily.count) * Number of discrete states: 8 (windFarm.wind.nextTimeEvent,windFarm.disturbance.count,city.data.nextTimeEvent,dispatcher.data.nextTimeEvent,dispatcher.hydroDaily.count,dispatcher.data.nextTimeEventScaled,city.data.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (226): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {6 30,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001709/1.689, allocations: 0.5153 MB / 0.7662 GB, free: 43.39 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01306/1.702, allocations: 4.837 MB / 0.7709 GB, free: 38.43 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/1.703, allocations: 0 / 0.7709 GB, free: 38.43 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005248/1.708, allocations: 1.81 MB / 0.7727 GB, free: 36.59 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003556/1.711, allocations: 390.4 kB / 0.773 GB, free: 36.21 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/1.724, allocations: 4.323 MB / 0.7773 GB, free: 31.84 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001701/1.726, allocations: 1.839 MB / 0.7791 GB, free: 29.96 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001614/1.728, allocations: 187.4 kB / 0.7792 GB, free: 29.78 MB / 474.7 MB Notification: Performance of SimCode: time 1.293e-06/1.728, allocations: 7.938 kB / 0.7793 GB, free: 29.77 MB / 474.7 MB Notification: Performance of Templates: time 0.418/2.146, allocations: 49.58 MB / 0.8277 GB, free: 111.5 MB / 490.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.PowerWorld.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.PowerWorld.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.PowerWorld.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.PowerWorld.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.PowerWorld.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.PowerWorld --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.PowerWorld.pipe 2>&1)