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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002465/0.002465, allocations: 190.8 kB / 7.802 MB, free: 2.5 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 1.898/1.898, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001265/0.001265, allocations: 86.5 kB / 261.4 MB, free: 13.62 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.267/0.267, allocations: 37.97 MB / 347.3 MB, free: 7.543 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.347e-06/9.378e-06, allocations: 0 / 409.3 MB, free: 47.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 56.32 MB / 465.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4334/0.5372, allocations: 119.5 MB / 0.5714 GB, free: 7.367 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.009872/0.5471, allocations: 2.192 MB / 0.5735 GB, free: 5.188 MB / 410.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: time 0.5894/1.137, allocations: 101.7 MB / 0.6728 GB, free: 111.5 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003013/1.137, allocations: 56.34 kB / 0.6728 GB, free: 111.5 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.009857/1.147, allocations: 2.657 MB / 0.6754 GB, free: 110.2 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/1.147, allocations: 15.33 kB / 0.6754 GB, free: 110.2 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007971/1.155, allocations: 0.6591 MB / 0.6761 GB, free: 110 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005458/1.16, allocations: 1.598 MB / 0.6776 GB, free: 109.5 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/1.161, allocations: 62.69 kB / 0.6777 GB, free: 109.5 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007681/1.161, allocations: 131.2 kB / 0.6778 GB, free: 109.5 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007319/1.169, allocations: 2.329 MB / 0.6801 GB, free: 109.5 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00741/1.176, allocations: 2.373 MB / 0.6824 GB, free: 109.2 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.816e-05/1.176, allocations: 20.16 kB / 0.6824 GB, free: 109.2 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003258/1.177, allocations: 0 / 0.6824 GB, free: 109.2 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003804/1.177, allocations: 136.8 kB / 0.6826 GB, free: 109.2 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02632/1.203, allocations: 9.271 MB / 0.6916 GB, free: 105 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004566/1.208, allocations: 1.549 MB / 0.6931 GB, free: 104.4 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002881/1.211, allocations: 1.061 MB / 0.6942 GB, free: 103.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001825/1.211, allocations: 37.28 kB / 0.6942 GB, free: 103.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00324/1.214, allocations: 1.24 MB / 0.6954 GB, free: 103.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=220): time 6.212e-06/1.214, allocations: 5.375 kB / 0.6954 GB, free: 103.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=231): time 0.02461/1.239, allocations: 6.957 MB / 0.7022 GB, free: 100.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/1.239, allocations: 260.7 kB / 0.7025 GB, free: 100 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00312/1.242, allocations: 1.247 MB / 0.7037 GB, free: 99.52 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007254/1.243, allocations: 45.72 kB / 0.7037 GB, free: 99.48 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005114/1.244, allocations: 0.5667 MB / 0.7043 GB, free: 99.02 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001284/1.245, allocations: 0.7513 MB / 0.705 GB, free: 98.44 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/1.245, allocations: 0 / 0.705 GB, free: 98.44 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/1.245, allocations: 402.6 kB / 0.7054 GB, free: 98.08 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002826/1.248, allocations: 0.9008 MB / 0.7063 GB, free: 97.71 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00335/1.252, allocations: 1.246 MB / 0.7075 GB, free: 96.96 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003462/1.255, allocations: 1.068 MB / 0.7085 GB, free: 96.54 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.066e-05/1.255, allocations: 3.156 kB / 0.7085 GB, free: 96.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.01023/1.265, allocations: 2.789 MB / 0.7113 GB, free: 95.54 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005941/1.266, allocations: 2.881 MB / 0.7141 GB, free: 92.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.272e-05/1.266, allocations: 7.281 kB / 0.7141 GB, free: 92.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00261/1.269, allocations: 472 kB / 0.7145 GB, free: 92.33 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004511/1.273, allocations: 485.9 kB / 0.715 GB, free: 92.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01059/1.284, allocations: 5.173 MB / 0.72 GB, free: 88.67 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002954/1.287, allocations: 129.4 kB / 0.7202 GB, free: 88.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004377/1.287, allocations: 88.77 kB / 0.7203 GB, free: 88.64 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/1.287, allocations: 8.156 kB / 0.7203 GB, free: 88.63 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009276/1.297, allocations: 2.644 MB / 0.7228 GB, free: 87.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.425e-05/1.297, allocations: 11 kB / 0.7229 GB, free: 87.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002344/1.299, allocations: 476.4 kB / 0.7233 GB, free: 87.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004078/1.303, allocations: 465.1 kB / 0.7238 GB, free: 86.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/1.313, allocations: 5.16 MB / 0.7288 GB, free: 81.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002766/1.316, allocations: 102.5 kB / 0.7289 GB, free: 81.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003572/1.316, allocations: 94.22 kB / 0.729 GB, free: 81.66 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 (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 {9 29,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0007626/1.317, allocations: 82.08 kB / 0.7291 GB, free: 81.58 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007837/1.318, allocations: 221.9 kB / 0.7293 GB, free: 81.36 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/1.328, allocations: 3.039 MB / 0.7322 GB, free: 78.73 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.179e-05/1.329, allocations: 24 kB / 0.7323 GB, free: 78.71 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/1.329, allocations: 4 kB / 0.7323 GB, free: 78.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.6e-05/1.329, allocations: 11.95 kB / 0.7323 GB, free: 78.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01906/1.348, allocations: 5.719 MB / 0.7379 GB, free: 73.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.042e-05/1.348, allocations: 4 kB / 0.7379 GB, free: 73.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004184/1.352, allocations: 443.3 kB / 0.7383 GB, free: 73.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002484/1.354, allocations: 465.2 kB / 0.7387 GB, free: 73.23 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006319/1.355, allocations: 31.88 kB / 0.7388 GB, free: 73.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01208/1.367, allocations: 5.652 MB / 0.7443 GB, free: 67.78 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/1.367, allocations: 0 / 0.7443 GB, free: 67.78 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01297/1.38, allocations: 4.559 MB / 0.7487 GB, free: 63.32 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002068/1.382, allocations: 0.545 MB / 0.7493 GB, free: 62.75 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007611/1.383, allocations: 27.98 kB / 0.7493 GB, free: 62.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003147/1.386, allocations: 139.8 kB / 0.7494 GB, free: 62.59 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006262/1.387, allocations: 173.8 kB / 0.7496 GB, free: 62.42 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002535/1.387, allocations: 75.97 kB / 0.7497 GB, free: 62.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002208/1.39, allocations: 0.9365 MB / 0.7506 GB, free: 61.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005666/1.395, allocations: 0.8399 MB / 0.7514 GB, free: 60.57 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 (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.001509/1.397, allocations: 431.3 kB / 0.7518 GB, free: 60.21 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01252/1.409, allocations: 4.457 MB / 0.7562 GB, free: 55.67 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/1.409, allocations: 0 / 0.7562 GB, free: 55.67 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005339/1.415, allocations: 1.686 MB / 0.7578 GB, free: 53.97 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003583/1.418, allocations: 342.2 kB / 0.7581 GB, free: 53.65 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01502/1.433, allocations: 4.325 MB / 0.7624 GB, free: 49.27 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003493/1.437, allocations: 2.019 MB / 0.7643 GB, free: 47.21 MB / 474.7 MB Notification: Performance of SimCode: time 1.292e-06/1.437, allocations: 0 / 0.7643 GB, free: 47.21 MB / 474.7 MB Notification: Performance of Templates: time 0.0805/1.518, allocations: 50.03 MB / 0.8132 GB, free: 13.18 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)