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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008902/0.0008902, allocations: 98.03 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005565/0.005565, allocations: 168.9 kB / 16.26 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.237/1.237, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.118/2.118, allocations: 390.9 MB / 0.6664 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002934/0.0002934, allocations: 12 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5418/0.5421, allocations: 142.4 MB / 0.9552 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.002867/0.545, allocations: 3.477 MB / 0.9586 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001427/0.5465, allocations: 1.228 MB / 0.9598 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002357/0.5467, allocations: 24.19 kB / 0.9598 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002009/0.5469, allocations: 98.5 kB / 0.9599 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002211/0.5471, allocations: 92.12 kB / 0.96 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004256/0.5476, allocations: 307.2 kB / 0.9603 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005947/0.5482, allocations: 0.9178 MB / 0.9612 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005587/0.5487, allocations: 0.5139 MB / 0.9617 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.5489, allocations: 232.7 kB / 0.9619 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.5492, allocations: 275.1 kB / 0.9621 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.111e-05/0.5492, allocations: 23.59 kB / 0.9622 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.476e-05/0.5493, allocations: 24.38 kB / 0.9622 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.672e-05/0.5494, allocations: 113.9 kB / 0.9623 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001817/0.5496, allocations: 344.3 kB / 0.9626 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006125/0.5502, allocations: 1.137 MB / 0.9637 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.5502, allocations: 0 / 0.9637 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.014e-06/0.5502, allocations: 4.984 kB / 0.9637 GB, free: 0.8789 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.007e-06/0.5502, allocations: 0 / 0.9637 GB, free: 0.8789 MB / 0.7169 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.001807/0.552, allocations: 1.114 MB / 0.9648 GB, free: 8 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.5521, allocations: 12.97 kB / 0.9648 GB, free: 4 kB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001495/0.5522, allocations: 118.7 kB / 0.965 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.5524, allocations: 94.41 kB / 0.965 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005994/0.553, allocations: 0.5283 MB / 0.9656 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.993e-05/0.553, allocations: 52.78 kB / 0.9656 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.5531, allocations: 77.38 kB / 0.9657 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.5547, allocations: 0.8571 MB / 0.9665 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.5548, allocations: 0.9688 kB / 0.9665 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.369e-05/0.5548, allocations: 30.44 kB / 0.9666 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.5549, allocations: 22.28 kB / 0.9666 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.5568, allocations: 0.7581 MB / 0.9673 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003308/0.5601, allocations: 2.502 MB / 0.9698 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001906/0.562, allocations: 0.7934 MB / 0.9705 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008648/0.5629, allocations: 394.1 kB / 0.9709 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.563, allocations: 5.5 kB / 0.9709 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009739/0.5639, allocations: 415 kB / 0.9713 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=51): time 2.274e-06/0.564, allocations: 0 / 0.9713 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of matching and sorting (n=51): time 0.002473/0.5664, allocations: 0.9733 MB / 0.9723 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.923e-05/0.5665, allocations: 147.1 kB / 0.9724 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006595/0.5672, allocations: 0.56 MB / 0.9729 GB, free: 10.8 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.844e-05/0.5672, allocations: 41.7 kB / 0.973 GB, free: 10.76 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.5675, allocations: 370.2 kB / 0.9733 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.5676, allocations: 170.6 kB / 0.9735 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.413e-05/0.5677, allocations: 55.72 kB / 0.9736 GB, free: 10.24 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.5679, allocations: 376.8 kB / 0.9739 GB, free: 9.879 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008104/0.5687, allocations: 314.6 kB / 0.9742 GB, free: 9.746 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008852/0.5696, allocations: 459 kB / 0.9747 GB, free: 9.445 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001589/0.5712, allocations: 0.7431 MB / 0.9754 GB, free: 9.016 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.5712, allocations: 0.7188 kB / 0.9754 GB, free: 9.016 MB / 0.7325 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001912/0.5731, allocations: 0.8885 MB / 0.9762 GB, free: 8.566 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.5732, allocations: 211.6 kB / 0.9764 GB, free: 8.324 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.5732, allocations: 2.625 kB / 0.9765 GB, free: 8.324 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.5733, allocations: 9.328 kB / 0.9765 GB, free: 8.32 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006326/0.5739, allocations: 174.8 kB / 0.9766 GB, free: 8.266 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.5739, allocations: 5.125 kB / 0.9766 GB, free: 8.266 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000606/0.5745, allocations: 153 kB / 0.9768 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.324e-05/0.5746, allocations: 19.47 kB / 0.9768 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.071e-06/0.5746, allocations: 4.406 kB / 0.9768 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001426/0.576, allocations: 0.6959 MB / 0.9775 GB, free: 7.836 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.576, allocations: 2.156 kB / 0.9775 GB, free: 7.836 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.653e-06/0.5761, allocations: 8.969 kB / 0.9775 GB, free: 7.832 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004932/0.5765, allocations: 136.4 kB / 0.9776 GB, free: 7.797 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.5766, allocations: 13.98 kB / 0.9776 GB, free: 7.785 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004869/0.5771, allocations: 119.4 kB / 0.9777 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.155e-05/0.5771, allocations: 16 kB / 0.9778 GB, free: 7.652 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 13 (conMix.conFloRat.con1.y,conMix.conCoo.con1.y,conMix.conHea.con1.y,m_flow.count,$PRE.m_flow.count,m_flow.T_start,$PRE.m_flow.T_start,TRoo.count,$PRE.TRoo.count,TRoo.T_start,$PRE.TRoo.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003105/0.5774, allocations: 308.9 kB / 0.9781 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.362e-05/0.5775, allocations: 63.25 kB / 0.9781 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.5792, allocations: 0.7329 MB / 0.9788 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.5793, allocations: 4 kB / 0.9788 GB, free: 6.535 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.5793, allocations: 0 / 0.9788 GB, free: 6.535 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.5793, allocations: 3.938 kB / 0.9788 GB, free: 6.531 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007061/0.58, allocations: 0.712 MB / 0.9795 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.58, allocations: 0 / 0.9795 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005622/0.5806, allocations: 139.8 kB / 0.9797 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.5806, allocations: 4 kB / 0.9797 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.372e-05/0.5806, allocations: 15.98 kB / 0.9797 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.5806, allocations: 0 / 0.9797 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.5806, allocations: 0 / 0.9797 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002472/0.5831, allocations: 1.101 MB / 0.9808 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.5832, allocations: 148.3 kB / 0.9809 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.179e-05/0.5833, allocations: 16 kB / 0.9809 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004854/0.5838, allocations: 87.92 kB / 0.981 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.5839, allocations: 48.36 kB / 0.981 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.183e-05/0.584, allocations: 16 kB / 0.9811 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004254/0.5844, allocations: 406.8 kB / 0.9815 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5844, allocations: 3.938 kB / 0.9815 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005897/0.585, allocations: 258.9 kB / 0.9817 GB, free: 3.508 MB / 0.7325 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: 6 ($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 (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002734/0.5877, allocations: 1.661 MB / 0.9833 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002467/0.5902, allocations: 1.256 MB / 0.9846 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.5902, allocations: 0 / 0.9846 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008019/0.591, allocations: 354.8 kB / 0.9849 GB, free: 164 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006283/0.5917, allocations: 116.8 kB / 0.985 GB, free: 52 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009991/0.6017, allocations: 6.333 MB / 0.9912 GB, free: 9.555 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/0.6021, allocations: 0.9104 MB / 0.9921 GB, free: 8.617 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003156/0.6024, allocations: 76.98 kB / 0.9921 GB, free: 8.539 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003508/0.6028, allocations: 259.3 kB / 0.9924 GB, free: 8.285 MB / 0.7481 GB Notification: Performance of SimCode: time 6.82e-07/0.6028, allocations: 3.938 kB / 0.9924 GB, free: 8.281 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.318/4.921, allocations: 12.41 MB / 1.005 GB, free: 12.1 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002329/4.921, allocations: 221.6 kB / 1.005 GB, free: 11.84 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.282/10.2, allocations: 0 / 1.005 GB, free: 11.84 MB / 0.7637 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/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)