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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001014/0.001013, allocations: 98.27 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.008613/0.008613, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.37/1.37, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.704/2.704, allocations: 462.7 MB / 0.7364 GB, free: 344 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003814, allocations: 9.094 kB / 0.9028 GB, free: 36.74 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3586, allocations: 159.6 MB / 1.059 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.004579/0.3632, allocations: 3.484 MB / 1.062 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002658/0.3659, allocations: 1.243 MB / 1.063 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004483/0.3664, allocations: 12 kB / 1.063 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002999/0.3667, allocations: 99.09 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.367, allocations: 83.38 kB / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000628/0.3677, allocations: 307.7 kB / 1.064 GB, free: 312 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0008391/0.3685, allocations: 0.9238 MB / 1.065 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000712/0.3692, allocations: 0.5191 MB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002731/0.3695, allocations: 230.6 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000287/0.3698, allocations: 278.2 kB / 1.066 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.132e-05/0.3699, allocations: 24 kB / 1.066 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.05e-05/0.3699, allocations: 24 kB / 1.066 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.37, allocations: 115.3 kB / 1.066 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002724/0.3703, allocations: 343.5 kB / 1.066 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008961/0.3712, allocations: 1.141 MB / 1.067 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3712, allocations: 4 kB / 1.067 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.615e-06/0.3713, allocations: 0 / 1.067 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.788e-06/0.3713, allocations: 0 / 1.067 GB, free: 12.68 MB / 0.8262 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.002215/0.3735, allocations: 1.115 MB / 1.068 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.3735, allocations: 8.031 kB / 1.068 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.3737, allocations: 87.91 kB / 1.068 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006847/0.3744, allocations: 0.5345 MB / 1.069 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.758e-05/0.3745, allocations: 62.36 kB / 1.069 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.3746, allocations: 72.38 kB / 1.069 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/0.3763, allocations: 0.8582 MB / 1.07 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.3764, allocations: 0 / 1.07 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.59e-05/0.3764, allocations: 28 kB / 1.07 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.3765, allocations: 16 kB / 1.07 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.3784, allocations: 0.7612 MB / 1.071 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0037/0.3821, allocations: 2.497 MB / 1.073 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.384, allocations: 0.7981 MB / 1.074 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008973/0.3849, allocations: 391.2 kB / 1.074 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.677e-05/0.385, allocations: 8.438 kB / 1.074 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001047/0.3861, allocations: 422.2 kB / 1.075 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=51): time 3.156e-06/0.3861, allocations: 0 / 1.075 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of matching and sorting (n=51): time 0.002674/0.3887, allocations: 0.9744 MB / 1.076 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.235e-05/0.3889, allocations: 140.9 kB / 1.076 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007487/0.3896, allocations: 0.5654 MB / 1.076 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.705e-05/0.3897, allocations: 37.7 kB / 1.076 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.3899, allocations: 372.1 kB / 1.077 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.3901, allocations: 165.6 kB / 1.077 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.969e-05/0.3902, allocations: 57.69 kB / 1.077 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.3903, allocations: 374.7 kB / 1.077 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008171/0.3911, allocations: 317 kB / 1.078 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000926/0.3921, allocations: 457.1 kB / 1.078 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001693/0.3938, allocations: 0.7366 MB / 1.079 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.3938, allocations: 0 / 1.079 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002044/0.3958, allocations: 0.8999 MB / 1.08 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001458/0.396, allocations: 214.4 kB / 1.08 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.396, allocations: 0 / 1.08 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.396, allocations: 4 kB / 1.08 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006811/0.3967, allocations: 163.8 kB / 1.08 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.3968, allocations: 11.94 kB / 1.08 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006307/0.3974, allocations: 147.3 kB / 1.08 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.812e-05/0.3975, allocations: 23.98 kB / 1.08 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.413e-06/0.3975, allocations: 8 kB / 1.08 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001491/0.399, allocations: 0.6959 MB / 1.081 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.399, allocations: 4 kB / 1.081 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.414e-06/0.399, allocations: 4 kB / 1.081 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004961/0.3995, allocations: 135.8 kB / 1.081 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3995, allocations: 4 kB / 1.081 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005302/0.4001, allocations: 123.3 kB / 1.081 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.264e-05/0.4001, allocations: 20 kB / 1.081 GB, free: 13.98 MB / 0.8419 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.0004269/0.4005, allocations: 309.6 kB / 1.081 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.485e-05/0.4006, allocations: 59.25 kB / 1.082 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001834/0.4025, allocations: 0.7367 MB / 1.082 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/0.4025, allocations: 4 kB / 1.082 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.4025, allocations: 3.938 kB / 1.082 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.4025, allocations: 3.984 kB / 1.082 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007875/0.4033, allocations: 0.7121 MB / 1.083 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.4033, allocations: 8 kB / 1.083 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005899/0.4039, allocations: 139.8 kB / 1.083 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.4039, allocations: 0 / 1.083 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/0.404, allocations: 8 kB / 1.083 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/0.404, allocations: 7.984 kB / 1.083 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.404, allocations: 0 / 1.083 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/0.4066, allocations: 1.104 MB / 1.084 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.4067, allocations: 156.2 kB / 1.084 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.72e-05/0.4068, allocations: 12 kB / 1.084 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004952/0.4073, allocations: 83.92 kB / 1.084 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.4074, allocations: 52.36 kB / 1.084 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.064e-05/0.4075, allocations: 11.94 kB / 1.084 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004675/0.408, allocations: 402.8 kB / 1.085 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.408, allocations: 3.938 kB / 1.085 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006872/0.4087, allocations: 263 kB / 1.085 GB, free: 9.828 MB / 0.8419 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.000156/0.4088, allocations: 115.2 kB / 1.085 GB, free: 9.703 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002734/0.4116, allocations: 1.252 MB / 1.086 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.4116, allocations: 4 kB / 1.086 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0008691/0.4125, allocations: 346.9 kB / 1.087 GB, free: 8.059 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007035/0.4132, allocations: 119.9 kB / 1.087 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.4155, allocations: 1.485 MB / 1.088 GB, free: 6.426 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004347/0.4159, allocations: 0.9026 MB / 1.089 GB, free: 5.496 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003479/0.4163, allocations: 92.88 kB / 1.089 GB, free: 5.402 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/0.4165, allocations: 51.42 kB / 1.089 GB, free: 5.355 MB / 0.8419 GB Notification: Performance of SimCode: time 9.22e-07/0.4165, allocations: 0 / 1.089 GB, free: 5.355 MB / 0.8419 GB Notification: Performance of Templates: time 0.01432/0.4308, allocations: 7.08 MB / 1.096 GB, free: 14.34 MB / 0.8575 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches