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.344/2.344, allocations: 387.1 MB / 399.7 MB, free: 9.445 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.0009932/0.0009931, allocations: 169 kB / 492.3 MB, free: 0.6094 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.481/1.481, allocations: 221.3 MB / 0.7871 GB, free: 12.87 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.001021/0.001021, allocations: 98.06 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.927e-05/2.929e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2815, allocations: 142.3 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.067/1.349, allocations: 153.3 MB / 1.362 GB, free: 19.04 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/1.349, allocations: 76.58 kB / 1.362 GB, free: 19.04 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01929/1.368, allocations: 7.29 MB / 1.369 GB, free: 34.36 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.517e-06/1.368, allocations: 0 / 1.369 GB, free: 34.36 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.204e-05/1.368, allocations: 11.81 kB / 1.369 GB, free: 34.35 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.0008059/1.369, allocations: 0.4914 MB / 1.37 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/1.369, allocations: 7.719 kB / 1.37 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/1.369, allocations: 26.97 kB / 1.37 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006615/1.37, allocations: 335.3 kB / 1.37 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/1.37, allocations: 11.78 kB / 1.37 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.607e-05/1.37, allocations: 11.34 kB / 1.37 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001986/1.37, allocations: 88.33 kB / 1.37 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/1.37, allocations: 0 / 1.37 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/1.37, allocations: 0 / 1.37 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/1.37, allocations: 3.969 kB / 1.37 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/1.371, allocations: 53.89 kB / 1.37 GB, free: 33.63 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009788/1.372, allocations: 464.7 kB / 1.371 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/1.372, allocations: 87.81 kB / 1.371 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.636e-05/1.372, allocations: 34.83 kB / 1.371 GB, free: 33.32 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.389e-05/1.372, allocations: 7.891 kB / 1.371 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001883/1.372, allocations: 80.69 kB / 1.371 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 2.154e-06/1.372, allocations: 0 / 1.371 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0003582/1.372, allocations: 129.5 kB / 1.371 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/1.372, allocations: 54.78 kB / 1.371 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004365/1.373, allocations: 332.6 kB / 1.371 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/1.373, allocations: 36.98 kB / 1.371 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.69e-05/1.373, allocations: 138.2 kB / 1.372 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/1.373, allocations: 22.33 kB / 1.372 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.287e-05/1.373, allocations: 3.125 kB / 1.372 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001399/1.373, allocations: 341.6 kB / 1.372 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/1.373, allocations: 71.78 kB / 1.372 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/1.374, allocations: 87.86 kB / 1.372 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/1.374, allocations: 81.7 kB / 1.372 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/1.374, allocations: 3.875 kB / 1.372 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003691/1.374, allocations: 222.2 kB / 1.372 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/1.374, allocations: 5.719 kB / 1.372 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/1.374, allocations: 0 / 1.372 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/1.374, allocations: 3.984 kB / 1.372 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/1.374, allocations: 29.31 kB / 1.372 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/1.374, allocations: 3.844 kB / 1.372 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/1.374, allocations: 26.17 kB / 1.372 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.011e-05/1.375, allocations: 10.56 kB / 1.372 GB, free: 32.5 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.0001116/1.375, allocations: 116.9 kB / 1.373 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.89e-05/1.375, allocations: 19.44 kB / 1.373 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002794/1.375, allocations: 133.6 kB / 1.373 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/1.375, allocations: 0 / 1.373 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/1.375, allocations: 0 / 1.373 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/1.375, allocations: 4 kB / 1.373 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002385/1.375, allocations: 260.9 kB / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/1.375, allocations: 3.953 kB / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.267e-05/1.375, allocations: 11.14 kB / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/1.375, allocations: 0 / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/1.375, allocations: 3.875 kB / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/1.375, allocations: 0 / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.375, allocations: 2.812 kB / 1.373 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000236/1.376, allocations: 153.4 kB / 1.373 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.701e-05/1.376, allocations: 115.3 kB / 1.373 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/1.376, allocations: 4.125 kB / 1.373 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/1.376, allocations: 14.73 kB / 1.373 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.625e-05/1.376, allocations: 20.52 kB / 1.373 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/1.376, allocations: 3.969 kB / 1.373 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002815/1.376, allocations: 234 kB / 1.374 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.31e-07/1.376, allocations: 0 / 1.374 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003244/1.377, allocations: 48.91 kB / 1.374 GB, free: 31.84 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.001229/1.378, allocations: 395.9 kB / 1.374 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003083/1.378, allocations: 119.8 kB / 1.374 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.378, allocations: 0 / 1.374 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.213e-05/1.378, allocations: 36.41 kB / 1.374 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003772/1.379, allocations: 45.89 kB / 1.374 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007211/1.379, allocations: 310 kB / 1.374 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/1.38, allocations: 0.7528 MB / 1.375 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001289/1.38, allocations: 43.23 kB / 1.375 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.325e-05/1.38, allocations: 21.81 kB / 1.375 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of SimCode: time 1.072e-06/1.38, allocations: 0 / 1.375 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of Templates: time 0.007489/1.388, allocations: 2.896 MB / 1.378 GB, free: 30.55 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