Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.25/2.25, allocations: 390.3 MB / 405.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001138, allocations: 181 kB / 498.1 MB, free: 5.668 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 223.1 MB / 0.7948 GB, free: 18.86 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008694/0.0008694, allocations: 96.33 kB / 0.9346 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.0003859, allocations: 13.25 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2344, allocations: 142.4 MB / 1.223 GB, free: 89.44 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1782/0.4126, allocations: 150.9 MB / 1.37 GB, free: 2.387 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.4129, allocations: 87.94 kB / 1.37 GB, free: 2.301 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00535/0.4183, allocations: 1.701 MB / 1.372 GB, free: 0.5977 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.953e-06/0.4183, allocations: 3.938 kB / 1.372 GB, free: 0.5938 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.4183, allocations: 4 kB / 1.372 GB, free: 0.5898 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004347/0.4188, allocations: 386.9 kB / 1.372 GB, free: 168 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.4188, allocations: 12.03 kB / 1.372 GB, free: 156 kB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.039e-05/0.4189, allocations: 30.56 kB / 1.372 GB, free: 116 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007231/0.4196, allocations: 107.7 kB / 1.373 GB, free: 8 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.4198, allocations: 187.5 kB / 1.373 GB, free: 15.78 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.405e-05/0.4199, allocations: 33.69 kB / 1.373 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.4199, allocations: 8 kB / 1.373 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004084/0.4203, allocations: 153.5 kB / 1.373 GB, free: 15.58 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.4203, allocations: 3.938 kB / 1.373 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.4204, allocations: 0 / 1.373 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.4204, allocations: 0 / 1.373 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005395/0.4209, allocations: 199.8 kB / 1.373 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008447/0.4218, allocations: 459.9 kB / 1.374 GB, free: 14.88 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005398/0.4223, allocations: 206.3 kB / 1.374 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.4223, allocations: 0 / 1.374 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.4224, allocations: 34.52 kB / 1.374 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.4224, allocations: 4 kB / 1.374 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2): time 0.0009315/0.4233, allocations: 309.5 kB / 1.374 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.4234, allocations: 55.41 kB / 1.374 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.4235, allocations: 154 kB / 1.374 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.4235, allocations: 25.7 kB / 1.374 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.212e-05/0.4236, allocations: 108.1 kB / 1.374 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.031e-05/0.4236, allocations: 7.844 kB / 1.374 GB, free: 13.94 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.147e-06/0.4236, allocations: 0 / 1.374 GB, free: 13.94 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.969e-05/0.4238, allocations: 322.8 kB / 1.375 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002771/0.424, allocations: 95.94 kB / 1.375 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/0.4243, allocations: 87.91 kB / 1.375 GB, free: 13.43 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002457/0.4245, allocations: 79.98 kB / 1.375 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.4246, allocations: 0 / 1.375 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005992/0.4252, allocations: 221.4 kB / 1.375 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.4252, allocations: 4 kB / 1.375 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.4252, allocations: 7.984 kB / 1.375 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.4252, allocations: 0 / 1.375 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001977/0.4254, allocations: 31.95 kB / 1.375 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.4254, allocations: 0 / 1.375 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.4256, allocations: 19.97 kB / 1.375 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/0.4256, allocations: 7.984 kB / 1.375 GB, free: 13.06 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.832e-05/0.4257, allocations: 121.8 kB / 1.375 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.619e-05/0.4258, allocations: 15.89 kB / 1.375 GB, free: 12.92 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.954e-05/0.4258, allocations: 15.86 kB / 1.375 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.4258, allocations: 11.89 kB / 1.375 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.4258, allocations: 0 / 1.375 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.4258, allocations: 0 / 1.375 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002454/0.4261, allocations: 237.6 kB / 1.376 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.4261, allocations: 0 / 1.376 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.4263, allocations: 27.95 kB / 1.376 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.4263, allocations: 0 / 1.376 GB, free: 12.58 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.4263, allocations: 15.98 kB / 1.376 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.4263, allocations: 7.938 kB / 1.376 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.4263, allocations: 0 / 1.376 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006011/0.4269, allocations: 319.2 kB / 1.376 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.427, allocations: 89 kB / 1.376 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.427, allocations: 0 / 1.376 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000164/0.4272, allocations: 15.98 kB / 1.376 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.064e-05/0.4272, allocations: 7.891 kB / 1.376 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.4273, allocations: 11.98 kB / 1.376 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 9.806e-05/0.4274, allocations: 136.6 kB / 1.376 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4274, allocations: 7.969 kB / 1.376 GB, free: 11.95 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002543/0.4276, allocations: 20 kB / 1.376 GB, free: 11.93 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009057/0.4285, allocations: 0.8605 MB / 1.377 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005681/0.4291, allocations: 211.9 kB / 1.377 GB, free: 10.84 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4291, allocations: 3.938 kB / 1.377 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002636/0.4294, allocations: 103.9 kB / 1.377 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001546/0.4296, allocations: 11.95 kB / 1.377 GB, free: 10.72 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/0.4315, allocations: 1.1 MB / 1.378 GB, free: 9.57 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.4318, allocations: 0.6965 MB / 1.379 GB, free: 8.848 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001111/0.4319, allocations: 35.98 kB / 1.379 GB, free: 8.812 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.514e-05/0.432, allocations: 35.41 kB / 1.379 GB, free: 8.781 MB / 0.8855 GB Notification: Performance of SimCode: time 3.01e-07/0.432, allocations: 0 / 1.379 GB, free: 8.781 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0128/0.4448, allocations: 2.248 MB / 1.381 GB, free: 6.66 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/0.4451, allocations: 181.4 kB / 1.382 GB, free: 6.422 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.615/2.06, allocations: 4.047 kB / 1.382 GB, free: 6.418 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat does not exist to compare? outputFormat=mat