Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.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.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",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.289/2.289, allocations: 390.3 MB / 405.3 MB, free: 13.56 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.001005/0.001005, allocations: 180.3 kB / 498.1 MB, free: 5.816 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.368/1.368, allocations: 223.2 MB / 0.7948 GB, free: 18 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.00095/0.00095, allocations: 102.8 kB / 0.9346 GB, free: 6.305 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003602, allocations: 11.44 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2507, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1765/0.4272, allocations: 153.9 MB / 1.373 GB, free: 8.125 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.4276, allocations: 83.95 kB / 1.373 GB, free: 8.043 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.03105/0.4586, allocations: 12.14 MB / 1.385 GB, free: 11.87 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4587, allocations: 0 / 1.385 GB, free: 11.87 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 4.626e-05/0.4587, allocations: 20 kB / 1.385 GB, free: 11.85 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: 179 * Number of variables: 179 Notification: Performance of Generate backend data structure: time 0.002736/0.4615, allocations: 1.123 MB / 1.386 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.4615, allocations: 8.031 kB / 1.386 GB, free: 10.65 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002349/0.4618, allocations: 122.5 kB / 1.386 GB, free: 10.52 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002258/0.462, allocations: 94.88 kB / 1.387 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008247/0.4628, allocations: 0.4887 MB / 1.387 GB, free: 9.898 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.442e-05/0.4629, allocations: 58 kB / 1.387 GB, free: 9.844 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.463, allocations: 72 kB / 1.387 GB, free: 9.773 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001665/0.4647, allocations: 0.8463 MB / 1.388 GB, free: 8.906 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.4647, allocations: 3.938 kB / 1.388 GB, free: 8.902 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.132e-05/0.4648, allocations: 31.98 kB / 1.388 GB, free: 8.871 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.4648, allocations: 16 kB / 1.388 GB, free: 8.855 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001866/0.4667, allocations: 0.7535 MB / 1.389 GB, free: 8.105 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003559/0.4703, allocations: 2.379 MB / 1.391 GB, free: 5.66 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002105/0.4724, allocations: 0.8536 MB / 1.392 GB, free: 4.793 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.381e-05/0.4724, allocations: 12.42 kB / 1.392 GB, free: 4.781 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001023/0.4735, allocations: 439.2 kB / 1.392 GB, free: 4.336 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=57): time 2.685e-06/0.4735, allocations: 3.938 kB / 1.392 GB, free: 4.332 MB / 0.8855 GB Notification: Performance of matching and sorting (n=57): time 0.002481/0.476, allocations: 1.017 MB / 1.393 GB, free: 3.312 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.79e-05/0.4761, allocations: 141.1 kB / 1.393 GB, free: 3.145 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006538/0.4767, allocations: 0.5337 MB / 1.394 GB, free: 2.605 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.306e-05/0.4768, allocations: 37.7 kB / 1.394 GB, free: 2.562 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.477, allocations: 336.7 kB / 1.394 GB, free: 2.23 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.4772, allocations: 189.3 kB / 1.395 GB, free: 2.043 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.017e-05/0.4772, allocations: 12 kB / 1.395 GB, free: 2.031 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.4774, allocations: 374.8 kB / 1.395 GB, free: 1.656 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007721/0.4782, allocations: 312.9 kB / 1.395 GB, free: 1.352 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008407/0.479, allocations: 411.4 kB / 1.396 GB, free: 0.9141 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007934/0.4798, allocations: 385.4 kB / 1.396 GB, free: 0.5234 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.4798, allocations: 0 / 1.396 GB, free: 0.5234 MB / 0.8855 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001845/0.4817, allocations: 0.8685 MB / 1.397 GB, free: 15.64 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001926/0.4819, allocations: 421.6 kB / 1.397 GB, free: 15.19 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.4819, allocations: 0 / 1.397 GB, free: 15.19 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.4819, allocations: 7.953 kB / 1.397 GB, free: 15.18 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000662/0.4826, allocations: 155.8 kB / 1.397 GB, free: 15.03 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.4826, allocations: 3.938 kB / 1.397 GB, free: 15.02 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006009/0.4832, allocations: 143.3 kB / 1.397 GB, free: 14.88 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.188e-05/0.4833, allocations: 27.98 kB / 1.398 GB, free: 14.86 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 8.436e-06/0.4833, allocations: 0 / 1.398 GB, free: 14.86 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001397/0.4847, allocations: 0.6686 MB / 1.398 GB, free: 14.17 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.4847, allocations: 0 / 1.398 GB, free: 14.17 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.4848, allocations: 7.984 kB / 1.398 GB, free: 14.16 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005049/0.4853, allocations: 135.7 kB / 1.398 GB, free: 14.03 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.4853, allocations: 4 kB / 1.398 GB, free: 14.03 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004883/0.4858, allocations: 115.4 kB / 1.398 GB, free: 13.91 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.4858, allocations: 16 kB / 1.398 GB, free: 13.9 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: 13 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.TRoo.T_start,TRoo.T_start,$PRE.TRoo.count,TRoo.count,$PRE.m_flow.T_start,m_flow.T_start,$PRE.m_flow.count,m_flow.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 2 * 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.0003557/0.4862, allocations: 301 kB / 1.399 GB, free: 13.59 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.4863, allocations: 67.16 kB / 1.399 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00176/0.4881, allocations: 0.7674 MB / 1.4 GB, free: 12.75 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.896e-06/0.4881, allocations: 4 kB / 1.4 GB, free: 12.75 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4881, allocations: 0 / 1.4 GB, free: 12.75 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.567e-06/0.4881, allocations: 3.984 kB / 1.4 GB, free: 12.74 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002522/0.4906, allocations: 1.543 MB / 1.401 GB, free: 11.14 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4907, allocations: 0 / 1.401 GB, free: 11.14 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006177/0.4913, allocations: 151.8 kB / 1.401 GB, free: 10.99 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.451e-06/0.4913, allocations: 0 / 1.401 GB, free: 10.99 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.431e-05/0.4913, allocations: 11.98 kB / 1.401 GB, free: 10.98 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.458e-05/0.4914, allocations: 8 kB / 1.401 GB, free: 10.97 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4914, allocations: 0 / 1.401 GB, free: 10.97 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002508/0.4939, allocations: 1.224 MB / 1.402 GB, free: 9.734 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.4941, allocations: 160.2 kB / 1.403 GB, free: 9.559 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.092e-05/0.4942, allocations: 12 kB / 1.403 GB, free: 9.547 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005486/0.4947, allocations: 95.91 kB / 1.403 GB, free: 9.453 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.4948, allocations: 48.48 kB / 1.403 GB, free: 9.406 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.695e-05/0.4949, allocations: 16 kB / 1.403 GB, free: 9.391 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0005147/0.4954, allocations: 430.8 kB / 1.403 GB, free: 8.973 MB / 0.9011 GB Notification: Performance of sort global known variables: time 4e-07/0.4954, allocations: 0 / 1.403 GB, free: 8.973 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0006831/0.4961, allocations: 259.1 kB / 1.403 GB, free: 8.719 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (conMix.conHea.I.y,conMix.conCoo.I.y,conMix.conFloRat.I.y) * Number of discrete variables: 9 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,TRoo.T_start,TRoo.count,m_flow.T_start,m_flow.count) * Number of discrete states: 2 (m_flow.count,TRoo.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.002896/0.499, allocations: 1.806 MB / 1.405 GB, free: 6.883 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002532/0.5016, allocations: 1.246 MB / 1.406 GB, free: 5.59 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.5016, allocations: 0 / 1.406 GB, free: 5.59 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0008788/0.5025, allocations: 367.2 kB / 1.407 GB, free: 5.227 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006147/0.5031, allocations: 119 kB / 1.407 GB, free: 5.113 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007929/0.511, allocations: 4.768 MB / 1.411 GB, free: 284 kB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004901/0.5115, allocations: 0.9347 MB / 1.412 GB, free: 15.32 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.000364/0.5119, allocations: 73.08 kB / 1.412 GB, free: 15.24 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/0.5123, allocations: 275.3 kB / 1.413 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of SimCode: time 8.92e-07/0.5123, allocations: 0 / 1.413 GB, free: 14.97 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03333/0.5457, allocations: 13.22 MB / 1.426 GB, free: 1.977 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002186/0.5459, allocations: 201.8 kB / 1.426 GB, free: 1.73 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.578/3.124, allocations: 0 / 1.426 GB, free: 1.73 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.fmu > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat does not exist to compare? outputFormat=mat