Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.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.GreaterThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u|gre.t|gre.y|greHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u|gre.t|gre.y|greHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009508/0.009508, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.00184/0.00184, allocations: 193.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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.469/2.469, allocations: 390.2 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 67.91 kB / 0.9509 GB, free: 7.594 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.199/1.2, allocations: 140.4 MB / 1.088 GB, free: 5.785 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.004368/1.205, allocations: 1.956 MB / 1.09 GB, free: 4.418 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00199/1.207, allocations: 1.107 MB / 1.091 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/1.207, allocations: 3.156 kB / 1.091 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004735/1.207, allocations: 112.8 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000335/1.208, allocations: 99.55 kB / 1.091 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004085/1.208, allocations: 160 kB / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003449/1.209, allocations: 221.6 kB / 1.092 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/1.209, allocations: 54.25 kB / 1.092 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001899/1.209, allocations: 103.7 kB / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/1.209, allocations: 100.6 kB / 1.092 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.083e-05/1.209, allocations: 12.47 kB / 1.092 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000177/1.209, allocations: 64.36 kB / 1.092 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001177/1.209, allocations: 67.5 kB / 1.092 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001109/1.21, allocations: 90.41 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000539/1.21, allocations: 289.5 kB / 1.092 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/1.21, allocations: 4.875 kB / 1.092 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.204e-06/1.21, allocations: 0 / 1.092 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.774e-06/1.21, allocations: 0 / 1.092 GB, free: 3.023 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001007/1.211, allocations: 0.5453 MB / 1.093 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/1.211, allocations: 10.58 kB / 1.093 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.046e-05/1.211, allocations: 23.8 kB / 1.093 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/1.212, allocations: 315.7 kB / 1.093 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/1.212, allocations: 7.781 kB / 1.093 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.89e-05/1.212, allocations: 8.984 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/1.212, allocations: 91.72 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/1.212, allocations: 1.562 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.865e-05/1.212, allocations: 0.6875 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/1.212, allocations: 6.094 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/1.212, allocations: 55.69 kB / 1.093 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009185/1.213, allocations: 446 kB / 1.094 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002707/1.214, allocations: 87.48 kB / 1.094 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.282e-05/1.214, allocations: 39.58 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/1.214, allocations: 0.8438 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002056/1.214, allocations: 85.84 kB / 1.094 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.543e-06/1.214, allocations: 0 / 1.094 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004692/1.214, allocations: 150.3 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/1.214, allocations: 53.73 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005667/1.215, allocations: 372.5 kB / 1.095 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/1.215, allocations: 31.23 kB / 1.095 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/1.215, allocations: 144.8 kB / 1.095 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.538e-05/1.215, allocations: 25.8 kB / 1.095 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.201e-05/1.215, allocations: 42.66 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001056/1.215, allocations: 333.6 kB / 1.095 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/1.216, allocations: 61.33 kB / 1.095 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/1.216, allocations: 88.44 kB / 1.095 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002561/1.216, allocations: 106.5 kB / 1.095 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/1.216, allocations: 0 / 1.095 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000449/1.216, allocations: 203.7 kB / 1.095 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/1.216, allocations: 6.797 kB / 1.096 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/1.217, allocations: 0 / 1.096 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/1.217, allocations: 5.188 kB / 1.096 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/1.217, allocations: 24.25 kB / 1.096 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/1.217, allocations: 5 kB / 1.096 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/1.217, allocations: 23.3 kB / 1.096 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.293e-05/1.217, allocations: 6.188 kB / 1.096 GB, free: 0.6094 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.ram.tab.nextTimeEvent,$whenCondition1,ram.tab.nextTimeEventScaled,$PRE.ram.tab.nextTimeEventScaled,ram.tab.nextTimeEvent,greHys.greHys.y,$PRE.greHys.greHys.y,gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001598/1.217, allocations: 153.9 kB / 1.096 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.601e-05/1.217, allocations: 23.08 kB / 1.096 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.289e-05/1.217, allocations: 30.33 kB / 1.096 GB, free: 460 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/1.217, allocations: 1.156 kB / 1.096 GB, free: 460 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/1.217, allocations: 0.7969 kB / 1.096 GB, free: 460 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/1.217, allocations: 4.594 kB / 1.096 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002999/1.218, allocations: 257.3 kB / 1.096 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/1.218, allocations: 1.031 kB / 1.096 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.117e-05/1.218, allocations: 9.938 kB / 1.096 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/1.218, allocations: 1.344 kB / 1.096 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/1.218, allocations: 6.188 kB / 1.096 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/1.218, allocations: 1.156 kB / 1.096 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/1.218, allocations: 3.938 kB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/1.218, allocations: 153.1 kB / 1.096 GB, free: 104 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/1.218, allocations: 107.4 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.147e-05/1.218, allocations: 5.922 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/1.218, allocations: 10.2 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.691e-05/1.218, allocations: 14.86 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/1.218, allocations: 4.047 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003895/1.219, allocations: 232.8 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.41e-07/1.219, allocations: 0 / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003194/1.219, allocations: 39.31 kB / 1.097 GB, free: 15.86 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,gre.y,greHys.greHys.y,ram.tab.nextTimeEvent,ram.tab.nextTimeEventScaled) * Number of discrete states: 3 (ram.tab.nextTimeEventScaled,greHys.greHys.y,ram.tab.nextTimeEvent) * Number of clocked states: 0 () * 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 (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.001272/1.22, allocations: 421 kB / 1.097 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003708/1.221, allocations: 116 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/1.221, allocations: 0 / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001298/1.221, allocations: 42.7 kB / 1.097 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/1.221, allocations: 66.83 kB / 1.097 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007964/1.222, allocations: 388.7 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004037/1.223, allocations: 0.7447 MB / 1.098 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001171/1.223, allocations: 35.61 kB / 1.098 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.4e-05/1.223, allocations: 27.11 kB / 1.098 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/1.223, allocations: 0 / 1.098 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of Templates: time 0.008963/1.232, allocations: 3.085 MB / 1.101 GB, free: 14.35 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,gre.u,gre.t,gre.y,greHys.y Variables in the result:gre.greNoHys.t,gre.h,gre.have_hysteresis,gre.pre_y_start,gre.t,gre.u,gre.y,greHys.greHys.h,greHys.greHys.pre_y_start,greHys.greHys.t,greHys.greHys.y,greHys.h,greHys.have_hysteresis,greHys.pre_y_start,greHys.t,greHys.y,ram.extrapolation,ram.nT,ram.nout,ram.offset[1],ram.smoothness,ram.t0,ram.tab.columns[1],ram.tab.extrapolation,ram.tab.nout,ram.tab.offset[1],ram.tab.p_offset[1],ram.tab.shiftTime,ram.tab.smoothness,ram.tab.startTime,ram.tab.t_max,ram.tab.t_maxScaled,ram.tab.t_min,ram.tab.t_minScaled,ram.tab.tableOnFile,ram.tab.table[1,1],ram.tab.table[1,2],ram.tab.table[2,1],ram.tab.table[2,2],ram.tab.table[3,1],ram.tab.table[3,2],ram.tab.table[4,1],ram.tab.table[4,2],ram.tab.table[5,1],ram.tab.table[5,2],ram.tab.table[6,1],ram.tab.table[6,2],ram.tab.timeEvents,ram.tab.timeScale,ram.tab.verboseExtrapolation,ram.tab.verboseRead,ram.table[1,1],ram.table[1,2],ram.table[2,1],ram.table[2,2],ram.table[3,1],ram.table[3,2],ram.table[4,1],ram.table[4,2],ram.table[5,1],ram.table[5,2],ram.table[6,1],ram.table[6,2],ram.timeRange,ram.timeScale,rou.fac,rou.n,rou.y,time