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.001099/0.001099, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001207/0.001207, allocations: 168.7 kB / 15.95 MB, free: 204 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.522/1.522, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.909/2.909, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003644/0.0003645, allocations: 6.219 kB / 0.9021 GB, free: 36.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4041/0.4045, allocations: 159.6 MB / 1.058 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.004181/0.4088, allocations: 3.27 MB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00209/0.4109, allocations: 1.212 MB / 1.062 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003723/0.4113, allocations: 15.94 kB / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003018/0.4116, allocations: 87.09 kB / 1.062 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000238/0.4118, allocations: 79.36 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005544/0.4124, allocations: 203.7 kB / 1.063 GB, free: 500 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0008766/0.4133, allocations: 0.8694 MB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006696/0.414, allocations: 363.5 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003096/0.4143, allocations: 218.8 kB / 1.064 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003363/0.4146, allocations: 270.3 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.586e-05/0.4147, allocations: 24 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.949e-05/0.4148, allocations: 24 kB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.4149, allocations: 111.4 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.4151, allocations: 153.3 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.4161, allocations: 0.9859 MB / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.4161, allocations: 0 / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.063e-06/0.4161, allocations: 0 / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.24e-05/0.4162, allocations: 0 / 1.066 GB, free: 13.46 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.002167/0.4183, allocations: 1.126 MB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.4184, allocations: 8.031 kB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.4185, allocations: 94.97 kB / 1.067 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007146/0.4193, allocations: 0.5102 MB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.594e-05/0.4193, allocations: 58 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.4194, allocations: 79.94 kB / 1.068 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001634/0.4211, allocations: 0.8463 MB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.4211, allocations: 3.938 kB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.189e-05/0.4212, allocations: 28 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/0.4212, allocations: 20 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/0.4229, allocations: 0.7456 MB / 1.069 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003347/0.4263, allocations: 2.505 MB / 1.072 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001803/0.4281, allocations: 0.7893 MB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008048/0.4289, allocations: 390 kB / 1.073 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.734e-05/0.429, allocations: 12.39 kB / 1.073 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009636/0.4299, allocations: 413.1 kB / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=51): time 4.228e-06/0.43, allocations: 0 / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of matching and sorting (n=51): time 0.002416/0.4324, allocations: 0.9678 MB / 1.074 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.45e-05/0.4325, allocations: 137 kB / 1.074 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007339/0.4332, allocations: 0.5654 MB / 1.075 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.407e-05/0.4333, allocations: 41.7 kB / 1.075 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003215/0.4336, allocations: 364.1 kB / 1.075 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.4337, allocations: 165.6 kB / 1.075 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/0.4338, allocations: 16 kB / 1.075 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.434, allocations: 370.8 kB / 1.076 GB, free: 2.949 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00074/0.4347, allocations: 313 kB / 1.076 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008356/0.4356, allocations: 458.5 kB / 1.076 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00079/0.4364, allocations: 385.4 kB / 1.077 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.4364, allocations: 4 kB / 1.077 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001823/0.4382, allocations: 0.8804 MB / 1.078 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001491/0.4384, allocations: 210.4 kB / 1.078 GB, free: 0.6016 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.4384, allocations: 4 kB / 1.078 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.4384, allocations: 4 kB / 1.078 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006345/0.439, allocations: 163.8 kB / 1.078 GB, free: 444 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/0.4391, allocations: 11.94 kB / 1.078 GB, free: 432 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000551/0.4396, allocations: 151.2 kB / 1.078 GB, free: 280 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.84e-05/0.4397, allocations: 31.92 kB / 1.078 GB, free: 248 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.492e-06/0.4397, allocations: 4 kB / 1.078 GB, free: 244 kB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00138/0.4411, allocations: 0.6883 MB / 1.079 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.4411, allocations: 0 / 1.079 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.712e-06/0.4411, allocations: 8 kB / 1.079 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004795/0.4416, allocations: 131.8 kB / 1.079 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.4416, allocations: 11.89 kB / 1.079 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004566/0.4421, allocations: 127.3 kB / 1.079 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-05/0.4421, allocations: 20 kB / 1.079 GB, free: 15.24 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,$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.0004249/0.4426, allocations: 297 kB / 1.079 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.693e-05/0.4427, allocations: 59.25 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/0.4443, allocations: 0.7368 MB / 1.08 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.4443, allocations: 4 kB / 1.08 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.4443, allocations: 3.953 kB / 1.08 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.4444, allocations: 7.969 kB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007816/0.4451, allocations: 0.7041 MB / 1.081 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.4452, allocations: 4 kB / 1.081 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005422/0.4457, allocations: 139.8 kB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.4457, allocations: 4 kB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.681e-05/0.4458, allocations: 12 kB / 1.081 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.4458, allocations: 4 kB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.4458, allocations: 7.984 kB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002374/0.4482, allocations: 1.101 MB / 1.082 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/0.4483, allocations: 148.2 kB / 1.082 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.742e-05/0.4484, allocations: 12 kB / 1.082 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004168/0.4488, allocations: 91.92 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.449, allocations: 48.36 kB / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.721e-05/0.449, allocations: 15.98 kB / 1.082 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005101/0.4495, allocations: 402.8 kB / 1.083 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.01e-07/0.4495, allocations: 0 / 1.083 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007551/0.4503, allocations: 255 kB / 1.083 GB, free: 11.12 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 (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.0001707/0.4505, allocations: 115.2 kB / 1.083 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002613/0.4531, allocations: 1.245 MB / 1.084 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.4531, allocations: 64 / 1.084 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007781/0.4539, allocations: 354.2 kB / 1.085 GB, free: 9.352 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006563/0.4546, allocations: 120.1 kB / 1.085 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002469/0.457, allocations: 1.407 MB / 1.086 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004639/0.4575, allocations: 0.9104 MB / 1.087 GB, free: 6.863 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003545/0.4579, allocations: 76.97 kB / 1.087 GB, free: 6.789 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.4581, allocations: 51.42 kB / 1.087 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of SimCode: time 1.122e-06/0.4581, allocations: 0 / 1.087 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of Templates: time 0.01484/0.4729, allocations: 6.874 MB / 1.094 GB, free: 15.93 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