Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Greater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u1|gre.u2|gre.y|greHys.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Greater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u1|gre.u2|gre.y|greHys.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.223/2.223, allocations: 390.5 MB / 398 MB, free: 11 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.001371/0.001371, allocations: 171.8 kB / 491.2 MB, free: 1.621 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.619/1.619, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.0009025/0.0009029, allocations: 94.39 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.84e-05/2.875e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3289, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.13/1.459, allocations: 153.6 MB / 1.362 GB, free: 17.58 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/1.459, allocations: 78.36 kB / 1.362 GB, free: 17.58 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01953/1.479, allocations: 7.637 MB / 1.37 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.032e-06/1.479, allocations: 0 / 1.37 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.434e-05/1.479, allocations: 7.594 kB / 1.37 GB, free: 32.86 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0007416/1.479, allocations: 0.5279 MB / 1.37 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/1.48, allocations: 11.62 kB / 1.37 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.215e-05/1.48, allocations: 31.17 kB / 1.37 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005469/1.48, allocations: 346.5 kB / 1.371 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/1.48, allocations: 3.844 kB / 1.371 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/1.48, allocations: 11.72 kB / 1.371 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000146/1.48, allocations: 65.08 kB / 1.371 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001647/1.481, allocations: 98.12 kB / 1.371 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/1.481, allocations: 0 / 1.371 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/1.481, allocations: 3.188 kB / 1.371 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/1.481, allocations: 7.828 kB / 1.371 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007307/1.481, allocations: 484 kB / 1.371 GB, free: 31.87 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002216/1.482, allocations: 114.4 kB / 1.371 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.742e-05/1.482, allocations: 38.39 kB / 1.372 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/1.482, allocations: 0 / 1.372 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000155/1.482, allocations: 91.75 kB / 1.372 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/1.482, allocations: 0 / 1.372 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.000254/1.482, allocations: 132.8 kB / 1.372 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.161e-05/1.482, allocations: 58.69 kB / 1.372 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003052/1.482, allocations: 324.1 kB / 1.372 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/1.482, allocations: 29.52 kB / 1.372 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.179e-05/1.483, allocations: 143.7 kB / 1.372 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.045e-05/1.483, allocations: 33.23 kB / 1.372 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.31e-05/1.483, allocations: 0 / 1.372 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001183/1.483, allocations: 336.4 kB / 1.373 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.646e-05/1.483, allocations: 73.53 kB / 1.373 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001089/1.483, allocations: 107.3 kB / 1.373 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/1.483, allocations: 85.25 kB / 1.373 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/1.483, allocations: 0 / 1.373 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003432/1.484, allocations: 237.1 kB / 1.373 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/1.484, allocations: 6.547 kB / 1.373 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/1.484, allocations: 3.75 kB / 1.373 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/1.484, allocations: 8.094 kB / 1.373 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/1.484, allocations: 36.67 kB / 1.373 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/1.484, allocations: 7.812 kB / 1.373 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001645/1.484, allocations: 21.45 kB / 1.373 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.321e-05/1.484, allocations: 14.41 kB / 1.373 GB, free: 31.02 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 8.867e-05/1.484, allocations: 110 kB / 1.373 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.319e-05/1.484, allocations: 27.38 kB / 1.373 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000247/1.484, allocations: 154.5 kB / 1.373 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/1.484, allocations: 0 / 1.373 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/1.484, allocations: 4 kB / 1.373 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/1.484, allocations: 0 / 1.373 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001819/1.485, allocations: 249.4 kB / 1.374 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/1.485, allocations: 0 / 1.374 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/1.485, allocations: 25.27 kB / 1.374 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/1.485, allocations: 3.953 kB / 1.374 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/1.485, allocations: 0 / 1.374 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/1.485, allocations: 6.375 kB / 1.374 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/1.485, allocations: 3.844 kB / 1.374 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001955/1.485, allocations: 151 kB / 1.374 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.028e-05/1.485, allocations: 106.8 kB / 1.374 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.02e-05/1.485, allocations: 10.77 kB / 1.374 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/1.485, allocations: 25.34 kB / 1.374 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.863e-05/1.485, allocations: 19.62 kB / 1.374 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/1.485, allocations: 6.922 kB / 1.374 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001814/1.486, allocations: 222.1 kB / 1.374 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.486, allocations: 0 / 1.374 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000272/1.486, allocations: 57.64 kB / 1.374 GB, free: 30.39 MB / 0.8386 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.0008776/1.487, allocations: 375.9 kB / 1.375 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002169/1.487, allocations: 126.3 kB / 1.375 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/1.487, allocations: 0 / 1.375 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.03e-05/1.487, allocations: 51.27 kB / 1.375 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/1.487, allocations: 52.8 kB / 1.375 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005501/1.488, allocations: 310.3 kB / 1.375 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000393/1.488, allocations: 0.7681 MB / 1.376 GB, free: 29.33 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001272/1.489, allocations: 38.25 kB / 1.376 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.446e-05/1.489, allocations: 33.17 kB / 1.376 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.489, allocations: 0 / 1.376 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of Templates: time 0.006429/1.495, allocations: 3.023 MB / 1.379 GB, free: 29.07 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_Greater.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,gre.u1,gre.u2,gre.y,greHys.y Variables in the result:gre.h,gre.have_hysteresis,gre.pre_y_start,gre.u1,gre.u2,gre.y,greHys.greHys.h,greHys.greHys.pre_y_start,greHys.greHys.y,greHys.h,greHys.have_hysteresis,greHys.pre_y_start,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,ram1.duration,ram1.height,ram1.offset,ram1.startTime,rou.fac,rou.n,rou1.fac,rou1.n,time