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.001554/0.001553, allocations: 185.8 kB / 15.76 MB, free: 6.34 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.125/2.125, allocations: 205.4 MB / 221.9 MB, free: 13.75 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.001153/0.001153, allocations: 102.7 kB / 270.2 MB, free: 13.28 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2594/0.2594, allocations: 38.07 MB / 356.6 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004466/0.0004465, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1084, allocations: 56.33 MB / 479 MB, free: 2.035 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5879/0.6964, allocations: 120.2 MB / 0.5852 GB, free: 12.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002497/0.699, allocations: 0.8627 MB / 0.5861 GB, free: 12.47 MB / 394.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.424/1.123, allocations: 103.1 MB / 0.6867 GB, free: 11.09 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.845e-06/1.123, allocations: 0 / 0.6867 GB, free: 11.09 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003583/1.123, allocations: 59.94 kB / 0.6868 GB, free: 11.03 MB / 490.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.01265/1.136, allocations: 2.918 MB / 0.6896 GB, free: 8.027 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/1.136, allocations: 8.031 kB / 0.6896 GB, free: 8.02 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007962/1.144, allocations: 0.6756 MB / 0.6903 GB, free: 7.34 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006374/1.151, allocations: 1.63 MB / 0.6919 GB, free: 5.66 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002562/1.151, allocations: 151.8 kB / 0.692 GB, free: 5.512 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001019/1.152, allocations: 199.9 kB / 0.6922 GB, free: 5.316 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009906/1.162, allocations: 2.781 MB / 0.6949 GB, free: 2.422 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001062/1.162, allocations: 7.906 kB / 0.695 GB, free: 2.414 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003995/1.162, allocations: 79.98 kB / 0.695 GB, free: 2.336 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004417/1.163, allocations: 131.7 kB / 0.6952 GB, free: 2.207 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3666/1.529, allocations: 3.013 MB / 0.6981 GB, free: 101 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02911/1.559, allocations: 9.505 MB / 0.7074 GB, free: 98.42 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01197/1.571, allocations: 3.401 MB / 0.7107 GB, free: 97.86 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000385/1.571, allocations: 46.36 kB / 0.7107 GB, free: 97.86 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005196/1.576, allocations: 1.44 MB / 0.7122 GB, free: 97.76 MB / 490.7 MB Notification: Performance of pre-optimization done (n=218): time 6.292e-06/1.576, allocations: 0 / 0.7122 GB, free: 97.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=229): time 0.03831/1.615, allocations: 9.645 MB / 0.7216 GB, free: 96.26 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/1.615, allocations: 263.8 kB / 0.7218 GB, free: 95.97 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003895/1.619, allocations: 1.5 MB / 0.7233 GB, free: 95.81 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007189/1.619, allocations: 81.66 kB / 0.7234 GB, free: 95.78 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009106/1.62, allocations: 0.8608 MB / 0.7242 GB, free: 95.47 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001328/1.622, allocations: 0.7737 MB / 0.725 GB, free: 95.08 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002649/1.622, allocations: 43.16 kB / 0.725 GB, free: 95.08 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/1.622, allocations: 396.7 kB / 0.7254 GB, free: 94.77 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003765/1.626, allocations: 1.06 MB / 0.7264 GB, free: 94.76 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004406/1.63, allocations: 1.415 MB / 0.7278 GB, free: 94.42 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004388/1.635, allocations: 1.268 MB / 0.729 GB, free: 94.34 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.495e-05/1.635, allocations: 2.969 kB / 0.729 GB, free: 94.34 MB / 490.7 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.0101/1.645, allocations: 3.095 MB / 0.7321 GB, free: 94.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006653/1.646, allocations: 2.947 MB / 0.7349 GB, free: 91.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.272e-05/1.646, allocations: 9.406 kB / 0.7349 GB, free: 91.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/1.647, allocations: 317.7 kB / 0.7352 GB, free: 91.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004498/1.652, allocations: 0.5258 MB / 0.7358 GB, free: 91.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008309/1.66, allocations: 4.969 MB / 0.7406 GB, free: 88.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003665/1.664, allocations: 195.4 kB / 0.7408 GB, free: 88.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006373/1.665, allocations: 92.95 kB / 0.7409 GB, free: 88.34 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/1.665, allocations: 5.688 kB / 0.7409 GB, free: 88.34 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01008/1.675, allocations: 2.947 MB / 0.7438 GB, free: 88.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.929e-05/1.675, allocations: 10.66 kB / 0.7438 GB, free: 88.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001211/1.676, allocations: 282.7 kB / 0.7441 GB, free: 88.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004321/1.68, allocations: 0.5099 MB / 0.7446 GB, free: 88.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007812/1.688, allocations: 4.963 MB / 0.7494 GB, free: 85.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002496/1.691, allocations: 153.1 kB / 0.7495 GB, free: 85.44 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002612/1.691, allocations: 81.62 kB / 0.7496 GB, free: 85.44 MB / 490.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 250 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {5 17} Notification: Performance of prepare postOptimizeDAE: time 0.001839/1.693, allocations: 0.6839 MB / 0.7503 GB, free: 85.24 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006879/1.694, allocations: 223.1 kB / 0.7505 GB, free: 85.13 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/1.706, allocations: 3.497 MB / 0.7539 GB, free: 84.89 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.057e-05/1.706, allocations: 26.53 kB / 0.7539 GB, free: 84.89 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/1.706, allocations: 0 / 0.7539 GB, free: 84.89 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.395e-05/1.706, allocations: 14.81 kB / 0.754 GB, free: 84.89 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01769/1.723, allocations: 6.46 MB / 0.7603 GB, free: 82.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.597e-05/1.724, allocations: 3.625 kB / 0.7603 GB, free: 82.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003451/1.727, allocations: 433.9 kB / 0.7607 GB, free: 82.26 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002454/1.729, allocations: 493.5 kB / 0.7612 GB, free: 82.13 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002498/1.73, allocations: 60.95 kB / 0.7612 GB, free: 82.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01131/1.741, allocations: 6.312 MB / 0.7674 GB, free: 77.79 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/1.741, allocations: 8.188 kB / 0.7674 GB, free: 77.79 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01501/1.756, allocations: 5.117 MB / 0.7724 GB, free: 75.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001916/1.758, allocations: 0.5683 MB / 0.7729 GB, free: 75.14 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006364/1.759, allocations: 63.91 kB / 0.773 GB, free: 75.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002729/1.761, allocations: 185.8 kB / 0.7732 GB, free: 75.05 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006531/1.762, allocations: 212 kB / 0.7734 GB, free: 75.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002667/1.762, allocations: 76.02 kB / 0.7734 GB, free: 75 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002813/1.765, allocations: 1.169 MB / 0.7746 GB, free: 74.56 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.765, allocations: 0 / 0.7746 GB, free: 74.56 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004733/1.77, allocations: 0.9806 MB / 0.7755 GB, free: 74.45 MB / 490.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) * Number of clocked states: 0 () * 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.001706/1.772, allocations: 0.5722 MB / 0.7761 GB, free: 74.15 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01495/1.787, allocations: 5.079 MB / 0.7811 GB, free: 71.97 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/1.787, allocations: 0 / 0.7811 GB, free: 71.97 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006189/1.793, allocations: 1.982 MB / 0.783 GB, free: 71.12 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00335/1.796, allocations: 386.8 kB / 0.7834 GB, free: 70.98 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01432/1.811, allocations: 6.194 MB / 0.7894 GB, free: 67.62 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001716/1.813, allocations: 1.814 MB / 0.7912 GB, free: 66.78 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/1.814, allocations: 196.9 kB / 0.7914 GB, free: 66.76 MB / 490.7 MB Notification: Performance of SimCode: time 7.72e-07/1.814, allocations: 0 / 0.7914 GB, free: 66.76 MB / 490.7 MB Notification: Performance of Templates: time 0.07898/1.893, allocations: 49.83 MB / 0.84 GB, free: 32.41 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)