Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conMix.TRoo|conMix.TRooSetHea|conMix.TRooSetCoo|conMix.yHot|conMix.yCol|m_flow.y",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conMix.TRoo|conMix.TRooSetHea|conMix.TRooSetCoo|conMix.yHot|conMix.yCol|m_flow.y",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 100.3 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.002054/0.002055, allocations: 177.3 kB / 15.94 MB, free: 228 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.491/1.491, allocations: 223.2 MB / 239.9 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.865/2.865, allocations: 436.5 MB / 0.7104 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003574, allocations: 8 kB / 0.8708 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8214/0.8218, allocations: 153.7 MB / 1.021 GB, free: 1.156 MB / 0.7638 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.004393/0.8262, allocations: 3.276 MB / 1.024 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002449/0.8287, allocations: 1.227 MB / 1.025 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003987/0.8291, allocations: 15.94 kB / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.8293, allocations: 59.3 kB / 1.025 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003697/0.8297, allocations: 127.5 kB / 1.025 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006258/0.8303, allocations: 227.6 kB / 1.026 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007383/0.8311, allocations: 0.5458 MB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006095/0.8317, allocations: 375.5 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003315/0.832, allocations: 222.8 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003459/0.8324, allocations: 262.4 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.435e-05/0.8325, allocations: 24 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.969e-05/0.8325, allocations: 27.94 kB / 1.027 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.8327, allocations: 107.5 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001598/0.8328, allocations: 153.3 kB / 1.027 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.8339, allocations: 0.9759 MB / 1.028 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.8339, allocations: 0 / 1.028 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.585e-06/0.8339, allocations: 0 / 1.028 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.992e-05/0.834, allocations: 4 kB / 1.028 GB, free: 9.504 MB / 0.7794 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.002719/0.8367, allocations: 1.13 MB / 1.029 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.836e-05/0.8368, allocations: 8.031 kB / 1.029 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002137/0.837, allocations: 94.88 kB / 1.029 GB, free: 8.211 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007613/0.8377, allocations: 0.5063 MB / 1.03 GB, free: 7.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.735e-05/0.8378, allocations: 65.98 kB / 1.03 GB, free: 7.598 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001654/0.838, allocations: 68 kB / 1.03 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.8397, allocations: 0.8384 MB / 1.031 GB, free: 6.672 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.8397, allocations: 3.938 kB / 1.031 GB, free: 6.668 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.753e-05/0.8398, allocations: 32 kB / 1.031 GB, free: 6.637 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.8398, allocations: 16 kB / 1.031 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002057/0.8419, allocations: 0.7534 MB / 1.032 GB, free: 5.871 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003873/0.8458, allocations: 2.497 MB / 1.034 GB, free: 3.289 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/0.8479, allocations: 0.8204 MB / 1.035 GB, free: 2.457 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.988e-05/0.8479, allocations: 17.44 kB / 1.035 GB, free: 2.441 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/0.849, allocations: 409.1 kB / 1.035 GB, free: 2.031 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=51): time 3.938e-06/0.849, allocations: 0 / 1.035 GB, free: 2.031 MB / 0.7794 GB Notification: Performance of matching and sorting (n=51): time 0.002556/0.8516, allocations: 0.9706 MB / 1.036 GB, free: 1.051 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.543e-05/0.8517, allocations: 141 kB / 1.036 GB, free: 0.8828 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007293/0.8524, allocations: 0.5537 MB / 1.037 GB, free: 328 kB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.321e-05/0.8525, allocations: 49.69 kB / 1.037 GB, free: 272 kB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003185/0.8529, allocations: 368 kB / 1.037 GB, free: 15.9 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.853, allocations: 165.6 kB / 1.037 GB, free: 15.74 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.8531, allocations: 12 kB / 1.037 GB, free: 15.73 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000196/0.8533, allocations: 370.8 kB / 1.038 GB, free: 15.36 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008007/0.8541, allocations: 309 kB / 1.038 GB, free: 15.05 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009264/0.855, allocations: 453.1 kB / 1.039 GB, free: 14.56 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008577/0.8559, allocations: 385.4 kB / 1.039 GB, free: 14.18 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.8559, allocations: 0 / 1.039 GB, free: 14.18 MB / 0.795 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002017/0.8579, allocations: 0.8803 MB / 1.04 GB, free: 13.28 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004944/0.8584, allocations: 0.9331 MB / 1.041 GB, free: 12.26 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.8584, allocations: 4 kB / 1.041 GB, free: 12.26 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/0.8585, allocations: 8 kB / 1.041 GB, free: 12.25 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006379/0.8591, allocations: 167.8 kB / 1.041 GB, free: 12.09 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.8591, allocations: 7.938 kB / 1.041 GB, free: 12.08 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006251/0.8598, allocations: 147.3 kB / 1.041 GB, free: 11.93 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.225e-05/0.8598, allocations: 27.89 kB / 1.041 GB, free: 11.91 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.8598, allocations: 4 kB / 1.041 GB, free: 11.9 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0015/0.8613, allocations: 0.6882 MB / 1.042 GB, free: 11.2 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.8614, allocations: 4 kB / 1.042 GB, free: 11.2 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.135e-06/0.8614, allocations: 4 kB / 1.042 GB, free: 11.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004946/0.8619, allocations: 147.8 kB / 1.042 GB, free: 11.05 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.8619, allocations: 4 kB / 1.042 GB, free: 11.05 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004976/0.8624, allocations: 111.4 kB / 1.042 GB, free: 10.94 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/0.8624, allocations: 23.98 kB / 1.042 GB, free: 10.91 MB / 0.795 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.0004522/0.8629, allocations: 306.6 kB / 1.042 GB, free: 10.61 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.619e-05/0.863, allocations: 71.11 kB / 1.042 GB, free: 10.54 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001772/0.8648, allocations: 0.7289 MB / 1.043 GB, free: 9.801 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.8648, allocations: 7.938 kB / 1.043 GB, free: 9.793 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.8648, allocations: 4 kB / 1.043 GB, free: 9.789 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.8648, allocations: 3.984 kB / 1.043 GB, free: 9.785 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008233/0.8656, allocations: 0.7081 MB / 1.044 GB, free: 9.027 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.8657, allocations: 4 kB / 1.044 GB, free: 9.023 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005766/0.8662, allocations: 139.8 kB / 1.044 GB, free: 8.887 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.8663, allocations: 7.953 kB / 1.044 GB, free: 8.879 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.333e-05/0.8663, allocations: 12 kB / 1.044 GB, free: 8.867 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.8663, allocations: 0 / 1.044 GB, free: 8.867 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.8663, allocations: 0 / 1.044 GB, free: 8.867 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002531/0.8689, allocations: 1.097 MB / 1.045 GB, free: 7.75 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001476/0.869, allocations: 152.2 kB / 1.045 GB, free: 7.582 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.972e-05/0.8691, allocations: 15.95 kB / 1.045 GB, free: 7.566 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004849/0.8696, allocations: 87.91 kB / 1.045 GB, free: 7.48 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.8697, allocations: 48.45 kB / 1.045 GB, free: 7.434 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.8e-05/0.8698, allocations: 19.98 kB / 1.045 GB, free: 7.414 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004934/0.8703, allocations: 402.8 kB / 1.046 GB, free: 7.023 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8703, allocations: 0 / 1.046 GB, free: 7.023 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007351/0.871, allocations: 251 kB / 1.046 GB, free: 6.777 MB / 0.795 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.0001737/0.8712, allocations: 127.1 kB / 1.046 GB, free: 6.645 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002685/0.8739, allocations: 1.245 MB / 1.047 GB, free: 5.352 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.8739, allocations: 0 / 1.047 GB, free: 5.352 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000815/0.8747, allocations: 350.8 kB / 1.048 GB, free: 5.004 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006013/0.8753, allocations: 108.9 kB / 1.048 GB, free: 4.895 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002399/0.8778, allocations: 1.395 MB / 1.049 GB, free: 3.469 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005331/0.8783, allocations: 0.9298 MB / 1.05 GB, free: 2.508 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003351/0.8786, allocations: 76.86 kB / 1.05 GB, free: 2.434 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.8788, allocations: 47.42 kB / 1.05 GB, free: 2.387 MB / 0.795 GB Notification: Performance of SimCode: time 1.213e-06/0.8788, allocations: 4 kB / 1.05 GB, free: 2.383 MB / 0.795 GB Notification: Performance of Templates: time 0.01351/0.8923, allocations: 6.844 MB / 1.057 GB, free: 11.6 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & ./Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.csv","../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches