Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") [: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 9.1.1-maint.9.1.x/package.mo): time 1.773/1.773, allocations: 387.2 MB / 394.5 MB, free: 13.72 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009786/0.0009786, allocations: 176.3 kB / 487 MB, free: 5.398 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.117/1.117, allocations: 221.3 MB / 0.7819 GB, free: 1.449 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008357/0.0008357, allocations: 97.31 kB / 0.9213 GB, free: 2.703 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.844e-06/7.864e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1796, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5073/0.6869, allocations: 152.5 MB / 1.354 GB, free: 15.9 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.6872, allocations: 76.33 kB / 1.354 GB, free: 15.9 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01818/0.7054, allocations: 6.734 MB / 1.361 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.753e-05/0.7055, allocations: 4 kB / 1.361 GB, free: 14.96 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005185/0.706, allocations: 0.4917 MB / 1.361 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.706, allocations: 9.781 kB / 1.361 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.753e-05/0.7061, allocations: 27.62 kB / 1.361 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000522/0.7066, allocations: 345.1 kB / 1.362 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.7066, allocations: 4 kB / 1.362 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.988e-05/0.7067, allocations: 4.609 kB / 1.362 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.041e-05/0.7068, allocations: 35.98 kB / 1.362 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001119/0.7069, allocations: 65.58 kB / 1.362 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.7069, allocations: 3.938 kB / 1.362 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.7069, allocations: 8.5 kB / 1.362 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.7069, allocations: 4 kB / 1.362 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005467/0.7075, allocations: 438.4 kB / 1.362 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001667/0.7077, allocations: 74.02 kB / 1.362 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.141e-05/0.7077, allocations: 29.12 kB / 1.362 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.7077, allocations: 0.6562 kB / 1.362 GB, free: 13.61 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.692e-05/0.7078, allocations: 73.05 kB / 1.362 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.7078, allocations: 0 / 1.362 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.000206/0.708, allocations: 94.19 kB / 1.362 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.82e-05/0.7081, allocations: 52.02 kB / 1.362 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003061/0.7084, allocations: 340.1 kB / 1.363 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.7084, allocations: 29.7 kB / 1.363 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.602e-05/0.7085, allocations: 114 kB / 1.363 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.7085, allocations: 21.64 kB / 1.363 GB, free: 13 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.062e-05/0.7085, allocations: 0 / 1.363 GB, free: 13 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.046e-05/0.7086, allocations: 339.7 kB / 1.363 GB, free: 12.68 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.325e-05/0.7087, allocations: 63.91 kB / 1.363 GB, free: 12.65 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.521e-05/0.7088, allocations: 100.9 kB / 1.363 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.709, allocations: 83.58 kB / 1.364 GB, free: 12.53 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.709, allocations: 0 / 1.364 GB, free: 12.53 MB / 0.8073 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003333/0.7093, allocations: 217.6 kB / 1.364 GB, free: 12.38 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.7093, allocations: 4 kB / 1.364 GB, free: 12.37 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.7093, allocations: 0 / 1.364 GB, free: 12.37 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.7093, allocations: 4.609 kB / 1.364 GB, free: 12.37 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.7095, allocations: 23.41 kB / 1.364 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.7095, allocations: 8.062 kB / 1.364 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.7096, allocations: 19.64 kB / 1.364 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.565e-05/0.7096, allocations: 12.52 kB / 1.364 GB, free: 12.32 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.timTabLin.tab.nextTimeEvent,les.y,$PRE.lesHys.lesHys.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 4.995e-05/0.7097, allocations: 109.6 kB / 1.364 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.744e-05/0.7097, allocations: 20.33 kB / 1.364 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000172/0.7099, allocations: 112.6 kB / 1.364 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.7099, allocations: 4 kB / 1.364 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.7099, allocations: 4 kB / 1.364 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.7099, allocations: 0.5625 kB / 1.364 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.7101, allocations: 224.1 kB / 1.364 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.7101, allocations: 0.7969 kB / 1.364 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.027e-05/0.7101, allocations: 8.562 kB / 1.364 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.7101, allocations: 0 / 1.364 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.7102, allocations: 1.031 kB / 1.364 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.7102, allocations: 0 / 1.364 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.7102, allocations: 0.7031 kB / 1.364 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001327/0.7103, allocations: 138.1 kB / 1.364 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.457e-05/0.7104, allocations: 107.8 kB / 1.364 GB, free: 11.65 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.537e-05/0.7104, allocations: 0.5156 kB / 1.364 GB, free: 11.65 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.7105, allocations: 16.59 kB / 1.365 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.031e-05/0.7106, allocations: 16.56 kB / 1.365 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.7106, allocations: 8 kB / 1.365 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001551/0.7108, allocations: 225 kB / 1.365 GB, free: 11.44 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002383/0.711, allocations: 59.58 kB / 1.365 GB, free: 11.38 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,les.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 3 (lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005623/0.7116, allocations: 321.6 kB / 1.365 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001536/0.7117, allocations: 101.1 kB / 1.365 GB, free: 11.08 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.193e-06/0.7118, allocations: 3.938 kB / 1.365 GB, free: 11.08 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.023e-05/0.7118, allocations: 46.72 kB / 1.365 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.7121, allocations: 48.14 kB / 1.365 GB, free: 11.01 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004429/0.7125, allocations: 288.8 kB / 1.366 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002503/0.7128, allocations: 0.7845 MB / 1.366 GB, free: 25.93 MB / 0.823 GB Notification: Performance of SimCode: time 2.4e-07/0.7128, allocations: 0 / 1.366 GB, free: 25.93 MB / 0.823 GB Notification: Performance of Templates: time 0.004567/0.7174, allocations: 2.477 MB / 1.369 GB, free: 23.5 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,les.u,les.t,les.y,lesHys.y Variables in the result:les.h,les.have_hysteresis,les.lesNoHys.t,les.pre_y_start,les.t,les.u,les.y,lesHys.h,lesHys.have_hysteresis,lesHys.lesHys.h,lesHys.lesHys.pre_y_start,lesHys.lesHys.t,lesHys.lesHys.y,lesHys.pre_y_start,lesHys.t,lesHys.y,timTabLin.extrapolation,timTabLin.nT,timTabLin.nout,timTabLin.offset[1],timTabLin.smoothness,timTabLin.t0,timTabLin.tab.columns[1],timTabLin.tab.extrapolation,timTabLin.tab.nout,timTabLin.tab.offset[1],timTabLin.tab.p_offset[1],timTabLin.tab.shiftTime,timTabLin.tab.smoothness,timTabLin.tab.startTime,timTabLin.tab.t_max,timTabLin.tab.t_maxScaled,timTabLin.tab.t_min,timTabLin.tab.t_minScaled,timTabLin.tab.tableOnFile,timTabLin.tab.table[1,1],timTabLin.tab.table[1,2],timTabLin.tab.table[2,1],timTabLin.tab.table[2,2],timTabLin.tab.table[3,1],timTabLin.tab.table[3,2],timTabLin.tab.table[4,1],timTabLin.tab.table[4,2],timTabLin.tab.table[5,1],timTabLin.tab.table[5,2],timTabLin.tab.table[6,1],timTabLin.tab.table[6,2],timTabLin.tab.table[7,1],timTabLin.tab.table[7,2],timTabLin.tab.timeEvents,timTabLin.tab.timeScale,timTabLin.tab.verboseExtrapolation,timTabLin.tab.verboseRead,timTabLin.table[1,1],timTabLin.table[1,2],timTabLin.table[2,1],timTabLin.table[2,2],timTabLin.table[3,1],timTabLin.table[3,2],timTabLin.table[4,1],timTabLin.table[4,2],timTabLin.table[5,1],timTabLin.table[5,2],timTabLin.table[6,1],timTabLin.table[6,2],timTabLin.table[7,1],timTabLin.table[7,2],timTabLin.timeRange,timTabLin.timeScale,timTabLin.y[1],time