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.00134/0.00134, allocations: 180.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0008184/0.0008183, allocations: 97.86 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1619/0.1619, allocations: 38.05 MB / 357.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002927/0.0002927, allocations: 11.98 kB / 424.1 MB, free: 37.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2601, allocations: 56.33 MB / 480.4 MB, free: 9.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1502/0.4103, allocations: 120.2 MB / 0.5866 GB, free: 14.12 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001894/0.4122, allocations: 0.8626 MB / 0.5874 GB, free: 13.26 MB / 426.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: Performance of FrontEnd - DAE generated: time 0.4262/0.8384, allocations: 103.1 MB / 0.6881 GB, free: 114.5 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.8385, allocations: 3.938 kB / 0.6881 GB, free: 114.5 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001882/0.8387, allocations: 58.66 kB / 0.6881 GB, free: 114.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.006005/0.8447, allocations: 2.912 MB / 0.691 GB, free: 112.8 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.8448, allocations: 10.62 kB / 0.691 GB, free: 112.8 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005587/0.8453, allocations: 292.1 kB / 0.6913 GB, free: 112.6 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004325/0.8497, allocations: 0.6694 MB / 0.6919 GB, free: 112.5 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003378/0.853, allocations: 1.629 MB / 0.6935 GB, free: 111.6 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.8532, allocations: 157.2 kB / 0.6937 GB, free: 111.6 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003084/0.8535, allocations: 201.7 kB / 0.6939 GB, free: 111.5 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004655/0.8581, allocations: 2.773 MB / 0.6966 GB, free: 110.3 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.964e-05/0.8582, allocations: 19.64 kB / 0.6966 GB, free: 110.3 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001971/0.8584, allocations: 80.02 kB / 0.6967 GB, free: 110.3 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002327/0.8587, allocations: 131.8 kB / 0.6968 GB, free: 110.2 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004665/0.8633, allocations: 3.025 MB / 0.6997 GB, free: 109.3 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01256/0.8759, allocations: 9.502 MB / 0.709 GB, free: 104.1 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00485/0.8808, allocations: 3.391 MB / 0.7123 GB, free: 102.3 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/0.8809, allocations: 37.22 kB / 0.7124 GB, free: 102.3 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002123/0.8831, allocations: 1.447 MB / 0.7138 GB, free: 101.5 MB / 474.7 MB Notification: Performance of pre-optimization done (n=218): time 3.827e-06/0.8831, allocations: 0 / 0.7138 GB, free: 101.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=229): time 0.01708/0.9002, allocations: 9.641 MB / 0.7232 GB, free: 94.81 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.9003, allocations: 261.4 kB / 0.7234 GB, free: 94.5 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00208/0.9024, allocations: 1.503 MB / 0.7249 GB, free: 93 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000188/0.9026, allocations: 85.58 kB / 0.725 GB, free: 92.91 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006154/0.9033, allocations: 0.9485 MB / 0.7259 GB, free: 91.95 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004715/0.9037, allocations: 0.7669 MB / 0.7267 GB, free: 91.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/0.9039, allocations: 51.98 kB / 0.7267 GB, free: 91.14 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.564e-05/0.904, allocations: 390.3 kB / 0.7271 GB, free: 90.76 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001713/0.9057, allocations: 1.051 MB / 0.7281 GB, free: 89.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002232/0.9079, allocations: 1.423 MB / 0.7295 GB, free: 88.15 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001872/0.9098, allocations: 1.263 MB / 0.7307 GB, free: 86.88 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/0.9098, allocations: 0 / 0.7307 GB, free: 86.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.005118/0.915, allocations: 3.237 MB / 0.7339 GB, free: 83.61 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006582/0.9156, allocations: 3.078 MB / 0.7369 GB, free: 80.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.9157, allocations: 7.984 kB / 0.7369 GB, free: 80.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008307/0.9165, allocations: 331.4 kB / 0.7372 GB, free: 79.97 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/0.9185, allocations: 0.5188 MB / 0.7377 GB, free: 79.45 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004517/0.923, allocations: 4.975 MB / 0.7426 GB, free: 74.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002235/0.9253, allocations: 187.9 kB / 0.7428 GB, free: 74.03 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000186/0.9255, allocations: 87.98 kB / 0.7429 GB, free: 73.95 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.9255, allocations: 8 kB / 0.7429 GB, free: 73.94 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004699/0.9302, allocations: 2.941 MB / 0.7457 GB, free: 70.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.9302, allocations: 9.688 kB / 0.7457 GB, free: 70.97 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007434/0.931, allocations: 334.1 kB / 0.7461 GB, free: 70.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001936/0.9329, allocations: 0.4993 MB / 0.7466 GB, free: 70.14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004449/0.9374, allocations: 4.968 MB / 0.7514 GB, free: 64.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001976/0.9394, allocations: 172.9 kB / 0.7516 GB, free: 64.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001609/0.9395, allocations: 83.98 kB / 0.7517 GB, free: 64.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 () * 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.001368/0.9409, allocations: 0.686 MB / 0.7523 GB, free: 63.97 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003509/0.9413, allocations: 221.3 kB / 0.7525 GB, free: 63.75 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006014/0.9473, allocations: 3.491 MB / 0.7559 GB, free: 60.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/0.9473, allocations: 31.92 kB / 0.756 GB, free: 60.16 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.9473, allocations: 3.953 kB / 0.756 GB, free: 60.16 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-05/0.9474, allocations: 11.95 kB / 0.756 GB, free: 60.15 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009946/0.9573, allocations: 6.453 MB / 0.7623 GB, free: 53.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.9574, allocations: 4 kB / 0.7623 GB, free: 53.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/0.959, allocations: 435.7 kB / 0.7627 GB, free: 53.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001356/0.9604, allocations: 491.4 kB / 0.7632 GB, free: 52.68 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001611/0.9605, allocations: 63.97 kB / 0.7632 GB, free: 52.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006456/0.967, allocations: 6.313 MB / 0.7694 GB, free: 46.05 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.967, allocations: 11.62 kB / 0.7694 GB, free: 46.04 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007749/0.9748, allocations: 5.117 MB / 0.7744 GB, free: 40.73 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/0.9761, allocations: 0.5681 MB / 0.775 GB, free: 40.14 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002965/0.9764, allocations: 67.98 kB / 0.775 GB, free: 40.08 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.9777, allocations: 171.8 kB / 0.7752 GB, free: 39.91 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000425/0.9782, allocations: 217.6 kB / 0.7754 GB, free: 39.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/0.9783, allocations: 87.91 kB / 0.7755 GB, free: 39.61 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001682/0.98, allocations: 1.17 MB / 0.7766 GB, free: 38.45 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.98, allocations: 0 / 0.7766 GB, free: 38.45 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002612/0.9826, allocations: 0.9844 MB / 0.7776 GB, free: 37.46 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) * 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.008458/0.9911, allocations: 6.787 MB / 0.7842 GB, free: 30.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007747/0.9989, allocations: 5.053 MB / 0.7892 GB, free: 25.41 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/0.999, allocations: 4 kB / 0.7892 GB, free: 25.41 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003309/1.002, allocations: 2.011 MB / 0.7911 GB, free: 23.37 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002056/1.004, allocations: 406.8 kB / 0.7915 GB, free: 22.97 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02487/1.029, allocations: 21.64 MB / 0.8126 GB, free: 24 kB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001737/1.031, allocations: 1.827 MB / 0.8144 GB, free: 14.16 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002574/1.034, allocations: 0.6006 MB / 0.815 GB, free: 13.55 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/1.035, allocations: 1.03 MB / 0.816 GB, free: 12.52 MB / 490.7 MB Notification: Performance of SimCode: time 1.102e-06/1.036, allocations: 0 / 0.816 GB, free: 12.52 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3306/1.366, allocations: 53.39 MB / 0.8682 GB, free: 113.2 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001605/1.366, allocations: 244.1 kB / 0.8684 GB, free: 112.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.434/4.8, allocations: 0 / 0.8684 GB, free: 112.9 MB / 490.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