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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.385/2.385, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001043/0.001043, allocations: 186 kB / 0.4902 GB, free: 2.23 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.723/1.723, allocations: 223.2 MB / 0.7992 GB, free: 15.61 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.000892/0.000892, allocations: 100.2 kB / 0.9396 GB, free: 2.82 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005914/0.0005915, allocations: 12 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3149, allocations: 143 MB / 1.229 GB, free: 85.45 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2064/0.5214, allocations: 154.1 MB / 1.38 GB, free: 11.18 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/0.5217, allocations: 83.95 kB / 1.38 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02052/0.5422, allocations: 7.167 MB / 1.387 GB, free: 3.918 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.954e-06/0.5423, allocations: 0 / 1.387 GB, free: 3.918 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.891e-05/0.5423, allocations: 4 kB / 1.387 GB, free: 3.914 MB / 0.8855 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.001031/0.5434, allocations: 0.549 MB / 1.387 GB, free: 3.316 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.5434, allocations: 8.562 kB / 1.387 GB, free: 3.309 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.5435, allocations: 23.72 kB / 1.387 GB, free: 3.285 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007008/0.5443, allocations: 342.3 kB / 1.388 GB, free: 2.91 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/0.5443, allocations: 7.938 kB / 1.388 GB, free: 2.902 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.902e-05/0.5443, allocations: 11.94 kB / 1.388 GB, free: 2.891 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.5445, allocations: 81.64 kB / 1.388 GB, free: 2.805 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.5446, allocations: 3.938 kB / 1.388 GB, free: 2.801 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.5446, allocations: 0 / 1.388 GB, free: 2.801 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.5446, allocations: 4 kB / 1.388 GB, free: 2.797 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001177/0.5447, allocations: 47.98 kB / 1.388 GB, free: 2.75 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007786/0.5455, allocations: 456.5 kB / 1.388 GB, free: 2.254 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002381/0.5458, allocations: 82.66 kB / 1.388 GB, free: 2.164 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.5458, allocations: 4 kB / 1.388 GB, free: 2.16 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001708/0.546, allocations: 87.38 kB / 1.388 GB, free: 2.062 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.546, allocations: 0 / 1.388 GB, free: 2.062 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0003334/0.5463, allocations: 133.4 kB / 1.389 GB, free: 1.926 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.5464, allocations: 55.41 kB / 1.389 GB, free: 1.859 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000401/0.5468, allocations: 354 kB / 1.389 GB, free: 1.508 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.5468, allocations: 33.7 kB / 1.389 GB, free: 1.469 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.872e-05/0.5469, allocations: 147.9 kB / 1.389 GB, free: 1.32 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/0.5469, allocations: 15.81 kB / 1.389 GB, free: 1.305 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-06/0.547, allocations: 0 / 1.389 GB, free: 1.305 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.5471, allocations: 338.8 kB / 1.389 GB, free: 0.9648 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.5472, allocations: 79.95 kB / 1.39 GB, free: 0.8867 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.5474, allocations: 95.09 kB / 1.39 GB, free: 0.7852 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000132/0.5475, allocations: 70.09 kB / 1.39 GB, free: 0.7188 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.5475, allocations: 0 / 1.39 GB, free: 0.7188 MB / 0.8855 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000364/0.5479, allocations: 237.1 kB / 1.39 GB, free: 492 kB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.5479, allocations: 5.25 kB / 1.39 GB, free: 488 kB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.548, allocations: 8.016 kB / 1.39 GB, free: 480 kB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.548, allocations: 0 / 1.39 GB, free: 480 kB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.5481, allocations: 23.98 kB / 1.39 GB, free: 456 kB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.5481, allocations: 0 / 1.39 GB, free: 456 kB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.5483, allocations: 19.98 kB / 1.39 GB, free: 436 kB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.164e-05/0.5483, allocations: 8 kB / 1.39 GB, free: 428 kB / 0.8855 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 () * Number of clocked 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 0.0001851/0.5485, allocations: 157.8 kB / 1.39 GB, free: 260 kB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.718e-05/0.5486, allocations: 27.72 kB / 1.39 GB, free: 232 kB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002598/0.5488, allocations: 123.4 kB / 1.39 GB, free: 96 kB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.5488, allocations: 3.953 kB / 1.39 GB, free: 92 kB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5489, allocations: 3.938 kB / 1.39 GB, free: 88 kB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.5489, allocations: 0 / 1.39 GB, free: 88 kB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002238/0.5491, allocations: 249.5 kB / 1.39 GB, free: 15.79 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.5491, allocations: 4 kB / 1.391 GB, free: 15.79 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.521e-05/0.5491, allocations: 7.984 kB / 1.391 GB, free: 15.78 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.5491, allocations: 3.938 kB / 1.391 GB, free: 15.78 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.5492, allocations: 0 / 1.391 GB, free: 15.78 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.5492, allocations: 4 kB / 1.391 GB, free: 15.77 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5492, allocations: 3.953 kB / 1.391 GB, free: 15.77 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002342/0.5494, allocations: 148.8 kB / 1.391 GB, free: 15.61 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 9.573e-05/0.5495, allocations: 100.8 kB / 1.391 GB, free: 15.49 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.592e-05/0.5496, allocations: 8 kB / 1.391 GB, free: 15.48 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.927e-05/0.5497, allocations: 15.98 kB / 1.391 GB, free: 15.46 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.075e-05/0.5498, allocations: 15.92 kB / 1.391 GB, free: 15.45 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.5498, allocations: 12 kB / 1.391 GB, free: 15.44 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.000255/0.55, allocations: 237.9 kB / 1.391 GB, free: 15.21 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.3e-07/0.55, allocations: 0 / 1.391 GB, free: 15.21 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0002924/0.5503, allocations: 60.05 kB / 1.391 GB, free: 15.15 MB / 0.9011 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) * Number of clocked states: 0 () * 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.001061/0.5514, allocations: 425 kB / 1.391 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0002765/0.5517, allocations: 119.9 kB / 1.392 GB, free: 14.77 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.5517, allocations: 0 / 1.392 GB, free: 14.77 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 9.109e-05/0.5518, allocations: 35.92 kB / 1.392 GB, free: 14.73 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.5521, allocations: 49.53 kB / 1.392 GB, free: 14.68 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008558/0.553, allocations: 441.3 kB / 1.392 GB, free: 14.22 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.5534, allocations: 0.7579 MB / 1.393 GB, free: 13.44 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001281/0.5535, allocations: 33.91 kB / 1.393 GB, free: 13.41 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.27e-05/0.5536, allocations: 23.44 kB / 1.393 GB, free: 13.39 MB / 0.9011 GB Notification: Performance of SimCode: time 9.82e-07/0.5536, allocations: 0 / 1.393 GB, free: 13.39 MB / 0.9011 GB Notification: Performance of Templates: time 0.006912/0.5605, allocations: 2.723 MB / 1.396 GB, free: 10.69 MB / 0.9011 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