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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01073/0.01073, allocations: 99.81 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002161/0.002161, allocations: 192.6 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.421/2.421, allocations: 390.2 MB / 0.6648 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002166/0.002166, allocations: 63.91 kB / 0.9509 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.08/1.082, allocations: 140.4 MB / 1.088 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.004331/1.087, allocations: 1.932 MB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002147/1.089, allocations: 1.098 MB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/1.089, allocations: 7.062 kB / 1.091 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005501/1.09, allocations: 120.7 kB / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003166/1.09, allocations: 103.2 kB / 1.091 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004396/1.091, allocations: 156.4 kB / 1.091 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003453/1.091, allocations: 200.8 kB / 1.091 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002054/1.091, allocations: 50.27 kB / 1.092 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001947/1.091, allocations: 103.1 kB / 1.092 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/1.092, allocations: 97.39 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.403e-05/1.092, allocations: 10.59 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/1.092, allocations: 59.16 kB / 1.092 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001069/1.092, allocations: 56.7 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.724e-05/1.092, allocations: 89.03 kB / 1.092 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004437/1.092, allocations: 279 kB / 1.092 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/1.092, allocations: 4.656 kB / 1.092 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.104e-06/1.092, allocations: 0 / 1.092 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.374e-06/1.092, allocations: 0 / 1.092 GB, free: 2.844 MB / 0.8575 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.000916/1.093, allocations: 0.5466 MB / 1.093 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/1.093, allocations: 9.375 kB / 1.093 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.766e-05/1.093, allocations: 29.11 kB / 1.093 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006175/1.094, allocations: 391.1 kB / 1.093 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/1.094, allocations: 7.688 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.233e-05/1.094, allocations: 12.11 kB / 1.093 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002449/1.094, allocations: 78.06 kB / 1.093 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/1.094, allocations: 1.703 kB / 1.093 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/1.094, allocations: 4.938 kB / 1.093 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/1.094, allocations: 0.9062 kB / 1.093 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001404/1.095, allocations: 46.53 kB / 1.093 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007967/1.095, allocations: 401.4 kB / 1.094 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002956/1.096, allocations: 78.27 kB / 1.094 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.943e-05/1.096, allocations: 31.67 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/1.096, allocations: 1.859 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001965/1.096, allocations: 80.81 kB / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/1.096, allocations: 0 / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004042/1.097, allocations: 140.2 kB / 1.094 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/1.097, allocations: 52.81 kB / 1.094 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004526/1.097, allocations: 310 kB / 1.094 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/1.097, allocations: 31.42 kB / 1.094 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/1.097, allocations: 145.7 kB / 1.095 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.248e-05/1.097, allocations: 24.97 kB / 1.095 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.806e-05/1.097, allocations: 44.86 kB / 1.095 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000102/1.097, allocations: 337.2 kB / 1.095 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/1.098, allocations: 39.28 kB / 1.095 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/1.098, allocations: 71.69 kB / 1.095 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/1.098, allocations: 80.39 kB / 1.095 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/1.098, allocations: 0 / 1.095 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003492/1.098, allocations: 158.8 kB / 1.095 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/1.098, allocations: 6.203 kB / 1.095 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/1.098, allocations: 0.8125 kB / 1.095 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.829e-05/1.098, allocations: 5.469 kB / 1.095 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/1.098, allocations: 30.03 kB / 1.095 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/1.099, allocations: 1.062 kB / 1.095 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/1.099, allocations: 19.14 kB / 1.095 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.53e-05/1.099, allocations: 12.03 kB / 1.095 GB, free: 492 kB / 0.8575 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 ($PRE.timTabLin.tab.nextTimeEvent,$whenCondition1,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,lesHys.lesHys.y,$PRE.lesHys.lesHys.y,les.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001942/1.099, allocations: 156.4 kB / 1.095 GB, free: 356 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.466e-05/1.099, allocations: 23.16 kB / 1.095 GB, free: 344 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.201e-05/1.099, allocations: 27.03 kB / 1.096 GB, free: 332 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/1.099, allocations: 5.938 kB / 1.096 GB, free: 328 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/1.099, allocations: 4.562 kB / 1.096 GB, free: 324 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/1.099, allocations: 0.5156 kB / 1.096 GB, free: 324 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002731/1.099, allocations: 245.3 kB / 1.096 GB, free: 96 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/1.099, allocations: 0.6875 kB / 1.096 GB, free: 96 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.807e-05/1.099, allocations: 4.016 kB / 1.096 GB, free: 96 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/1.099, allocations: 5.297 kB / 1.096 GB, free: 92 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/1.099, allocations: 6.109 kB / 1.096 GB, free: 88 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/1.099, allocations: 4.438 kB / 1.096 GB, free: 84 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/1.099, allocations: 1.125 kB / 1.096 GB, free: 84 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003041/1.1, allocations: 143.6 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/1.1, allocations: 95.77 kB / 1.096 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.655e-05/1.1, allocations: 1.516 kB / 1.096 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/1.1, allocations: 18.66 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.694e-05/1.1, allocations: 8.719 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/1.1, allocations: 3.844 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003133/1.1, allocations: 216.8 kB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/1.1, allocations: 0 / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003131/1.101, allocations: 40.56 kB / 1.096 GB, free: 15.74 MB / 0.8731 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 (timTabLin.tab.nextTimeEventScaled,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001382/1.102, allocations: 428 kB / 1.097 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003116/1.102, allocations: 89.72 kB / 1.097 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/1.102, allocations: 4 kB / 1.097 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001089/1.103, allocations: 33.38 kB / 1.097 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004431/1.103, allocations: 58.25 kB / 1.097 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008338/1.104, allocations: 372.3 kB / 1.097 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004807/1.104, allocations: 0.7453 MB / 1.098 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002002/1.105, allocations: 46.8 kB / 1.098 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.918e-05/1.105, allocations: 29.33 kB / 1.098 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of SimCode: time 1.072e-06/1.105, allocations: 0 / 1.098 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of Templates: time 0.009502/1.114, allocations: 2.698 MB / 1.101 GB, free: 14.25 MB / 0.8731 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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