Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold,fileNamePrefix="Buildings_10_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.009862/0.009862, allocations: 102 kB / 15.73 MB, free: 6.477 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.001868/0.001869, allocations: 195.6 kB / 16.67 MB, free: 6.391 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.619/2.619, allocations: 437 MB / 0.7105 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.91 kB / 1.018 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.354, allocations: 151.6 MB / 1.166 GB, free: 7.227 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold): time 0.00249/0.3565, allocations: 0.8287 MB / 1.167 GB, free: 6.398 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001445/0.358, allocations: 0.8701 MB / 1.168 GB, free: 5.516 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.3581, allocations: 4 kB / 1.168 GB, free: 5.512 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.3583, allocations: 15.86 kB / 1.168 GB, free: 5.496 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.03e-05/0.3584, allocations: 7.875 kB / 1.168 GB, free: 5.488 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002046/0.3586, allocations: 31.91 kB / 1.168 GB, free: 5.457 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.3587, allocations: 75.77 kB / 1.168 GB, free: 5.383 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001376/0.3589, allocations: 35.98 kB / 1.168 GB, free: 5.348 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.359, allocations: 31.8 kB / 1.168 GB, free: 5.316 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 8.689e-05/0.3591, allocations: 31.84 kB / 1.168 GB, free: 5.285 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.158e-05/0.3591, allocations: 4 kB / 1.168 GB, free: 5.281 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.742e-05/0.3591, allocations: 8 kB / 1.168 GB, free: 5.273 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.351e-05/0.3592, allocations: 11.92 kB / 1.168 GB, free: 5.262 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.633e-05/0.3592, allocations: 35.86 kB / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.3594, allocations: 78.48 kB / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3594, allocations: 0 / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.824e-06/0.3594, allocations: 0 / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.077e-05/0.3594, allocations: 4 kB / 1.168 GB, free: 5.148 MB / 0.92 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.0007487/0.3602, allocations: 380 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.3602, allocations: 12.02 kB / 1.169 GB, free: 4.715 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.3603, allocations: 38.69 kB / 1.169 GB, free: 4.668 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.602e-05/0.3603, allocations: 12.84 kB / 1.169 GB, free: 4.656 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.3607, allocations: 200.1 kB / 1.169 GB, free: 4.422 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.3607, allocations: 384 / 1.169 GB, free: 4.422 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.3607, allocations: 4.375 kB / 1.169 GB, free: 4.418 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001652/0.3609, allocations: 62.23 kB / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.3609, allocations: 7.922 kB / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3609, allocations: 0 / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.3609, allocations: 7.984 kB / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001141/0.361, allocations: 35.92 kB / 1.169 GB, free: 4.301 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005211/0.3616, allocations: 328.6 kB / 1.169 GB, free: 3.93 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001504/0.3617, allocations: 42.59 kB / 1.169 GB, free: 3.879 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.823e-05/0.3618, allocations: 25 kB / 1.169 GB, free: 3.852 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.3618, allocations: 0 / 1.169 GB, free: 3.852 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.3619, allocations: 38.56 kB / 1.169 GB, free: 3.805 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 2.615e-06/0.3619, allocations: 0 / 1.169 GB, free: 3.805 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003923/0.3623, allocations: 77.48 kB / 1.169 GB, free: 3.723 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.3623, allocations: 51.41 kB / 1.169 GB, free: 3.66 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.3624, allocations: 139.8 kB / 1.17 GB, free: 3.516 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 7.227e-05/0.3625, allocations: 29.7 kB / 1.17 GB, free: 3.48 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.908e-05/0.3626, allocations: 96.12 kB / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.3626, allocations: 7.906 kB / 1.17 GB, free: 3.375 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-05/0.3627, allocations: 17.7 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002004/0.3629, allocations: 322.8 kB / 1.17 GB, free: 3.027 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.476e-05/0.3629, allocations: 15.98 kB / 1.17 GB, free: 3.012 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.9e-05/0.363, allocations: 12 kB / 1.17 GB, free: 3 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.823e-05/0.3631, allocations: 36.83 kB / 1.17 GB, free: 2.961 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3631, allocations: 0 / 1.17 GB, free: 2.961 MB / 0.92 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001418/0.3633, allocations: 69.53 kB / 1.17 GB, free: 2.887 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.3633, allocations: 4 kB / 1.17 GB, free: 2.883 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3633, allocations: 0 / 1.17 GB, free: 2.883 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.3633, allocations: 0 / 1.17 GB, free: 2.883 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.675e-05/0.3634, allocations: 7.984 kB / 1.17 GB, free: 2.875 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3634, allocations: 0 / 1.17 GB, free: 2.875 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.459e-05/0.3635, allocations: 11.98 kB / 1.17 GB, free: 2.863 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.3635, allocations: 7.938 kB / 1.17 GB, free: 2.855 MB / 0.92 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.066e-05/0.3636, allocations: 113.8 kB / 1.17 GB, free: 2.734 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.93e-05/0.3636, allocations: 7.906 kB / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.198e-05/0.3637, allocations: 8.25 kB / 1.17 GB, free: 2.711 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3637, allocations: 7.984 kB / 1.17 GB, free: 2.703 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.3637, allocations: 4 kB / 1.17 GB, free: 2.699 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.3637, allocations: 0 / 1.17 GB, free: 2.699 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002336/0.3639, allocations: 181.6 kB / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3639, allocations: 0 / 1.171 GB, free: 2.473 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.156e-05/0.364, allocations: 8 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.364, allocations: 0 / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.364, allocations: 0 / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.364, allocations: 3.938 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.364, allocations: 0 / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002433/0.3643, allocations: 159.7 kB / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.19e-05/0.3643, allocations: 93.03 kB / 1.171 GB, free: 2.18 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.3644, allocations: 0 / 1.171 GB, free: 2.18 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.628e-05/0.3645, allocations: 19.92 kB / 1.171 GB, free: 2.16 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.412e-05/0.3645, allocations: 11.98 kB / 1.171 GB, free: 2.148 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-06/0.3645, allocations: 0 / 1.171 GB, free: 2.148 MB / 0.92 GB Notification: Performance of sorting global known variables: time 7.348e-05/0.3646, allocations: 104.9 kB / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of sort global known variables: time 6.41e-07/0.3646, allocations: 0 / 1.171 GB, free: 2.047 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002294/0.3649, allocations: 11.94 kB / 1.171 GB, free: 2.035 MB / 0.92 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.0005449/0.3654, allocations: 0.7006 MB / 1.172 GB, free: 1.309 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001601/0.3656, allocations: 35.97 kB / 1.172 GB, free: 1.273 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3656, allocations: 4 kB / 1.172 GB, free: 1.27 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 5.14e-05/0.3657, allocations: 15.92 kB / 1.172 GB, free: 1.254 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.3659, allocations: 8 kB / 1.172 GB, free: 1.246 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001815/0.3678, allocations: 1.382 MB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005104/0.3683, allocations: 0.6885 MB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.731e-05/0.3683, allocations: 4 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.819e-05/0.3684, allocations: 27.42 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of SimCode: time 2.91e-07/0.3684, allocations: 0 / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02023/0.3887, allocations: 2.005 MB / 1.176 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.569/7.958, allocations: 7.156 kB / 1.176 GB, free: 13.14 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_LessThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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