Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.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.Greater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gre.u1|gre.u2|gre.y|greHys.y",fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 1.677/1.677, allocations: 390.4 MB / 397.7 MB, free: 10.73 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009367/0.0009367, allocations: 188.9 kB / 490.8 MB, free: 13.29 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.036/1.036, allocations: 221.4 MB / 0.7863 GB, free: 2.676 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008035/0.0008035, allocations: 97.12 kB / 0.9264 GB, free: 39.99 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 9.288e-06/9.308e-06, allocations: 8 kB / 1.072 GB, free: 3.184 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4662/0.4662, allocations: 143 MB / 1.212 GB, free: 63.38 MB / 0.7761 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1435/0.6097, allocations: 153.5 MB / 1.361 GB, free: 3.414 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001866/0.6099, allocations: 79.95 kB / 1.362 GB, free: 3.336 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.01798/0.6279, allocations: 7.298 MB / 1.369 GB, free: 12.04 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.55e-05/0.6279, allocations: 4 kB / 1.369 GB, free: 12.04 MB / 0.8698 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.0006247/0.6285, allocations: 0.5334 MB / 1.369 GB, free: 11.46 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.731e-05/0.6286, allocations: 12.03 kB / 1.369 GB, free: 11.45 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.848e-05/0.6286, allocations: 23.72 kB / 1.369 GB, free: 11.42 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005162/0.6292, allocations: 343.1 kB / 1.37 GB, free: 11.04 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.6292, allocations: 4 kB / 1.37 GB, free: 11.04 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.397e-05/0.6292, allocations: 8 kB / 1.37 GB, free: 11.03 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001372/0.6294, allocations: 76.2 kB / 1.37 GB, free: 10.96 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001549/0.6295, allocations: 96.83 kB / 1.37 GB, free: 10.86 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.6295, allocations: 4 kB / 1.37 GB, free: 10.86 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.58e-05/0.6296, allocations: 3.984 kB / 1.37 GB, free: 10.85 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.6296, allocations: 0 / 1.37 GB, free: 10.85 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006458/0.6302, allocations: 481.4 kB / 1.37 GB, free: 10.34 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.6305, allocations: 118.7 kB / 1.37 GB, free: 10.22 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.335e-05/0.6305, allocations: 36.86 kB / 1.37 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.6306, allocations: 0 / 1.37 GB, free: 10.18 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001167/0.6307, allocations: 91.38 kB / 1.37 GB, free: 10.08 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 1.052e-06/0.6307, allocations: 0 / 1.37 GB, free: 10.08 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.0002384/0.6309, allocations: 125.5 kB / 1.371 GB, free: 9.949 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.254e-05/0.631, allocations: 55.41 kB / 1.371 GB, free: 9.883 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002971/0.6313, allocations: 327.2 kB / 1.371 GB, free: 9.559 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.6313, allocations: 25.7 kB / 1.371 GB, free: 9.527 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.225e-05/0.6314, allocations: 124 kB / 1.371 GB, free: 9.402 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.656e-05/0.6314, allocations: 27.59 kB / 1.371 GB, free: 9.375 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.23e-05/0.6314, allocations: 4 kB / 1.371 GB, free: 9.371 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.323e-05/0.6315, allocations: 338.8 kB / 1.371 GB, free: 9.031 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.6316, allocations: 76.34 kB / 1.372 GB, free: 8.957 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.6317, allocations: 95.11 kB / 1.372 GB, free: 8.855 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/0.6319, allocations: 83.94 kB / 1.372 GB, free: 8.773 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.6319, allocations: 3.938 kB / 1.372 GB, free: 8.77 MB / 0.8698 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003816/0.6323, allocations: 241.2 kB / 1.372 GB, free: 8.527 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.778e-06/0.6323, allocations: 8 kB / 1.372 GB, free: 8.52 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.6324, allocations: 0 / 1.372 GB, free: 8.52 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.6324, allocations: 3.984 kB / 1.372 GB, free: 8.516 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.6326, allocations: 43.91 kB / 1.372 GB, free: 8.473 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.6326, allocations: 4 kB / 1.372 GB, free: 8.469 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001899/0.6328, allocations: 31.91 kB / 1.372 GB, free: 8.438 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.711e-05/0.6328, allocations: 11.94 kB / 1.372 GB, free: 8.426 MB / 0.8698 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 6.759e-05/0.6329, allocations: 107 kB / 1.372 GB, free: 8.316 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.185e-05/0.6329, allocations: 23.72 kB / 1.372 GB, free: 8.293 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002423/0.6332, allocations: 148.7 kB / 1.372 GB, free: 8.145 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.6332, allocations: 0 / 1.372 GB, free: 8.145 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.6332, allocations: 3.906 kB / 1.372 GB, free: 8.141 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.6332, allocations: 0 / 1.372 GB, free: 8.141 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001781/0.6334, allocations: 254 kB / 1.373 GB, free: 7.855 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.6334, allocations: 0 / 1.373 GB, free: 7.855 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.6335, allocations: 15.98 kB / 1.373 GB, free: 7.84 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.6335, allocations: 8 kB / 1.373 GB, free: 7.832 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.6335, allocations: 3.984 kB / 1.373 GB, free: 7.828 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.6336, allocations: 3.906 kB / 1.373 GB, free: 7.824 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.6336, allocations: 0 / 1.373 GB, free: 7.824 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001944/0.6338, allocations: 158.1 kB / 1.373 GB, free: 7.652 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.119e-05/0.6338, allocations: 104.8 kB / 1.373 GB, free: 7.531 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.966e-05/0.6339, allocations: 3.906 kB / 1.373 GB, free: 7.527 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.634, allocations: 27.97 kB / 1.373 GB, free: 7.5 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.929e-05/0.6341, allocations: 19.97 kB / 1.373 GB, free: 7.48 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.6341, allocations: 7.984 kB / 1.373 GB, free: 7.473 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0001744/0.6343, allocations: 223.1 kB / 1.373 GB, free: 7.254 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002414/0.6345, allocations: 51.94 kB / 1.373 GB, free: 7.203 MB / 0.8698 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.0005642/0.6351, allocations: 339.4 kB / 1.373 GB, free: 6.953 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002089/0.6353, allocations: 123.9 kB / 1.374 GB, free: 6.832 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.6354, allocations: 4 kB / 1.374 GB, free: 6.828 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 8.336e-05/0.6354, allocations: 51.92 kB / 1.374 GB, free: 6.777 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.6357, allocations: 56.34 kB / 1.374 GB, free: 6.723 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005454/0.6363, allocations: 316.2 kB / 1.374 GB, free: 6.387 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003072/0.6366, allocations: 0.7979 MB / 1.375 GB, free: 5.562 MB / 0.8698 GB Notification: Performance of SimCode: time 2.6e-07/0.6366, allocations: 0 / 1.375 GB, free: 5.562 MB / 0.8698 GB Notification: Performance of Templates: time 0.00544/0.642, allocations: 3.063 MB / 1.378 GB, free: 2.523 MB / 0.8698 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_Greater.csv","../files/Buildings_latest_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