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.001713/0.001713, allocations: 175.5 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.59/1.59, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001062/0.001062, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1595/0.1595, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.224e-05/3.239e-05, allocations: 0 / 417.8 MB, free: 29.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1203, allocations: 56.32 MB / 474.1 MB, free: 4.703 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3998/0.5201, allocations: 103.3 MB / 0.5639 GB, free: 15.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.5204, allocations: 86.94 kB / 0.564 GB, free: 15.67 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05809/0.5785, allocations: 22.38 MB / 0.5859 GB, free: 13.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5786, allocations: 0 / 0.5859 GB, free: 13.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.532e-05/0.5787, allocations: 23.94 kB / 0.5859 GB, free: 12.99 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001684/0.5803, allocations: 0.9482 MB / 0.5868 GB, free: 12.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.5804, allocations: 8.031 kB / 0.5868 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001233/0.5805, allocations: 102.8 kB / 0.5869 GB, free: 11.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009074/0.5814, allocations: 178.8 kB / 0.5871 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.5825, allocations: 0.5835 MB / 0.5876 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.206e-05/0.5825, allocations: 47.92 kB / 0.5877 GB, free: 11.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.5826, allocations: 69.02 kB / 0.5878 GB, free: 11.2 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.5838, allocations: 0.6983 MB / 0.5884 GB, free: 10.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.5838, allocations: 4 kB / 0.5884 GB, free: 10.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.862e-05/0.5839, allocations: 25.77 kB / 0.5885 GB, free: 10.67 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-05/0.5839, allocations: 40.8 kB / 0.5885 GB, free: 10.63 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009071/0.5848, allocations: 0.5581 MB / 0.5891 GB, free: 10.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003938/0.5888, allocations: 2.944 MB / 0.5919 GB, free: 7.832 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.5898, allocations: 0.6248 MB / 0.5925 GB, free: 7.355 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002768/0.5901, allocations: 191.2 kB / 0.5927 GB, free: 7.238 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.895e-05/0.5902, allocations: 12.42 kB / 0.5927 GB, free: 7.227 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.5902, allocations: 42.16 kB / 0.5928 GB, free: 7.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 2.345e-06/0.5902, allocations: 0 / 0.5928 GB, free: 7.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.000778/0.591, allocations: 455.5 kB / 0.5932 GB, free: 6.852 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.5911, allocations: 107.2 kB / 0.5933 GB, free: 6.723 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000549/0.5916, allocations: 0.4945 MB / 0.5938 GB, free: 6.328 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.106e-05/0.5917, allocations: 36.64 kB / 0.5938 GB, free: 6.293 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002247/0.5919, allocations: 354.4 kB / 0.5942 GB, free: 6.066 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.5921, allocations: 178 kB / 0.5943 GB, free: 5.914 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.638e-05/0.5921, allocations: 11.12 kB / 0.5943 GB, free: 5.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.5923, allocations: 385.8 kB / 0.5947 GB, free: 5.555 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002817/0.5925, allocations: 166 kB / 0.5949 GB, free: 5.461 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003551/0.5929, allocations: 299.9 kB / 0.5952 GB, free: 5.191 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.5932, allocations: 206.5 kB / 0.5954 GB, free: 5.059 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.5933, allocations: 3.984 kB / 0.5954 GB, free: 5.055 MB / 394.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001205/0.5945, allocations: 0.687 MB / 0.596 GB, free: 4.527 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005396/0.595, allocations: 1.398 MB / 0.5974 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.595, allocations: 0 / 0.5974 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003918/0.5954, allocations: 114 kB / 0.5975 GB, free: 2.961 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005572/0.596, allocations: 138.2 kB / 0.5976 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005663/0.5966, allocations: 0.7031 MB / 0.5983 GB, free: 2.188 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004626/0.5971, allocations: 89.7 kB / 0.5984 GB, free: 2.109 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.197e-05/0.5971, allocations: 19.59 kB / 0.5984 GB, free: 2.094 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.5971, allocations: 10.44 kB / 0.5984 GB, free: 2.086 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009499/0.5981, allocations: 0.5602 MB / 0.599 GB, free: 1.695 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.5981, allocations: 7.953 kB / 0.599 GB, free: 1.688 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002574/0.5984, allocations: 101.7 kB / 0.5991 GB, free: 1.609 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005169/0.5989, allocations: 138.9 kB / 0.5992 GB, free: 1.477 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001958/0.6009, allocations: 2.008 MB / 0.6012 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004158/0.6013, allocations: 79.16 kB / 0.6013 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.523e-05/0.6013, allocations: 23.88 kB / 0.6013 GB, free: 15.59 MB / 410.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 () * 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.0001475/0.6015, allocations: 139.4 kB / 0.6014 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.6016, allocations: 67.16 kB / 0.6015 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008417/0.6025, allocations: 497.6 kB / 0.602 GB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.6025, allocations: 8 kB / 0.602 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.6025, allocations: 0 / 0.602 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.6025, allocations: 0 / 0.602 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/0.6041, allocations: 1.217 MB / 0.6031 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.6041, allocations: 0 / 0.6031 GB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005553/0.6046, allocations: 110.6 kB / 0.6033 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/0.6047, allocations: 4 kB / 0.6033 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.086e-05/0.6047, allocations: 17.17 kB / 0.6033 GB, free: 14.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.6047, allocations: 4 kB / 0.6033 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.6047, allocations: 0 / 0.6033 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.6058, allocations: 0.7979 MB / 0.6041 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/0.606, allocations: 196 kB / 0.6042 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.718e-05/0.6061, allocations: 11 kB / 0.6043 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003756/0.6065, allocations: 50.64 kB / 0.6043 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.775e-05/0.6066, allocations: 35.83 kB / 0.6043 GB, free: 13.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.11e-05/0.6066, allocations: 19.94 kB / 0.6044 GB, free: 13.13 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004828/0.6071, allocations: 397.3 kB / 0.6047 GB, free: 12.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6071, allocations: 3.938 kB / 0.6047 GB, free: 12.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000813/0.6079, allocations: 267.8 kB / 0.605 GB, free: 12.6 MB / 410.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 () * 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.00147/0.6094, allocations: 1.435 MB / 0.6064 GB, free: 11.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.6108, allocations: 0.8617 MB / 0.6072 GB, free: 10.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.6108, allocations: 1.969 kB / 0.6072 GB, free: 10.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003371/0.6112, allocations: 218.4 kB / 0.6074 GB, free: 10.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006287/0.6118, allocations: 143.1 kB / 0.6076 GB, free: 9.926 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.6144, allocations: 1.327 MB / 0.6089 GB, free: 8.547 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005195/0.615, allocations: 0.9589 MB / 0.6098 GB, free: 7.559 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006037/0.6156, allocations: 162.9 kB / 0.61 GB, free: 7.398 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003375/0.6159, allocations: 255.3 kB / 0.6102 GB, free: 7.148 MB / 410.7 MB Notification: Performance of SimCode: time 7.11e-07/0.6159, allocations: 4 kB / 0.6102 GB, free: 7.145 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03044/0.6464, allocations: 14.54 MB / 0.6244 GB, free: 8.625 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/0.6466, allocations: 188.2 kB / 0.6246 GB, free: 8.402 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.287/2.934, allocations: 0 / 0.6246 GB, free: 8.402 MB / 426.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