Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.347/1.347, allocations: 249.4 MB / 256.7 MB, free: 7.082 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 192.3 kB / 316 MB, free: 3.586 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.557/1.557, allocations: 205.2 MB / 0.5667 GB, free: 15.63 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009371/0.000937, allocations: 88.59 kB / 0.671 GB, free: 4.773 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.728e-06/9.759e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1952/0.1952, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5115/0.7067, allocations: 131.6 MB / 1.013 GB, free: 7.078 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.707, allocations: 71.23 kB / 1.013 GB, free: 7.039 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002278/0.7093, allocations: 0.5736 MB / 1.014 GB, free: 6.535 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.775e-06/0.7093, allocations: 0 / 1.014 GB, free: 6.535 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004394/0.7098, allocations: 373.5 kB / 1.014 GB, free: 6.129 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.7098, allocations: 8.031 kB / 1.014 GB, free: 6.121 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.583e-05/0.7098, allocations: 3.906 kB / 1.014 GB, free: 6.117 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.71, allocations: 171.1 kB / 1.014 GB, free: 5.91 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.71, allocations: 0 / 1.014 GB, free: 5.91 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.433e-05/0.71, allocations: 7.984 kB / 1.014 GB, free: 5.902 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.639e-05/0.7101, allocations: 18.84 kB / 1.014 GB, free: 5.891 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.683e-05/0.7102, allocations: 41.44 kB / 1.014 GB, free: 5.848 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.7103, allocations: 0 / 1.014 GB, free: 5.848 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.7103, allocations: 0 / 1.014 GB, free: 5.848 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.7103, allocations: 3.938 kB / 1.014 GB, free: 5.844 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005316/0.7108, allocations: 287.3 kB / 1.015 GB, free: 5.539 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.193e-05/0.7109, allocations: 28.58 kB / 1.015 GB, free: 5.508 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.392e-05/0.7109, allocations: 20.56 kB / 1.015 GB, free: 5.488 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.711, allocations: 3.938 kB / 1.015 GB, free: 5.484 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.711, allocations: 33.69 kB / 1.015 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.303e-06/0.711, allocations: 0 / 1.015 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002306/0.7112, allocations: 55.42 kB / 1.015 GB, free: 5.391 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.7113, allocations: 51.41 kB / 1.015 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.168e-05/0.7114, allocations: 103.2 kB / 1.015 GB, free: 5.227 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.7114, allocations: 25.7 kB / 1.015 GB, free: 5.195 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.862e-05/0.7115, allocations: 88.08 kB / 1.015 GB, free: 5.105 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.7115, allocations: 7.531 kB / 1.015 GB, free: 5.102 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-06/0.7115, allocations: 0 / 1.015 GB, free: 5.102 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.7116, allocations: 318.8 kB / 1.015 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.367e-05/0.7116, allocations: 11.88 kB / 1.015 GB, free: 4.773 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.856e-05/0.7117, allocations: 7.688 kB / 1.015 GB, free: 4.77 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.058e-05/0.7117, allocations: 6.75 kB / 1.015 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.7117, allocations: 0 / 1.015 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.158e-05/0.7118, allocations: 49.09 kB / 1.015 GB, free: 4.715 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.7118, allocations: 4 kB / 1.015 GB, free: 4.711 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.7118, allocations: 0 / 1.015 GB, free: 4.711 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.7118, allocations: 4 kB / 1.015 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/0.712, allocations: 23.92 kB / 1.015 GB, free: 4.684 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.712, allocations: 4 kB / 1.015 GB, free: 4.68 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.7121, allocations: 23.8 kB / 1.015 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.7121, allocations: 7.984 kB / 1.015 GB, free: 4.652 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (greater1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.74e-05/0.7122, allocations: 104.9 kB / 1.016 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.596e-05/0.7123, allocations: 0 / 1.016 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.717e-05/0.7123, allocations: 8 kB / 1.016 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.7123, allocations: 3.906 kB / 1.016 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.7123, allocations: 0 / 1.016 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.7123, allocations: 0 / 1.016 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001954/0.7125, allocations: 149.6 kB / 1.016 GB, free: 4.352 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.7125, allocations: 3.938 kB / 1.016 GB, free: 4.348 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.7127, allocations: 23.97 kB / 1.016 GB, free: 4.324 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.7127, allocations: 0 / 1.016 GB, free: 4.324 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.7127, allocations: 0.875 kB / 1.016 GB, free: 4.324 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.7127, allocations: 0 / 1.016 GB, free: 4.324 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.7127, allocations: 4 kB / 1.016 GB, free: 4.32 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001143/0.7128, allocations: 149.6 kB / 1.016 GB, free: 4.164 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.117e-05/0.7129, allocations: 85.05 kB / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.7129, allocations: 0 / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.713, allocations: 26.86 kB / 1.016 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.163e-05/0.7131, allocations: 7.172 kB / 1.016 GB, free: 4.035 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.7131, allocations: 4 kB / 1.016 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.58e-05/0.7131, allocations: 90.45 kB / 1.016 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002062/0.7133, allocations: 8 kB / 1.016 GB, free: 3.938 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (greater1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001381/0.7135, allocations: 103.2 kB / 1.016 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 9.269e-05/0.7136, allocations: 22.56 kB / 1.016 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.7136, allocations: 0 / 1.016 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.502e-05/0.7136, allocations: 19.19 kB / 1.016 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.7138, allocations: 10.56 kB / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002286/0.714, allocations: 70.94 kB / 1.016 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002946/0.7144, allocations: 0.6954 MB / 1.017 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of SimCode: time 4.4e-07/0.7144, allocations: 4 kB / 1.017 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of Templates: time 0.002446/0.7168, allocations: 0.6486 MB / 1.018 GB, free: 2.348 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_Greater.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[552]=10.000000 File[5004]=1.000000 Error: Could not read variable gre.u1 in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater_res.mat. Warning: Get data of variable gre.u1 from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater_res.mat failed! Error: Could not read variable gre.u2 in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater_res.mat. Warning: Get data of variable gre.u2 from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater_res.mat failed! Error: Could not read variable gre.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater_res.mat. Warning: Get data of variable gre.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater_res.mat failed! Error: Could not read variable greHys.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater_res.mat. Warning: Get data of variable greHys.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Greater_res.mat failed! " Variables in the reference:time,gre.u1,gre.u2,gre.y,greHys.y Variables in the result:ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,time