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.1-maint.9.1.x/package.mo", uses=false) 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) 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.0009575/0.0009575, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008135/0.0008135, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.299/2.299, allocations: 390.4 MB / 0.6655 GB, free: 2.863 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003135/0.0003136, allocations: 8 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6322/0.6325, allocations: 142.3 MB / 0.9538 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.003869/0.6365, allocations: 3.275 MB / 0.957 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002265/0.6388, allocations: 1.204 MB / 0.9582 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009475/0.6397, allocations: 17.81 kB / 0.9582 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002674/0.64, allocations: 88.88 kB / 0.9583 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002643/0.6403, allocations: 73.16 kB / 0.9584 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005135/0.6408, allocations: 206.8 kB / 0.9586 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006856/0.6415, allocations: 0.8686 MB / 0.9594 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005185/0.642, allocations: 366.2 kB / 0.9598 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002171/0.6423, allocations: 217.3 kB / 0.96 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002313/0.6425, allocations: 274.4 kB / 0.9603 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.818e-05/0.6426, allocations: 24.5 kB / 0.9603 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.975e-05/0.6426, allocations: 23.38 kB / 0.9603 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.967e-05/0.6427, allocations: 111.5 kB / 0.9604 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.6429, allocations: 153.8 kB / 0.9606 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006247/0.6435, allocations: 0.9729 MB / 0.9615 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.6435, allocations: 0 / 0.9615 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.805e-06/0.6435, allocations: 1 kB / 0.9615 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.862e-05/0.6435, allocations: 0 / 0.9615 GB, free: 2.098 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.002104/0.6456, allocations: 1.122 MB / 0.9626 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/0.6457, allocations: 9.469 kB / 0.9626 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001316/0.6458, allocations: 117.9 kB / 0.9627 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/0.646, allocations: 96.92 kB / 0.9628 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005976/0.6466, allocations: 0.509 MB / 0.9633 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.306e-05/0.6467, allocations: 60.36 kB / 0.9634 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.6468, allocations: 73.06 kB / 0.9634 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.6484, allocations: 0.8443 MB / 0.9643 GB, free: 80 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.6484, allocations: 3.938 kB / 0.9643 GB, free: 76 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.213e-05/0.6484, allocations: 31.81 kB / 0.9643 GB, free: 52 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.6485, allocations: 16.72 kB / 0.9643 GB, free: 52 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.6502, allocations: 0.7569 MB / 0.9651 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003709/0.6539, allocations: 2.494 MB / 0.9675 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/0.6558, allocations: 0.8052 MB / 0.9683 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008421/0.6567, allocations: 388.1 kB / 0.9686 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 5.614e-05/0.6567, allocations: 13.53 kB / 0.9687 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009835/0.6577, allocations: 417.6 kB / 0.9691 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=51): time 3.256e-06/0.6577, allocations: 0 / 0.9691 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of matching and sorting (n=51): time 0.002557/0.6603, allocations: 0.9683 MB / 0.97 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.69e-05/0.6604, allocations: 139.6 kB / 0.9701 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008785/0.6613, allocations: 0.5616 MB / 0.9707 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 8.189e-05/0.6614, allocations: 39.05 kB / 0.9707 GB, free: 12 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002998/0.6617, allocations: 369.9 kB / 0.9711 GB, free: 11.67 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.6619, allocations: 166.4 kB / 0.9712 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.092e-05/0.6619, allocations: 14.22 kB / 0.9712 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001621/0.6621, allocations: 381.6 kB / 0.9716 GB, free: 11.15 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007552/0.6629, allocations: 301.7 kB / 0.9719 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008738/0.6637, allocations: 452.2 kB / 0.9723 GB, free: 10.72 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000827/0.6646, allocations: 389 kB / 0.9727 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.6646, allocations: 0 / 0.9727 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002017/0.6666, allocations: 0.881 MB / 0.9736 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.000144/0.6668, allocations: 212.4 kB / 0.9738 GB, free: 9.824 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.6668, allocations: 1.656 kB / 0.9738 GB, free: 9.824 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.6668, allocations: 13.67 kB / 0.9738 GB, free: 9.816 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006408/0.6675, allocations: 164.3 kB / 0.9739 GB, free: 9.773 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/0.6675, allocations: 7.531 kB / 0.9739 GB, free: 9.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006649/0.6682, allocations: 153.2 kB / 0.9741 GB, free: 9.695 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-05/0.6682, allocations: 27.52 kB / 0.9741 GB, free: 9.684 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.206e-06/0.6682, allocations: 4.312 kB / 0.9741 GB, free: 9.684 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001452/0.6697, allocations: 0.6884 MB / 0.9748 GB, free: 9.332 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.6697, allocations: 1.469 kB / 0.9748 GB, free: 9.332 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.6697, allocations: 6.25 kB / 0.9748 GB, free: 9.332 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004991/0.6702, allocations: 135.4 kB / 0.9749 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.6703, allocations: 9.875 kB / 0.9749 GB, free: 9.293 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005574/0.6708, allocations: 117.2 kB / 0.975 GB, free: 9.234 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.764e-05/0.6709, allocations: 18.91 kB / 0.9751 GB, free: 9.23 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,$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 (69): * Single equations (assignments): 67 * 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.0004711/0.6714, allocations: 307 kB / 0.9754 GB, free: 8.965 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.6715, allocations: 65.09 kB / 0.9754 GB, free: 8.93 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/0.6731, allocations: 0.7299 MB / 0.9761 GB, free: 8.555 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.6732, allocations: 5.562 kB / 0.9761 GB, free: 8.555 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.6732, allocations: 4 kB / 0.9761 GB, free: 8.551 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.6732, allocations: 3.984 kB / 0.9761 GB, free: 8.547 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000876/0.6741, allocations: 0.7142 MB / 0.9768 GB, free: 7.965 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.6741, allocations: 0 / 0.9768 GB, free: 7.965 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005655/0.6747, allocations: 140.2 kB / 0.977 GB, free: 7.879 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.6747, allocations: 4 kB / 0.977 GB, free: 7.875 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.711e-05/0.6747, allocations: 12 kB / 0.977 GB, free: 7.863 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.6747, allocations: 7.938 kB / 0.977 GB, free: 7.855 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.6747, allocations: 0 / 0.977 GB, free: 7.855 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002384/0.6771, allocations: 1.101 MB / 0.9781 GB, free: 6.734 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001662/0.6773, allocations: 148.2 kB / 0.9782 GB, free: 6.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.361e-05/0.6774, allocations: 8 kB / 0.9782 GB, free: 6.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004293/0.6778, allocations: 95.91 kB / 0.9783 GB, free: 6.469 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.678, allocations: 48.36 kB / 0.9784 GB, free: 6.422 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.534e-05/0.678, allocations: 16 kB / 0.9784 GB, free: 6.406 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004985/0.6785, allocations: 398.8 kB / 0.9788 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6785, allocations: 0 / 0.9788 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000753/0.6793, allocations: 258.9 kB / 0.979 GB, free: 5.766 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 (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.002716/0.682, allocations: 1.657 MB / 0.9806 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002804/0.6848, allocations: 1.241 MB / 0.9818 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.6848, allocations: 3.938 kB / 0.9818 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007694/0.6856, allocations: 350.9 kB / 0.9822 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007049/0.6863, allocations: 119.3 kB / 0.9823 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007623/0.694, allocations: 4.163 MB / 0.9864 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000478/0.6945, allocations: 0.9182 MB / 0.9872 GB, free: 13.13 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003646/0.6948, allocations: 72.98 kB / 0.9873 GB, free: 13.06 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003832/0.6952, allocations: 263.3 kB / 0.9876 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of SimCode: time 9.52e-07/0.6952, allocations: 0 / 0.9876 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02507/0.7203, allocations: 12.72 MB / 1 GB, free: 320 kB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/0.7205, allocations: 200.1 kB / 1 GB, free: 76 kB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.997/2.718, allocations: 0 / 1 GB, free: 76 kB / 0.7481 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