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.006544/0.006544, allocations: 99.95 kB / 15.73 MB, free: 6.473 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.001498/0.001498, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.433/2.433, allocations: 390.2 MB / 0.6648 GB, free: 260 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 73.09 kB / 0.9505 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.3199, allocations: 140.4 MB / 1.088 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.004783/0.3247, allocations: 1.926 MB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002865/0.3276, allocations: 1.104 MB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002352/0.3279, allocations: 7.938 kB / 1.091 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005487/0.3285, allocations: 115.5 kB / 1.091 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004497/0.3289, allocations: 107.6 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006557/0.3296, allocations: 159.5 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004243/0.33, allocations: 195.5 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/0.3303, allocations: 53.64 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002546/0.3306, allocations: 99.59 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000211/0.3308, allocations: 99.55 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.956e-05/0.3308, allocations: 8 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001689/0.331, allocations: 51.97 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.3311, allocations: 55.83 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001344/0.3313, allocations: 95.34 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004678/0.3318, allocations: 270.8 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3318, allocations: 0 / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.264e-06/0.3318, allocations: 4 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.698e-06/0.3318, allocations: 0 / 1.092 GB, free: 13.63 MB / 0.8575 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.001169/0.333, allocations: 0.5506 MB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.3331, allocations: 11.97 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.591e-05/0.3331, allocations: 42.69 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.3332, allocations: 20.66 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007584/0.334, allocations: 391.4 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.334, allocations: 8.125 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.675e-05/0.3341, allocations: 8 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.3343, allocations: 85.39 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.3344, allocations: 0 / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.3344, allocations: 0 / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.3344, allocations: 4 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001573/0.3346, allocations: 43.91 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009008/0.3355, allocations: 396.6 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000342/0.3358, allocations: 86.59 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.638e-05/0.3359, allocations: 32.84 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.336, allocations: 4 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/0.3362, allocations: 83.33 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.973e-06/0.3362, allocations: 0 / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004649/0.3367, allocations: 137.2 kB / 1.094 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.3368, allocations: 55.41 kB / 1.094 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004503/0.3372, allocations: 310.8 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.3373, allocations: 29.7 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.3374, allocations: 148 kB / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.513e-05/0.3375, allocations: 19.8 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.806e-05/0.3376, allocations: 41.7 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.3377, allocations: 334.8 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.3379, allocations: 43.98 kB / 1.095 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.3381, allocations: 63 kB / 1.095 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/0.3383, allocations: 87.69 kB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3383, allocations: 0 / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004419/0.3388, allocations: 161.4 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.3388, allocations: 4 kB / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.3388, allocations: 4 kB / 1.095 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.3388, allocations: 3.938 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.339, allocations: 23.92 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.339, allocations: 4 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.3392, allocations: 23.95 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-05/0.3393, allocations: 4 kB / 1.095 GB, free: 10.18 MB / 0.8575 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 0.0001979/0.3395, allocations: 161.8 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.557e-05/0.3395, allocations: 19.72 kB / 1.095 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.747e-05/0.3396, allocations: 29.73 kB / 1.095 GB, free: 9.965 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.3396, allocations: 3.984 kB / 1.095 GB, free: 9.961 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3396, allocations: 0 / 1.095 GB, free: 9.961 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3396, allocations: 3.938 kB / 1.095 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002698/0.3399, allocations: 245.6 kB / 1.095 GB, free: 9.668 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3399, allocations: 0 / 1.095 GB, free: 9.668 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.426e-05/0.34, allocations: 8 kB / 1.095 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.34, allocations: 0 / 1.095 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.34, allocations: 7.938 kB / 1.095 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.34, allocations: 0 / 1.095 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.34, allocations: 0 / 1.095 GB, free: 9.652 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003033/0.3403, allocations: 132.8 kB / 1.095 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.172e-05/0.3404, allocations: 104.7 kB / 1.096 GB, free: 9.383 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.179e-05/0.3405, allocations: 7.938 kB / 1.096 GB, free: 9.375 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.3406, allocations: 11.98 kB / 1.096 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.703e-05/0.3407, allocations: 11.98 kB / 1.096 GB, free: 9.352 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.3407, allocations: 8 kB / 1.096 GB, free: 9.344 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002914/0.341, allocations: 213.9 kB / 1.096 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.71e-07/0.341, allocations: 0 / 1.096 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004289/0.3415, allocations: 44.02 kB / 1.096 GB, free: 9.094 MB / 0.8575 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.00193/0.3434, allocations: 0.9778 MB / 1.097 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003245/0.3437, allocations: 99.83 kB / 1.097 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3438, allocations: 0 / 1.097 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.3439, allocations: 35.92 kB / 1.097 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004984/0.3444, allocations: 60.09 kB / 1.097 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00359/0.348, allocations: 2.203 MB / 1.099 GB, free: 5.766 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.3484, allocations: 0.7519 MB / 1.1 GB, free: 4.988 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001152/0.3485, allocations: 41.92 kB / 1.1 GB, free: 4.945 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.3486, allocations: 75.41 kB / 1.1 GB, free: 4.871 MB / 0.8575 GB Notification: Performance of SimCode: time 3.01e-07/0.3486, allocations: 0 / 1.1 GB, free: 4.871 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02283/0.3715, allocations: 5.231 MB / 1.105 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.729/8.101, allocations: 6.469 kB / 1.105 GB, free: 15.73 MB / 0.8731 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