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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001093/0.001092, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.766/1.766, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009113/0.0009115, allocations: 89.08 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1836/0.1836, allocations: 37.98 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.621e-05/2.624e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1526, allocations: 56.32 MB / 467 MB, free: 6.484 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.49/0.6426, allocations: 119.5 MB / 0.5727 GB, free: 7.273 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002099/0.6448, allocations: 0.5706 MB / 0.5733 GB, free: 6.703 MB / 411.1 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: Performance of FrontEnd - DAE generated: time 0.6441/1.289, allocations: 102.1 MB / 0.673 GB, free: 111.3 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.835e-06/1.289, allocations: 0 / 0.673 GB, free: 111.3 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0001849/1.289, allocations: 56.22 kB / 0.673 GB, free: 111.3 MB / 475.1 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.006034/1.295, allocations: 2.576 MB / 0.6755 GB, free: 110 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/1.295, allocations: 11.75 kB / 0.6755 GB, free: 110 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005047/1.3, allocations: 0.6659 MB / 0.6762 GB, free: 109.9 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004037/1.304, allocations: 1.573 MB / 0.6777 GB, free: 109.4 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/1.305, allocations: 69.55 kB / 0.6778 GB, free: 109.4 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005006/1.305, allocations: 135.4 kB / 0.6779 GB, free: 109.4 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004041/1.309, allocations: 2.313 MB / 0.6802 GB, free: 109.4 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003703/1.313, allocations: 2.335 MB / 0.6825 GB, free: 109.1 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.834e-05/1.313, allocations: 3.938 kB / 0.6825 GB, free: 109.1 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001917/1.313, allocations: 7.609 kB / 0.6825 GB, free: 109.1 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000264/1.313, allocations: 130.5 kB / 0.6826 GB, free: 109.1 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01415/1.328, allocations: 9.214 MB / 0.6916 GB, free: 105.4 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003828/1.331, allocations: 2.932 MB / 0.6945 GB, free: 103.9 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001268/1.333, allocations: 1.049 MB / 0.6955 GB, free: 103.5 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001228/1.333, allocations: 36.55 kB / 0.6955 GB, free: 103.5 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001675/1.335, allocations: 1.245 MB / 0.6967 GB, free: 103 MB / 475.1 MB Notification: Performance of pre-optimization done (n=220): time 3.857e-06/1.335, allocations: 0 / 0.6967 GB, free: 103 MB / 475.1 MB Notification: Performance of matching and sorting (n=231): time 0.01202/1.347, allocations: 6.932 MB / 0.7035 GB, free: 99.81 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/1.347, allocations: 266.1 kB / 0.7038 GB, free: 99.52 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/1.349, allocations: 1.228 MB / 0.705 GB, free: 99 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001541/1.349, allocations: 44.84 kB / 0.705 GB, free: 98.96 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008464/1.35, allocations: 0.9518 MB / 0.7059 GB, free: 98.22 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006196/1.35, allocations: 0.7426 MB / 0.7067 GB, free: 97.64 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/1.35, allocations: 0 / 0.7067 GB, free: 97.64 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/1.351, allocations: 400.7 kB / 0.707 GB, free: 97.29 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/1.352, allocations: 0.8686 MB / 0.7079 GB, free: 96.92 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/1.353, allocations: 1.214 MB / 0.7091 GB, free: 96.18 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/1.355, allocations: 1.036 MB / 0.7101 GB, free: 95.75 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/1.355, allocations: 0 / 0.7101 GB, free: 95.75 MB / 475.1 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.004754/1.359, allocations: 2.885 MB / 0.7129 GB, free: 94.66 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007341/1.36, allocations: 3.047 MB / 0.7159 GB, free: 91.38 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/1.36, allocations: 7.5 kB / 0.7159 GB, free: 91.38 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/1.362, allocations: 499.5 kB / 0.7164 GB, free: 91.25 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001829/1.363, allocations: 492.5 kB / 0.7168 GB, free: 91.21 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00565/1.369, allocations: 5.452 MB / 0.7222 GB, free: 87.35 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/1.371, allocations: 154.3 kB / 0.7223 GB, free: 87.34 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001858/1.371, allocations: 87.31 kB / 0.7224 GB, free: 87.32 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/1.371, allocations: 6.844 kB / 0.7224 GB, free: 87.32 MB / 475.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004367/1.376, allocations: 2.635 MB / 0.725 GB, free: 86.37 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/1.376, allocations: 7.531 kB / 0.725 GB, free: 86.37 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/1.377, allocations: 499.3 kB / 0.7254 GB, free: 86.09 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/1.379, allocations: 465.6 kB / 0.7259 GB, free: 85.71 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005528/1.384, allocations: 5.465 MB / 0.7312 GB, free: 80.46 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002267/1.387, allocations: 127.3 kB / 0.7313 GB, free: 80.38 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001947/1.387, allocations: 87.38 kB / 0.7314 GB, free: 80.3 MB / 475.1 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.000612/1.388, allocations: 169.7 kB / 0.7316 GB, free: 80.13 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004301/1.392, allocations: 2.582 MB / 0.7341 GB, free: 77.83 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003172/1.392, allocations: 213.4 kB / 0.7343 GB, free: 77.62 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005124/1.397, allocations: 2.986 MB / 0.7372 GB, free: 75.02 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.001e-05/1.397, allocations: 27.95 kB / 0.7373 GB, free: 75 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/1.397, allocations: 0 / 0.7373 GB, free: 75 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.001e-05/1.397, allocations: 24.81 kB / 0.7373 GB, free: 74.99 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009485/1.407, allocations: 5.719 MB / 0.7429 GB, free: 70.26 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/1.407, allocations: 0 / 0.7429 GB, free: 70.26 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00201/1.409, allocations: 444.2 kB / 0.7433 GB, free: 69.89 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00128/1.41, allocations: 457.3 kB / 0.7437 GB, free: 69.52 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000202/1.411, allocations: 34.5 kB / 0.7438 GB, free: 69.5 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007086/1.418, allocations: 5.909 MB / 0.7495 GB, free: 63.89 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/1.418, allocations: 4 kB / 0.7495 GB, free: 63.88 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008295/1.426, allocations: 4.472 MB / 0.7539 GB, free: 59.32 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001434/1.428, allocations: 0.5527 MB / 0.7544 GB, free: 58.74 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003515/1.428, allocations: 28 kB / 0.7545 GB, free: 58.71 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/1.429, allocations: 135.8 kB / 0.7546 GB, free: 58.58 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004797/1.43, allocations: 217.7 kB / 0.7548 GB, free: 58.37 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001518/1.43, allocations: 79.97 kB / 0.7549 GB, free: 58.29 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.001373/1.431, allocations: 0.9248 MB / 0.7558 GB, free: 57.37 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.431, allocations: 0 / 0.7558 GB, free: 57.37 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.003321/1.435, allocations: 0.8711 MB / 0.7566 GB, free: 56.5 MB / 475.1 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.007418/1.442, allocations: 6.045 MB / 0.7625 GB, free: 50.35 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.007501/1.45, allocations: 4.686 MB / 0.7671 GB, free: 45.55 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-05/1.45, allocations: 0 / 0.7671 GB, free: 45.55 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00304/1.453, allocations: 1.769 MB / 0.7688 GB, free: 43.77 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002621/1.455, allocations: 338.5 kB / 0.7692 GB, free: 43.45 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/1.467, allocations: 4.539 MB / 0.7736 GB, free: 38.84 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001535/1.469, allocations: 1.838 MB / 0.7754 GB, free: 36.96 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.002859/1.471, allocations: 0.7561 MB / 0.7761 GB, free: 36.21 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001474/1.473, allocations: 0.9991 MB / 0.7771 GB, free: 35.21 MB / 475.1 MB Notification: Performance of SimCode: time 1.693e-06/1.473, allocations: 0 / 0.7771 GB, free: 35.21 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.442/1.915, allocations: 54.9 MB / 0.8307 GB, free: 109.5 MB / 491.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001712/1.915, allocations: 165.3 kB / 0.8309 GB, free: 109.4 MB / 491.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.203/6.119, allocations: 1.422 kB / 0.8309 GB, free: 109.4 MB / 491.1 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