Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3",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.001568/0.001568, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.627/1.627, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008723/0.0008724, allocations: 78.66 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1831/0.1831, allocations: 37.98 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.092e-05/3.096e-05, allocations: 7.984 kB / 417.8 MB, free: 29.01 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1085, allocations: 56.32 MB / 474.1 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3883/0.4968, allocations: 105.4 MB / 0.5659 GB, free: 13.85 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.4971, allocations: 91 kB / 0.566 GB, free: 13.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07223/0.5694, allocations: 28.26 MB / 0.5936 GB, free: 6.328 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.5694, allocations: 4 kB / 0.5936 GB, free: 6.324 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.149e-05/0.5695, allocations: 27.92 kB / 0.5937 GB, free: 6.297 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.001896/0.5714, allocations: 1.003 MB / 0.5946 GB, free: 5.305 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.5714, allocations: 8.031 kB / 0.5946 GB, free: 5.297 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001467/0.5716, allocations: 111.8 kB / 0.5948 GB, free: 5.219 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001321/0.5729, allocations: 210.6 kB / 0.595 GB, free: 5.012 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.5741, allocations: 0.6205 MB / 0.5956 GB, free: 4.461 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.018e-05/0.5741, allocations: 45 kB / 0.5956 GB, free: 4.438 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.5743, allocations: 77.39 kB / 0.5957 GB, free: 4.383 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.5757, allocations: 0.8208 MB / 0.5965 GB, free: 3.773 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.5757, allocations: 11.83 kB / 0.5965 GB, free: 3.766 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.736e-05/0.5758, allocations: 25.56 kB / 0.5965 GB, free: 3.758 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001061/0.5759, allocations: 44.59 kB / 0.5966 GB, free: 3.719 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.577, allocations: 0.6886 MB / 0.5972 GB, free: 3.266 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005082/0.5821, allocations: 3.278 MB / 0.6004 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.5834, allocations: 0.8572 MB / 0.6013 GB, free: 15.85 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000371/0.5838, allocations: 266.8 kB / 0.6015 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.792e-05/0.5839, allocations: 12.48 kB / 0.6015 GB, free: 15.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/0.5839, allocations: 41.75 kB / 0.6016 GB, free: 15.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 3.477e-06/0.5839, allocations: 0 / 0.6016 GB, free: 15.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=63): time 0.003249/0.5872, allocations: 1.964 MB / 0.6035 GB, free: 14.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.691e-05/0.5873, allocations: 115.3 kB / 0.6036 GB, free: 13.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006308/0.5879, allocations: 0.4886 MB / 0.6041 GB, free: 13.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.632e-05/0.588, allocations: 36.45 kB / 0.6041 GB, free: 13.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002431/0.5882, allocations: 371.6 kB / 0.6045 GB, free: 13.22 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.5884, allocations: 220.8 kB / 0.6047 GB, free: 13.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.059e-05/0.5884, allocations: 18.09 kB / 0.6047 GB, free: 13.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.5886, allocations: 387.2 kB / 0.6051 GB, free: 12.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003923/0.589, allocations: 214.3 kB / 0.6053 GB, free: 12.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005088/0.5895, allocations: 363.9 kB / 0.6056 GB, free: 12.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004481/0.59, allocations: 279.2 kB / 0.6059 GB, free: 11.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.59, allocations: 0 / 0.6059 GB, free: 11.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001271/0.5913, allocations: 0.7407 MB / 0.6066 GB, free: 11.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006142/0.5919, allocations: 1.492 MB / 0.6081 GB, free: 9.578 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.5919, allocations: 4 kB / 0.6081 GB, free: 9.574 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002931/0.5922, allocations: 60.8 kB / 0.6081 GB, free: 9.512 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007666/0.593, allocations: 183.8 kB / 0.6083 GB, free: 9.332 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001785/0.5948, allocations: 1.619 MB / 0.6099 GB, free: 7.574 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005761/0.5954, allocations: 63.92 kB / 0.6099 GB, free: 7.512 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.125e-05/0.5954, allocations: 24 kB / 0.61 GB, free: 7.488 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/0.5955, allocations: 4 kB / 0.61 GB, free: 7.484 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001148/0.5966, allocations: 0.6541 MB / 0.6106 GB, free: 6.824 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.5966, allocations: 4 kB / 0.6106 GB, free: 6.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002068/0.5969, allocations: 56.81 kB / 0.6107 GB, free: 6.762 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007113/0.5976, allocations: 192 kB / 0.6108 GB, free: 6.574 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/0.5991, allocations: 1.616 MB / 0.6124 GB, free: 4.828 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005645/0.5997, allocations: 56.02 kB / 0.6125 GB, free: 4.773 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-05/0.5998, allocations: 27.98 kB / 0.6125 GB, free: 4.746 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002023/0.6, allocations: 144.8 kB / 0.6126 GB, free: 4.598 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.6001, allocations: 71.16 kB / 0.6127 GB, free: 4.527 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001356/0.6015, allocations: 0.6865 MB / 0.6134 GB, free: 3.824 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.6015, allocations: 8 kB / 0.6134 GB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.6015, allocations: 4 kB / 0.6134 GB, free: 3.812 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.6015, allocations: 3.953 kB / 0.6134 GB, free: 3.809 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003747/0.6053, allocations: 2.09 MB / 0.6154 GB, free: 1.582 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.6053, allocations: 8.031 kB / 0.6154 GB, free: 1.574 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005834/0.6059, allocations: 135.8 kB / 0.6156 GB, free: 1.441 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002157/0.6061, allocations: 60.75 kB / 0.6156 GB, free: 1.379 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.066e-05/0.6062, allocations: 20 kB / 0.6157 GB, free: 1.359 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001502/0.6077, allocations: 1.581 MB / 0.6172 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/0.6077, allocations: 15.94 kB / 0.6172 GB, free: 15.63 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001985/0.6097, allocations: 1.487 MB / 0.6187 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003235/0.6101, allocations: 196.2 kB / 0.6189 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.494e-05/0.6102, allocations: 24 kB / 0.6189 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004953/0.6107, allocations: 59.95 kB / 0.6189 GB, free: 13.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.6108, allocations: 71.77 kB / 0.619 GB, free: 13.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.905e-05/0.6109, allocations: 27.98 kB / 0.619 GB, free: 13.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005624/0.6114, allocations: 395.1 kB / 0.6194 GB, free: 13.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6115, allocations: 0 / 0.6194 GB, free: 13.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0011/0.6126, allocations: 264 kB / 0.6197 GB, free: 12.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 (powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002607/0.6152, allocations: 3.855 MB / 0.6234 GB, free: 8.801 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001861/0.6171, allocations: 1.153 MB / 0.6245 GB, free: 7.625 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.6171, allocations: 4.5 kB / 0.6245 GB, free: 7.621 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007419/0.6178, allocations: 462.2 kB / 0.625 GB, free: 7.156 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008396/0.6187, allocations: 161 kB / 0.6251 GB, free: 6.996 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003028/0.6217, allocations: 1.488 MB / 0.6266 GB, free: 5.383 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006509/0.6224, allocations: 1.003 MB / 0.6276 GB, free: 4.352 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007516/0.6231, allocations: 195.4 kB / 0.6278 GB, free: 4.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004149/0.6236, allocations: 283.3 kB / 0.628 GB, free: 3.883 MB / 426.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6236, allocations: 0 / 0.628 GB, free: 3.883 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03404/0.6576, allocations: 15.62 MB / 0.6433 GB, free: 4.285 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001953/0.6579, allocations: 188.2 kB / 0.6435 GB, free: 4.059 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.485/3.143, allocations: 0 / 0.6435 GB, free: 4.059 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest3.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat does not exist to compare? outputFormat=mat