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.008039/0.00804, allocations: 99.23 kB / 15.73 MB, free: 5.953 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.001632/0.001632, allocations: 198.9 kB / 16.68 MB, free: 5.887 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.538/1.538, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.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.545/2.545, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 69.89 kB / 0.9509 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3834/0.3852, allocations: 140.4 MB / 1.088 GB, free: 1.578 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold): time 0.003699/0.3889, allocations: 1.957 MB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002014/0.391, allocations: 1.115 MB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001372/0.3911, allocations: 4 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000503/0.3916, allocations: 107.5 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000293/0.392, allocations: 111.4 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003989/0.3924, allocations: 155.5 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003262/0.3927, allocations: 219.4 kB / 1.092 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.3929, allocations: 53.64 kB / 1.092 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001672/0.3931, allocations: 95.62 kB / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001614/0.3933, allocations: 115.5 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.164e-05/0.3933, allocations: 12 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.3934, allocations: 59.98 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.321e-05/0.3935, allocations: 59.77 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.3937, allocations: 99.33 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003695/0.394, allocations: 283 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.394, allocations: 0 / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.773e-06/0.3941, allocations: 0 / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.204e-05/0.3941, allocations: 0 / 1.092 GB, free: 13.13 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.0009635/0.395, allocations: 0.5488 MB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.3951, allocations: 8.031 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.751e-05/0.3952, allocations: 24.66 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004377/0.3956, allocations: 307.7 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.3956, allocations: 8.375 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.3957, allocations: 7.938 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002285/0.3959, allocations: 92.88 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.3959, allocations: 4 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.3959, allocations: 3.938 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.396, allocations: 4 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001316/0.3961, allocations: 47.97 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008218/0.3969, allocations: 448.4 kB / 1.094 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002627/0.3972, allocations: 90.58 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.3973, allocations: 32.89 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.751e-05/0.3973, allocations: 3.984 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002121/0.3976, allocations: 87.34 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.693e-06/0.3976, allocations: 0 / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004151/0.398, allocations: 153.2 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/0.3981, allocations: 55.41 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004205/0.3985, allocations: 367 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.3985, allocations: 29.7 kB / 1.095 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.3987, allocations: 144.4 kB / 1.095 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.115e-05/0.3987, allocations: 23.7 kB / 1.095 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.58e-05/0.3988, allocations: 45.69 kB / 1.095 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002022/0.399, allocations: 338.8 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.3991, allocations: 59.97 kB / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.3993, allocations: 81.67 kB / 1.095 GB, free: 9.941 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.3995, allocations: 114.9 kB / 1.095 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3995, allocations: 0 / 1.095 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004156/0.4, allocations: 203 kB / 1.095 GB, free: 9.621 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.4, allocations: 4.031 kB / 1.095 GB, free: 9.617 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.4, allocations: 11.98 kB / 1.096 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.676e-05/0.4001, allocations: 7.938 kB / 1.096 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.4002, allocations: 19.98 kB / 1.096 GB, free: 9.578 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.4002, allocations: 4 kB / 1.096 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.4004, allocations: 23.83 kB / 1.096 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.131e-05/0.4004, allocations: 4 kB / 1.096 GB, free: 9.547 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.0002119/0.4006, allocations: 157.8 kB / 1.096 GB, free: 9.383 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.4007, allocations: 23.72 kB / 1.096 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.828e-05/0.4008, allocations: 33.67 kB / 1.096 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.4008, allocations: 0 / 1.096 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.4008, allocations: 0 / 1.096 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.4008, allocations: 0 / 1.096 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003083/0.4011, allocations: 249.6 kB / 1.096 GB, free: 9.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.4011, allocations: 3.984 kB / 1.096 GB, free: 9.031 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.52e-05/0.4012, allocations: 4 kB / 1.096 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.4012, allocations: 0 / 1.096 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.4012, allocations: 3.938 kB / 1.096 GB, free: 9.023 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.4012, allocations: 0 / 1.096 GB, free: 9.023 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4012, allocations: 8 kB / 1.096 GB, free: 9.016 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003024/0.4016, allocations: 152.7 kB / 1.096 GB, free: 8.848 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.4017, allocations: 104.8 kB / 1.096 GB, free: 8.727 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.214e-05/0.4017, allocations: 7.938 kB / 1.096 GB, free: 8.719 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.4018, allocations: 11.98 kB / 1.096 GB, free: 8.707 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.043e-05/0.4019, allocations: 11.98 kB / 1.096 GB, free: 8.695 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.4019, allocations: 4 kB / 1.096 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002538/0.4022, allocations: 237.9 kB / 1.097 GB, free: 8.461 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4022, allocations: 0 / 1.097 GB, free: 8.461 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003208/0.4025, allocations: 36 kB / 1.097 GB, free: 8.426 MB / 0.8575 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.001372/0.4039, allocations: 413.2 kB / 1.097 GB, free: 8.168 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003552/0.4043, allocations: 126 kB / 1.097 GB, free: 8.047 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.4043, allocations: 0 / 1.097 GB, free: 8.047 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.4044, allocations: 39.98 kB / 1.097 GB, free: 8.008 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004022/0.4048, allocations: 52.27 kB / 1.097 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009752/0.4058, allocations: 379.8 kB / 1.098 GB, free: 7.562 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000456/0.4063, allocations: 0.7515 MB / 1.098 GB, free: 6.785 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001036/0.4064, allocations: 38.06 kB / 1.098 GB, free: 6.75 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.206e-05/0.4065, allocations: 23.44 kB / 1.098 GB, free: 6.727 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.4065, allocations: 0 / 1.098 GB, free: 6.727 MB / 0.8575 GB Notification: Performance of Templates: time 0.007513/0.414, allocations: 3.079 MB / 1.101 GB, free: 3.672 MB / 0.8575 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