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: 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_9_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_9_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.0009754/0.0009754, allocations: 83.38 kB / 16.01 MB, free: 92 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 183.3 kB / 16.92 MB, free: 6.191 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.572/1.572, allocations: 223.3 MB / 241 MB, free: 5.359 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.498/2.498, allocations: 390.9 MB / 0.667 GB, free: 2.281 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003976/0.0003975, allocations: 8 kB / 0.8166 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.721/0.7214, allocations: 142.4 MB / 0.9557 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.004427/0.7259, allocations: 3.49 MB / 0.9591 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00313/0.7291, allocations: 1.231 MB / 0.9603 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008098/0.73, allocations: 20.19 kB / 0.9603 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003525/0.7303, allocations: 97.84 kB / 0.9604 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004282/0.7308, allocations: 83.64 kB / 0.9605 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007147/0.7315, allocations: 311.3 kB / 0.9608 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001073/0.7326, allocations: 0.9225 MB / 0.9617 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000823/0.7334, allocations: 0.5143 MB / 0.9622 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003218/0.7337, allocations: 228.6 kB / 0.9624 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000289/0.734, allocations: 278.8 kB / 0.9627 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.605e-05/0.7341, allocations: 27.28 kB / 0.9627 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.276e-05/0.7342, allocations: 23.75 kB / 0.9627 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.973e-05/0.7343, allocations: 111.8 kB / 0.9628 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002539/0.7346, allocations: 342.6 kB / 0.9632 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006799/0.7352, allocations: 0.9688 MB / 0.9641 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.7353, allocations: 0 / 0.9641 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.717e-06/0.7353, allocations: 1.25 kB / 0.9641 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.277e-05/0.7353, allocations: 0 / 0.9641 GB, free: 1.031 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.002119/0.7374, allocations: 1.126 MB / 0.9652 GB, free: 152 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.7375, allocations: 8.406 kB / 0.9652 GB, free: 152 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001714/0.7377, allocations: 93.78 kB / 0.9653 GB, free: 104 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007176/0.7384, allocations: 0.5292 MB / 0.9658 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.979e-05/0.7384, allocations: 61.88 kB / 0.9659 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.7386, allocations: 73.44 kB / 0.966 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/0.7404, allocations: 0.8494 MB / 0.9668 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.7404, allocations: 0 / 0.9668 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.942e-05/0.7405, allocations: 34.62 kB / 0.9668 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.7405, allocations: 17.84 kB / 0.9668 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002092/0.7426, allocations: 0.7585 MB / 0.9676 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003911/0.7465, allocations: 2.505 MB / 0.97 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002051/0.7486, allocations: 0.7966 MB / 0.9708 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009439/0.7496, allocations: 391.7 kB / 0.9712 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 5.277e-05/0.7497, allocations: 13.58 kB / 0.9712 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001063/0.7507, allocations: 407.8 kB / 0.9716 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=51): time 1.264e-05/0.7508, allocations: 0 / 0.9716 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of matching and sorting (n=51): time 0.002791/0.7535, allocations: 0.9795 MB / 0.9725 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.597e-05/0.7537, allocations: 139.8 kB / 0.9727 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008469/0.7545, allocations: 0.5631 MB / 0.9732 GB, free: 11.05 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 7.52e-05/0.7546, allocations: 43 kB / 0.9733 GB, free: 11 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003051/0.7549, allocations: 361.8 kB / 0.9736 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.7551, allocations: 170 kB / 0.9738 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.219e-05/0.7552, allocations: 57.31 kB / 0.9738 GB, free: 10.49 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.7553, allocations: 380.4 kB / 0.9742 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008692/0.7562, allocations: 313.3 kB / 0.9745 GB, free: 9.992 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009609/0.7572, allocations: 455.4 kB / 0.9749 GB, free: 9.695 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.7589, allocations: 0.7433 MB / 0.9756 GB, free: 9.266 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.759, allocations: 1.625 kB / 0.9756 GB, free: 9.266 MB / 0.7325 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002105/0.7611, allocations: 0.8873 MB / 0.9765 GB, free: 8.816 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001547/0.7612, allocations: 225.4 kB / 0.9767 GB, free: 8.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.7613, allocations: 2.156 kB / 0.9767 GB, free: 8.562 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.283e-05/0.7613, allocations: 5.812 kB / 0.9767 GB, free: 8.562 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00068/0.762, allocations: 158.3 kB / 0.9769 GB, free: 8.523 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.762, allocations: 13.59 kB / 0.9769 GB, free: 8.516 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000679/0.7627, allocations: 151.7 kB / 0.977 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.898e-05/0.7628, allocations: 28.36 kB / 0.9771 GB, free: 8.43 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.293e-06/0.7628, allocations: 4.312 kB / 0.9771 GB, free: 8.43 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001482/0.7643, allocations: 0.692 MB / 0.9777 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.7643, allocations: 2.25 kB / 0.9777 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.277e-06/0.7643, allocations: 9.109 kB / 0.9778 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005219/0.7648, allocations: 136.2 kB / 0.9779 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.7648, allocations: 9.219 kB / 0.9779 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005735/0.7654, allocations: 122.1 kB / 0.978 GB, free: 7.961 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.526e-05/0.7655, allocations: 20 kB / 0.978 GB, free: 7.941 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.0004333/0.7659, allocations: 304.9 kB / 0.9783 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.766, allocations: 59.25 kB / 0.9784 GB, free: 7.574 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001858/0.7679, allocations: 0.7329 MB / 0.9791 GB, free: 6.836 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.7679, allocations: 8 kB / 0.9791 GB, free: 6.828 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.7679, allocations: 0 / 0.9791 GB, free: 6.828 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.7679, allocations: 3.984 kB / 0.9791 GB, free: 6.824 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008294/0.7688, allocations: 0.7081 MB / 0.9798 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.7688, allocations: 0 / 0.9798 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006382/0.7694, allocations: 143.8 kB / 0.9799 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.7694, allocations: 0 / 0.9799 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.778e-05/0.7695, allocations: 16 kB / 0.98 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.7695, allocations: 4 kB / 0.98 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.7695, allocations: 0 / 0.98 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002672/0.7722, allocations: 1.108 MB / 0.981 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.7723, allocations: 140.3 kB / 0.9812 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.342e-05/0.7724, allocations: 12 kB / 0.9812 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005077/0.7729, allocations: 91.91 kB / 0.9813 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.773, allocations: 48.38 kB / 0.9813 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.682e-05/0.7731, allocations: 19.98 kB / 0.9813 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004994/0.7736, allocations: 402.8 kB / 0.9817 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7736, allocations: 0 / 0.9817 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006995/0.7743, allocations: 262.8 kB / 0.982 GB, free: 3.801 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.0001593/0.7745, allocations: 115.2 kB / 0.9821 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002728/0.7772, allocations: 1.252 MB / 0.9833 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.7772, allocations: 0.5625 kB / 0.9833 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008744/0.7781, allocations: 350.2 kB / 0.9836 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007054/0.7788, allocations: 115.4 kB / 0.9837 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002507/0.7813, allocations: 1.518 MB / 0.9852 GB, free: 376 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005353/0.7819, allocations: 0.9143 MB / 0.9861 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002052/0.7821, allocations: 51.42 kB / 0.9862 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of SimCode: time 5.11e-07/0.7821, allocations: 0 / 0.9862 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of Templates: time 0.01397/0.7961, allocations: 8.486 MB / 0.9945 GB, free: 6.922 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile (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 & ./Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches