Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.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.Greater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u1|gre.u2|gre.y|greHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Greater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u1|gre.u2|gre.y|greHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.763/1.763, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.0011/0.0011, allocations: 180.5 kB / 487 MB, free: 5.371 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.106/1.106, allocations: 221.3 MB / 0.7819 GB, free: 1.391 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.0008489/0.0008489, allocations: 95.42 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.714e-06/7.744e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.1837, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.536/0.7197, allocations: 152.7 MB / 1.354 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.7199, allocations: 80.91 kB / 1.354 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01955/0.7395, allocations: 7.28 MB / 1.362 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.774e-05/0.7396, allocations: 11.94 kB / 1.362 GB, free: 14.55 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.000638/0.7402, allocations: 0.5346 MB / 1.362 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.07e-05/0.7402, allocations: 9.734 kB / 1.362 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.017e-05/0.7403, allocations: 27.62 kB / 1.362 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005218/0.7408, allocations: 343.1 kB / 1.362 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.7409, allocations: 7.578 kB / 1.362 GB, free: 13.68 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.093e-05/0.7409, allocations: 7.906 kB / 1.362 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000133/0.741, allocations: 61.84 kB / 1.363 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001632/0.7412, allocations: 109.3 kB / 1.363 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.7412, allocations: 4 kB / 1.363 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.7412, allocations: 4 kB / 1.363 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.7412, allocations: 0 / 1.363 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005951/0.7418, allocations: 485.8 kB / 1.363 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001892/0.7421, allocations: 115.6 kB / 1.363 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.924e-05/0.7421, allocations: 38.48 kB / 1.363 GB, free: 13 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.7421, allocations: 192 / 1.363 GB, free: 13 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.763e-05/0.7422, allocations: 90.06 kB / 1.363 GB, free: 12.92 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.7423, allocations: 0 / 1.363 GB, free: 12.92 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0002249/0.7425, allocations: 130.5 kB / 1.363 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.663e-05/0.7425, allocations: 55.41 kB / 1.363 GB, free: 12.74 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.7428, allocations: 330 kB / 1.364 GB, free: 12.47 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.7428, allocations: 25.7 kB / 1.364 GB, free: 12.44 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.824e-05/0.7428, allocations: 121.6 kB / 1.364 GB, free: 12.33 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.7429, allocations: 29.69 kB / 1.364 GB, free: 12.31 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.271e-05/0.7429, allocations: 0 / 1.364 GB, free: 12.31 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.952e-05/0.7429, allocations: 336.6 kB / 1.364 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.319e-05/0.743, allocations: 78.78 kB / 1.364 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.7431, allocations: 97.92 kB / 1.364 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.7433, allocations: 86.12 kB / 1.365 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.7434, allocations: 0 / 1.365 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003545/0.7437, allocations: 242.8 kB / 1.365 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.7437, allocations: 8 kB / 1.365 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.7437, allocations: 0 / 1.365 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.7438, allocations: 4.062 kB / 1.365 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.744, allocations: 39.97 kB / 1.365 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.744, allocations: 7.938 kB / 1.365 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.7441, allocations: 31.88 kB / 1.365 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/0.7442, allocations: 11.19 kB / 1.365 GB, free: 11.5 MB / 0.8073 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 (21): * Single equations (assignments): 21 * 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 5.872e-05/0.7442, allocations: 109 kB / 1.365 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.953e-05/0.7443, allocations: 19.72 kB / 1.365 GB, free: 11.37 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002272/0.7445, allocations: 149 kB / 1.365 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.7445, allocations: 3.906 kB / 1.365 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.7445, allocations: 4 kB / 1.365 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.7445, allocations: 0 / 1.365 GB, free: 11.24 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001468/0.7447, allocations: 251.2 kB / 1.365 GB, free: 11 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.7447, allocations: 0 / 1.365 GB, free: 11 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.7448, allocations: 15.98 kB / 1.365 GB, free: 10.98 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.7448, allocations: 4 kB / 1.365 GB, free: 10.98 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.7448, allocations: 11.2 kB / 1.365 GB, free: 10.97 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.7449, allocations: 0 / 1.365 GB, free: 10.97 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.7449, allocations: 4 kB / 1.365 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001735/0.745, allocations: 151.9 kB / 1.366 GB, free: 10.82 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 4.838e-05/0.7451, allocations: 112.6 kB / 1.366 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.829e-05/0.7451, allocations: 0 / 1.366 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.7453, allocations: 27.97 kB / 1.366 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.124e-05/0.7454, allocations: 19.41 kB / 1.366 GB, free: 10.65 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.7454, allocations: 11.58 kB / 1.366 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001491/0.7455, allocations: 224.2 kB / 1.366 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002402/0.7458, allocations: 47.94 kB / 1.366 GB, free: 10.42 MB / 0.8073 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 (11): * Single equations (assignments): 9 * 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.0005362/0.7463, allocations: 335.1 kB / 1.366 GB, free: 10.18 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001972/0.7465, allocations: 128.4 kB / 1.366 GB, free: 10.09 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.7465, allocations: 0 / 1.366 GB, free: 10.09 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.802e-05/0.7466, allocations: 58.42 kB / 1.366 GB, free: 10.05 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.7469, allocations: 56.23 kB / 1.367 GB, free: 10.01 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005223/0.7474, allocations: 319.6 kB / 1.367 GB, free: 9.711 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002278/0.7477, allocations: 0.7899 MB / 1.368 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of SimCode: time 2.21e-07/0.7477, allocations: 0 / 1.368 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of Templates: time 0.005034/0.7527, allocations: 3.076 MB / 1.371 GB, free: 5.879 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Greater.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,gre.u1,gre.u2,gre.y,greHys.y Variables in the result:gre.h,gre.have_hysteresis,gre.pre_y_start,gre.u1,gre.u2,gre.y,greHys.greHys.h,greHys.greHys.pre_y_start,greHys.greHys.y,greHys.h,greHys.have_hysteresis,greHys.pre_y_start,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,ram1.duration,ram1.height,ram1.offset,ram1.startTime,rou.fac,rou.n,rou1.fac,rou1.n,time