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.372/2.372, allocations: 393.5 MB / 408.4 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.001156/0.001156, allocations: 187.1 kB / 0.4902 GB, free: 2.215 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.475/1.475, allocations: 223.1 MB / 0.7992 GB, free: 14.68 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.0009468/0.0009469, allocations: 84.41 kB / 0.9396 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003763, allocations: 10.16 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3012, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2076/0.5089, allocations: 154.1 MB / 1.38 GB, free: 15.35 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/0.5091, allocations: 75.95 kB / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02108/0.5302, allocations: 7.334 MB / 1.387 GB, free: 7.93 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.224e-06/0.5303, allocations: 0 / 1.387 GB, free: 7.93 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.08e-05/0.5303, allocations: 8.219 kB / 1.387 GB, free: 7.922 MB / 0.8855 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.001023/0.5314, allocations: 0.5448 MB / 1.388 GB, free: 7.328 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.5314, allocations: 12.56 kB / 1.388 GB, free: 7.316 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.344e-05/0.5315, allocations: 27.58 kB / 1.388 GB, free: 7.289 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006851/0.5322, allocations: 334.5 kB / 1.388 GB, free: 6.922 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.5323, allocations: 4 kB / 1.388 GB, free: 6.918 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/0.5323, allocations: 8 kB / 1.388 GB, free: 6.91 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002266/0.5325, allocations: 85.64 kB / 1.388 GB, free: 6.82 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.5325, allocations: 3.938 kB / 1.388 GB, free: 6.816 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.5326, allocations: 4 kB / 1.388 GB, free: 6.812 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.5326, allocations: 8 kB / 1.388 GB, free: 6.805 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001451/0.5327, allocations: 59.86 kB / 1.388 GB, free: 6.746 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008896/0.5336, allocations: 464.5 kB / 1.389 GB, free: 6.242 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002461/0.5339, allocations: 94.62 kB / 1.389 GB, free: 6.141 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.5339, allocations: 0 / 1.389 GB, free: 6.141 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002046/0.5341, allocations: 79.38 kB / 1.389 GB, free: 6.051 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 1.723e-06/0.5341, allocations: 4 kB / 1.389 GB, free: 6.047 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8): time 0.0004397/0.5346, allocations: 161.4 kB / 1.389 GB, free: 5.883 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.5346, allocations: 51.41 kB / 1.389 GB, free: 5.82 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004559/0.5351, allocations: 334 kB / 1.389 GB, free: 5.488 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.5351, allocations: 25.7 kB / 1.389 GB, free: 5.457 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.5353, allocations: 152.1 kB / 1.389 GB, free: 5.305 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.189e-05/0.5353, allocations: 19.8 kB / 1.389 GB, free: 5.285 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-05/0.5353, allocations: 0 / 1.389 GB, free: 5.285 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001511/0.5355, allocations: 346.8 kB / 1.39 GB, free: 4.938 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/0.5357, allocations: 67.97 kB / 1.39 GB, free: 4.871 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.5359, allocations: 102.4 kB / 1.39 GB, free: 4.762 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.5361, allocations: 85.06 kB / 1.39 GB, free: 4.68 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.5361, allocations: 0 / 1.39 GB, free: 4.68 MB / 0.8855 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004264/0.5365, allocations: 221.3 kB / 1.39 GB, free: 4.457 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.5365, allocations: 9.312 kB / 1.39 GB, free: 4.449 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.5365, allocations: 0 / 1.39 GB, free: 4.449 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.5366, allocations: 0 / 1.39 GB, free: 4.449 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.5367, allocations: 27.92 kB / 1.39 GB, free: 4.422 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.5367, allocations: 7.984 kB / 1.39 GB, free: 4.414 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001521/0.5369, allocations: 23.83 kB / 1.39 GB, free: 4.391 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.089e-05/0.5369, allocations: 8 kB / 1.39 GB, free: 4.383 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.0001638/0.5371, allocations: 158.5 kB / 1.39 GB, free: 4.219 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.159e-05/0.5372, allocations: 27.66 kB / 1.39 GB, free: 4.191 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003114/0.5375, allocations: 135.4 kB / 1.391 GB, free: 4.047 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.5375, allocations: 0 / 1.391 GB, free: 4.047 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.5375, allocations: 0 / 1.391 GB, free: 4.047 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.5375, allocations: 7.938 kB / 1.391 GB, free: 4.039 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/0.5378, allocations: 257.5 kB / 1.391 GB, free: 3.738 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.5378, allocations: 0 / 1.391 GB, free: 3.738 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.183e-05/0.5378, allocations: 12 kB / 1.391 GB, free: 3.727 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.5379, allocations: 0 / 1.391 GB, free: 3.727 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.5379, allocations: 7.984 kB / 1.391 GB, free: 3.719 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.5379, allocations: 4 kB / 1.391 GB, free: 3.715 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.5379, allocations: 0 / 1.391 GB, free: 3.715 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002819/0.5382, allocations: 156.7 kB / 1.391 GB, free: 3.543 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.5383, allocations: 104.8 kB / 1.391 GB, free: 3.422 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.603e-05/0.5383, allocations: 3.984 kB / 1.391 GB, free: 3.418 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.5385, allocations: 19.98 kB / 1.391 GB, free: 3.398 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.24e-05/0.5385, allocations: 12.17 kB / 1.391 GB, free: 3.387 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.5386, allocations: 7.984 kB / 1.391 GB, free: 3.379 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002556/0.5388, allocations: 237.9 kB / 1.391 GB, free: 3.148 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.71e-07/0.5388, allocations: 0 / 1.391 GB, free: 3.148 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000312/0.5391, allocations: 55.86 kB / 1.391 GB, free: 3.094 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.001121/0.5403, allocations: 426.2 kB / 1.392 GB, free: 2.832 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000306/0.5406, allocations: 131.8 kB / 1.392 GB, free: 2.703 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5406, allocations: 3.938 kB / 1.392 GB, free: 2.699 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001052/0.5407, allocations: 35.98 kB / 1.392 GB, free: 2.664 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.541, allocations: 51.16 kB / 1.392 GB, free: 2.613 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007904/0.5418, allocations: 464.6 kB / 1.392 GB, free: 2.129 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.5422, allocations: 0.7557 MB / 1.393 GB, free: 1.348 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001168/0.5423, allocations: 29.94 kB / 1.393 GB, free: 1.32 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.494e-05/0.5424, allocations: 23.44 kB / 1.393 GB, free: 1.301 MB / 0.8855 GB Notification: Performance of SimCode: time 3.71e-07/0.5424, allocations: 0 / 1.393 GB, free: 1.301 MB / 0.8855 GB Notification: Performance of Templates: time 0.006511/0.5489, allocations: 2.893 MB / 1.396 GB, free: 14.43 MB / 0.9011 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