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.367/2.367, allocations: 387.1 MB / 399.7 MB, free: 9.473 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.001376/0.001376, allocations: 176.9 kB / 492.3 MB, free: 0.6055 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.646/1.646, allocations: 221.3 MB / 0.7871 GB, free: 12.91 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.00104/0.00104, allocations: 97.61 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.812e-05/3.853e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.2993, allocations: 142.3 MB / 1.212 GB, free: 38.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.003/1.302, allocations: 153.9 MB / 1.363 GB, free: 18.91 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/1.302, allocations: 82.81 kB / 1.363 GB, free: 18.91 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02921/1.332, allocations: 12.1 MB / 1.375 GB, free: 33.88 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.424e-06/1.332, allocations: 0 / 1.375 GB, free: 33.88 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.414e-05/1.332, allocations: 19.28 kB / 1.375 GB, free: 33.88 MB / 0.8386 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.001874/1.334, allocations: 1.017 MB / 1.376 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/1.334, allocations: 11.72 kB / 1.376 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001316/1.334, allocations: 118.4 kB / 1.376 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/1.334, allocations: 101.2 kB / 1.376 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006416/1.335, allocations: 0.4901 MB / 1.376 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.416e-05/1.335, allocations: 56.47 kB / 1.376 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.205e-05/1.335, allocations: 73.91 kB / 1.376 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/1.336, allocations: 0.7076 MB / 1.377 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/1.336, allocations: 0 / 1.377 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.683e-05/1.336, allocations: 33.75 kB / 1.377 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/1.336, allocations: 15.38 kB / 1.377 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007652/1.337, allocations: 0.4886 MB / 1.378 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003264/1.34, allocations: 2.375 MB / 1.38 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008886/1.341, allocations: 0.5478 MB / 1.381 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003476/1.341, allocations: 275.3 kB / 1.381 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.551e-05/1.341, allocations: 12.73 kB / 1.381 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000499/1.342, allocations: 306.3 kB / 1.381 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=57): time 2.846e-06/1.342, allocations: 0 / 1.381 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of matching and sorting (n=57): time 0.000816/1.343, allocations: 478.9 kB / 1.382 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/1.343, allocations: 136.8 kB / 1.382 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006043/1.343, allocations: 0.5226 MB / 1.382 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.871e-05/1.343, allocations: 40.33 kB / 1.382 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.00022/1.344, allocations: 342.4 kB / 1.383 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/1.344, allocations: 183.7 kB / 1.383 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.664e-05/1.344, allocations: 14.56 kB / 1.383 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001554/1.344, allocations: 378.5 kB / 1.383 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002609/1.344, allocations: 167.4 kB / 1.383 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000309/1.345, allocations: 284.9 kB / 1.384 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/1.345, allocations: 237.9 kB / 1.384 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/1.345, allocations: 0 / 1.384 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.000791/1.346, allocations: 0.5997 MB / 1.384 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001641/1.346, allocations: 416.2 kB / 1.385 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/1.346, allocations: 0 / 1.385 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/1.346, allocations: 7.906 kB / 1.385 GB, free: 29.47 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006726/1.347, allocations: 165.1 kB / 1.385 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/1.347, allocations: 3.625 kB / 1.385 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005512/1.347, allocations: 143 kB / 1.385 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.943e-05/1.347, allocations: 14.53 kB / 1.385 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.646e-06/1.347, allocations: 5.094 kB / 1.385 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006582/1.348, allocations: 0.5017 MB / 1.386 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/1.348, allocations: 3.844 kB / 1.386 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.39e-06/1.348, allocations: 4.094 kB / 1.386 GB, free: 29.26 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/1.348, allocations: 127.4 kB / 1.386 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/1.348, allocations: 3.844 kB / 1.386 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004528/1.349, allocations: 122.4 kB / 1.386 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/1.349, allocations: 19.2 kB / 1.386 GB, free: 29.18 MB / 0.8386 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 () * 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.0001631/1.349, allocations: 146.5 kB / 1.386 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.793e-05/1.349, allocations: 69.5 kB / 1.386 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008175/1.35, allocations: 0.5011 MB / 1.387 GB, free: 28.9 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/1.35, allocations: 7.562 kB / 1.387 GB, free: 28.9 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/1.35, allocations: 4 kB / 1.387 GB, free: 28.9 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/1.35, allocations: 3.984 kB / 1.387 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/1.351, allocations: 1.282 MB / 1.388 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/1.351, allocations: 0 / 1.388 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005819/1.352, allocations: 149.8 kB / 1.388 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/1.352, allocations: 0 / 1.388 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.697e-05/1.352, allocations: 18.61 kB / 1.388 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/1.352, allocations: 7.594 kB / 1.388 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/1.352, allocations: 0 / 1.388 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009878/1.353, allocations: 0.8333 MB / 1.389 GB, free: 28.07 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/1.353, allocations: 147.1 kB / 1.389 GB, free: 27.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.494e-05/1.353, allocations: 17.23 kB / 1.389 GB, free: 27.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004788/1.354, allocations: 88.14 kB / 1.389 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/1.354, allocations: 58.05 kB / 1.389 GB, free: 27.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/1.354, allocations: 19.23 kB / 1.389 GB, free: 27.88 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0004438/1.354, allocations: 423.3 kB / 1.39 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.61e-07/1.354, allocations: 0 / 1.39 GB, free: 27.77 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006717/1.355, allocations: 253.8 kB / 1.39 GB, free: 27.72 MB / 0.8386 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) * 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.001369/1.356, allocations: 1.405 MB / 1.391 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001119/1.358, allocations: 0.9183 MB / 1.392 GB, free: 26.66 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/1.358, allocations: 0 / 1.392 GB, free: 26.66 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000319/1.358, allocations: 233 kB / 1.392 GB, free: 26.64 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006181/1.359, allocations: 114.2 kB / 1.392 GB, free: 26.61 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/1.36, allocations: 0.9827 MB / 1.393 GB, free: 26.18 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004817/1.361, allocations: 0.933 MB / 1.394 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0004777/1.361, allocations: 113.4 kB / 1.394 GB, free: 25.31 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003245/1.362, allocations: 267.3 kB / 1.395 GB, free: 25.27 MB / 0.8386 GB Notification: Performance of SimCode: time 8.01e-07/1.362, allocations: 0 / 1.395 GB, free: 25.27 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02953/1.391, allocations: 13.96 MB / 1.408 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/1.392, allocations: 174.3 kB / 1.408 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.619/4.01, allocations: 0 / 1.408 GB, free: 15.02 MB / 0.8386 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