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.01305/0.01305, allocations: 102.9 kB / 15.73 MB, free: 6.043 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.001805/0.001805, allocations: 193.5 kB / 16.67 MB, free: 5.961 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.468/1.468, 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.435/2.435, allocations: 390.2 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001243, allocations: 71.89 kB / 0.9509 GB, free: 7.586 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.098/1.099, allocations: 140.4 MB / 1.088 GB, free: 5.781 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.003371/1.103, allocations: 1.929 MB / 1.09 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001897/1.105, allocations: 1.098 MB / 1.091 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/1.105, allocations: 10.59 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004874/1.106, allocations: 115.8 kB / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003184/1.106, allocations: 102.8 kB / 1.091 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004135/1.106, allocations: 146.1 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000357/1.107, allocations: 207.3 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/1.107, allocations: 47.62 kB / 1.092 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/1.107, allocations: 97.58 kB / 1.092 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001848/1.107, allocations: 101.7 kB / 1.092 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.957e-05/1.107, allocations: 14.12 kB / 1.092 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/1.107, allocations: 55.98 kB / 1.092 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001076/1.108, allocations: 56.47 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001017/1.108, allocations: 85.91 kB / 1.092 GB, free: 3.199 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004507/1.108, allocations: 279.6 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/1.108, allocations: 4.875 kB / 1.092 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.773e-06/1.108, allocations: 0 / 1.092 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.384e-06/1.108, allocations: 0.875 kB / 1.092 GB, free: 3.086 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.0008741/1.109, allocations: 0.541 MB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/1.109, allocations: 9.891 kB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.375e-05/1.109, allocations: 24.28 kB / 1.093 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005733/1.11, allocations: 382.7 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/1.11, allocations: 4.234 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.398e-05/1.11, allocations: 11.72 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/1.11, allocations: 78.88 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/1.11, allocations: 4 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/1.11, allocations: 1.328 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/1.11, allocations: 1.594 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001243/1.11, allocations: 46.62 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007018/1.111, allocations: 408.8 kB / 1.094 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002645/1.111, allocations: 86.33 kB / 1.094 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.08e-05/1.111, allocations: 35.94 kB / 1.094 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/1.111, allocations: 1.422 kB / 1.094 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001698/1.111, allocations: 77.14 kB / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/1.112, allocations: 0 / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003508/1.112, allocations: 131.8 kB / 1.094 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/1.112, allocations: 53.64 kB / 1.094 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000382/1.112, allocations: 313.5 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/1.112, allocations: 27.39 kB / 1.094 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.715e-05/1.112, allocations: 152.7 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.629e-05/1.112, allocations: 21.77 kB / 1.095 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.398e-05/1.113, allocations: 44.86 kB / 1.095 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.024e-05/1.113, allocations: 338.1 kB / 1.095 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/1.113, allocations: 42.7 kB / 1.095 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/1.113, allocations: 59.47 kB / 1.095 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001645/1.113, allocations: 74.94 kB / 1.095 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/1.113, allocations: 0 / 1.095 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003034/1.113, allocations: 171.1 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/1.113, allocations: 9.922 kB / 1.095 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/1.113, allocations: 0.8438 kB / 1.095 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/1.113, allocations: 5.531 kB / 1.095 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/1.114, allocations: 25.14 kB / 1.095 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/1.114, allocations: 5.875 kB / 1.095 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001122/1.114, allocations: 14.59 kB / 1.095 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/1.114, allocations: 8.016 kB / 1.095 GB, free: 0.7344 MB / 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.0001381/1.114, allocations: 153.8 kB / 1.095 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/1.114, allocations: 26.44 kB / 1.095 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.097e-05/1.114, allocations: 27.86 kB / 1.095 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/1.114, allocations: 4.938 kB / 1.095 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/1.114, allocations: 0.5625 kB / 1.095 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/1.114, allocations: 1.719 kB / 1.095 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002298/1.114, allocations: 237 kB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/1.114, allocations: 3.984 kB / 1.096 GB, free: 364 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.522e-05/1.114, allocations: 8.047 kB / 1.096 GB, free: 360 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/1.114, allocations: 4.938 kB / 1.096 GB, free: 356 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/1.114, allocations: 6.141 kB / 1.096 GB, free: 352 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/1.114, allocations: 9.031 kB / 1.096 GB, free: 344 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.114, allocations: 0 / 1.096 GB, free: 344 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/1.115, allocations: 131.7 kB / 1.096 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.054e-05/1.115, allocations: 103.2 kB / 1.096 GB, free: 132 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/1.115, allocations: 7.078 kB / 1.096 GB, free: 128 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/1.115, allocations: 13.17 kB / 1.096 GB, free: 124 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.303e-05/1.115, allocations: 17.3 kB / 1.096 GB, free: 116 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/1.115, allocations: 8.297 kB / 1.096 GB, free: 112 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002641/1.115, allocations: 216.5 kB / 1.096 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/1.115, allocations: 0 / 1.096 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002727/1.115, allocations: 40.47 kB / 1.096 GB, free: 15.98 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.001086/1.116, allocations: 416.6 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003248/1.117, allocations: 90.16 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/1.117, allocations: 8.062 kB / 1.097 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/1.117, allocations: 37.02 kB / 1.097 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004247/1.117, allocations: 60.83 kB / 1.097 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008901/1.118, allocations: 360.4 kB / 1.097 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/1.119, allocations: 0.7544 MB / 1.098 GB, free: 14.8 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001463/1.119, allocations: 42.95 kB / 1.098 GB, free: 14.79 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.916e-05/1.119, allocations: 29.25 kB / 1.098 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of SimCode: time 4.1e-07/1.119, allocations: 0 / 1.098 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of Templates: time 0.008523/1.127, allocations: 2.747 MB / 1.101 GB, free: 14.5 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