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.24/2.24, allocations: 390.5 MB / 398 MB, free: 10.96 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.00125/0.00125, allocations: 179.8 kB / 491.2 MB, free: 1.629 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.521/1.521, allocations: 221.5 MB / 0.7868 GB, free: 13.32 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.0009005/0.0009007, allocations: 100.2 kB / 0.9269 GB, free: 13.81 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.408e-05/2.409e-05, allocations: 8 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.3391, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.145/1.484, allocations: 153.3 MB / 1.362 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/1.485, allocations: 82.92 kB / 1.362 GB, free: 17.44 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01772/1.502, allocations: 7.09 MB / 1.369 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.954e-06/1.503, allocations: 0 / 1.369 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.996e-05/1.503, allocations: 7.875 kB / 1.369 GB, free: 32.76 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.0006045/1.503, allocations: 492.1 kB / 1.37 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/1.503, allocations: 7.75 kB / 1.37 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.754e-05/1.503, allocations: 26.78 kB / 1.37 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005328/1.504, allocations: 344.3 kB / 1.37 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/1.504, allocations: 3.969 kB / 1.37 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.039e-05/1.504, allocations: 4.531 kB / 1.37 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001032/1.504, allocations: 35.81 kB / 1.37 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001228/1.504, allocations: 72.59 kB / 1.37 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/1.504, allocations: 3.938 kB / 1.37 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/1.504, allocations: 0 / 1.37 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/1.504, allocations: 0 / 1.37 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006291/1.505, allocations: 426.7 kB / 1.37 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000166/1.505, allocations: 84.11 kB / 1.371 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.318e-05/1.505, allocations: 28.98 kB / 1.371 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/1.505, allocations: 3.828 kB / 1.371 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001385/1.505, allocations: 76.22 kB / 1.371 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 2.375e-06/1.505, allocations: 4 kB / 1.371 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0002196/1.505, allocations: 108.6 kB / 1.371 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.252e-05/1.506, allocations: 51.41 kB / 1.371 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000322/1.506, allocations: 337.6 kB / 1.371 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/1.506, allocations: 25.7 kB / 1.371 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.193e-05/1.506, allocations: 147.2 kB / 1.371 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/1.506, allocations: 22.55 kB / 1.371 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.054e-05/1.506, allocations: 0 / 1.371 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001161/1.506, allocations: 335.9 kB / 1.372 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.156e-05/1.506, allocations: 64.73 kB / 1.372 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.451e-05/1.506, allocations: 93.06 kB / 1.372 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/1.507, allocations: 75.81 kB / 1.372 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/1.507, allocations: 0 / 1.372 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003071/1.507, allocations: 220.5 kB / 1.372 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/1.507, allocations: 3.844 kB / 1.372 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/1.507, allocations: 4.062 kB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/1.507, allocations: 3.953 kB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/1.507, allocations: 24.7 kB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/1.507, allocations: 3.812 kB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/1.507, allocations: 11.97 kB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.599e-05/1.507, allocations: 7.656 kB / 1.372 GB, free: 30.97 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.08e-05/1.507, allocations: 121.3 kB / 1.372 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/1.507, allocations: 27.09 kB / 1.372 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001902/1.507, allocations: 118 kB / 1.372 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/1.508, allocations: 3.844 kB / 1.372 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/1.508, allocations: 3.953 kB / 1.372 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/1.508, allocations: 0 / 1.372 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001544/1.508, allocations: 225.4 kB / 1.373 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/1.508, allocations: 0 / 1.373 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.888e-05/1.508, allocations: 3.875 kB / 1.373 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/1.508, allocations: 2.719 kB / 1.373 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/1.508, allocations: 0 / 1.373 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/1.508, allocations: 15.75 kB / 1.373 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/1.508, allocations: 0 / 1.373 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001783/1.508, allocations: 136.2 kB / 1.373 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.903e-05/1.508, allocations: 102.9 kB / 1.373 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.313e-05/1.508, allocations: 3.844 kB / 1.373 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.118e-05/1.508, allocations: 14.86 kB / 1.373 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.375e-05/1.508, allocations: 20.55 kB / 1.373 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/1.508, allocations: 7.016 kB / 1.373 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001974/1.508, allocations: 229.7 kB / 1.373 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.508, allocations: 3.844 kB / 1.373 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000249/1.509, allocations: 46.66 kB / 1.373 GB, free: 30.34 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.0008773/1.51, allocations: 359.4 kB / 1.373 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001913/1.51, allocations: 103.9 kB / 1.374 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/1.51, allocations: 3.938 kB / 1.374 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.493e-05/1.51, allocations: 29.36 kB / 1.374 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/1.51, allocations: 50.3 kB / 1.374 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004851/1.511, allocations: 302.1 kB / 1.374 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/1.511, allocations: 0.7586 MB / 1.375 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.719e-05/1.511, allocations: 31.11 kB / 1.375 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.591e-05/1.511, allocations: 22.05 kB / 1.375 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.511, allocations: 3.812 kB / 1.375 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of Templates: time 0.005446/1.517, allocations: 2.517 MB / 1.377 GB, free: 29.06 MB / 0.8386 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