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.001492/0.001492, allocations: 180.1 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.026/2.026, allocations: 205.3 MB / 213.7 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001128/0.001128, allocations: 78.66 kB / 261.8 MB, free: 1.672 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.2794/0.2794, allocations: 37.99 MB / 347.7 MB, free: 5.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.883e-05/1.891e-05, allocations: 0 / 409.8 MB, free: 35.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1101, allocations: 56.33 MB / 466.2 MB, free: 10.82 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5716/0.6817, allocations: 119.5 MB / 0.5719 GB, free: 9.434 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002049/0.6839, allocations: 0.5731 MB / 0.5725 GB, free: 9.16 MB / 378.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.4126/1.096, allocations: 102.1 MB / 0.6722 GB, free: 9.027 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.784e-06/1.097, allocations: 4 kB / 0.6722 GB, free: 9.023 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003096/1.097, allocations: 56 kB / 0.6722 GB, free: 8.969 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.01008/1.107, allocations: 2.577 MB / 0.6747 GB, free: 6.312 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/1.107, allocations: 8.031 kB / 0.6747 GB, free: 6.305 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007619/1.115, allocations: 0.6755 MB / 0.6754 GB, free: 5.625 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005858/1.121, allocations: 1.56 MB / 0.6769 GB, free: 4.016 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/1.121, allocations: 71.98 kB / 0.677 GB, free: 3.945 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008491/1.122, allocations: 123.9 kB / 0.6771 GB, free: 3.824 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007842/1.129, allocations: 2.307 MB / 0.6794 GB, free: 1.512 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00701/1.137, allocations: 2.333 MB / 0.6816 GB, free: 15.07 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.711e-05/1.137, allocations: 11.89 kB / 0.6817 GB, free: 15.05 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002979/1.137, allocations: 8 kB / 0.6817 GB, free: 15.05 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004399/1.137, allocations: 135.7 kB / 0.6818 GB, free: 14.91 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02823/1.166, allocations: 9.209 MB / 0.6908 GB, free: 5.457 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008443/1.174, allocations: 2.941 MB / 0.6937 GB, free: 2.422 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002988/1.177, allocations: 1.042 MB / 0.6947 GB, free: 1.379 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002225/1.177, allocations: 37.95 kB / 0.6947 GB, free: 1.344 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003507/1.181, allocations: 1.237 MB / 0.6959 GB, free: 88 kB / 490.7 MB Notification: Performance of pre-optimization done (n=220): time 7.143e-06/1.181, allocations: 0 / 0.6959 GB, free: 88 kB / 490.7 MB Notification: Performance of matching and sorting (n=231): time 0.3486/1.53, allocations: 6.931 MB / 0.7027 GB, free: 104.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/1.53, allocations: 264.7 kB / 0.7029 GB, free: 104.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002959/1.533, allocations: 1.23 MB / 0.7041 GB, free: 104 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006877/1.534, allocations: 42.58 kB / 0.7042 GB, free: 104 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009755/1.535, allocations: 0.8827 MB / 0.705 GB, free: 103.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001342/1.536, allocations: 0.7524 MB / 0.7058 GB, free: 103.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/1.536, allocations: 1.156 kB / 0.7058 GB, free: 103.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/1.536, allocations: 394.8 kB / 0.7062 GB, free: 102.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00245/1.539, allocations: 0.8669 MB / 0.707 GB, free: 102.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002915/1.542, allocations: 1.219 MB / 0.7082 GB, free: 102.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003096/1.545, allocations: 1.045 MB / 0.7092 GB, free: 102.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.937e-05/1.545, allocations: 3.906 kB / 0.7092 GB, free: 102.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.009351/1.554, allocations: 2.744 MB / 0.7119 GB, free: 102.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006866/1.555, allocations: 2.937 MB / 0.7148 GB, free: 99.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.014e-05/1.555, allocations: 8.5 kB / 0.7148 GB, free: 99.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002683/1.558, allocations: 0.4947 MB / 0.7153 GB, free: 99.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004265/1.562, allocations: 487.6 kB / 0.7157 GB, free: 99.35 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009777/1.572, allocations: 5.457 MB / 0.7211 GB, free: 96.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003431/1.575, allocations: 150.4 kB / 0.7212 GB, free: 96.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00054/1.576, allocations: 83.5 kB / 0.7213 GB, free: 96.66 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/1.576, allocations: 3.438 kB / 0.7213 GB, free: 96.66 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008077/1.584, allocations: 2.632 MB / 0.7238 GB, free: 96.58 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-05/1.584, allocations: 11.48 kB / 0.7239 GB, free: 96.58 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002308/1.587, allocations: 474.8 kB / 0.7243 GB, free: 96.55 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003988/1.591, allocations: 466 kB / 0.7248 GB, free: 96.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009329/1.6, allocations: 5.408 MB / 0.73 GB, free: 93.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00251/1.603, allocations: 111 kB / 0.7301 GB, free: 93.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003058/1.603, allocations: 82.14 kB / 0.7302 GB, free: 93.88 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 228 * 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.0007152/1.604, allocations: 172.6 kB / 0.7304 GB, free: 93.77 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006991/1.604, allocations: 213.7 kB / 0.7306 GB, free: 93.66 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008594/1.613, allocations: 2.993 MB / 0.7335 GB, free: 93.44 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.289e-05/1.613, allocations: 28.44 kB / 0.7335 GB, free: 93.44 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/1.613, allocations: 3.609 kB / 0.7335 GB, free: 93.44 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.971e-05/1.613, allocations: 13.91 kB / 0.7336 GB, free: 93.44 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01625/1.629, allocations: 5.716 MB / 0.7391 GB, free: 92.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.809e-05/1.629, allocations: 3.812 kB / 0.7391 GB, free: 92.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003803/1.633, allocations: 440.8 kB / 0.7396 GB, free: 92.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002212/1.635, allocations: 456.9 kB / 0.74 GB, free: 92.82 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005652/1.636, allocations: 30.17 kB / 0.74 GB, free: 92.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01079/1.647, allocations: 5.907 MB / 0.7458 GB, free: 90.17 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/1.647, allocations: 11.83 kB / 0.7458 GB, free: 90.16 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01119/1.658, allocations: 4.477 MB / 0.7502 GB, free: 89.42 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00203/1.66, allocations: 0.5493 MB / 0.7507 GB, free: 89.21 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007596/1.661, allocations: 24.91 kB / 0.7507 GB, free: 89.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002851/1.664, allocations: 140 kB / 0.7509 GB, free: 89.21 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006713/1.665, allocations: 215.7 kB / 0.7511 GB, free: 89.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002442/1.665, allocations: 85.14 kB / 0.7512 GB, free: 89.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001883/1.667, allocations: 0.9215 MB / 0.7521 GB, free: 89.09 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.667, allocations: 0 / 0.7521 GB, free: 89.09 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00516/1.672, allocations: 0.8676 MB / 0.7529 GB, free: 89.09 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (228): * Single equations (assignments): 215 * 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.001474/1.673, allocations: 459.8 kB / 0.7533 GB, free: 88.94 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0117/1.685, allocations: 4.649 MB / 0.7579 GB, free: 87.11 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/1.685, allocations: 0 / 0.7579 GB, free: 87.11 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004723/1.69, allocations: 1.735 MB / 0.7596 GB, free: 86.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003251/1.693, allocations: 340.7 kB / 0.7599 GB, free: 86.27 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01198/1.705, allocations: 4.206 MB / 0.764 GB, free: 84.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001824/1.707, allocations: 1.829 MB / 0.7658 GB, free: 83.66 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001596/1.709, allocations: 189 kB / 0.766 GB, free: 83.64 MB / 490.7 MB Notification: Performance of SimCode: time 1.093e-06/1.709, allocations: 4 kB / 0.766 GB, free: 83.63 MB / 490.7 MB Notification: Performance of Templates: time 0.08086/1.79, allocations: 49.03 MB / 0.8139 GB, free: 62.73 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)