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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008243/0.0008243, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.004964/0.004964, allocations: 170.6 kB / 16.27 MB, free: 6.648 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.192/1.192, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.068/2.068, allocations: 390.9 MB / 0.6664 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003203/0.0003203, allocations: 15.98 kB / 0.8161 GB, free: 13.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5221/0.5224, allocations: 142.4 MB / 0.9552 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.001662/0.5241, allocations: 1.626 MB / 0.9568 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00133/0.5255, allocations: 1.068 MB / 0.9578 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.5256, allocations: 3.781 kB / 0.9578 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003014/0.5259, allocations: 108.6 kB / 0.9579 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001928/0.5261, allocations: 89.75 kB / 0.958 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.5264, allocations: 128.3 kB / 0.9581 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002046/0.5266, allocations: 202.9 kB / 0.9583 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.5268, allocations: 44.06 kB / 0.9584 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.5269, allocations: 85.45 kB / 0.9585 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.527, allocations: 84.61 kB / 0.9585 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.527, allocations: 2.688 kB / 0.9585 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.5271, allocations: 53.94 kB / 0.9586 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.907e-05/0.5272, allocations: 49.19 kB / 0.9586 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.434e-05/0.5273, allocations: 102.2 kB / 0.9587 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002287/0.5275, allocations: 263.4 kB / 0.959 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.5275, allocations: 0 / 0.959 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.172e-06/0.5275, allocations: 7.875 kB / 0.959 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.5275, allocations: 1.312 kB / 0.959 GB, free: 4.695 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.0006036/0.5282, allocations: 0.5064 MB / 0.9595 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.5282, allocations: 9 kB / 0.9595 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.865e-05/0.5282, allocations: 40.05 kB / 0.9595 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.652e-05/0.5283, allocations: 28.02 kB / 0.9596 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.5287, allocations: 381.1 kB / 0.9599 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.5287, allocations: 14.09 kB / 0.9599 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.682e-05/0.5287, allocations: 5.656 kB / 0.9599 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001411/0.5289, allocations: 80.31 kB / 0.96 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.191e-06/0.5289, allocations: 0 / 0.96 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.5289, allocations: 5.188 kB / 0.96 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.5289, allocations: 1.281 kB / 0.96 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.333e-05/0.529, allocations: 44.22 kB / 0.9601 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004981/0.5295, allocations: 418.7 kB / 0.9605 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.5297, allocations: 85.03 kB / 0.9606 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.418e-05/0.5298, allocations: 33.16 kB / 0.9606 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.5298, allocations: 1.375 kB / 0.9606 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001224/0.5299, allocations: 86.55 kB / 0.9607 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.5299, allocations: 0 / 0.9607 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002614/0.5302, allocations: 136.3 kB / 0.9608 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.833e-05/0.5302, allocations: 56.77 kB / 0.9609 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.5305, allocations: 306.4 kB / 0.9611 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.5305, allocations: 30.73 kB / 0.9612 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.273e-05/0.5306, allocations: 140.9 kB / 0.9613 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.5306, allocations: 18.81 kB / 0.9613 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.152e-05/0.5306, allocations: 28.95 kB / 0.9614 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.74e-05/0.5307, allocations: 333.6 kB / 0.9617 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.529e-05/0.5308, allocations: 45.64 kB / 0.9617 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.716e-05/0.5309, allocations: 64.78 kB / 0.9618 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001235/0.531, allocations: 75.2 kB / 0.9618 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.531, allocations: 0.8125 kB / 0.9618 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002437/0.5312, allocations: 167.9 kB / 0.962 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.5313, allocations: 5.406 kB / 0.962 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.5313, allocations: 0 / 0.962 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.5313, allocations: 9.844 kB / 0.962 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.5314, allocations: 22.23 kB / 0.962 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.5314, allocations: 0.8438 kB / 0.962 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.5315, allocations: 23.23 kB / 0.9621 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.5315, allocations: 7.188 kB / 0.9621 GB, free: 2.051 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.81e-05/0.5316, allocations: 157.3 kB / 0.9622 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.5317, allocations: 25.72 kB / 0.9622 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.424e-05/0.5317, allocations: 31.78 kB / 0.9623 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.5317, allocations: 0.9688 kB / 0.9623 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.5317, allocations: 0.875 kB / 0.9623 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.5317, allocations: 0 / 0.9623 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001317/0.5319, allocations: 240.9 kB / 0.9625 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.5319, allocations: 8.734 kB / 0.9625 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.19e-05/0.5319, allocations: 7.844 kB / 0.9625 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.5319, allocations: 3.938 kB / 0.9625 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.5319, allocations: 6.094 kB / 0.9625 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.5319, allocations: 0 / 0.9625 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.5319, allocations: 5.062 kB / 0.9625 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001736/0.5321, allocations: 130.9 kB / 0.9627 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.631e-05/0.5322, allocations: 105.6 kB / 0.9628 GB, free: 1.387 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.5322, allocations: 6.375 kB / 0.9628 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.255e-05/0.5323, allocations: 16.89 kB / 0.9628 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.5323, allocations: 17.31 kB / 0.9628 GB, free: 1.363 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.5324, allocations: 5.781 kB / 0.9628 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001622/0.5325, allocations: 216.4 kB / 0.963 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5325, allocations: 1.094 kB / 0.963 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002261/0.5328, allocations: 34.52 kB / 0.9631 GB, free: 1.219 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.001046/0.5338, allocations: 0.9802 MB / 0.964 GB, free: 492 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001857/0.534, allocations: 99.27 kB / 0.9641 GB, free: 444 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.534, allocations: 1.031 kB / 0.9641 GB, free: 444 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.585e-05/0.5341, allocations: 30.2 kB / 0.9641 GB, free: 432 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.5344, allocations: 52.36 kB / 0.9642 GB, free: 400 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.5366, allocations: 2.252 MB / 0.9664 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.5368, allocations: 0.7488 MB / 0.9671 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001178/0.537, allocations: 46.11 kB / 0.9672 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.5371, allocations: 73.84 kB / 0.9672 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.5371, allocations: 1.031 kB / 0.9672 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.624/3.161, allocations: 4.657 MB / 0.9718 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002562/3.162, allocations: 255.2 kB / 0.972 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.649/4.81, allocations: 0 / 0.972 GB, free: 11.5 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