Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.191/1.191, allocations: 249.4 MB / 256.7 MB, free: 6.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009822/0.0009822, allocations: 188.4 kB / 316 MB, free: 3.527 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.021/1.021, allocations: 205.1 MB / 0.5667 GB, free: 15.6 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009962/0.0009962, allocations: 90.56 kB / 0.671 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.3e-06/5.33e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1396, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4023/0.5419, allocations: 137.5 MB / 1.019 GB, free: 1.262 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.5421, allocations: 83.56 kB / 1.019 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.03091/0.573, allocations: 14.06 MB / 1.033 GB, free: 5.574 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.777e-05/0.5731, allocations: 16 kB / 1.033 GB, free: 5.559 MB / 0.6511 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.0017/0.5748, allocations: 1.102 MB / 1.034 GB, free: 4.449 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.5749, allocations: 8.031 kB / 1.034 GB, free: 4.441 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.575, allocations: 102.8 kB / 1.034 GB, free: 4.34 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006807/0.5757, allocations: 0.5351 MB / 1.034 GB, free: 3.879 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.5757, allocations: 24 kB / 1.034 GB, free: 3.855 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.251e-05/0.5758, allocations: 47.5 kB / 1.034 GB, free: 3.812 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008285/0.5767, allocations: 485 kB / 1.035 GB, free: 3.543 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009373/0.5776, allocations: 0.6501 MB / 1.036 GB, free: 3.039 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.5776, allocations: 0 / 1.036 GB, free: 3.039 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.965e-05/0.5777, allocations: 3.906 kB / 1.036 GB, free: 3.035 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.777e-05/0.5777, allocations: 24 kB / 1.036 GB, free: 3.012 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003054/0.5808, allocations: 2.748 MB / 1.038 GB, free: 0.7852 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009623/0.5817, allocations: 0.5549 MB / 1.039 GB, free: 428 kB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000345/0.5821, allocations: 265.8 kB / 1.039 GB, free: 264 kB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.332e-05/0.5821, allocations: 12.5 kB / 1.039 GB, free: 252 kB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003668/0.5825, allocations: 262.8 kB / 1.039 GB, free: 64 kB / 0.6511 GB Notification: Performance of pre-optimization done (n=57): time 1.603e-06/0.5825, allocations: 0 / 1.039 GB, free: 64 kB / 0.6511 GB Notification: Performance of matching and sorting (n=57): time 0.0007186/0.5832, allocations: 459.1 kB / 1.04 GB, free: 15.74 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.784e-05/0.5833, allocations: 137 kB / 1.04 GB, free: 15.57 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004437/0.5838, allocations: 441.6 kB / 1.04 GB, free: 15.25 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.5838, allocations: 29.7 kB / 1.04 GB, free: 15.21 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.584, allocations: 293.2 kB / 1.041 GB, free: 14.96 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.5841, allocations: 174.9 kB / 1.041 GB, free: 14.8 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.109e-05/0.5842, allocations: 0 / 1.041 GB, free: 14.8 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.5843, allocations: 380.5 kB / 1.041 GB, free: 14.45 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002876/0.5846, allocations: 178.5 kB / 1.041 GB, free: 14.36 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003457/0.5849, allocations: 279.8 kB / 1.042 GB, free: 14.14 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.5852, allocations: 198 kB / 1.042 GB, free: 14.04 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.5852, allocations: 0 / 1.042 GB, free: 14.04 MB / 0.6667 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007766/0.586, allocations: 0.5255 MB / 1.042 GB, free: 13.66 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/0.5861, allocations: 361.6 kB / 1.043 GB, free: 13.29 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.5862, allocations: 0 / 1.043 GB, free: 13.29 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.5862, allocations: 8 kB / 1.043 GB, free: 13.28 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006946/0.5869, allocations: 171.6 kB / 1.043 GB, free: 13.11 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.5869, allocations: 11.92 kB / 1.043 GB, free: 13.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005779/0.5875, allocations: 134.7 kB / 1.043 GB, free: 12.97 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.327e-05/0.5875, allocations: 19.81 kB / 1.043 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 7.003e-06/0.5875, allocations: 4 kB / 1.043 GB, free: 12.95 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006314/0.5882, allocations: 415.3 kB / 1.043 GB, free: 12.68 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-06/0.5882, allocations: 0 / 1.043 GB, free: 12.68 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.221e-06/0.5882, allocations: 7.906 kB / 1.043 GB, free: 12.68 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000553/0.5888, allocations: 139.6 kB / 1.043 GB, free: 12.54 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.5888, allocations: 4 kB / 1.043 GB, free: 12.54 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004614/0.5892, allocations: 103.6 kB / 1.044 GB, free: 12.44 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.594e-05/0.5893, allocations: 19.19 kB / 1.044 GB, free: 12.43 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($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,conMix.conFloRat.I.trigger_internal,conMix.conCoo.I.trigger_internal,conMix.conHea.I.trigger_internal) * Number of discrete 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.0001181/0.5894, allocations: 116.8 kB / 1.044 GB, free: 12.3 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.603e-05/0.5895, allocations: 63.23 kB / 1.044 GB, free: 12.24 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007579/0.5903, allocations: 485.8 kB / 1.044 GB, free: 11.91 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.5903, allocations: 8 kB / 1.044 GB, free: 11.91 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.5903, allocations: 3.906 kB / 1.044 GB, free: 11.9 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.5903, allocations: 4 kB / 1.044 GB, free: 11.9 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.5916, allocations: 1.215 MB / 1.045 GB, free: 10.98 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5916, allocations: 0 / 1.045 GB, free: 10.98 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006656/0.5923, allocations: 170.4 kB / 1.046 GB, free: 10.82 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.5923, allocations: 4 kB / 1.046 GB, free: 10.82 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.72e-05/0.5923, allocations: 4 kB / 1.046 GB, free: 10.82 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.5923, allocations: 4 kB / 1.046 GB, free: 10.81 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.5924, allocations: 4 kB / 1.046 GB, free: 10.81 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001066/0.5934, allocations: 0.8771 MB / 1.046 GB, free: 10.17 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.5935, allocations: 143.2 kB / 1.047 GB, free: 10.02 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.413e-05/0.5936, allocations: 15.8 kB / 1.047 GB, free: 10 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005495/0.5942, allocations: 87.92 kB / 1.047 GB, free: 9.918 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.5943, allocations: 53.36 kB / 1.047 GB, free: 9.875 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.783e-05/0.5944, allocations: 18.98 kB / 1.047 GB, free: 9.859 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0003098/0.5947, allocations: 332.3 kB / 1.047 GB, free: 9.625 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0005875/0.5953, allocations: 258.6 kB / 1.047 GB, free: 9.371 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 53 * 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.0001344/0.5954, allocations: 113.8 kB / 1.047 GB, free: 9.254 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.00106/0.5965, allocations: 0.8144 MB / 1.048 GB, free: 8.66 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.5965, allocations: 0 / 1.048 GB, free: 8.66 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0003649/0.5968, allocations: 253.4 kB / 1.048 GB, free: 8.5 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005971/0.5975, allocations: 130.8 kB / 1.049 GB, free: 8.402 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/0.5991, allocations: 0.9231 MB / 1.05 GB, free: 7.566 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006517/0.5998, allocations: 1.008 MB / 1.05 GB, free: 6.539 MB / 0.6667 GB Notification: Performance of SimCode: time 2.21e-07/0.5998, allocations: 0 / 1.05 GB, free: 6.539 MB / 0.6667 GB Notification: Performance of Templates: time 0.01563/0.6154, allocations: 10.43 MB / 1.061 GB, free: 12.18 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & ./Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches