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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.23/2.23, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001095/0.001095, allocations: 176.9 kB / 487.4 MB, free: 5.062 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.861/1.861, allocations: 221.5 MB / 0.7824 GB, free: 0.9844 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.001397/0.001397, allocations: 107.8 kB / 0.9219 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.364e-05/2.367e-05, allocations: 12 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2911, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8687/1.16, allocations: 152.5 MB / 1.355 GB, free: 18.38 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/1.16, allocations: 77 kB / 1.355 GB, free: 18.38 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01824/1.179, allocations: 7.09 MB / 1.362 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.443e-06/1.179, allocations: 0 / 1.362 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.398e-05/1.179, allocations: 3.844 kB / 1.362 GB, free: 33.7 MB / 0.8386 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.0005898/1.179, allocations: 0.4886 MB / 1.362 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/1.179, allocations: 7.688 kB / 1.362 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.348e-05/1.179, allocations: 27.31 kB / 1.362 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005801/1.18, allocations: 336.7 kB / 1.363 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/1.18, allocations: 3.844 kB / 1.363 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2e-05/1.18, allocations: 3.844 kB / 1.363 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001098/1.18, allocations: 40.17 kB / 1.363 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000126/1.18, allocations: 75.47 kB / 1.363 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/1.18, allocations: 0 / 1.363 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/1.18, allocations: 4 kB / 1.363 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/1.18, allocations: 0 / 1.363 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000688/1.181, allocations: 432.5 kB / 1.363 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/1.181, allocations: 74.08 kB / 1.363 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.41e-05/1.181, allocations: 29.95 kB / 1.363 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/1.181, allocations: 0 / 1.363 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001269/1.181, allocations: 81.89 kB / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/1.181, allocations: 0 / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002225/1.182, allocations: 111.7 kB / 1.364 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.982e-05/1.182, allocations: 51.41 kB / 1.364 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003476/1.182, allocations: 338 kB / 1.364 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/1.182, allocations: 29.55 kB / 1.364 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.732e-05/1.182, allocations: 140.7 kB / 1.364 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/1.182, allocations: 19.34 kB / 1.364 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.33e-05/1.182, allocations: 0 / 1.364 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001507/1.182, allocations: 341.3 kB / 1.364 GB, free: 32 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.559e-05/1.182, allocations: 61.83 kB / 1.365 GB, free: 32 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/1.183, allocations: 90.17 kB / 1.365 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/1.183, allocations: 81.75 kB / 1.365 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/1.183, allocations: 0 / 1.365 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003671/1.183, allocations: 220.6 kB / 1.365 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/1.183, allocations: 11.62 kB / 1.365 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/1.183, allocations: 0 / 1.365 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/1.183, allocations: 0 / 1.365 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/1.183, allocations: 22.14 kB / 1.365 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/1.183, allocations: 7.891 kB / 1.365 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/1.184, allocations: 21.02 kB / 1.365 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.003e-05/1.184, allocations: 11.72 kB / 1.365 GB, free: 31.9 MB / 0.8386 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 8.637e-05/1.184, allocations: 108.9 kB / 1.365 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.204e-05/1.184, allocations: 19.31 kB / 1.365 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002076/1.184, allocations: 118.8 kB / 1.365 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/1.184, allocations: 3.938 kB / 1.365 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/1.184, allocations: 0 / 1.365 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/1.184, allocations: 10.69 kB / 1.365 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/1.184, allocations: 214.8 kB / 1.365 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/1.184, allocations: 3.875 kB / 1.365 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.581e-05/1.184, allocations: 6.75 kB / 1.365 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/1.184, allocations: 4 kB / 1.365 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/1.184, allocations: 0 / 1.365 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/1.184, allocations: 80 / 1.365 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/1.184, allocations: 7.797 kB / 1.365 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001595/1.184, allocations: 137.4 kB / 1.366 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.925e-05/1.184, allocations: 102.6 kB / 1.366 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/1.184, allocations: 3.812 kB / 1.366 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001246/1.185, allocations: 17.25 kB / 1.366 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.775e-05/1.185, allocations: 12.84 kB / 1.366 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/1.185, allocations: 3.844 kB / 1.366 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002188/1.185, allocations: 231.6 kB / 1.366 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.81e-07/1.185, allocations: 0 / 1.366 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003126/1.185, allocations: 54.47 kB / 1.366 GB, free: 31.29 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: 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.0008437/1.186, allocations: 368.7 kB / 1.366 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003503/1.186, allocations: 107.5 kB / 1.366 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/1.187, allocations: 0 / 1.366 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001318/1.187, allocations: 28.42 kB / 1.366 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005893/1.187, allocations: 42.25 kB / 1.367 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008702/1.188, allocations: 300.6 kB / 1.367 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/1.189, allocations: 0.7601 MB / 1.368 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001785/1.189, allocations: 31.5 kB / 1.368 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.908e-05/1.189, allocations: 26.08 kB / 1.368 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of SimCode: time 1.173e-06/1.189, allocations: 0 / 1.368 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of Templates: time 0.009514/1.198, allocations: 2.53 MB / 1.37 GB, free: 29.99 MB / 0.8386 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