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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.541/2.541, allocations: 390.3 MB / 405.3 MB, free: 13.46 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 175.3 kB / 498.1 MB, free: 5.738 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.545/1.545, allocations: 223.2 MB / 0.7948 GB, free: 17.97 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008559/0.0008558, allocations: 92.27 kB / 0.9346 GB, free: 6.254 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003804/0.0003807, allocations: 13.12 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3235, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1954/0.519, allocations: 153.3 MB / 1.373 GB, free: 8.766 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/0.5193, allocations: 79.95 kB / 1.373 GB, free: 8.688 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01951/0.5388, allocations: 7.331 MB / 1.38 GB, free: 1.348 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.964e-06/0.5389, allocations: 0 / 1.38 GB, free: 1.348 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.016e-05/0.5389, allocations: 8 kB / 1.38 GB, free: 1.34 MB / 0.8698 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.000832/0.5398, allocations: 0.5527 MB / 1.38 GB, free: 0.7383 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.5398, allocations: 8.031 kB / 1.38 GB, free: 0.7305 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.061e-05/0.5399, allocations: 27.67 kB / 1.38 GB, free: 0.7031 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006381/0.5405, allocations: 334.4 kB / 1.381 GB, free: 344 kB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.5406, allocations: 4 kB / 1.381 GB, free: 340 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.5406, allocations: 8 kB / 1.381 GB, free: 332 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.5408, allocations: 95.97 kB / 1.381 GB, free: 232 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.5408, allocations: 0 / 1.381 GB, free: 232 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/0.5409, allocations: 7.984 kB / 1.381 GB, free: 224 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.5409, allocations: 0 / 1.381 GB, free: 224 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.541, allocations: 55.92 kB / 1.381 GB, free: 168 kB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008283/0.5419, allocations: 460.5 kB / 1.381 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002261/0.5421, allocations: 90.56 kB / 1.381 GB, free: 15.57 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.5421, allocations: 4 kB / 1.381 GB, free: 15.56 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000184/0.5423, allocations: 99.36 kB / 1.382 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 3.186e-06/0.5423, allocations: 3.984 kB / 1.382 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8): time 0.0003836/0.5427, allocations: 145.4 kB / 1.382 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.5428, allocations: 51.41 kB / 1.382 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003827/0.5432, allocations: 342.1 kB / 1.382 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.5432, allocations: 33.69 kB / 1.382 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.5433, allocations: 136 kB / 1.382 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.569e-05/0.5434, allocations: 35.62 kB / 1.382 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.289e-05/0.5434, allocations: 4 kB / 1.382 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.5435, allocations: 334.8 kB / 1.383 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.5437, allocations: 75.95 kB / 1.383 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.5438, allocations: 104.2 kB / 1.383 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.544, allocations: 63.98 kB / 1.383 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.544, allocations: 4.031 kB / 1.383 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003855/0.5444, allocations: 230.6 kB / 1.383 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.5444, allocations: 4 kB / 1.383 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.5444, allocations: 7.984 kB / 1.383 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.5445, allocations: 0 / 1.383 GB, free: 13.85 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001457/0.5446, allocations: 35.86 kB / 1.383 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.483e-06/0.5446, allocations: 0 / 1.383 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.5448, allocations: 15.98 kB / 1.383 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.284e-05/0.5448, allocations: 16.03 kB / 1.383 GB, free: 13.79 MB / 0.8855 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 ($whenCondition1,$PRE.ram.tab.nextTimeEvent,gre.y,$PRE.greHys.greHys.y,greHys.greHys.y,ram.tab.nextTimeEvent,$PRE.ram.tab.nextTimeEventScaled,ram.tab.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001422/0.545, allocations: 153.8 kB / 1.383 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.16e-05/0.545, allocations: 19.72 kB / 1.383 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002935/0.5453, allocations: 139.3 kB / 1.383 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.5453, allocations: 0 / 1.383 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.5453, allocations: 0 / 1.383 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.5453, allocations: 0 / 1.383 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00022/0.5455, allocations: 261.5 kB / 1.384 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.5456, allocations: 4 kB / 1.384 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.186e-05/0.5456, allocations: 4 kB / 1.384 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.5456, allocations: 11.92 kB / 1.384 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.5456, allocations: 4 kB / 1.384 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.5457, allocations: 0 / 1.384 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.5457, allocations: 0 / 1.384 GB, free: 13.13 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000257/0.5459, allocations: 156.8 kB / 1.384 GB, free: 12.96 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 9.362e-05/0.546, allocations: 120.7 kB / 1.384 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.359e-05/0.5461, allocations: 4 kB / 1.384 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.5462, allocations: 11.98 kB / 1.384 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.549e-05/0.5463, allocations: 19.97 kB / 1.384 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.5463, allocations: 4 kB / 1.384 GB, free: 12.79 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002247/0.5465, allocations: 233.9 kB / 1.384 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5465, allocations: 0 / 1.384 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002733/0.5468, allocations: 51.84 kB / 1.384 GB, free: 12.5 MB / 0.8855 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 (greHys.greHys.y,ram.tab.nextTimeEvent,ram.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001106/0.5479, allocations: 452.8 kB / 1.385 GB, free: 12.21 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002705/0.5482, allocations: 119.9 kB / 1.385 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.5482, allocations: 0 / 1.385 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.861e-05/0.5483, allocations: 43.92 kB / 1.385 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.5486, allocations: 54.47 kB / 1.385 GB, free: 12 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006351/0.5493, allocations: 436.9 kB / 1.385 GB, free: 11.55 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.5496, allocations: 0.7557 MB / 1.386 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.000104/0.5497, allocations: 37.91 kB / 1.386 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.14e-05/0.5497, allocations: 23.44 kB / 1.386 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of SimCode: time 2.51e-07/0.5498, allocations: 0 / 1.386 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of Templates: time 0.006095/0.5559, allocations: 2.882 MB / 1.389 GB, free: 7.848 MB / 0.8855 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","../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,time