Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_8_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.001693/0.001693, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001938/0.001938, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.054/3.054, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 3.14/3.14, allocations: 292.6 MB / 0.5497 GB, free: 14.61 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006963/0.0006966, allocations: 18.34 kB / 0.6737 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4935/0.4942, allocations: 116.3 MB / 0.7872 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.007399/0.5017, allocations: 3.291 MB / 0.7904 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004935/0.5068, allocations: 1.245 MB / 0.7917 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001318/0.5082, allocations: 15.94 kB / 0.7917 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000384/0.5086, allocations: 63.23 kB / 0.7917 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.001487/0.5101, allocations: 142.7 kB / 0.7919 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001311/0.5114, allocations: 227.6 kB / 0.7921 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001711/0.5132, allocations: 0.5419 MB / 0.7926 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009868/0.5142, allocations: 379.6 kB / 0.793 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005776/0.5148, allocations: 214.9 kB / 0.7932 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005277/0.5153, allocations: 286.3 kB / 0.7935 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.5154, allocations: 32 kB / 0.7935 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.5155, allocations: 24 kB / 0.7935 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.00018/0.5157, allocations: 111.4 kB / 0.7936 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002604/0.516, allocations: 161.2 kB / 0.7938 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001499/0.5175, allocations: 1.021 MB / 0.7948 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.5175, allocations: 0 / 0.7948 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.128e-06/0.5176, allocations: 0 / 0.7948 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.51e-05/0.5176, allocations: 0 / 0.7948 GB, free: 4.07 MB / 0.6075 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.004318/0.5219, allocations: 1.169 MB / 0.7959 GB, free: 2.84 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 8.915e-05/0.522, allocations: 8.031 kB / 0.7959 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002961/0.5223, allocations: 118.5 kB / 0.796 GB, free: 2.707 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003115/0.5227, allocations: 98.81 kB / 0.7961 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001383/0.5241, allocations: 0.559 MB / 0.7967 GB, free: 2.004 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.855e-05/0.5242, allocations: 58 kB / 0.7967 GB, free: 1.949 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.5244, allocations: 76 kB / 0.7968 GB, free: 1.875 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003041/0.5274, allocations: 0.8384 MB / 0.7976 GB, free: 1.016 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.612e-05/0.5275, allocations: 0 / 0.7976 GB, free: 1.016 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/0.5276, allocations: 32 kB / 0.7976 GB, free: 0.9844 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.558e-05/0.5277, allocations: 20 kB / 0.7977 GB, free: 0.9648 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0032/0.5309, allocations: 0.7573 MB / 0.7984 GB, free: 216 kB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007011/0.5379, allocations: 2.516 MB / 0.8009 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003483/0.5415, allocations: 0.8173 MB / 0.8017 GB, free: 12.78 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001088/0.5417, allocations: 16.72 kB / 0.8017 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001781/0.5435, allocations: 417.1 kB / 0.8021 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=51): time 5.831e-06/0.5435, allocations: 0 / 0.8021 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of matching and sorting (n=51): time 0.004302/0.5478, allocations: 0.9784 MB / 0.803 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/0.5481, allocations: 133 kB / 0.8032 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0016/0.5497, allocations: 0.6096 MB / 0.8038 GB, free: 10.59 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.5498, allocations: 37.7 kB / 0.8038 GB, free: 10.54 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006513/0.5505, allocations: 384.1 kB / 0.8042 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002829/0.5508, allocations: 169.5 kB / 0.8043 GB, free: 9.992 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.117e-05/0.5508, allocations: 12 kB / 0.8043 GB, free: 9.98 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000313/0.5512, allocations: 374.8 kB / 0.8047 GB, free: 9.605 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.5525, allocations: 309 kB / 0.805 GB, free: 9.305 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001702/0.5543, allocations: 457.1 kB / 0.8054 GB, free: 8.809 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.5557, allocations: 389.4 kB / 0.8058 GB, free: 8.414 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/0.5558, allocations: 7.953 kB / 0.8058 GB, free: 8.406 MB / 0.6231 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003313/0.5591, allocations: 0.8842 MB / 0.8067 GB, free: 7.508 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006415/0.5598, allocations: 0.9292 MB / 0.8076 GB, free: 6.492 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.309e-05/0.5598, allocations: 15.92 kB / 0.8076 GB, free: 6.477 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.371e-05/0.5598, allocations: 7.938 kB / 0.8076 GB, free: 6.469 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.5609, allocations: 159.8 kB / 0.8077 GB, free: 6.312 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.254e-05/0.5609, allocations: 7.938 kB / 0.8077 GB, free: 6.305 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001131/0.5621, allocations: 155.2 kB / 0.8079 GB, free: 6.152 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.538e-05/0.5622, allocations: 27.98 kB / 0.8079 GB, free: 6.125 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.5622, allocations: 4 kB / 0.8079 GB, free: 6.121 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002414/0.5646, allocations: 0.6882 MB / 0.8086 GB, free: 5.426 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.5647, allocations: 4 kB / 0.8086 GB, free: 5.422 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.5647, allocations: 4 kB / 0.8086 GB, free: 5.418 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008414/0.5655, allocations: 139.8 kB / 0.8087 GB, free: 5.281 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.5656, allocations: 7.938 kB / 0.8087 GB, free: 5.273 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.5666, allocations: 119.3 kB / 0.8089 GB, free: 5.156 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.433e-05/0.5667, allocations: 31.92 kB / 0.8089 GB, free: 5.125 MB / 0.6231 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.000799/0.5675, allocations: 297 kB / 0.8092 GB, free: 4.824 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002064/0.5677, allocations: 67.16 kB / 0.8092 GB, free: 4.758 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002967/0.5707, allocations: 0.7373 MB / 0.81 GB, free: 4.008 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.5708, allocations: 4 kB / 0.81 GB, free: 4.004 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.5708, allocations: 0 / 0.81 GB, free: 4.004 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.407e-05/0.5708, allocations: 3.984 kB / 0.81 GB, free: 4 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/0.5724, allocations: 0.7237 MB / 0.8107 GB, free: 3.227 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.5725, allocations: 0 / 0.8107 GB, free: 3.227 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000948/0.5734, allocations: 143.8 kB / 0.8108 GB, free: 3.086 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/0.5734, allocations: 0 / 0.8108 GB, free: 3.086 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.758e-05/0.5735, allocations: 12 kB / 0.8108 GB, free: 3.074 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.5735, allocations: 4 kB / 0.8108 GB, free: 3.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.5735, allocations: 4 kB / 0.8108 GB, free: 3.066 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004329/0.5779, allocations: 1.104 MB / 0.8119 GB, free: 1.945 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003845/0.5783, allocations: 148.2 kB / 0.812 GB, free: 1.781 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/0.5785, allocations: 16 kB / 0.8121 GB, free: 1.766 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000762/0.5792, allocations: 91.91 kB / 0.8122 GB, free: 1.676 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.5795, allocations: 48.36 kB / 0.8122 GB, free: 1.629 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-05/0.5795, allocations: 16 kB / 0.8122 GB, free: 1.613 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0009782/0.5805, allocations: 431.1 kB / 0.8126 GB, free: 1.195 MB / 0.6231 GB Notification: Performance of sort global known variables: time 8.82e-07/0.5805, allocations: 0 / 0.8126 GB, free: 1.195 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001405/0.582, allocations: 266.9 kB / 0.8129 GB, free: 0.9336 MB / 0.6231 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.005452/0.5874, allocations: 1.669 MB / 0.8145 GB, free: 15.23 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.004394/0.5919, allocations: 1.249 MB / 0.8157 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/0.592, allocations: 0 / 0.8157 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001508/0.5935, allocations: 350.9 kB / 0.8161 GB, free: 13.59 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001217/0.5948, allocations: 115.7 kB / 0.8162 GB, free: 13.48 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01696/0.6118, allocations: 5.699 MB / 0.8217 GB, free: 7.688 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009757/0.6128, allocations: 0.9417 MB / 0.8227 GB, free: 6.719 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.000744/0.6136, allocations: 68.91 kB / 0.8227 GB, free: 6.648 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006437/0.6142, allocations: 279.3 kB / 0.823 GB, free: 6.375 MB / 0.6387 GB Notification: Performance of SimCode: time 1.804e-06/0.6143, allocations: 4 kB / 0.823 GB, free: 6.371 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05559/0.6699, allocations: 13.14 MB / 0.8358 GB, free: 9.453 MB / 0.6544 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002908/0.6702, allocations: 194.6 kB / 0.836 GB, free: 9.211 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.017/4.687, allocations: 3.938 kB / 0.836 GB, free: 9.207 MB / 0.6544 GB (rm -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.fmu > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) Environment - environmentSimulation: