Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.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.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV,fileNamePrefix="Buildings_9_Buildings_Examples_VAVReheat_BaseClasses_Controls_Examples_RoomVAV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV,fileNamePrefix="Buildings_9_Buildings_Examples_VAVReheat_BaseClasses_Controls_Examples_RoomVAV",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.394/2.394, 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.001052/0.001053, allocations: 193.1 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.583/1.583, allocations: 223.2 MB / 0.7948 GB, free: 18.84 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.001003/0.001003, allocations: 97.44 kB / 0.9346 GB, free: 7.129 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003857, allocations: 11 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.332, allocations: 142.4 MB / 1.223 GB, free: 89.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2029/0.535, allocations: 153.9 MB / 1.373 GB, free: 15.39 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.5354, allocations: 91.92 kB / 1.373 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02276/0.5581, allocations: 8.76 MB / 1.382 GB, free: 6.527 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.036e-06/0.5582, allocations: 7.938 kB / 1.382 GB, free: 6.52 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 5.445e-05/0.5582, allocations: 16 kB / 1.382 GB, free: 6.504 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001877/0.5601, allocations: 0.8493 MB / 1.383 GB, free: 5.605 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/0.5602, allocations: 12.03 kB / 1.383 GB, free: 5.594 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002107/0.5604, allocations: 94.5 kB / 1.383 GB, free: 5.492 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002108/0.5606, allocations: 75.11 kB / 1.383 GB, free: 5.418 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007647/0.5614, allocations: 428.8 kB / 1.383 GB, free: 4.957 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.367e-05/0.5615, allocations: 41.31 kB / 1.383 GB, free: 4.914 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.093e-05/0.5616, allocations: 51.94 kB / 1.383 GB, free: 4.863 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.5627, allocations: 0.5614 MB / 1.384 GB, free: 4.289 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.5628, allocations: 0 / 1.384 GB, free: 4.289 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.347e-05/0.5628, allocations: 31.94 kB / 1.384 GB, free: 4.258 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.832e-05/0.5629, allocations: 16 kB / 1.384 GB, free: 4.242 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.5639, allocations: 447.7 kB / 1.384 GB, free: 3.805 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002833/0.5667, allocations: 1.757 MB / 1.386 GB, free: 1.984 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.5682, allocations: 0.5644 MB / 1.387 GB, free: 1.414 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.762e-05/0.5682, allocations: 7.984 kB / 1.387 GB, free: 1.406 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005808/0.5688, allocations: 278.1 kB / 1.387 GB, free: 1.113 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=37): time 2.505e-06/0.5688, allocations: 0 / 1.387 GB, free: 1.113 MB / 0.8855 GB Notification: Performance of matching and sorting (n=37): time 0.001298/0.5702, allocations: 0.5719 MB / 1.387 GB, free: 0.5352 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.961e-05/0.5703, allocations: 158.2 kB / 1.388 GB, free: 352 kB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006156/0.5709, allocations: 461.3 kB / 1.388 GB, free: 15.89 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 4.718e-05/0.5709, allocations: 41.7 kB / 1.388 GB, free: 15.84 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/0.5712, allocations: 276.5 kB / 1.388 GB, free: 15.56 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 9.901e-05/0.5713, allocations: 118.3 kB / 1.388 GB, free: 15.45 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.052e-05/0.5713, allocations: 8 kB / 1.388 GB, free: 15.44 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.5715, allocations: 362.8 kB / 1.389 GB, free: 15.07 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003909/0.5719, allocations: 159.9 kB / 1.389 GB, free: 14.92 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004144/0.5723, allocations: 248.7 kB / 1.389 GB, free: 14.64 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003778/0.5727, allocations: 170.9 kB / 1.389 GB, free: 14.48 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.5727, allocations: 0 / 1.389 GB, free: 14.48 MB / 0.9011 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009045/0.5736, allocations: 470.7 kB / 1.39 GB, free: 14.01 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001646/0.5738, allocations: 375.8 kB / 1.39 GB, free: 13.62 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.5738, allocations: 0 / 1.39 GB, free: 13.62 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.5738, allocations: 4 kB / 1.39 GB, free: 13.61 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003683/0.5742, allocations: 87.89 kB / 1.39 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.5742, allocations: 4 kB / 1.39 GB, free: 13.52 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003444/0.5746, allocations: 83.48 kB / 1.39 GB, free: 13.44 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.5746, allocations: 19.98 kB / 1.39 GB, free: 13.42 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.5746, allocations: 5.719 kB / 1.39 GB, free: 13.42 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006242/0.5753, allocations: 332 kB / 1.391 GB, free: 13.09 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.5753, allocations: 0 / 1.391 GB, free: 13.09 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.324e-06/0.5753, allocations: 7.984 kB / 1.391 GB, free: 13.09 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000304/0.5756, allocations: 75.84 kB / 1.391 GB, free: 13.01 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.5756, allocations: 0 / 1.391 GB, free: 13.01 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003003/0.5759, allocations: 71.59 kB / 1.391 GB, free: 12.94 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.576, allocations: 15.98 kB / 1.391 GB, free: 12.93 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,$PRE.vavBoxCon.hysWitHol.y,vavBoxCon.hysWitHol.y,vavBoxCon.assMes.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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 0.0002921/0.5763, allocations: 265 kB / 1.391 GB, free: 12.66 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.628e-05/0.5763, allocations: 55.3 kB / 1.391 GB, free: 12.6 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009243/0.5773, allocations: 450.1 kB / 1.392 GB, free: 12.15 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.5773, allocations: 4 kB / 1.392 GB, free: 12.15 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.5773, allocations: 3.938 kB / 1.392 GB, free: 12.14 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.5773, allocations: 3.984 kB / 1.392 GB, free: 12.14 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001585/0.5789, allocations: 1.157 MB / 1.393 GB, free: 10.92 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.5789, allocations: 0 / 1.393 GB, free: 10.92 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003497/0.5793, allocations: 75.89 kB / 1.393 GB, free: 10.85 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.5793, allocations: 0 / 1.393 GB, free: 10.85 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.264e-05/0.5793, allocations: 15.98 kB / 1.393 GB, free: 10.83 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.738e-06/0.5794, allocations: 8.031 kB / 1.393 GB, free: 10.82 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.5794, allocations: 0 / 1.393 GB, free: 10.82 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/0.5807, allocations: 0.747 MB / 1.394 GB, free: 10.05 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.5808, allocations: 140.4 kB / 1.394 GB, free: 9.895 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.481e-05/0.5809, allocations: 8.062 kB / 1.394 GB, free: 9.887 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000304/0.5812, allocations: 60.02 kB / 1.394 GB, free: 9.828 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.138e-05/0.5813, allocations: 27.95 kB / 1.394 GB, free: 9.801 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.5814, allocations: 11.98 kB / 1.394 GB, free: 9.789 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0004912/0.5819, allocations: 366.9 kB / 1.394 GB, free: 9.434 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.903e-06/0.5819, allocations: 0 / 1.394 GB, free: 9.434 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0006019/0.5825, allocations: 171.4 kB / 1.394 GB, free: 9.266 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (vavBoxCon.conHea.I.y,vavBoxCon.conCoo.I.y) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,vavBoxCon.hysWitHol.y,vavBoxCon.assMes.u) * Number of discrete states: 1 (vavBoxCon.hysWitHol.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.001752/0.5842, allocations: 1.384 MB / 1.396 GB, free: 7.848 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001228/0.5855, allocations: 0.5663 MB / 1.396 GB, free: 7.281 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.5855, allocations: 0 / 1.396 GB, free: 7.281 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004003/0.5859, allocations: 204 kB / 1.396 GB, free: 7.082 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005386/0.5864, allocations: 82.2 kB / 1.397 GB, free: 7.004 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005604/0.5921, allocations: 3.533 MB / 1.4 GB, free: 3.398 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004587/0.5925, allocations: 0.8705 MB / 1.401 GB, free: 2.5 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.000294/0.5929, allocations: 56.23 kB / 1.401 GB, free: 2.441 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003149/0.5932, allocations: 203.4 kB / 1.401 GB, free: 2.242 MB / 0.9011 GB Notification: Performance of SimCode: time 8.62e-07/0.5932, allocations: 4 kB / 1.401 GB, free: 2.238 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5947/1.188, allocations: 9.663 MB / 1.41 GB, free: 171.3 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000158/1.188, allocations: 196.7 kB / 1.411 GB, free: 171.1 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.303/3.491, allocations: 0 / 1.411 GB, free: 171.1 MB / 0.9011 GB (rm -f Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe ; mkfifo Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe >> ../files/Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_VAVReheat_BaseClasses_Controls_Examples_RoomVAV_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_VAVReheat_BaseClasses_Controls_Examples_RoomVAV.fmu > Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV_res.mat does not exist to compare? outputFormat=mat