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.001112/0.001112, allocations: 91.92 kB / 16.02 MB, free: 80 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.001539/0.00154, allocations: 180.4 kB / 16.92 MB, free: 6.652 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.367/1.367, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.85/2.85, allocations: 462.7 MB / 0.7371 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003683, allocations: 12.47 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.305, allocations: 159.6 MB / 1.059 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.004021/0.3091, allocations: 3.481 MB / 1.063 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002278/0.3114, allocations: 1.246 MB / 1.064 GB, free: 232 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005259/0.3119, allocations: 15.94 kB / 1.064 GB, free: 216 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003068/0.3123, allocations: 95.16 kB / 1.064 GB, free: 120 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003049/0.3126, allocations: 91.34 kB / 1.064 GB, free: 28 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006267/0.3132, allocations: 307.7 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008112/0.314, allocations: 0.9277 MB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006851/0.3147, allocations: 0.5113 MB / 1.066 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002846/0.315, allocations: 234.6 kB / 1.066 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002798/0.3153, allocations: 274.2 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.006e-05/0.3154, allocations: 27.94 kB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.148e-05/0.3154, allocations: 24 kB / 1.066 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.3155, allocations: 111.4 kB / 1.066 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002863/0.3158, allocations: 335.5 kB / 1.067 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000757/0.3166, allocations: 0.9859 MB / 1.068 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3166, allocations: 0 / 1.068 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.184e-06/0.3166, allocations: 4 kB / 1.068 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.38e-05/0.3166, allocations: 0 / 1.068 GB, free: 12.27 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.00218/0.3188, allocations: 1.111 MB / 1.069 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.3189, allocations: 11.97 kB / 1.069 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000163/0.3191, allocations: 91.91 kB / 1.069 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006923/0.3198, allocations: 0.5306 MB / 1.069 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.117e-05/0.3198, allocations: 58.38 kB / 1.07 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.3199, allocations: 80.3 kB / 1.07 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/0.3216, allocations: 0.8505 MB / 1.07 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.3217, allocations: 0 / 1.07 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.619e-05/0.3217, allocations: 35.98 kB / 1.07 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.3217, allocations: 16 kB / 1.07 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001849/0.3236, allocations: 0.7612 MB / 1.071 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003388/0.327, allocations: 2.493 MB / 1.074 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001895/0.3289, allocations: 0.8009 MB / 1.074 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008581/0.3298, allocations: 394 kB / 1.075 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.55e-05/0.3299, allocations: 5.453 kB / 1.075 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001001/0.3309, allocations: 413.2 kB / 1.075 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=51): time 2.805e-06/0.3309, allocations: 4 kB / 1.075 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of matching and sorting (n=51): time 0.002521/0.3334, allocations: 0.9783 MB / 1.076 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.571e-05/0.3335, allocations: 140.9 kB / 1.076 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000723/0.3342, allocations: 0.5655 MB / 1.077 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.975e-05/0.3343, allocations: 41.64 kB / 1.077 GB, free: 2.629 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002752/0.3346, allocations: 368.2 kB / 1.077 GB, free: 2.262 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/0.3347, allocations: 169.5 kB / 1.077 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-05/0.3348, allocations: 53.69 kB / 1.077 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.335, allocations: 378.7 kB / 1.078 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008084/0.3358, allocations: 313 kB / 1.078 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009154/0.3367, allocations: 461.1 kB / 1.079 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001624/0.3384, allocations: 0.7366 MB / 1.079 GB, free: 72 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3384, allocations: 0 / 1.079 GB, free: 72 kB / 0.8262 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002053/0.3404, allocations: 0.892 MB / 1.08 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001335/0.3406, allocations: 210.4 kB / 1.08 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.3406, allocations: 7.984 kB / 1.08 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.3406, allocations: 4 kB / 1.08 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006408/0.3413, allocations: 167.8 kB / 1.081 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.593e-05/0.3413, allocations: 11.88 kB / 1.081 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006454/0.342, allocations: 143.3 kB / 1.081 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.342, allocations: 23.98 kB / 1.081 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.342, allocations: 5.094 kB / 1.081 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001463/0.3435, allocations: 0.696 MB / 1.081 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3435, allocations: 0 / 1.081 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.716e-06/0.3435, allocations: 7.984 kB / 1.081 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005076/0.3441, allocations: 139.8 kB / 1.082 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.3441, allocations: 4 kB / 1.082 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005605/0.3446, allocations: 127.3 kB / 1.082 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.248e-05/0.3447, allocations: 23.94 kB / 1.082 GB, free: 13.54 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.0004227/0.3451, allocations: 296.9 kB / 1.082 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.992e-05/0.3452, allocations: 63.25 kB / 1.082 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001825/0.3471, allocations: 0.7367 MB / 1.083 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.3471, allocations: 4 kB / 1.083 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.3471, allocations: 0 / 1.083 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.3471, allocations: 3.984 kB / 1.083 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008177/0.3479, allocations: 0.7159 MB / 1.083 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.3479, allocations: 4 kB / 1.083 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005791/0.3485, allocations: 139.8 kB / 1.084 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.133e-05/0.3486, allocations: 4 kB / 1.084 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.515e-05/0.3486, allocations: 12 kB / 1.084 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.3486, allocations: 0 / 1.084 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3486, allocations: 0 / 1.084 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002558/0.3512, allocations: 1.104 MB / 1.085 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.3513, allocations: 152.2 kB / 1.085 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.323e-05/0.3514, allocations: 12 kB / 1.085 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004874/0.3519, allocations: 87.92 kB / 1.085 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/0.352, allocations: 48.31 kB / 1.085 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-05/0.3521, allocations: 19.98 kB / 1.085 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004937/0.3526, allocations: 398.8 kB / 1.085 GB, free: 9.668 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3526, allocations: 0 / 1.085 GB, free: 9.668 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000715/0.3533, allocations: 259 kB / 1.086 GB, free: 9.414 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.0001732/0.3535, allocations: 115.2 kB / 1.086 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002671/0.3562, allocations: 1.252 MB / 1.087 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.3562, allocations: 4 kB / 1.087 GB, free: 7.984 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0008259/0.357, allocations: 350.8 kB / 1.087 GB, free: 7.645 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000724/0.3578, allocations: 122.2 kB / 1.087 GB, free: 7.527 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/0.3603, allocations: 1.518 MB / 1.089 GB, free: 5.969 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004655/0.3608, allocations: 0.9065 MB / 1.09 GB, free: 5.035 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.361, allocations: 51.42 kB / 1.09 GB, free: 4.988 MB / 0.8419 GB Notification: Performance of SimCode: time 6.91e-07/0.361, allocations: 0 / 1.09 GB, free: 4.988 MB / 0.8419 GB Notification: Performance of Templates: time 0.01282/0.3739, allocations: 8.506 MB / 1.098 GB, free: 12.51 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/jenkins1/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