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.233/2.233, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.001033/0.001033, allocations: 180.8 kB / 487.4 MB, free: 5.027 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.636/1.636, allocations: 221.5 MB / 0.7824 GB, free: 0.9883 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008898/0.0008894, allocations: 95.91 kB / 0.9219 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.322e-05/2.322e-05, allocations: 12 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.33, allocations: 142.4 MB / 1.206 GB, free: 43.93 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.081/1.411, allocations: 152.6 MB / 1.355 GB, free: 18.56 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/1.412, allocations: 78.45 kB / 1.355 GB, free: 18.56 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01967/1.431, allocations: 7.234 MB / 1.362 GB, free: 33.88 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.924e-06/1.432, allocations: 6.391 kB / 1.362 GB, free: 33.88 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.598e-05/1.432, allocations: 7.844 kB / 1.362 GB, free: 33.88 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.0007543/1.432, allocations: 0.4921 MB / 1.363 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/1.432, allocations: 11.75 kB / 1.363 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/1.432, allocations: 31.19 kB / 1.363 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006158/1.433, allocations: 342.4 kB / 1.363 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/1.433, allocations: 3.875 kB / 1.363 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.973e-05/1.433, allocations: 3.812 kB / 1.363 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001193/1.433, allocations: 46.3 kB / 1.363 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001318/1.433, allocations: 80.12 kB / 1.363 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/1.433, allocations: 0 / 1.363 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/1.433, allocations: 2.719 kB / 1.363 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/1.433, allocations: 0 / 1.363 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00074/1.434, allocations: 438.3 kB / 1.364 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/1.434, allocations: 83.06 kB / 1.364 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.684e-05/1.434, allocations: 29.75 kB / 1.364 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/1.434, allocations: 3.875 kB / 1.364 GB, free: 32.87 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001331/1.435, allocations: 89.61 kB / 1.364 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.804e-06/1.435, allocations: 0 / 1.364 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.000255/1.435, allocations: 110.7 kB / 1.364 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.452e-05/1.435, allocations: 55.41 kB / 1.364 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/1.435, allocations: 327.6 kB / 1.364 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/1.435, allocations: 29.52 kB / 1.364 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.492e-05/1.435, allocations: 139 kB / 1.364 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.395e-05/1.435, allocations: 15 kB / 1.364 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.222e-05/1.435, allocations: 0 / 1.364 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001331/1.436, allocations: 337.7 kB / 1.365 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.594e-05/1.436, allocations: 72.22 kB / 1.365 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.83e-05/1.436, allocations: 94.69 kB / 1.365 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/1.436, allocations: 76.34 kB / 1.365 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/1.436, allocations: 0 / 1.365 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003496/1.436, allocations: 220.7 kB / 1.365 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/1.436, allocations: 7.141 kB / 1.365 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/1.436, allocations: 0 / 1.365 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/1.436, allocations: 7.656 kB / 1.365 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/1.437, allocations: 28.97 kB / 1.365 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/1.437, allocations: 0 / 1.365 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/1.437, allocations: 25.25 kB / 1.365 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/1.437, allocations: 11.7 kB / 1.365 GB, free: 32.06 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.536e-05/1.437, allocations: 109.2 kB / 1.365 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.307e-05/1.437, allocations: 27.3 kB / 1.365 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002257/1.437, allocations: 135.8 kB / 1.366 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/1.437, allocations: 0 / 1.366 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/1.437, allocations: 0 / 1.366 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/1.437, allocations: 3.781 kB / 1.366 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/1.437, allocations: 228.8 kB / 1.366 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/1.437, allocations: 0 / 1.366 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.267e-05/1.437, allocations: 6.469 kB / 1.366 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/1.437, allocations: 7.219 kB / 1.366 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/1.437, allocations: 0 / 1.366 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.788e-06/1.437, allocations: 3.953 kB / 1.366 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.437, allocations: 0 / 1.366 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001822/1.438, allocations: 148.3 kB / 1.366 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.381e-05/1.438, allocations: 106.4 kB / 1.366 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/1.438, allocations: 7.656 kB / 1.366 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/1.438, allocations: 13.92 kB / 1.366 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.205e-05/1.438, allocations: 21.55 kB / 1.366 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/1.438, allocations: 4 kB / 1.366 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002017/1.438, allocations: 223 kB / 1.366 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.438, allocations: 0 / 1.366 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002847/1.438, allocations: 49.17 kB / 1.366 GB, free: 31.44 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.0008858/1.439, allocations: 369 kB / 1.367 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002145/1.44, allocations: 114 kB / 1.367 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/1.44, allocations: 0 / 1.367 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.817e-05/1.44, allocations: 33.62 kB / 1.367 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/1.44, allocations: 49.98 kB / 1.367 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005261/1.441, allocations: 288.5 kB / 1.367 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/1.441, allocations: 0.7568 MB / 1.368 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001696/1.441, allocations: 35.72 kB / 1.368 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.705e-05/1.441, allocations: 25.66 kB / 1.368 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of SimCode: time 4.91e-07/1.441, allocations: 4 kB / 1.368 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of Templates: time 0.008064/1.449, allocations: 2.689 MB / 1.371 GB, free: 30.14 MB / 0.8386 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