Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",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.001052/0.001052, allocations: 180.5 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.311/1.311, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0008015/0.0008017, allocations: 88.47 kB / 270.8 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1608/0.1608, allocations: 38.07 MB / 357.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002843/0.0002843, allocations: 8 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2477, allocations: 56.32 MB / 480.4 MB, free: 9.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1226/0.3703, allocations: 103.4 MB / 0.5701 GB, free: 15.01 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/0.3706, allocations: 91.95 kB / 0.5702 GB, free: 14.92 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05616/0.4268, allocations: 22.47 MB / 0.5921 GB, free: 8.266 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4268, allocations: 0 / 0.5921 GB, free: 8.266 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.331e-05/0.4269, allocations: 23.98 kB / 0.5922 GB, free: 8.242 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002001/0.4289, allocations: 1.053 MB / 0.5932 GB, free: 7.141 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.429, allocations: 12.03 kB / 0.5932 GB, free: 7.129 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001377/0.4291, allocations: 102.5 kB / 0.5933 GB, free: 7.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009134/0.43, allocations: 174.8 kB / 0.5935 GB, free: 6.848 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.4312, allocations: 0.6168 MB / 0.5941 GB, free: 6.191 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.379e-05/0.4313, allocations: 45.25 kB / 0.5941 GB, free: 6.145 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-05/0.4314, allocations: 63.91 kB / 0.5942 GB, free: 6.082 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.4326, allocations: 0.7561 MB / 0.5949 GB, free: 5.285 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.4327, allocations: 0 / 0.5949 GB, free: 5.285 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.209e-05/0.4327, allocations: 31.95 kB / 0.5949 GB, free: 5.254 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-05/0.4328, allocations: 25.31 kB / 0.595 GB, free: 5.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.4339, allocations: 0.6413 MB / 0.5956 GB, free: 4.586 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004029/0.438, allocations: 2.934 MB / 0.5985 GB, free: 1.531 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.4395, allocations: 0.7461 MB / 0.5992 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.142e-05/0.4395, allocations: 8.5 kB / 0.5992 GB, free: 0.7383 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.4395, allocations: 39 kB / 0.5992 GB, free: 0.6914 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 1.743e-06/0.4396, allocations: 0 / 0.5992 GB, free: 0.6914 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.00146/0.441, allocations: 0.7191 MB / 0.5999 GB, free: 15.97 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.847e-05/0.4411, allocations: 107.2 kB / 0.6 GB, free: 15.84 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007132/0.4418, allocations: 0.5233 MB / 0.6006 GB, free: 15.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.262e-05/0.4419, allocations: 41.73 kB / 0.6006 GB, free: 15.26 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/0.4421, allocations: 356.4 kB / 0.6009 GB, free: 14.91 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.4423, allocations: 173.4 kB / 0.6011 GB, free: 14.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.746e-05/0.4423, allocations: 12 kB / 0.6011 GB, free: 14.72 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.4425, allocations: 382.7 kB / 0.6015 GB, free: 14.34 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004229/0.443, allocations: 213 kB / 0.6017 GB, free: 14.13 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005039/0.4435, allocations: 340.5 kB / 0.602 GB, free: 13.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004678/0.4439, allocations: 251.8 kB / 0.6022 GB, free: 13.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.444, allocations: 4 kB / 0.6022 GB, free: 13.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001539/0.4455, allocations: 0.7886 MB / 0.603 GB, free: 12.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005532/0.4461, allocations: 1.4 MB / 0.6044 GB, free: 11.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.4461, allocations: 4 kB / 0.6044 GB, free: 11.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004746/0.4466, allocations: 144.7 kB / 0.6045 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005288/0.4471, allocations: 135.7 kB / 0.6047 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007509/0.4479, allocations: 0.7474 MB / 0.6054 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.4483, allocations: 83.41 kB / 0.6055 GB, free: 10.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.11e-05/0.4484, allocations: 24 kB / 0.6055 GB, free: 10.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.294e-06/0.4484, allocations: 0 / 0.6055 GB, free: 10.04 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001182/0.4496, allocations: 0.6198 MB / 0.6061 GB, free: 9.414 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.4496, allocations: 4 kB / 0.6061 GB, free: 9.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002634/0.4499, allocations: 108.7 kB / 0.6062 GB, free: 9.301 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005466/0.4504, allocations: 140.2 kB / 0.6063 GB, free: 9.164 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/0.4525, allocations: 2.042 MB / 0.6083 GB, free: 6.984 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004111/0.453, allocations: 71.41 kB / 0.6084 GB, free: 6.914 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.68e-05/0.453, allocations: 20 kB / 0.6084 GB, free: 6.895 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004305/0.4535, allocations: 321.1 kB / 0.6087 GB, free: 6.574 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.4536, allocations: 67.16 kB / 0.6088 GB, free: 6.508 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001163/0.4547, allocations: 0.5656 MB / 0.6093 GB, free: 5.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.4548, allocations: 8 kB / 0.6093 GB, free: 5.922 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.4548, allocations: 0 / 0.6093 GB, free: 5.922 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.4548, allocations: 4.094 kB / 0.6093 GB, free: 5.918 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001966/0.4567, allocations: 1.306 MB / 0.6106 GB, free: 4.559 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.4568, allocations: 0 / 0.6106 GB, free: 4.559 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005611/0.4573, allocations: 111.9 kB / 0.6107 GB, free: 4.449 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.4573, allocations: 8 kB / 0.6107 GB, free: 4.441 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.961e-05/0.4574, allocations: 11.98 kB / 0.6107 GB, free: 4.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.4574, allocations: 0 / 0.6107 GB, free: 4.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.4574, allocations: 4 kB / 0.6108 GB, free: 4.426 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001569/0.459, allocations: 0.9265 MB / 0.6117 GB, free: 3.473 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002511/0.4592, allocations: 196.1 kB / 0.6118 GB, free: 3.262 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.926e-05/0.4593, allocations: 12 kB / 0.6119 GB, free: 3.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003827/0.4597, allocations: 47.95 kB / 0.6119 GB, free: 3.203 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.155e-05/0.4598, allocations: 32.39 kB / 0.6119 GB, free: 3.172 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.329e-05/0.4599, allocations: 23.94 kB / 0.612 GB, free: 3.148 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006062/0.4605, allocations: 419 kB / 0.6124 GB, free: 2.746 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4605, allocations: 4 kB / 0.6124 GB, free: 2.742 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008207/0.4613, allocations: 267.2 kB / 0.6126 GB, free: 2.48 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 49 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001972/0.4633, allocations: 1.556 MB / 0.6141 GB, free: 0.8906 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001819/0.4651, allocations: 0.9571 MB / 0.6151 GB, free: 15.92 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4651, allocations: 0 / 0.6151 GB, free: 15.92 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004655/0.4656, allocations: 254.3 kB / 0.6153 GB, free: 15.67 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006075/0.4662, allocations: 143.8 kB / 0.6154 GB, free: 15.53 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008197/0.4744, allocations: 6.844 MB / 0.6221 GB, free: 8.543 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005145/0.475, allocations: 0.9576 MB / 0.6231 GB, free: 7.555 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004569/0.4754, allocations: 116.6 kB / 0.6232 GB, free: 7.438 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000339/0.4758, allocations: 255.3 kB / 0.6234 GB, free: 7.191 MB / 458.7 MB Notification: Performance of SimCode: time 1.022e-06/0.4758, allocations: 3.938 kB / 0.6234 GB, free: 7.188 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03004/0.5058, allocations: 13.62 MB / 0.6367 GB, free: 9.613 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002546/0.5061, allocations: 218.6 kB / 0.6369 GB, free: 9.371 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.251/2.757, allocations: 0 / 0.6369 GB, free: 9.371 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.mat does not exist to compare? outputFormat=mat