Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.LessThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.001181/0.001181, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 192.7 kB / 16.53 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.208/1.208, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.255/2.255, allocations: 390.3 MB / 0.6647 GB, free: 324 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 59.91 kB / 0.8127 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6235/0.6247, allocations: 140.4 MB / 0.9497 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.002591/0.6274, allocations: 1.921 MB / 0.9516 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.6287, allocations: 1.104 MB / 0.9527 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.6288, allocations: 5.594 kB / 0.9527 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003274/0.6292, allocations: 114.2 kB / 0.9528 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.6294, allocations: 107.3 kB / 0.9529 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002989/0.6297, allocations: 151.1 kB / 0.9531 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000202/0.6299, allocations: 199.6 kB / 0.9533 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.6301, allocations: 51.38 kB / 0.9533 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.6302, allocations: 92.06 kB / 0.9534 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.6303, allocations: 97.12 kB / 0.9535 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.614e-05/0.6303, allocations: 10.16 kB / 0.9535 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.6304, allocations: 49.98 kB / 0.9535 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.555e-05/0.6305, allocations: 64.34 kB / 0.9536 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.378e-05/0.6306, allocations: 92.47 kB / 0.9537 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002448/0.6308, allocations: 273.9 kB / 0.954 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.6308, allocations: 0 / 0.954 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.894e-06/0.6308, allocations: 4.875 kB / 0.954 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.91e-06/0.6309, allocations: 0 / 0.954 GB, free: 5.887 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006381/0.6315, allocations: 0.5352 MB / 0.9545 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.6315, allocations: 10.03 kB / 0.9545 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.672e-05/0.6316, allocations: 39.86 kB / 0.9545 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.806e-05/0.6316, allocations: 36.66 kB / 0.9546 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.632, allocations: 379 kB / 0.9549 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.632, allocations: 7.531 kB / 0.9549 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.6321, allocations: 8.5 kB / 0.9549 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001461/0.6322, allocations: 76.91 kB / 0.955 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.6322, allocations: 1.156 kB / 0.955 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.6322, allocations: 0 / 0.955 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.6322, allocations: 10.33 kB / 0.955 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.766e-05/0.6323, allocations: 51.09 kB / 0.9551 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005024/0.6329, allocations: 404.6 kB / 0.9555 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.6331, allocations: 90.75 kB / 0.9555 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.739e-05/0.6332, allocations: 25.64 kB / 0.9556 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.6332, allocations: 0.9688 kB / 0.9556 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001313/0.6333, allocations: 77.52 kB / 0.9556 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.6333, allocations: 0 / 0.9556 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002745/0.6336, allocations: 140.7 kB / 0.9558 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.999e-05/0.6336, allocations: 56.53 kB / 0.9558 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.6339, allocations: 307.1 kB / 0.9561 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.6339, allocations: 27.45 kB / 0.9561 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.196e-05/0.6339, allocations: 143.8 kB / 0.9563 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.634, allocations: 27.58 kB / 0.9563 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.74e-05/0.634, allocations: 43.8 kB / 0.9564 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.748e-05/0.6341, allocations: 334.6 kB / 0.9567 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.501e-05/0.6342, allocations: 41.08 kB / 0.9567 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.006e-05/0.6343, allocations: 66.72 kB / 0.9568 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000128/0.6344, allocations: 76.11 kB / 0.9568 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.6344, allocations: 0 / 0.9568 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002347/0.6347, allocations: 167.3 kB / 0.957 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.6347, allocations: 4.406 kB / 0.957 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.6347, allocations: 2 kB / 0.957 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.6347, allocations: 7.969 kB / 0.957 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.6348, allocations: 26.27 kB / 0.957 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.6348, allocations: 1.281 kB / 0.957 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.6349, allocations: 20.11 kB / 0.9571 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.635, allocations: 6.875 kB / 0.9571 GB, free: 3.211 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.timTabLin.tab.nextTimeEvent,$whenCondition1,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,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 (18): * Single equations (assignments): 18 * 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.423e-05/0.6351, allocations: 157.9 kB / 0.9572 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.84e-05/0.6351, allocations: 25.33 kB / 0.9572 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.549e-05/0.6351, allocations: 28.73 kB / 0.9573 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.6351, allocations: 4 kB / 0.9573 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.6352, allocations: 1.375 kB / 0.9573 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.6352, allocations: 3.984 kB / 0.9573 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000124/0.6353, allocations: 241.4 kB / 0.9575 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.6353, allocations: 0 / 0.9575 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.142e-05/0.6353, allocations: 4.125 kB / 0.9575 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.6353, allocations: 7.938 kB / 0.9575 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.6353, allocations: 9.312 kB / 0.9575 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.6353, allocations: 0 / 0.9575 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.6353, allocations: 1.375 kB / 0.9575 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001786/0.6355, allocations: 134.1 kB / 0.9577 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.382e-05/0.6356, allocations: 105.6 kB / 0.9578 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.784e-05/0.6356, allocations: 10.38 kB / 0.9578 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.916e-05/0.6357, allocations: 9.984 kB / 0.9578 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.56e-05/0.6357, allocations: 12.2 kB / 0.9578 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-06/0.6358, allocations: 3.25 kB / 0.9578 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001596/0.6359, allocations: 220.5 kB / 0.958 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6359, allocations: 0 / 0.958 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002298/0.6362, allocations: 39.67 kB / 0.958 GB, free: 2.375 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,les.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 3 (timTabLin.tab.nextTimeEventScaled,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001096/0.6373, allocations: 0.9745 MB / 0.959 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002097/0.6375, allocations: 107.5 kB / 0.9591 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.6375, allocations: 0 / 0.9591 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.12e-05/0.6376, allocations: 33.77 kB / 0.9591 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.6379, allocations: 49.27 kB / 0.9592 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001959/0.6398, allocations: 2.231 MB / 0.9614 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.6401, allocations: 0.7462 MB / 0.9621 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001174/0.6403, allocations: 44.83 kB / 0.9621 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001079/0.6404, allocations: 79.66 kB / 0.9622 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.6404, allocations: 0 / 0.9622 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.243/1.884, allocations: 5.126 MB / 0.9672 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/13.09, allocations: 8.719 kB / 0.9672 GB, free: 12.53 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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,timTabLin.extrapolation,timTabLin.offset[1],timTabLin.smoothness,timTabLin.table[1,1],timTabLin.table[1,2],timTabLin.table[2,1],timTabLin.table[2,2],timTabLin.table[3,1],timTabLin.table[3,2],timTabLin.table[4,1],timTabLin.table[4,2],timTabLin.table[5,1],timTabLin.table[5,2],timTabLin.table[6,1],timTabLin.table[6,2],timTabLin.table[7,1],timTabLin.table[7,2],timTabLin.timeScale,timTabLin.y[1],time