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.00841/0.00841, allocations: 101 kB / 15.73 MB, free: 6.004 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.001664/0.001664, allocations: 195.9 kB / 16.68 MB, free: 5.926 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.51/1.51, allocations: 222.9 MB / 240.4 MB, free: 15.05 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.466/2.466, allocations: 390.2 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 63.91 kB / 0.9509 GB, free: 7.559 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.127/1.128, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.003592/1.132, allocations: 1.937 MB / 1.09 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001902/1.134, allocations: 1.099 MB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/1.134, allocations: 7.031 kB / 1.091 GB, free: 3.398 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004964/1.134, allocations: 115.9 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003231/1.135, allocations: 103.9 kB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004753/1.135, allocations: 149.9 kB / 1.091 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003347/1.136, allocations: 203.6 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/1.136, allocations: 47.52 kB / 1.092 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/1.136, allocations: 102.5 kB / 1.092 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001739/1.136, allocations: 101.9 kB / 1.092 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/1.136, allocations: 10.25 kB / 1.092 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001712/1.136, allocations: 59.22 kB / 1.092 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001077/1.136, allocations: 57.31 kB / 1.092 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.786e-05/1.137, allocations: 88.81 kB / 1.092 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004544/1.137, allocations: 272.2 kB / 1.092 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/1.137, allocations: 0 / 1.092 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.084e-06/1.137, allocations: 3.938 kB / 1.092 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.824e-06/1.137, allocations: 1.344 kB / 1.092 GB, free: 2.824 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.0009176/1.138, allocations: 0.5446 MB / 1.093 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/1.138, allocations: 9.219 kB / 1.093 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.419e-05/1.138, allocations: 25.11 kB / 1.093 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000576/1.139, allocations: 378.6 kB / 1.093 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/1.139, allocations: 7.281 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/1.139, allocations: 10.41 kB / 1.093 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/1.139, allocations: 88.88 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/1.139, allocations: 0 / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/1.139, allocations: 5.094 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.617e-06/1.139, allocations: 2.625 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001402/1.139, allocations: 37.28 kB / 1.093 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008033/1.14, allocations: 413.3 kB / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002718/1.14, allocations: 82.06 kB / 1.094 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.878e-05/1.14, allocations: 27.7 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/1.14, allocations: 2.031 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002078/1.141, allocations: 81.14 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 2.354e-06/1.141, allocations: 0 / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004162/1.141, allocations: 139.7 kB / 1.094 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/1.141, allocations: 52.88 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004135/1.142, allocations: 306.3 kB / 1.094 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.106e-05/1.142, allocations: 31.2 kB / 1.094 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/1.142, allocations: 149.6 kB / 1.095 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.832e-05/1.142, allocations: 21.22 kB / 1.095 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-05/1.142, allocations: 47.58 kB / 1.095 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001051/1.142, allocations: 342.6 kB / 1.095 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/1.142, allocations: 38.59 kB / 1.095 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/1.142, allocations: 59.77 kB / 1.095 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001826/1.142, allocations: 81.05 kB / 1.095 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/1.142, allocations: 1.094 kB / 1.095 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003398/1.143, allocations: 172.9 kB / 1.095 GB, free: 496 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/1.143, allocations: 4.969 kB / 1.095 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/1.143, allocations: 1.547 kB / 1.095 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/1.143, allocations: 5.188 kB / 1.095 GB, free: 492 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/1.143, allocations: 25.91 kB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/1.143, allocations: 1.094 kB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/1.143, allocations: 11.42 kB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.257e-05/1.143, allocations: 8.016 kB / 1.095 GB, free: 488 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.0001646/1.143, allocations: 165.1 kB / 1.095 GB, free: 344 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.635e-05/1.143, allocations: 22.98 kB / 1.095 GB, free: 332 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.386e-05/1.143, allocations: 31.33 kB / 1.095 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/1.143, allocations: 5.031 kB / 1.096 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/1.143, allocations: 0.7969 kB / 1.096 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/1.143, allocations: 0.75 kB / 1.096 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002312/1.144, allocations: 240.7 kB / 1.096 GB, free: 88 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/1.144, allocations: 1.141 kB / 1.096 GB, free: 88 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.442e-05/1.144, allocations: 4.609 kB / 1.096 GB, free: 88 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/1.144, allocations: 0 / 1.096 GB, free: 88 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/1.144, allocations: 11 kB / 1.096 GB, free: 80 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/1.144, allocations: 5 kB / 1.096 GB, free: 76 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/1.144, allocations: 0 / 1.096 GB, free: 76 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002604/1.144, allocations: 139.4 kB / 1.096 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.574e-05/1.144, allocations: 99.47 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.227e-05/1.144, allocations: 3.359 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.202e-05/1.144, allocations: 16.55 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.812e-05/1.144, allocations: 15.03 kB / 1.096 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/1.144, allocations: 2.25 kB / 1.096 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002688/1.145, allocations: 216.7 kB / 1.096 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/1.145, allocations: 0 / 1.096 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002846/1.145, allocations: 40.78 kB / 1.096 GB, free: 15.73 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.0011/1.146, allocations: 414.8 kB / 1.097 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003009/1.146, allocations: 98.44 kB / 1.097 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/1.146, allocations: 4 kB / 1.097 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 9.782e-05/1.146, allocations: 28.81 kB / 1.097 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003939/1.147, allocations: 49.64 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.0009587/1.148, allocations: 372.9 kB / 1.097 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004231/1.148, allocations: 0.7501 MB / 1.098 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001486/1.148, allocations: 46.97 kB / 1.098 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.341e-05/1.149, allocations: 25.25 kB / 1.098 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of SimCode: time 2.21e-07/1.149, allocations: 0 / 1.098 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of Templates: time 0.01074/1.159, allocations: 2.697 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