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.266/2.266, allocations: 390.5 MB / 398 MB, free: 10.96 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.001362/0.001363, allocations: 180.9 kB / 491.2 MB, free: 1.605 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.25 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.001077/0.001077, allocations: 91.58 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.661e-05/2.679e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3394, allocations: 143 MB / 1.212 GB, free: 39.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.137/1.477, allocations: 153.4 MB / 1.362 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/1.477, allocations: 73.14 kB / 1.362 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02064/1.498, allocations: 7.242 MB / 1.369 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.914e-06/1.498, allocations: 224 / 1.369 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.435e-05/1.498, allocations: 12.59 kB / 1.369 GB, free: 32.76 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.001035/1.499, allocations: 0.4934 MB / 1.37 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/1.499, allocations: 7.719 kB / 1.37 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/1.499, allocations: 31.16 kB / 1.37 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007576/1.5, allocations: 335.1 kB / 1.37 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.106e-05/1.5, allocations: 7.094 kB / 1.37 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.474e-05/1.5, allocations: 3.875 kB / 1.37 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001604/1.5, allocations: 51.17 kB / 1.37 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001784/1.5, allocations: 78.41 kB / 1.37 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/1.5, allocations: 0 / 1.37 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/1.5, allocations: 6.328 kB / 1.37 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/1.5, allocations: 3.953 kB / 1.37 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009864/1.501, allocations: 433.6 kB / 1.371 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/1.501, allocations: 82.55 kB / 1.371 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.262e-05/1.501, allocations: 31.17 kB / 1.371 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/1.502, allocations: 3.953 kB / 1.371 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001662/1.502, allocations: 79.67 kB / 1.371 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 2.465e-06/1.502, allocations: 0 / 1.371 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0003665/1.502, allocations: 118.5 kB / 1.371 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/1.502, allocations: 51.41 kB / 1.371 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004405/1.503, allocations: 332 kB / 1.371 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/1.503, allocations: 29.08 kB / 1.371 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/1.503, allocations: 137.7 kB / 1.372 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.49e-05/1.503, allocations: 25.34 kB / 1.372 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.539e-05/1.503, allocations: 0 / 1.372 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001693/1.503, allocations: 335.5 kB / 1.372 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/1.503, allocations: 67.47 kB / 1.372 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/1.503, allocations: 93.72 kB / 1.372 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002366/1.503, allocations: 83.95 kB / 1.372 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/1.503, allocations: 0 / 1.372 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004216/1.504, allocations: 216.4 kB / 1.372 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/1.504, allocations: 10.45 kB / 1.372 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/1.504, allocations: 0 / 1.372 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/1.504, allocations: 0 / 1.372 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/1.504, allocations: 26.31 kB / 1.372 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/1.504, allocations: 7.875 kB / 1.372 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/1.504, allocations: 24.91 kB / 1.372 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.203e-05/1.504, allocations: 7.688 kB / 1.372 GB, free: 30.95 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 0.0001379/1.505, allocations: 106.3 kB / 1.372 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.873e-05/1.505, allocations: 27.36 kB / 1.373 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002597/1.505, allocations: 129.7 kB / 1.373 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/1.505, allocations: 4 kB / 1.373 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/1.505, allocations: 4 kB / 1.373 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/1.505, allocations: 3.938 kB / 1.373 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002252/1.505, allocations: 226.6 kB / 1.373 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/1.505, allocations: 3.844 kB / 1.373 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.416e-05/1.505, allocations: 7.875 kB / 1.373 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.421e-06/1.505, allocations: 6.703 kB / 1.373 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/1.505, allocations: 7.578 kB / 1.373 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/1.505, allocations: 0 / 1.373 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.505, allocations: 0 / 1.373 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002219/1.505, allocations: 150.9 kB / 1.373 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.747e-05/1.506, allocations: 100 kB / 1.373 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.94e-05/1.506, allocations: 6.766 kB / 1.373 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/1.506, allocations: 14.81 kB / 1.373 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.812e-05/1.506, allocations: 21.12 kB / 1.373 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/1.506, allocations: 2.438 kB / 1.373 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002473/1.506, allocations: 225.3 kB / 1.373 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.21e-07/1.506, allocations: 0 / 1.373 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003226/1.506, allocations: 49.78 kB / 1.373 GB, free: 30.32 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.00108/1.507, allocations: 358.7 kB / 1.374 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002357/1.508, allocations: 111.5 kB / 1.374 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/1.508, allocations: 4.062 kB / 1.374 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.441e-05/1.508, allocations: 42.89 kB / 1.374 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/1.508, allocations: 43.95 kB / 1.374 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006391/1.509, allocations: 288.3 kB / 1.374 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004449/1.509, allocations: 0.7642 MB / 1.375 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001275/1.509, allocations: 32.3 kB / 1.375 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.18e-05/1.51, allocations: 27.73 kB / 1.375 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of SimCode: time 5.81e-07/1.51, allocations: 0 / 1.375 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of Templates: time 0.007326/1.517, allocations: 2.682 MB / 1.378 GB, free: 29.04 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