Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.511/1.511, allocations: 249.5 MB / 257 MB, free: 6.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009595/0.0009597, allocations: 176.9 kB / 316.3 MB, free: 3.281 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.762/1.762, allocations: 205.3 MB / 0.5671 GB, free: 15.93 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 86.53 kB / 0.6714 GB, free: 5.047 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.346e-05/2.348e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2257, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7436/0.9693, allocations: 131.6 MB / 1.014 GB, free: 6.227 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.9697, allocations: 71.05 kB / 1.014 GB, free: 6.188 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001785/0.9715, allocations: 0.6369 MB / 1.014 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.364e-06/0.9715, allocations: 0 / 1.014 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.031e-05/0.9715, allocations: 4 kB / 1.014 GB, free: 5.598 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003847/0.9719, allocations: 338.5 kB / 1.015 GB, free: 5.223 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.972, allocations: 8.031 kB / 1.015 GB, free: 5.215 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.223e-05/0.972, allocations: 3.562 kB / 1.015 GB, free: 5.215 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/0.9722, allocations: 167 kB / 1.015 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.9722, allocations: 0 / 1.015 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.9722, allocations: 0 / 1.015 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.867e-05/0.9723, allocations: 19.42 kB / 1.015 GB, free: 4.996 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.09e-05/0.9724, allocations: 37.06 kB / 1.015 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.9724, allocations: 0 / 1.015 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.9724, allocations: 0 / 1.015 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.9724, allocations: 4 kB / 1.015 GB, free: 4.953 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004018/0.9728, allocations: 247.2 kB / 1.015 GB, free: 4.68 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.668e-05/0.9729, allocations: 25.77 kB / 1.015 GB, free: 4.648 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.402e-05/0.9729, allocations: 8.359 kB / 1.015 GB, free: 4.641 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.363e-05/0.973, allocations: 11.94 kB / 1.015 GB, free: 4.629 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.973, allocations: 34.5 kB / 1.015 GB, free: 4.586 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.973, allocations: 0 / 1.015 GB, free: 4.586 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001457/0.9731, allocations: 36.95 kB / 1.015 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.9732, allocations: 54.14 kB / 1.015 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.315e-05/0.9733, allocations: 96.42 kB / 1.015 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.9733, allocations: 25.7 kB / 1.015 GB, free: 4.355 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.783e-05/0.9734, allocations: 91.86 kB / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.9734, allocations: 3.906 kB / 1.016 GB, free: 4.262 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-06/0.9734, allocations: 0 / 1.016 GB, free: 4.262 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.9735, allocations: 314.8 kB / 1.016 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.482e-05/0.9735, allocations: 7.875 kB / 1.016 GB, free: 3.941 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.294e-05/0.9735, allocations: 4 kB / 1.016 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.433e-05/0.9736, allocations: 0 / 1.016 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.9736, allocations: 0 / 1.016 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.619e-05/0.9736, allocations: 52.75 kB / 1.016 GB, free: 3.883 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.9737, allocations: 4 kB / 1.016 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.9737, allocations: 0 / 1.016 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.9737, allocations: 0 / 1.016 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.805e-05/0.9738, allocations: 11.98 kB / 1.016 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.9738, allocations: 0 / 1.016 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.061e-05/0.9739, allocations: 11.06 kB / 1.016 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.573e-06/0.9739, allocations: 3.984 kB / 1.016 GB, free: 3.855 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (lesThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.699e-05/0.974, allocations: 113 kB / 1.016 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.131e-05/0.974, allocations: 0 / 1.016 GB, free: 3.738 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.583e-05/0.974, allocations: 7.703 kB / 1.016 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.974, allocations: 0 / 1.016 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.515e-06/0.974, allocations: 4 kB / 1.016 GB, free: 3.723 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.974, allocations: 3.938 kB / 1.016 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.9742, allocations: 133.4 kB / 1.016 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.9742, allocations: 3.953 kB / 1.016 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.048e-05/0.9743, allocations: 17.61 kB / 1.016 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.9743, allocations: 0 / 1.016 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.9743, allocations: 0 / 1.016 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.9743, allocations: 0 / 1.016 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.9743, allocations: 0 / 1.016 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001188/0.9744, allocations: 144.5 kB / 1.016 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.838e-05/0.9745, allocations: 88.31 kB / 1.016 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.9745, allocations: 0 / 1.016 GB, free: 3.281 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.991e-05/0.9746, allocations: 16.02 kB / 1.016 GB, free: 3.266 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/0.9747, allocations: 0 / 1.016 GB, free: 3.266 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.9747, allocations: 4 kB / 1.016 GB, free: 3.262 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.923e-05/0.9747, allocations: 88.08 kB / 1.017 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9747, allocations: 0 / 1.017 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002021/0.9749, allocations: 4 kB / 1.017 GB, free: 3.172 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (lesThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.000153/0.9751, allocations: 105.5 kB / 1.017 GB, free: 3.066 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 9.545e-05/0.9752, allocations: 11.19 kB / 1.017 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.9752, allocations: 0 / 1.017 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.157e-05/0.9752, allocations: 15.06 kB / 1.017 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001764/0.9754, allocations: 0 / 1.017 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002094/0.9756, allocations: 63.44 kB / 1.017 GB, free: 2.965 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.9759, allocations: 0.6768 MB / 1.017 GB, free: 2.262 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.328e-05/0.9759, allocations: 4.125 kB / 1.017 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.105e-05/0.9759, allocations: 7.438 kB / 1.017 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of SimCode: time 2.8e-07/0.9759, allocations: 4 kB / 1.017 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of Templates: time 0.002015/0.978, allocations: 364.9 kB / 1.018 GB, free: 1.902 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[510]=10.000000 File[5004]=1.000000 Error: Could not read variable les.u in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat. Warning: Get data of variable les.u from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat failed! Error: Could not read variable les.t in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat. Warning: Get data of variable les.t from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat failed! Error: Could not read variable les.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat. Warning: Get data of variable les.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat failed! Error: Could not read variable lesHys.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat. Warning: Get data of variable lesHys.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat failed! " Variables in the reference:time,les.u,les.t,les.y,lesHys.y Variables in the result:lesThr.threshold,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,time