Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007986/0.007986, allocations: 101.6 kB / 15.73 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 195.9 kB / 16.67 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.601/2.601, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 71.89 kB / 1.054 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.061/1.063, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold): time 0.002062/1.065, allocations: 0.8301 MB / 1.208 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001149/1.066, allocations: 0.878 MB / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/1.066, allocations: 0 / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001335/1.066, allocations: 11.86 kB / 1.209 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.092e-05/1.066, allocations: 11.88 kB / 1.209 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001769/1.067, allocations: 27.91 kB / 1.209 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000131/1.067, allocations: 79.77 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/1.067, allocations: 27.98 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.632e-05/1.067, allocations: 31.8 kB / 1.209 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.907e-05/1.067, allocations: 35.83 kB / 1.209 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.564e-05/1.067, allocations: 12 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.269e-05/1.067, allocations: 4 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.076e-05/1.067, allocations: 7.938 kB / 1.209 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.185e-05/1.067, allocations: 35.8 kB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001362/1.067, allocations: 74 kB / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/1.067, allocations: 0 / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.076e-06/1.067, allocations: 3.984 kB / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.27e-06/1.067, allocations: 0 / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005561/1.068, allocations: 391.1 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/1.068, allocations: 12.03 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.16e-05/1.068, allocations: 38.67 kB / 1.21 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.152e-05/1.068, allocations: 8.844 kB / 1.21 GB, free: 11 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/1.068, allocations: 201.8 kB / 1.21 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/1.068, allocations: 4.375 kB / 1.21 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/1.068, allocations: 4.375 kB / 1.21 GB, free: 10.76 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/1.068, allocations: 62.17 kB / 1.21 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/1.068, allocations: 15.81 kB / 1.21 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/1.068, allocations: 4 kB / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/1.068, allocations: 0 / 1.21 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/1.069, allocations: 31.97 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004878/1.069, allocations: 324.6 kB / 1.21 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/1.069, allocations: 50.61 kB / 1.21 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.151e-05/1.069, allocations: 16.94 kB / 1.21 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/1.069, allocations: 8 kB / 1.21 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/1.069, allocations: 30.56 kB / 1.21 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.021e-06/1.069, allocations: 0 / 1.21 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0002605/1.07, allocations: 69.89 kB / 1.211 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/1.07, allocations: 55.41 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/1.07, allocations: 139.8 kB / 1.211 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/1.07, allocations: 25.7 kB / 1.211 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.161e-05/1.07, allocations: 96.12 kB / 1.211 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/1.07, allocations: 7.906 kB / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.056e-05/1.07, allocations: 13.72 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001213/1.07, allocations: 326.8 kB / 1.211 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.713e-05/1.07, allocations: 19.98 kB / 1.211 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.64e-05/1.07, allocations: 15.98 kB / 1.211 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.169e-05/1.07, allocations: 28.84 kB / 1.211 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/1.07, allocations: 0 / 1.211 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001583/1.071, allocations: 73.52 kB / 1.211 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/1.071, allocations: 4 kB / 1.211 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/1.071, allocations: 0 / 1.211 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/1.071, allocations: 4 kB / 1.211 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.491e-05/1.071, allocations: 7.984 kB / 1.211 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/1.071, allocations: 8 kB / 1.211 GB, free: 9.211 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.599e-05/1.071, allocations: 11.92 kB / 1.211 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/1.071, allocations: 3.938 kB / 1.211 GB, free: 9.195 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (lesHys.lesHys.y,$PRE.lesHys.lesHys.y,les.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.528e-05/1.071, allocations: 113.8 kB / 1.211 GB, free: 9.074 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.079e-05/1.071, allocations: 7.906 kB / 1.211 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.628e-05/1.071, allocations: 12.25 kB / 1.211 GB, free: 9.047 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/1.071, allocations: 0 / 1.211 GB, free: 9.047 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/1.071, allocations: 4 kB / 1.211 GB, free: 9.043 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/1.071, allocations: 3.938 kB / 1.211 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002019/1.071, allocations: 185.6 kB / 1.212 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/1.071, allocations: 0 / 1.212 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.348e-05/1.071, allocations: 4 kB / 1.212 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/1.071, allocations: 3.938 kB / 1.212 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/1.071, allocations: 0 / 1.212 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/1.071, allocations: 7.938 kB / 1.212 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/1.071, allocations: 0 / 1.212 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001881/1.071, allocations: 163.4 kB / 1.212 GB, free: 8.617 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.974e-05/1.072, allocations: 85 kB / 1.212 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.951e-05/1.072, allocations: 0 / 1.212 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/1.072, allocations: 11.98 kB / 1.212 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.256e-05/1.072, allocations: 8 kB / 1.212 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/1.072, allocations: 3.984 kB / 1.212 GB, free: 8.492 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.783e-05/1.072, allocations: 109.1 kB / 1.212 GB, free: 8.387 MB / 0.9356 GB Notification: Performance of sort global known variables: time 4.41e-07/1.072, allocations: 0 / 1.212 GB, free: 8.387 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002284/1.072, allocations: 12 kB / 1.212 GB, free: 8.375 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (les.y,lesHys.lesHys.y) * Number of discrete states: 1 (lesHys.lesHys.y) * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006196/1.073, allocations: 0.6928 MB / 1.213 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001762/1.073, allocations: 36.2 kB / 1.213 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/1.073, allocations: 4 kB / 1.213 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.827e-05/1.073, allocations: 20.02 kB / 1.213 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/1.073, allocations: 15.92 kB / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/1.075, allocations: 1.382 MB / 1.214 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/1.075, allocations: 0.6942 MB / 1.215 GB, free: 5.402 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.317e-05/1.075, allocations: 4 kB / 1.215 GB, free: 5.398 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.109e-05/1.075, allocations: 27.42 kB / 1.215 GB, free: 5.371 MB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/1.075, allocations: 0 / 1.215 GB, free: 5.371 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/1.096, allocations: 2.029 MB / 1.217 GB, free: 3.457 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.486/8.581, allocations: 0 / 1.217 GB, free: 3.457 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,les.u,les.t,les.y,lesHys.y Variables in the result:les.h,les.pre_y_start,les.t,les.u,les.y,lesHys.h,lesHys.pre_y_start,lesHys.t,lesHys.u,lesHys.y,sin.amplitude,sin.freqHz,sin.offset,sin.phase,sin.startTime,sin.y,time