Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.PowerWorld,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_PowerWorld",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.PowerWorld,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_PowerWorld",fmuType="me",version="2.0",platforms={"static"}) [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001556/0.001556, allocations: 183.7 kB / 8.134 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.603/1.603, allocations: 205.2 MB / 213.7 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009438/0.0009438, allocations: 90.27 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1997/0.1997, allocations: 37.97 MB / 347.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2225/0.4223, allocations: 62.43 MB / 410.1 MB, free: 46.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.5317, allocations: 56.32 MB / 466.4 MB, free: 6.367 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3749/0.9067, allocations: 119.4 MB / 0.5721 GB, free: 7.047 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.006702/0.9135, allocations: 2.189 MB / 0.5743 GB, free: 4.879 MB / 410.7 MB [/home/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);. [/home/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: 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.5462/1.46, allocations: 104.4 MB / 0.6762 GB, free: 110.3 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.57e-05/1.46, allocations: 8.562 kB / 0.6762 GB, free: 110.3 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006326/1.466, allocations: 0.6624 MB / 0.6768 GB, free: 110.1 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005542/1.472, allocations: 1.592 MB / 0.6784 GB, free: 109.6 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002229/1.472, allocations: 63.09 kB / 0.6785 GB, free: 109.6 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001115/1.473, allocations: 129.3 kB / 0.6786 GB, free: 109.6 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006106/1.479, allocations: 2.331 MB / 0.6809 GB, free: 109.6 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004623/1.484, allocations: 2.377 MB / 0.6832 GB, free: 109.3 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.124e-05/1.484, allocations: 7.406 kB / 0.6832 GB, free: 109.3 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001929/1.484, allocations: 7.438 kB / 0.6832 GB, free: 109.3 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002477/1.484, allocations: 135.8 kB / 0.6833 GB, free: 109.3 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01686/1.501, allocations: 9.272 MB / 0.6924 GB, free: 105 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002877/1.504, allocations: 1.547 MB / 0.6939 GB, free: 104.4 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001458/1.506, allocations: 1.063 MB / 0.6949 GB, free: 103.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001377/1.506, allocations: 41.62 kB / 0.695 GB, free: 103.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002071/1.508, allocations: 1.23 MB / 0.6962 GB, free: 103.4 MB / 474.7 MB Notification: Performance of pre-optimization done (n=220): time 3.767e-06/1.508, allocations: 0 / 0.6962 GB, free: 103.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=231): time 0.01611/1.524, allocations: 6.966 MB / 0.703 GB, free: 100.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/1.524, allocations: 268.9 kB / 0.7032 GB, free: 100 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002614/1.527, allocations: 1.248 MB / 0.7044 GB, free: 99.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001748/1.527, allocations: 44.59 kB / 0.7045 GB, free: 99.46 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007404/1.528, allocations: 0.6447 MB / 0.7051 GB, free: 99.01 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008149/1.529, allocations: 0.7423 MB / 0.7058 GB, free: 98.43 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/1.529, allocations: 1.281 kB / 0.7058 GB, free: 98.43 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001927/1.529, allocations: 389.8 kB / 0.7062 GB, free: 98.09 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001731/1.531, allocations: 0.9042 MB / 0.7071 GB, free: 97.71 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002323/1.533, allocations: 1.242 MB / 0.7083 GB, free: 96.97 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002249/1.535, allocations: 1.074 MB / 0.7094 GB, free: 96.54 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-06/1.535, allocations: 2.344 kB / 0.7094 GB, free: 96.54 MB / 474.7 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006641/1.542, allocations: 2.907 MB / 0.7122 GB, free: 95.48 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001106/1.543, allocations: 2.991 MB / 0.7151 GB, free: 92.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.723e-05/1.543, allocations: 7.281 kB / 0.7151 GB, free: 92.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002025/1.545, allocations: 0.5088 MB / 0.7156 GB, free: 92.13 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002515/1.548, allocations: 486.4 kB / 0.7161 GB, free: 92.08 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007298/1.555, allocations: 5.204 MB / 0.7212 GB, free: 88.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002771/1.558, allocations: 154.8 kB / 0.7213 GB, free: 88.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003951/1.558, allocations: 84.81 kB / 0.7214 GB, free: 88.38 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/1.558, allocations: 2.75 kB / 0.7214 GB, free: 88.38 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006838/1.565, allocations: 2.648 MB / 0.724 GB, free: 87.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.823e-05/1.565, allocations: 11.94 kB / 0.724 GB, free: 87.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00161/1.567, allocations: 0.4995 MB / 0.7245 GB, free: 86.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002218/1.569, allocations: 466.1 kB / 0.7249 GB, free: 86.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007054/1.576, allocations: 5.209 MB / 0.73 GB, free: 81.17 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002522/1.579, allocations: 124.3 kB / 0.7301 GB, free: 81.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004364/1.579, allocations: 82.38 kB / 0.7302 GB, free: 81.01 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 {5 33,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0009928/1.58, allocations: 157.8 kB / 0.7304 GB, free: 80.85 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009628/1.581, allocations: 226 kB / 0.7306 GB, free: 80.63 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008061/1.589, allocations: 3.035 MB / 0.7335 GB, free: 78 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.568e-05/1.589, allocations: 28 kB / 0.7336 GB, free: 77.98 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-05/1.589, allocations: 0 / 0.7336 GB, free: 77.98 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.215e-05/1.589, allocations: 12.7 kB / 0.7336 GB, free: 77.98 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01422/1.604, allocations: 5.723 MB / 0.7392 GB, free: 73.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/1.604, allocations: 4 kB / 0.7392 GB, free: 73.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002114/1.606, allocations: 438.4 kB / 0.7396 GB, free: 72.88 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001536/1.607, allocations: 465.3 kB / 0.74 GB, free: 72.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003052/1.608, allocations: 35.67 kB / 0.7401 GB, free: 72.47 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008066/1.616, allocations: 5.644 MB / 0.7456 GB, free: 67.06 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.013e-05/1.616, allocations: 11.7 kB / 0.7456 GB, free: 67.05 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01012/1.626, allocations: 4.557 MB / 0.75 GB, free: 62.42 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01083/1.637, allocations: 6.478 MB / 0.7564 GB, free: 55.75 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/1.638, allocations: 0.5488 MB / 0.7569 GB, free: 55.18 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008607/1.639, allocations: 24 kB / 0.7569 GB, free: 55.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002142/1.641, allocations: 139.9 kB / 0.7571 GB, free: 55.02 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000445/1.642, allocations: 177.7 kB / 0.7572 GB, free: 54.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002235/1.642, allocations: 79.97 kB / 0.7573 GB, free: 54.77 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002248/1.644, allocations: 0.9365 MB / 0.7582 GB, free: 53.84 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007221/1.652, allocations: 0.867 MB / 0.7591 GB, free: 52.97 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.001328/1.653, allocations: 418.2 kB / 0.7595 GB, free: 52.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008954/1.662, allocations: 4.498 MB / 0.7639 GB, free: 48.03 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-05/1.662, allocations: 0 / 0.7639 GB, free: 48.03 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003796/1.666, allocations: 1.714 MB / 0.7655 GB, free: 46.29 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00306/1.669, allocations: 336.9 kB / 0.7659 GB, free: 45.97 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01271/1.682, allocations: 4.262 MB / 0.77 GB, free: 41.66 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003205/1.685, allocations: 2.005 MB / 0.772 GB, free: 39.62 MB / 474.7 MB Notification: Performance of SimCode: time 1.794e-06/1.685, allocations: 0 / 0.772 GB, free: 39.62 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_PowerWorld_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_PowerWorld.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld_res.mat does not exist to compare? outputFormat=mat