Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",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.001069/0.00107, allocations: 181 kB / 16.39 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.302/1.302, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.000851/0.000851, allocations: 95.02 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.1554/0.1554, allocations: 38.06 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003261/0.0003263, allocations: 8 kB / 424.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.273, allocations: 56.33 MB / 480.4 MB, free: 9.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1455/0.4187, allocations: 103.6 MB / 0.5703 GB, free: 14.77 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.4189, allocations: 91.95 kB / 0.5704 GB, free: 14.68 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06065/0.4796, allocations: 22.65 MB / 0.5926 GB, free: 7.848 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.4796, allocations: 0 / 0.5926 GB, free: 7.848 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.503e-05/0.4797, allocations: 19.94 kB / 0.5926 GB, free: 7.828 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.002795/0.4825, allocations: 1.073 MB / 0.5936 GB, free: 6.707 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.4826, allocations: 12.03 kB / 0.5936 GB, free: 6.695 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003151/0.4829, allocations: 110.5 kB / 0.5937 GB, free: 6.578 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001211/0.4842, allocations: 174.8 kB / 0.5939 GB, free: 6.406 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.4858, allocations: 0.609 MB / 0.5945 GB, free: 5.754 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.649e-05/0.4858, allocations: 49.31 kB / 0.5945 GB, free: 5.707 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.486, allocations: 67.97 kB / 0.5946 GB, free: 5.641 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.4876, allocations: 0.7639 MB / 0.5954 GB, free: 4.836 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.4876, allocations: 4 kB / 0.5954 GB, free: 4.832 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.322e-05/0.4877, allocations: 35.94 kB / 0.5954 GB, free: 4.797 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.5e-05/0.4878, allocations: 29.25 kB / 0.5954 GB, free: 4.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00144/0.4892, allocations: 0.6648 MB / 0.5961 GB, free: 4.102 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004896/0.4941, allocations: 2.973 MB / 0.599 GB, free: 1.008 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/0.4959, allocations: 0.7733 MB / 0.5997 GB, free: 200 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.068e-05/0.496, allocations: 12.48 kB / 0.5997 GB, free: 188 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.496, allocations: 46.98 kB / 0.5998 GB, free: 132 kB / 426.7 MB Notification: Performance of pre-optimization done (n=50): time 3.277e-06/0.4961, allocations: 0 / 0.5998 GB, free: 132 kB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.001894/0.498, allocations: 0.7814 MB / 0.6005 GB, free: 15.35 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.001e-05/0.4981, allocations: 107.2 kB / 0.6007 GB, free: 15.21 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008465/0.4989, allocations: 0.5157 MB / 0.6012 GB, free: 14.69 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.801e-05/0.499, allocations: 37.7 kB / 0.6012 GB, free: 14.65 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000293/0.4993, allocations: 356.4 kB / 0.6015 GB, free: 14.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001754/0.4995, allocations: 177.4 kB / 0.6017 GB, free: 14.12 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-05/0.4995, allocations: 12 kB / 0.6017 GB, free: 14.11 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.4997, allocations: 382.9 kB / 0.6021 GB, free: 13.72 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005322/0.5002, allocations: 233.2 kB / 0.6023 GB, free: 13.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000677/0.5009, allocations: 376.2 kB / 0.6027 GB, free: 13.08 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006129/0.5016, allocations: 277.1 kB / 0.6029 GB, free: 12.81 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.5016, allocations: 0 / 0.6029 GB, free: 12.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001821/0.5034, allocations: 0.8306 MB / 0.6037 GB, free: 11.97 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006634/0.5041, allocations: 1.402 MB / 0.6051 GB, free: 10.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.5041, allocations: 4 kB / 0.6051 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004989/0.5046, allocations: 144.7 kB / 0.6052 GB, free: 10.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000612/0.5052, allocations: 143.8 kB / 0.6054 GB, free: 10.17 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007886/0.506, allocations: 0.7396 MB / 0.6061 GB, free: 9.402 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005907/0.5066, allocations: 99.39 kB / 0.6062 GB, free: 9.305 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.356e-05/0.5067, allocations: 20 kB / 0.6062 GB, free: 9.285 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.5067, allocations: 4 kB / 0.6062 GB, free: 9.281 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001375/0.5081, allocations: 0.6696 MB / 0.6069 GB, free: 8.609 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.5081, allocations: 4 kB / 0.6069 GB, free: 8.605 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002749/0.5084, allocations: 101.1 kB / 0.607 GB, free: 8.504 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005839/0.509, allocations: 151.8 kB / 0.6071 GB, free: 8.355 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002264/0.5113, allocations: 2.046 MB / 0.6091 GB, free: 6.176 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005668/0.5118, allocations: 83.45 kB / 0.6092 GB, free: 6.094 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.113e-05/0.5119, allocations: 27.94 kB / 0.6092 GB, free: 6.066 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 (61): * Single equations (assignments): 60 * 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.0005472/0.5124, allocations: 308.9 kB / 0.6095 GB, free: 5.754 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.5126, allocations: 67.16 kB / 0.6096 GB, free: 5.688 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/0.514, allocations: 0.6124 MB / 0.6102 GB, free: 5.062 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.514, allocations: 8 kB / 0.6102 GB, free: 5.055 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.514, allocations: 112 / 0.6102 GB, free: 5.055 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.514, allocations: 7.922 kB / 0.6102 GB, free: 5.047 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002275/0.5163, allocations: 1.353 MB / 0.6115 GB, free: 3.641 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.5163, allocations: 0 / 0.6115 GB, free: 3.641 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006431/0.517, allocations: 127.9 kB / 0.6116 GB, free: 3.516 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.293e-06/0.517, allocations: 4 kB / 0.6116 GB, free: 3.512 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.37e-05/0.517, allocations: 12 kB / 0.6117 GB, free: 3.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.517, allocations: 0 / 0.6117 GB, free: 3.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.517, allocations: 0 / 0.6117 GB, free: 3.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001806/0.5189, allocations: 1.001 MB / 0.6126 GB, free: 2.469 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000309/0.5192, allocations: 196.1 kB / 0.6128 GB, free: 2.258 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.435e-05/0.5193, allocations: 16 kB / 0.6128 GB, free: 2.242 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004272/0.5197, allocations: 51.94 kB / 0.6129 GB, free: 2.191 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.5198, allocations: 32.39 kB / 0.6129 GB, free: 2.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.632e-05/0.5199, allocations: 23.94 kB / 0.6129 GB, free: 2.137 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006652/0.5205, allocations: 423.6 kB / 0.6133 GB, free: 1.73 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5205, allocations: 0 / 0.6133 GB, free: 1.73 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009404/0.5215, allocations: 275.1 kB / 0.6136 GB, free: 1.461 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 (51): * Single equations (assignments): 50 * 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.002128/0.5236, allocations: 1.626 MB / 0.6152 GB, free: 15.79 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002179/0.5258, allocations: 1.021 MB / 0.6162 GB, free: 14.76 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5258, allocations: 320 / 0.6162 GB, free: 14.76 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005828/0.5264, allocations: 286.3 kB / 0.6165 GB, free: 14.48 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007035/0.5271, allocations: 135 kB / 0.6166 GB, free: 14.35 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009313/0.5365, allocations: 6.936 MB / 0.6234 GB, free: 7.27 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005797/0.5371, allocations: 0.9615 MB / 0.6243 GB, free: 6.281 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0005272/0.5376, allocations: 120.6 kB / 0.6244 GB, free: 6.164 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003574/0.538, allocations: 255.3 kB / 0.6247 GB, free: 5.914 MB / 458.7 MB Notification: Performance of SimCode: time 1.353e-06/0.538, allocations: 0 / 0.6247 GB, free: 5.914 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03138/0.5694, allocations: 13.8 MB / 0.6381 GB, free: 8.164 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/0.5696, allocations: 218.6 kB / 0.6383 GB, free: 7.918 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.21/2.779, allocations: 0 / 0.6383 GB, free: 7.918 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat does not exist to compare? outputFormat=mat