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.LessThreshold.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.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.553/1.553, allocations: 251.9 MB / 266.9 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00128/0.001281, allocations: 177 kB / 326.5 MB, free: 2.246 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.968/1.968, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0009219/0.0009218, allocations: 82.44 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.000343, allocations: 12.59 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2598, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1866/0.4464, allocations: 131.4 MB / 1.028 GB, free: 12.37 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.4468, allocations: 75.95 kB / 1.028 GB, free: 12.29 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001676/0.4484, allocations: 0.6295 MB / 1.029 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.204e-06/0.4485, allocations: 0 / 1.029 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.181e-06/0.4485, allocations: 3.938 kB / 1.029 GB, free: 11.66 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003932/0.4489, allocations: 351.5 kB / 1.029 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.4489, allocations: 8.031 kB / 1.029 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/0.449, allocations: 4 kB / 1.029 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.4491, allocations: 178.9 kB / 1.03 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.4491, allocations: 0 / 1.03 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.4491, allocations: 0 / 1.03 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/0.4493, allocations: 53.67 kB / 1.03 GB, free: 10.98 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.4493, allocations: 4 kB / 1.03 GB, free: 10.98 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.4494, allocations: 4 kB / 1.03 GB, free: 10.97 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.349e-06/0.4494, allocations: 0 / 1.03 GB, free: 10.97 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001623/0.4495, allocations: 43.91 kB / 1.03 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004491/0.45, allocations: 268.9 kB / 1.03 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001204/0.4501, allocations: 38.56 kB / 1.03 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.4501, allocations: 0 / 1.03 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.4502, allocations: 38.62 kB / 1.03 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.4502, allocations: 0 / 1.03 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0003523/0.4505, allocations: 101.7 kB / 1.03 GB, free: 10.42 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.4506, allocations: 51.41 kB / 1.03 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.438e-05/0.4507, allocations: 96.98 kB / 1.03 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.4507, allocations: 25.7 kB / 1.03 GB, free: 10.22 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.751e-05/0.4508, allocations: 84.14 kB / 1.03 GB, free: 10.14 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.4508, allocations: 11.84 kB / 1.03 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.4508, allocations: 0 / 1.03 GB, free: 10.12 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.451, allocations: 314.8 kB / 1.031 GB, free: 9.809 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.254e-05/0.451, allocations: 28.02 kB / 1.031 GB, free: 9.781 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.732e-05/0.4511, allocations: 19.97 kB / 1.031 GB, free: 9.762 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.589e-05/0.4512, allocations: 28.05 kB / 1.031 GB, free: 9.734 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4512, allocations: 0 / 1.031 GB, free: 9.734 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001899/0.4514, allocations: 77.59 kB / 1.031 GB, free: 9.652 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.4514, allocations: 4 kB / 1.031 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.4514, allocations: 0 / 1.031 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.4515, allocations: 4 kB / 1.031 GB, free: 9.645 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.712e-05/0.4516, allocations: 8.031 kB / 1.031 GB, free: 9.637 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.4516, allocations: 3.984 kB / 1.031 GB, free: 9.633 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.092e-05/0.4517, allocations: 15.98 kB / 1.031 GB, free: 9.617 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.4517, allocations: 0 / 1.031 GB, free: 9.617 MB / 0.6823 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 (lesThr.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.24e-05/0.4518, allocations: 109.8 kB / 1.031 GB, free: 9.5 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.4518, allocations: 7.984 kB / 1.031 GB, free: 9.492 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.979e-05/0.4518, allocations: 15.06 kB / 1.031 GB, free: 9.477 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.4518, allocations: 0 / 1.031 GB, free: 9.477 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.4519, allocations: 256 / 1.031 GB, free: 9.477 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.4519, allocations: 3.938 kB / 1.031 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001797/0.4521, allocations: 169.5 kB / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.4521, allocations: 3.984 kB / 1.031 GB, free: 9.254 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.738e-05/0.4521, allocations: 11.98 kB / 1.031 GB, free: 9.242 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.4521, allocations: 0 / 1.031 GB, free: 9.242 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.4522, allocations: 0 / 1.031 GB, free: 9.242 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.4522, allocations: 8 kB / 1.031 GB, free: 9.234 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.4522, allocations: 0 / 1.031 GB, free: 9.234 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002498/0.4524, allocations: 175.4 kB / 1.031 GB, free: 9.047 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.733e-05/0.4525, allocations: 81.14 kB / 1.031 GB, free: 8.949 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.4525, allocations: 0 / 1.031 GB, free: 8.949 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.253e-05/0.4526, allocations: 11.98 kB / 1.031 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.797e-05/0.4526, allocations: 7.984 kB / 1.031 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.4526, allocations: 0 / 1.031 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.584e-05/0.4527, allocations: 83.28 kB / 1.032 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4527, allocations: 0 / 1.032 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0001876/0.4529, allocations: 4 kB / 1.032 GB, free: 8.844 MB / 0.6823 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 (lesThr.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001707/0.4531, allocations: 103.2 kB / 1.032 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002093/0.4533, allocations: 47.95 kB / 1.032 GB, free: 8.688 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4533, allocations: 4 kB / 1.032 GB, free: 8.684 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 8.378e-05/0.4534, allocations: 27.98 kB / 1.032 GB, free: 8.656 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.4536, allocations: 7.141 kB / 1.032 GB, free: 8.652 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003067/0.4539, allocations: 110 kB / 1.032 GB, free: 8.52 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.4542, allocations: 0.6888 MB / 1.033 GB, free: 7.805 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.425e-05/0.4542, allocations: 0 / 1.033 GB, free: 7.805 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.478e-05/0.4542, allocations: 7.438 kB / 1.033 GB, free: 7.797 MB / 0.6823 GB Notification: Performance of SimCode: time 3.11e-07/0.4542, allocations: 0 / 1.033 GB, free: 7.797 MB / 0.6823 GB Notification: Performance of Templates: time 0.002213/0.4565, allocations: 389.8 kB / 1.033 GB, free: 7.422 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[510]=10.000000 File[5004]=1.000000 Error: Could not read variable les.u in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat. Warning: Get data of variable les.u from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat failed! Error: Could not read variable les.t in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat. Warning: Get data of variable les.t from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat failed! Error: Could not read variable les.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat. Warning: Get data of variable les.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat failed! Error: Could not read variable lesHys.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat. Warning: Get data of variable lesHys.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat failed! " Variables in the reference:time,les.u,les.t,les.y,lesHys.y Variables in the result:lesThr.threshold,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,time