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.442/1.442, allocations: 249.3 MB / 261.8 MB, free: 5.863 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.001036/0.001036, allocations: 190.5 kB / 321.3 MB, free: 14.61 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.2 MB / 0.572 GB, free: 10.64 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.0008011/0.0008013, allocations: 96.3 kB / 0.6764 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.905e-05/2.906e-05, allocations: 8 kB / 0.788 GB, free: 97.04 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2006, allocations: 106.3 MB / 0.8918 GB, free: 6.609 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6735/0.8742, allocations: 131.3 MB / 1.02 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.8745, allocations: 76.27 kB / 1.02 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001729/0.8762, allocations: 0.6312 MB / 1.021 GB, free: 2.773 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.734e-06/0.8762, allocations: 4 kB / 1.021 GB, free: 2.77 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.682e-06/0.8762, allocations: 0 / 1.021 GB, free: 2.77 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003395/0.8766, allocations: 342.3 kB / 1.021 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.8766, allocations: 11.97 kB / 1.021 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.082e-05/0.8767, allocations: 4 kB / 1.021 GB, free: 2.379 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000141/0.8768, allocations: 174.6 kB / 1.021 GB, free: 2.172 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.8769, allocations: 0 / 1.021 GB, free: 2.172 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.8769, allocations: 4 kB / 1.021 GB, free: 2.168 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.877, allocations: 36.81 kB / 1.021 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.877, allocations: 0 / 1.021 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.877, allocations: 0 / 1.021 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.877, allocations: 4 kB / 1.021 GB, free: 2.125 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.36e-05/0.8771, allocations: 11.31 kB / 1.021 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004632/0.8775, allocations: 271.4 kB / 1.022 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.171e-05/0.8776, allocations: 30.02 kB / 1.022 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.599e-05/0.8777, allocations: 8.859 kB / 1.022 GB, free: 1.766 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.357e-05/0.8777, allocations: 7.438 kB / 1.022 GB, free: 1.762 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.8777, allocations: 30.56 kB / 1.022 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 2.726e-06/0.8777, allocations: 0 / 1.022 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001683/0.8779, allocations: 40.08 kB / 1.022 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.878, allocations: 55.34 kB / 1.022 GB, free: 1.617 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.839e-05/0.8781, allocations: 100.5 kB / 1.022 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.8781, allocations: 29.73 kB / 1.022 GB, free: 1.48 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.945e-05/0.8782, allocations: 80.14 kB / 1.022 GB, free: 1.398 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.8782, allocations: 7.891 kB / 1.022 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-06/0.8782, allocations: 3.875 kB / 1.022 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.8783, allocations: 318.8 kB / 1.022 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.533e-05/0.8784, allocations: 0 / 1.022 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.238e-05/0.8784, allocations: 6.938 kB / 1.022 GB, free: 1.066 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.11e-05/0.8784, allocations: 7.984 kB / 1.022 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.8784, allocations: 4.062 kB / 1.022 GB, free: 1.055 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.282e-05/0.8785, allocations: 41.58 kB / 1.022 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.8785, allocations: 5.875 kB / 1.022 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.8785, allocations: 0 / 1.022 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.8785, allocations: 0 / 1.022 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.8786, allocations: 11.98 kB / 1.022 GB, free: 0.9961 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.8787, allocations: 7.922 kB / 1.022 GB, free: 0.9883 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.366e-05/0.8787, allocations: 19.95 kB / 1.022 GB, free: 0.9727 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.8787, allocations: 0 / 1.022 GB, free: 0.9727 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 (lesThr.y) * Number of discrete 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 7.962e-05/0.8788, allocations: 108.9 kB / 1.022 GB, free: 0.8594 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.005e-05/0.8789, allocations: 0 / 1.022 GB, free: 0.8594 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.115e-05/0.8789, allocations: 7.078 kB / 1.022 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.8789, allocations: 3.938 kB / 1.022 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.8789, allocations: 0 / 1.022 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.8789, allocations: 4 kB / 1.022 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001681/0.8791, allocations: 165.4 kB / 1.023 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.8791, allocations: 4 kB / 1.023 GB, free: 0.6328 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.827e-05/0.8792, allocations: 8.875 kB / 1.023 GB, free: 0.625 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.8792, allocations: 0 / 1.023 GB, free: 0.625 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.8792, allocations: 7.672 kB / 1.023 GB, free: 0.6211 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.8792, allocations: 0 / 1.023 GB, free: 0.6211 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.8792, allocations: 0 / 1.023 GB, free: 0.6211 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001131/0.8793, allocations: 138.8 kB / 1.023 GB, free: 484 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.913e-05/0.8794, allocations: 89.02 kB / 1.023 GB, free: 376 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.8795, allocations: 3 kB / 1.023 GB, free: 376 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.22e-05/0.8796, allocations: 11.98 kB / 1.023 GB, free: 364 kB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.287e-05/0.8796, allocations: 11.11 kB / 1.023 GB, free: 356 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.8796, allocations: 0 / 1.023 GB, free: 356 kB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.638e-05/0.8797, allocations: 79.28 kB / 1.023 GB, free: 276 kB / 0.6355 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8797, allocations: 0 / 1.023 GB, free: 276 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001896/0.8799, allocations: 7.5 kB / 1.023 GB, free: 272 kB / 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 (lesThr.y) * Number of discrete 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.0001763/0.8801, allocations: 104.2 kB / 1.023 GB, free: 160 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.582e-05/0.8801, allocations: 11.81 kB / 1.023 GB, free: 152 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8802, allocations: 0 / 1.023 GB, free: 152 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.472e-05/0.8802, allocations: 8 kB / 1.023 GB, free: 144 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001934/0.8804, allocations: 7.766 kB / 1.023 GB, free: 140 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002137/0.8806, allocations: 68.02 kB / 1.023 GB, free: 56 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.8809, allocations: 0.6809 MB / 1.024 GB, free: 15.35 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.901e-05/0.8809, allocations: 11.91 kB / 1.024 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.426e-05/0.8809, allocations: 11.44 kB / 1.024 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of SimCode: time 3.2e-07/0.881, allocations: 0 / 1.024 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of Templates: time 0.002325/0.8833, allocations: 387.5 kB / 1.024 GB, free: 14.96 MB / 0.6511 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