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.001687/0.001687, allocations: 109 kB / 16.42 MB, free: 6.512 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.001897/0.001897, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.411/1.411, allocations: 222.9 MB / 241.1 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.32/2.32, allocations: 390.2 MB / 0.6655 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002008, allocations: 64.09 kB / 0.9516 GB, free: 7.605 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.011/1.013, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003133/1.016, allocations: 1.966 MB / 1.091 GB, free: 4.156 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001648/1.018, allocations: 1.103 MB / 1.092 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/1.018, allocations: 11.56 kB / 1.092 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004393/1.018, allocations: 103.8 kB / 1.092 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000295/1.019, allocations: 103.9 kB / 1.092 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003693/1.019, allocations: 157.1 kB / 1.092 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003036/1.019, allocations: 220.9 kB / 1.092 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/1.02, allocations: 58.58 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/1.02, allocations: 95.03 kB / 1.092 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/1.02, allocations: 109.8 kB / 1.092 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.83e-05/1.02, allocations: 11.38 kB / 1.093 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001564/1.02, allocations: 64.94 kB / 1.093 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001093/1.02, allocations: 55.42 kB / 1.093 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001216/1.02, allocations: 90.33 kB / 1.093 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005389/1.021, allocations: 286.8 kB / 1.093 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/1.021, allocations: 0 / 1.093 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.555e-06/1.021, allocations: 0.6562 kB / 1.093 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.837e-06/1.021, allocations: 4 kB / 1.093 GB, free: 2.781 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.001038/1.022, allocations: 0.5418 MB / 1.094 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.069e-05/1.022, allocations: 8.781 kB / 1.094 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.818e-05/1.022, allocations: 24.8 kB / 1.094 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004738/1.023, allocations: 310.4 kB / 1.094 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/1.023, allocations: 12.95 kB / 1.094 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.763e-05/1.023, allocations: 8.719 kB / 1.094 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/1.023, allocations: 92.44 kB / 1.094 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/1.023, allocations: 0 / 1.094 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/1.023, allocations: 1.688 kB / 1.094 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/1.023, allocations: 1.062 kB / 1.094 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001427/1.023, allocations: 48.61 kB / 1.094 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007597/1.024, allocations: 449.8 kB / 1.094 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002493/1.024, allocations: 99.2 kB / 1.095 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.861e-05/1.024, allocations: 31.11 kB / 1.095 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/1.024, allocations: 1.609 kB / 1.095 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/1.024, allocations: 89.19 kB / 1.095 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/1.024, allocations: 0.5625 kB / 1.095 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.000401/1.025, allocations: 150.8 kB / 1.095 GB, free: 1.379 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/1.025, allocations: 52.34 kB / 1.095 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004537/1.025, allocations: 364.5 kB / 1.095 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/1.025, allocations: 32.14 kB / 1.095 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.646e-05/1.025, allocations: 140.2 kB / 1.095 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/1.025, allocations: 30.55 kB / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.522e-05/1.026, allocations: 50.39 kB / 1.095 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.694e-05/1.026, allocations: 334 kB / 1.096 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/1.026, allocations: 60.39 kB / 1.096 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/1.026, allocations: 81.03 kB / 1.096 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002068/1.026, allocations: 103.1 kB / 1.096 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/1.026, allocations: 4.719 kB / 1.096 GB, free: 500 kB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004013/1.027, allocations: 202.4 kB / 1.096 GB, free: 408 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/1.027, allocations: 5.75 kB / 1.096 GB, free: 408 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/1.027, allocations: 0.9688 kB / 1.096 GB, free: 408 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/1.027, allocations: 5.891 kB / 1.096 GB, free: 404 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/1.027, allocations: 30.53 kB / 1.096 GB, free: 396 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/1.027, allocations: 1.5 kB / 1.096 GB, free: 396 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/1.027, allocations: 19.98 kB / 1.096 GB, free: 388 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.489e-05/1.027, allocations: 5.344 kB / 1.096 GB, free: 388 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.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.0001347/1.027, allocations: 160 kB / 1.096 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.977e-05/1.027, allocations: 21.84 kB / 1.096 GB, free: 236 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.733e-05/1.027, allocations: 27.98 kB / 1.096 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/1.027, allocations: 3.938 kB / 1.096 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/1.027, allocations: 4.453 kB / 1.096 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.631e-05/1.027, allocations: 103 kB / 1.097 GB, free: 104 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.777e-05/1.027, allocations: 6.734 kB / 1.097 GB, free: 100 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/1.027, allocations: 10.06 kB / 1.097 GB, free: 100 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.591e-05/1.028, allocations: 19.52 kB / 1.097 GB, free: 92 kB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003538/1.028, allocations: 192.1 kB / 1.097 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003587/1.028, allocations: 298 kB / 1.097 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001062/1.028, allocations: 43.33 kB / 1.097 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003005/1.029, allocations: 227.8 kB / 1.097 GB, free: 15.58 MB / 0.8731 GB Notification: Performance of Backend: time 2e-07/1.029, allocations: 4 kB / 1.097 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001683/1.03, allocations: 0.5383 MB / 1.098 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of SimCode: time 0.00105/1.031, allocations: 0.8471 MB / 1.099 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of Templates: time 0.008512/1.04, allocations: 3.229 MB / 1.102 GB, free: 14.38 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/jenkins1/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