Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Less,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u1|les.u2|les.y|lesHys.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Less,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u1|les.u2|les.y|lesHys.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less") [: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 10.0.0-master/package.mo): time 1.713/1.713, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.0009096/0.0009097, allocations: 181.3 kB / 490.8 MB, free: 1.961 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.055/1.055, allocations: 221.3 MB / 0.7863 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008237/0.0008237, allocations: 88.67 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.073e-06/7.084e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.1698, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4676/0.6374, allocations: 153.3 MB / 1.361 GB, free: 17.22 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001859/0.6376, allocations: 77.31 kB / 1.361 GB, free: 17.22 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.02534/0.6629, allocations: 10.97 MB / 1.372 GB, free: 16.62 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.345e-05/0.663, allocations: 9.031 kB / 1.372 GB, free: 16.62 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006696/0.6637, allocations: 0.5674 MB / 1.373 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.6637, allocations: 9.906 kB / 1.373 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.703e-05/0.6638, allocations: 37.11 kB / 1.373 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007075/0.6645, allocations: 447.7 kB / 1.373 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.6645, allocations: 4.047 kB / 1.373 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.6646, allocations: 7.797 kB / 1.373 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001256/0.6647, allocations: 60.22 kB / 1.373 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/0.6649, allocations: 110.4 kB / 1.373 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.6649, allocations: 0 / 1.373 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.6649, allocations: 6 kB / 1.373 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.6649, allocations: 1.5 kB / 1.373 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006962/0.6656, allocations: 0.5361 MB / 1.374 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.6658, allocations: 112.4 kB / 1.374 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.717e-05/0.6659, allocations: 47.53 kB / 1.374 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.6659, allocations: 5.125 kB / 1.374 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001198/0.6661, allocations: 94.22 kB / 1.374 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.833e-06/0.6661, allocations: 0 / 1.374 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0002522/0.6663, allocations: 149.2 kB / 1.374 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.541e-05/0.6663, allocations: 53.27 kB / 1.374 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004916/0.6668, allocations: 477.3 kB / 1.375 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.6669, allocations: 27.69 kB / 1.375 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.819e-05/0.6669, allocations: 137 kB / 1.375 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.9e-05/0.667, allocations: 30.06 kB / 1.375 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.465e-05/0.667, allocations: 0 / 1.375 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.943e-05/0.6671, allocations: 351 kB / 1.375 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.6673, allocations: 109.5 kB / 1.375 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000165/0.6674, allocations: 151.6 kB / 1.375 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003141/0.6677, allocations: 137.4 kB / 1.376 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.6678, allocations: 4.875 kB / 1.376 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005724/0.6683, allocations: 357.2 kB / 1.376 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.6684, allocations: 5.156 kB / 1.376 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.6684, allocations: 5.562 kB / 1.376 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.6684, allocations: 2.188 kB / 1.376 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.6686, allocations: 46.53 kB / 1.376 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.6686, allocations: 6.062 kB / 1.376 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.6688, allocations: 25.39 kB / 1.376 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.684e-05/0.6688, allocations: 19.91 kB / 1.376 GB, free: 30.68 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition2,$PRE.timTabLin1.tab.nextTimeEvent,$whenCondition1,$PRE.timTabLin.tab.nextTimeEvent,les.y,$PRE.lesHys.lesHys.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEvent,$PRE.timTabLin1.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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 7.355e-05/0.6689, allocations: 115.7 kB / 1.376 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.347e-05/0.6689, allocations: 35.52 kB / 1.376 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002539/0.6692, allocations: 164.8 kB / 1.376 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.6692, allocations: 1.031 kB / 1.376 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.6692, allocations: 1.891 kB / 1.376 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.6692, allocations: 0.6094 kB / 1.376 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002215/0.6694, allocations: 286.3 kB / 1.377 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.6695, allocations: 1.062 kB / 1.377 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.598e-05/0.6695, allocations: 10.81 kB / 1.377 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.6695, allocations: 1.031 kB / 1.377 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.6695, allocations: 6.922 kB / 1.377 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.6695, allocations: 5.188 kB / 1.377 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.6695, allocations: 0 / 1.377 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002012/0.6697, allocations: 186.5 kB / 1.377 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.251e-05/0.6698, allocations: 123.1 kB / 1.377 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.801e-05/0.6699, allocations: 2.594 kB / 1.377 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.67, allocations: 20.17 kB / 1.377 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.167e-05/0.6701, allocations: 18.09 kB / 1.377 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.6701, allocations: 8.844 kB / 1.377 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002888/0.6704, allocations: 310.5 kB / 1.377 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002825/0.6707, allocations: 72.28 kB / 1.377 GB, free: 30.03 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,les.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEvent,timTabLin1.tab.nextTimeEventScaled) * Number of discrete states: 5 (lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin1.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * 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.0005879/0.6713, allocations: 324.9 kB / 1.378 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002661/0.6715, allocations: 183.5 kB / 1.378 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.6716, allocations: 3.562 kB / 1.378 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.069e-05/0.6716, allocations: 51.41 kB / 1.378 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.672, allocations: 84.61 kB / 1.378 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007094/0.6727, allocations: 452.1 kB / 1.378 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003763/0.6731, allocations: 0.8383 MB / 1.379 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/0.6731, allocations: 0 / 1.379 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of Templates: time 0.006782/0.6799, allocations: 3.672 MB / 1.383 GB, free: 27.75 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_Less.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,les.u1,les.u2,les.y,lesHys.y Variables in the result:les.h,les.have_hysteresis,les.pre_y_start,les.u1,les.u2,les.y,lesHys.h,lesHys.have_hysteresis,lesHys.lesHys.h,lesHys.lesHys.pre_y_start,lesHys.lesHys.y,lesHys.pre_y_start,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.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.timeRange,timTabLin.timeScale,timTabLin.y[1],timTabLin1.extrapolation,timTabLin1.nT,timTabLin1.nout,timTabLin1.offset[1],timTabLin1.smoothness,timTabLin1.t0,timTabLin1.tab.columns[1],timTabLin1.tab.extrapolation,timTabLin1.tab.nout,timTabLin1.tab.offset[1],timTabLin1.tab.p_offset[1],timTabLin1.tab.shiftTime,timTabLin1.tab.smoothness,timTabLin1.tab.startTime,timTabLin1.tab.t_max,timTabLin1.tab.t_maxScaled,timTabLin1.tab.t_min,timTabLin1.tab.t_minScaled,timTabLin1.tab.tableOnFile,timTabLin1.tab.table[1,1],timTabLin1.tab.table[1,2],timTabLin1.tab.table[2,1],timTabLin1.tab.table[2,2],timTabLin1.tab.table[3,1],timTabLin1.tab.table[3,2],timTabLin1.tab.table[4,1],timTabLin1.tab.table[4,2],timTabLin1.tab.table[5,1],timTabLin1.tab.table[5,2],timTabLin1.tab.timeEvents,timTabLin1.tab.timeScale,timTabLin1.tab.verboseExtrapolation,timTabLin1.tab.verboseRead,timTabLin1.table[1,1],timTabLin1.table[1,2],timTabLin1.table[2,1],timTabLin1.table[2,2],timTabLin1.table[3,1],timTabLin1.table[3,2],timTabLin1.table[4,1],timTabLin1.table[4,2],timTabLin1.table[5,1],timTabLin1.table[5,2],timTabLin1.timeRange,timTabLin1.timeScale,timTabLin1.y[1],time