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") [: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.721/1.721, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009153/0.0009153, allocations: 186.3 kB / 490.8 MB, free: 1.906 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.072/1.072, allocations: 221.4 MB / 0.7863 GB, free: 13.62 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.0007794/0.0007794, allocations: 86.98 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.799e-06/9.899e-06, allocations: 8 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1763, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4546/0.6309, allocations: 153.3 MB / 1.361 GB, free: 17.18 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001717/0.6311, allocations: 78.41 kB / 1.361 GB, free: 17.18 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01617/0.6473, allocations: 6.892 MB / 1.368 GB, free: 16.79 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.604e-05/0.6473, allocations: 11.19 kB / 1.368 GB, free: 16.79 MB / 0.823 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.000504/0.6478, allocations: 0.491 MB / 1.369 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.773e-05/0.6479, allocations: 8.938 kB / 1.369 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.896e-05/0.6479, allocations: 27.41 kB / 1.369 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004898/0.6484, allocations: 335.7 kB / 1.369 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.6485, allocations: 3.531 kB / 1.369 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.6485, allocations: 9.719 kB / 1.369 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001005/0.6486, allocations: 56.16 kB / 1.369 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.6487, allocations: 77.67 kB / 1.369 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.6487, allocations: 0 / 1.369 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.6487, allocations: 0 / 1.369 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.6488, allocations: 2.625 kB / 1.369 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00055/0.6493, allocations: 436.6 kB / 1.37 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.6494, allocations: 79.03 kB / 1.37 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.399e-05/0.6495, allocations: 28.02 kB / 1.37 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.6495, allocations: 3.516 kB / 1.37 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.011e-05/0.6496, allocations: 77.55 kB / 1.37 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.6496, allocations: 3.938 kB / 1.37 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0001963/0.6498, allocations: 107.7 kB / 1.37 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.78e-05/0.6498, allocations: 54.22 kB / 1.37 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002941/0.6501, allocations: 329.1 kB / 1.37 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.6502, allocations: 26.92 kB / 1.37 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.891e-05/0.6502, allocations: 110.8 kB / 1.37 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.6503, allocations: 22.22 kB / 1.37 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.031e-05/0.6503, allocations: 0 / 1.37 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.6504, allocations: 337.9 kB / 1.371 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.875e-05/0.6505, allocations: 70.58 kB / 1.371 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.6506, allocations: 93.02 kB / 1.371 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.6508, allocations: 78.95 kB / 1.371 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.6508, allocations: 1.094 kB / 1.371 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003595/0.6512, allocations: 228.4 kB / 1.371 GB, free: 31 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.787e-06/0.6512, allocations: 5.188 kB / 1.371 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.6512, allocations: 4.062 kB / 1.371 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.6512, allocations: 2.719 kB / 1.371 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.6513, allocations: 28.08 kB / 1.371 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.977e-06/0.6514, allocations: 1.531 kB / 1.371 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.6515, allocations: 25.97 kB / 1.371 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.6515, allocations: 7.5 kB / 1.371 GB, free: 30.98 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 6.686e-05/0.6516, allocations: 109.2 kB / 1.371 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.053e-05/0.6516, allocations: 22.84 kB / 1.371 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001888/0.6518, allocations: 125.2 kB / 1.371 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.6518, allocations: 2.297 kB / 1.371 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.6518, allocations: 7.844 kB / 1.371 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.6519, allocations: 0.75 kB / 1.371 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001418/0.652, allocations: 227.9 kB / 1.372 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.652, allocations: 5.969 kB / 1.372 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.207e-05/0.6521, allocations: 6.625 kB / 1.372 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.6521, allocations: 5.156 kB / 1.372 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.6521, allocations: 2.594 kB / 1.372 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.6521, allocations: 0.6562 kB / 1.372 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6521, allocations: 9.031 kB / 1.372 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001524/0.6523, allocations: 134.8 kB / 1.372 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.6523, allocations: 105.1 kB / 1.372 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.6524, allocations: 4.609 kB / 1.372 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.6525, allocations: 17.91 kB / 1.372 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.246e-05/0.6525, allocations: 16.42 kB / 1.372 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.6525, allocations: 6.594 kB / 1.372 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001821/0.6527, allocations: 222 kB / 1.372 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002344/0.653, allocations: 54.03 kB / 1.372 GB, free: 30.35 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.0005289/0.6535, allocations: 320.4 kB / 1.373 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001766/0.6537, allocations: 111.2 kB / 1.373 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.6537, allocations: 0 / 1.373 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.369e-05/0.6538, allocations: 41.44 kB / 1.373 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.654, allocations: 50.69 kB / 1.373 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004683/0.6545, allocations: 299.5 kB / 1.373 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00033/0.6548, allocations: 0.7775 MB / 1.374 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of SimCode: time 2.1e-07/0.6549, allocations: 0 / 1.374 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of Templates: time 0.005286/0.6601, allocations: 2.659 MB / 1.376 GB, free: 29.1 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