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.005217/0.005217, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001141/0.001141, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.546/2.546, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 67.91 kB / 1.054 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.03/1.032, allocations: 157.4 MB / 1.207 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold): time 0.002317/1.034, allocations: 0.8203 MB / 1.208 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001259/1.035, allocations: 0.878 MB / 1.209 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/1.036, allocations: 0 / 1.209 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001444/1.036, allocations: 15.86 kB / 1.209 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.936e-05/1.036, allocations: 7.875 kB / 1.209 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002286/1.036, allocations: 27.91 kB / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001528/1.036, allocations: 79.78 kB / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/1.036, allocations: 27.97 kB / 1.209 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/1.036, allocations: 35.8 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.751e-05/1.037, allocations: 31.84 kB / 1.209 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/1.037, allocations: 8 kB / 1.209 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.223e-05/1.037, allocations: 4 kB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.257e-05/1.037, allocations: 11.94 kB / 1.209 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.944e-05/1.037, allocations: 35.78 kB / 1.209 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001311/1.037, allocations: 78 kB / 1.209 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/1.037, allocations: 0 / 1.209 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.783e-06/1.037, allocations: 0 / 1.209 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.307e-06/1.037, allocations: 0 / 1.209 GB, free: 11.45 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.0005605/1.037, allocations: 395.1 kB / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/1.037, allocations: 12.03 kB / 1.21 GB, free: 11 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.636e-05/1.037, allocations: 38.69 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.321e-05/1.038, allocations: 8.844 kB / 1.21 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002802/1.038, allocations: 198 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/1.038, allocations: 4.375 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/1.038, allocations: 4.375 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/1.038, allocations: 70.16 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/1.038, allocations: 11.88 kB / 1.21 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/1.038, allocations: 4 kB / 1.21 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/1.038, allocations: 3.938 kB / 1.21 GB, free: 10.62 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/1.038, allocations: 31.98 kB / 1.21 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004678/1.039, allocations: 312.8 kB / 1.21 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/1.039, allocations: 54.5 kB / 1.21 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.355e-05/1.039, allocations: 21 kB / 1.21 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/1.039, allocations: 0 / 1.21 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/1.039, allocations: 30.56 kB / 1.21 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.693e-06/1.039, allocations: 0 / 1.21 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.000259/1.039, allocations: 73.61 kB / 1.211 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/1.039, allocations: 51.41 kB / 1.211 GB, free: 9.965 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/1.039, allocations: 137.7 kB / 1.211 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/1.039, allocations: 29.7 kB / 1.211 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.79e-05/1.039, allocations: 96.12 kB / 1.211 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.69e-05/1.039, allocations: 11.89 kB / 1.211 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.944e-05/1.04, allocations: 21.7 kB / 1.211 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001071/1.04, allocations: 314.8 kB / 1.211 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.279e-05/1.04, allocations: 19.98 kB / 1.211 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.508e-05/1.04, allocations: 20.17 kB / 1.211 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.293e-05/1.04, allocations: 28.92 kB / 1.211 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/1.04, allocations: 4 kB / 1.211 GB, free: 9.258 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001338/1.04, allocations: 65.53 kB / 1.211 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/1.04, allocations: 5.875 kB / 1.211 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/1.04, allocations: 4 kB / 1.211 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/1.04, allocations: 0 / 1.211 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.78e-05/1.04, allocations: 11.98 kB / 1.211 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/1.04, allocations: 0 / 1.211 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.839e-05/1.04, allocations: 11.92 kB / 1.211 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/1.04, allocations: 7.938 kB / 1.211 GB, free: 9.148 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 8.642e-05/1.04, allocations: 113.8 kB / 1.211 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.666e-05/1.04, allocations: 3.906 kB / 1.211 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.541e-05/1.04, allocations: 16.23 kB / 1.211 GB, free: 9 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/1.04, allocations: 0 / 1.211 GB, free: 9 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/1.04, allocations: 4 kB / 1.211 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/1.04, allocations: 0 / 1.211 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/1.041, allocations: 193.5 kB / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/1.041, allocations: 0 / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.948e-05/1.041, allocations: 4 kB / 1.212 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/1.041, allocations: 0 / 1.212 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/1.041, allocations: 4 kB / 1.212 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/1.041, allocations: 7.922 kB / 1.212 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/1.041, allocations: 0 / 1.212 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001758/1.041, allocations: 163.4 kB / 1.212 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.895e-05/1.041, allocations: 81.02 kB / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/1.041, allocations: 8 kB / 1.212 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.761e-05/1.041, allocations: 7.984 kB / 1.212 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.605e-05/1.041, allocations: 7.984 kB / 1.212 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/1.041, allocations: 0 / 1.212 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.337e-05/1.041, allocations: 107.2 kB / 1.212 GB, free: 8.34 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/1.041, allocations: 4 kB / 1.212 GB, free: 8.336 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002258/1.041, allocations: 8 kB / 1.212 GB, free: 8.328 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.0004714/1.042, allocations: 0.6967 MB / 1.213 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001595/1.042, allocations: 31.98 kB / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/1.042, allocations: 4 kB / 1.213 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.97e-05/1.042, allocations: 24.16 kB / 1.213 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/1.042, allocations: 5.719 kB / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001495/1.044, allocations: 1.39 MB / 1.214 GB, free: 6.074 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/1.044, allocations: 0.6924 MB / 1.215 GB, free: 5.355 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.084e-05/1.044, allocations: 4 kB / 1.215 GB, free: 5.352 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.66e-05/1.044, allocations: 23.42 kB / 1.215 GB, free: 5.328 MB / 0.9356 GB Notification: Performance of SimCode: time 4.11e-07/1.044, allocations: 0 / 1.215 GB, free: 5.328 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02037/1.065, allocations: 1.995 MB / 1.217 GB, free: 3.445 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.55/8.615, allocations: 15.38 kB / 1.217 GB, free: 3.434 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