Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.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.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 1.703/1.703, allocations: 390.4 MB / 397.7 MB, free: 1.887 MB / 307 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008608/0.0008606, allocations: 169.3 kB / 490.8 MB, free: 7.488 MB / 403 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.071/1.071, allocations: 221.4 MB / 0.7863 GB, free: 292 kB / 0.5498 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008057/0.0008061, allocations: 84.69 kB / 0.9264 GB, free: 0.668 MB / 0.6904 GB Notification: Performance of FrontEnd - loaded program: time 8.385e-06/8.405e-06, allocations: 8 kB / 1.072 GB, free: 137.5 MB / 0.7217 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1768/0.1768, allocations: 143 MB / 1.212 GB, free: 10.55 MB / 0.7373 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4585/0.6354, allocations: 153.3 MB / 1.361 GB, free: 8.773 MB / 0.8311 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001758/0.6356, allocations: 76.66 kB / 1.361 GB, free: 8.699 MB / 0.8311 GB Notification: Performance of FrontEnd: time 0.01673/0.6524, allocations: 6.749 MB / 1.368 GB, free: 1.965 MB / 0.8311 GB Notification: Performance of Transformations before backend: time 1.507e-05/0.6524, allocations: 4 kB / 1.368 GB, free: 1.961 MB / 0.8311 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.0005137/0.6529, allocations: 0.4913 MB / 1.368 GB, free: 1.426 MB / 0.8311 GB Notification: Performance of prepare preOptimizeDAE: time 2.895e-05/0.653, allocations: 8.031 kB / 1.368 GB, free: 1.418 MB / 0.8311 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.801e-05/0.653, allocations: 27.62 kB / 1.368 GB, free: 1.391 MB / 0.8311 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000525/0.6535, allocations: 335.1 kB / 1.369 GB, free: 1.02 MB / 0.8311 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.6536, allocations: 7.906 kB / 1.369 GB, free: 1.012 MB / 0.8311 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.6536, allocations: 4 kB / 1.369 GB, free: 1.008 MB / 0.8311 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.01e-05/0.6537, allocations: 36 kB / 1.369 GB, free: 0.9727 MB / 0.8311 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001167/0.6538, allocations: 77.59 kB / 1.369 GB, free: 0.8906 MB / 0.8311 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.6538, allocations: 3.938 kB / 1.369 GB, free: 0.8867 MB / 0.8311 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.6538, allocations: 0 / 1.369 GB, free: 0.8867 MB / 0.8311 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.6539, allocations: 4 kB / 1.369 GB, free: 0.8828 MB / 0.8311 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000546/0.6544, allocations: 425 kB / 1.369 GB, free: 440 kB / 0.8311 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.6546, allocations: 82.61 kB / 1.369 GB, free: 348 kB / 0.8311 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.32e-05/0.6546, allocations: 28.97 kB / 1.369 GB, free: 316 kB / 0.8311 GB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.6547, allocations: 0 / 1.369 GB, free: 316 kB / 0.8311 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.801e-05/0.6547, allocations: 75.39 kB / 1.369 GB, free: 228 kB / 0.8311 GB Notification: Performance of pre-optimization done (n=7): time 9.11e-07/0.6548, allocations: 0 / 1.369 GB, free: 228 kB / 0.8311 GB Notification: Performance of matching and sorting (n=7): time 0.0001756/0.6549, allocations: 89.41 kB / 1.37 GB, free: 132 kB / 0.8311 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.256e-05/0.655, allocations: 55.41 kB / 1.37 GB, free: 64 kB / 0.8311 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003566/0.6553, allocations: 339.3 kB / 1.37 GB, free: 15.73 MB / 0.8467 GB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.6554, allocations: 29.69 kB / 1.37 GB, free: 15.69 MB / 0.8467 GB Notification: Performance of collectInitialEqns (initialization): time 4.983e-05/0.6554, allocations: 108 kB / 1.37 GB, free: 15.58 MB / 0.8467 GB Notification: Performance of collectInitialBindings (initialization): time 2.331e-05/0.6554, allocations: 31.66 kB / 1.37 GB, free: 15.55 MB / 0.8467 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.928e-06/0.6555, allocations: 4 kB / 1.37 GB, free: 15.55 MB / 0.8467 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.6556, allocations: 338.8 kB / 1.37 GB, free: 15.21 MB / 0.8467 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.911e-05/0.6557, allocations: 63.98 kB / 1.37 GB, free: 15.14 MB / 0.8467 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.6558, allocations: 90.55 kB / 1.371 GB, free: 15.05 MB / 0.8467 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.656, allocations: 75.94 kB / 1.371 GB, free: 14.97 MB / 0.8467 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.656, allocations: 3.906 kB / 1.371 GB, free: 14.97 MB / 0.8467 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003471/0.6563, allocations: 225.2 kB / 1.371 GB, free: 14.74 MB / 0.8467 GB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/0.6564, allocations: 8 kB / 1.371 GB, free: 14.73 MB / 0.8467 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.6564, allocations: 0 / 1.371 GB, free: 14.73 MB / 0.8467 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.6564, allocations: 0 / 1.371 GB, free: 14.73 MB / 0.8467 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.6565, allocations: 23.98 kB / 1.371 GB, free: 14.71 MB / 0.8467 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.396e-06/0.6565, allocations: 0 / 1.371 GB, free: 14.71 MB / 0.8467 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.6566, allocations: 23.92 kB / 1.371 GB, free: 14.69 MB / 0.8467 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.6567, allocations: 7.938 kB / 1.371 GB, free: 14.68 MB / 0.8467 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 7.183e-05/0.6567, allocations: 112.9 kB / 1.371 GB, free: 14.56 MB / 0.8467 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.04e-05/0.6568, allocations: 23.72 kB / 1.371 GB, free: 14.54 MB / 0.8467 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001688/0.6569, allocations: 107.4 kB / 1.371 GB, free: 14.43 MB / 0.8467 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.657, allocations: 0 / 1.371 GB, free: 14.43 MB / 0.8467 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.657, allocations: 0 / 1.371 GB, free: 14.43 MB / 0.8467 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.657, allocations: 0 / 1.371 GB, free: 14.43 MB / 0.8467 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.6571, allocations: 230 kB / 1.371 GB, free: 14.17 MB / 0.8467 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.6571, allocations: 4 kB / 1.371 GB, free: 14.16 MB / 0.8467 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.925e-05/0.6572, allocations: 4 kB / 1.371 GB, free: 14.16 MB / 0.8467 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.6572, allocations: 0 / 1.371 GB, free: 14.16 MB / 0.8467 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.6572, allocations: 0 / 1.371 GB, free: 14.16 MB / 0.8467 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.6572, allocations: 11.92 kB / 1.371 GB, free: 14.15 MB / 0.8467 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.6572, allocations: 0 / 1.371 GB, free: 14.15 MB / 0.8467 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001463/0.6574, allocations: 128.9 kB / 1.372 GB, free: 14 MB / 0.8467 GB Notification: Performance of postOpt removeConstants (simulation): time 6.911e-05/0.6574, allocations: 104.8 kB / 1.372 GB, free: 13.88 MB / 0.8467 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.353e-05/0.6575, allocations: 8 kB / 1.372 GB, free: 13.88 MB / 0.8467 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.6576, allocations: 11.98 kB / 1.372 GB, free: 13.86 MB / 0.8467 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.409e-05/0.6576, allocations: 19.95 kB / 1.372 GB, free: 13.84 MB / 0.8467 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.002e-05/0.6577, allocations: 8 kB / 1.372 GB, free: 13.84 MB / 0.8467 GB Notification: Performance of sort global known variables: time 0.0001915/0.6579, allocations: 231.1 kB / 1.372 GB, free: 13.61 MB / 0.8467 GB Notification: Performance of remove unused functions: time 0.0002283/0.6581, allocations: 51.95 kB / 1.372 GB, free: 13.56 MB / 0.8467 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.0005394/0.6586, allocations: 322.8 kB / 1.372 GB, free: 13.32 MB / 0.8467 GB Notification: Performance of simCode: created initialization part: time 0.0001693/0.6588, allocations: 103.5 kB / 1.372 GB, free: 13.22 MB / 0.8467 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.6588, allocations: 4 kB / 1.372 GB, free: 13.22 MB / 0.8467 GB Notification: Performance of simCode: created simulation system equations: time 6.072e-05/0.6589, allocations: 31.94 kB / 1.372 GB, free: 13.19 MB / 0.8467 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.6591, allocations: 48.83 kB / 1.372 GB, free: 13.14 MB / 0.8467 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004802/0.6596, allocations: 295.3 kB / 1.373 GB, free: 12.83 MB / 0.8467 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003065/0.6599, allocations: 0.7814 MB / 1.373 GB, free: 12.02 MB / 0.8467 GB Notification: Performance of SimCode: time 2.41e-07/0.66, allocations: 0 / 1.373 GB, free: 12.02 MB / 0.8467 GB Notification: Performance of Templates: time 0.00491/0.6649, allocations: 2.491 MB / 1.376 GB, free: 9.555 MB / 0.8467 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.csv","../files/Buildings_latest_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