Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.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.GreaterThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u|gre.t|gre.y|greHys.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.153/2.153, allocations: 390.3 MB / 402.8 MB, free: 6.66 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.001015/0.001015, allocations: 176.3 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.553/1.553, allocations: 221.3 MB / 0.7915 GB, free: 5.371 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.0008914/0.0008915, allocations: 80.03 kB / 0.9317 GB, free: 5.68 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.946e-05/3.963e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3645, allocations: 143 MB / 1.219 GB, free: 13.47 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.124/1.488, allocations: 154.1 MB / 1.369 GB, free: 15.99 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/1.489, allocations: 79.84 kB / 1.369 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.02029/1.509, allocations: 7.297 MB / 1.376 GB, free: 9.777 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.635e-06/1.509, allocations: 3.938 kB / 1.376 GB, free: 9.773 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.699e-05/1.509, allocations: 11.98 kB / 1.376 GB, free: 9.762 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008227/1.51, allocations: 0.4887 MB / 1.377 GB, free: 9.242 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.165e-05/1.51, allocations: 12.03 kB / 1.377 GB, free: 9.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.811e-05/1.51, allocations: 27.67 kB / 1.377 GB, free: 9.203 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006363/1.511, allocations: 336.8 kB / 1.377 GB, free: 8.863 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.763e-05/1.511, allocations: 15.62 kB / 1.377 GB, free: 8.852 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/1.511, allocations: 4 kB / 1.377 GB, free: 8.848 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/1.511, allocations: 88.64 kB / 1.377 GB, free: 8.773 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/1.511, allocations: 0 / 1.377 GB, free: 8.773 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/1.511, allocations: 3.25 kB / 1.377 GB, free: 8.773 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/1.511, allocations: 4 kB / 1.377 GB, free: 8.77 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/1.511, allocations: 52.81 kB / 1.377 GB, free: 8.734 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008882/1.512, allocations: 467.7 kB / 1.378 GB, free: 8.289 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/1.512, allocations: 90.72 kB / 1.378 GB, free: 8.215 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.142e-05/1.512, allocations: 34.95 kB / 1.378 GB, free: 8.188 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/1.512, allocations: 4 kB / 1.378 GB, free: 8.184 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001824/1.513, allocations: 86.02 kB / 1.378 GB, free: 8.098 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 3.727e-06/1.513, allocations: 3.984 kB / 1.378 GB, free: 8.094 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.000299/1.513, allocations: 111.6 kB / 1.378 GB, free: 7.996 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.957e-05/1.513, allocations: 62.72 kB / 1.378 GB, free: 7.926 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004158/1.513, allocations: 333.6 kB / 1.379 GB, free: 7.652 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/1.513, allocations: 28.95 kB / 1.379 GB, free: 7.621 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/1.513, allocations: 146.5 kB / 1.379 GB, free: 7.512 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.89e-05/1.514, allocations: 22.88 kB / 1.379 GB, free: 7.492 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.161e-05/1.514, allocations: 3.938 kB / 1.379 GB, free: 7.492 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001614/1.514, allocations: 334.4 kB / 1.379 GB, free: 7.164 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/1.514, allocations: 69.05 kB / 1.379 GB, free: 7.121 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/1.514, allocations: 96.52 kB / 1.379 GB, free: 7.043 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000122/1.514, allocations: 78.42 kB / 1.379 GB, free: 6.988 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/1.514, allocations: 4.031 kB / 1.379 GB, free: 6.984 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003482/1.514, allocations: 221 kB / 1.38 GB, free: 6.812 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/1.514, allocations: 4 kB / 1.38 GB, free: 6.809 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/1.515, allocations: 11.98 kB / 1.38 GB, free: 6.797 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/1.515, allocations: 0 / 1.38 GB, free: 6.797 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/1.515, allocations: 23.98 kB / 1.38 GB, free: 6.773 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/1.515, allocations: 0 / 1.38 GB, free: 6.773 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/1.515, allocations: 23.7 kB / 1.38 GB, free: 6.754 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/1.515, allocations: 12.03 kB / 1.38 GB, free: 6.742 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 (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 9.703e-05/1.515, allocations: 117.2 kB / 1.38 GB, free: 6.625 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/1.515, allocations: 23.22 kB / 1.38 GB, free: 6.605 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002794/1.515, allocations: 135.6 kB / 1.38 GB, free: 6.488 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/1.515, allocations: 3.938 kB / 1.38 GB, free: 6.484 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/1.515, allocations: 0 / 1.38 GB, free: 6.484 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/1.515, allocations: 0 / 1.38 GB, free: 6.484 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/1.516, allocations: 258.9 kB / 1.38 GB, free: 6.215 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/1.516, allocations: 7.984 kB / 1.38 GB, free: 6.207 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.835e-05/1.516, allocations: 4 kB / 1.38 GB, free: 6.203 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/1.516, allocations: 4 kB / 1.38 GB, free: 6.199 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/1.516, allocations: 96 / 1.38 GB, free: 6.199 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/1.516, allocations: 3.938 kB / 1.38 GB, free: 6.195 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/1.516, allocations: 0 / 1.38 GB, free: 6.195 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002235/1.516, allocations: 151.8 kB / 1.38 GB, free: 6.051 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.468e-05/1.516, allocations: 112.6 kB / 1.38 GB, free: 5.926 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.378e-05/1.516, allocations: 8 kB / 1.38 GB, free: 5.918 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/1.516, allocations: 15.8 kB / 1.38 GB, free: 5.906 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.117e-05/1.516, allocations: 19.91 kB / 1.38 GB, free: 5.887 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/1.516, allocations: 3.875 kB / 1.38 GB, free: 5.887 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002256/1.517, allocations: 229 kB / 1.381 GB, free: 5.703 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.517, allocations: 0 / 1.381 GB, free: 5.703 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002821/1.517, allocations: 55.25 kB / 1.381 GB, free: 5.656 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 (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.001026/1.518, allocations: 392.4 kB / 1.381 GB, free: 5.391 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002457/1.518, allocations: 115.5 kB / 1.381 GB, free: 5.312 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/1.518, allocations: 0 / 1.381 GB, free: 5.312 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.088e-05/1.518, allocations: 42.86 kB / 1.381 GB, free: 5.281 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/1.519, allocations: 49.25 kB / 1.381 GB, free: 5.242 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005578/1.519, allocations: 294.2 kB / 1.382 GB, free: 4.965 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/1.52, allocations: 0.758 MB / 1.382 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001074/1.52, allocations: 34.06 kB / 1.382 GB, free: 4.156 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.703e-05/1.52, allocations: 30.55 kB / 1.382 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of SimCode: time 6.21e-07/1.52, allocations: 0 / 1.382 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of Templates: time 0.006505/1.526, allocations: 2.9 MB / 1.385 GB, free: 1.262 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.GreaterThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_GreaterThreshold.csv","../files/Buildings_latest_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