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.009897/0.009897, allocations: 102.7 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.001824/0.001824, allocations: 198 kB / 16.68 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.247/2.247, allocations: 390.3 MB / 0.6648 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 63.89 kB / 0.9505 GB, free: 8.07 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8442/0.8459, allocations: 140.4 MB / 1.088 GB, free: 5.25 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.003053/0.849, allocations: 1.932 MB / 1.089 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001769/0.8508, allocations: 1.099 MB / 1.09 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000176/0.851, allocations: 11.19 kB / 1.09 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004554/0.8515, allocations: 116.2 kB / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002879/0.8518, allocations: 102.5 kB / 1.091 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004355/0.8522, allocations: 149.8 kB / 1.091 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002948/0.8525, allocations: 203.8 kB / 1.091 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/0.8527, allocations: 51.44 kB / 1.091 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002049/0.8529, allocations: 94.14 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001829/0.8531, allocations: 105.5 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.619e-05/0.8532, allocations: 14 kB / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001759/0.8533, allocations: 51.95 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.559e-05/0.8535, allocations: 60.83 kB / 1.091 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.8536, allocations: 89.02 kB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000479/0.8541, allocations: 280.5 kB / 1.092 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.8541, allocations: 0 / 1.092 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.643e-06/0.8541, allocations: 0.8125 kB / 1.092 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.175e-05/0.8541, allocations: 0 / 1.092 GB, free: 2.551 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.0008818/0.855, allocations: 0.5383 MB / 1.092 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.855, allocations: 8.781 kB / 1.092 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.287e-05/0.8551, allocations: 35.06 kB / 1.092 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.205e-05/0.8551, allocations: 24.47 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005911/0.8557, allocations: 391.5 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.8558, allocations: 7.156 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.977e-05/0.8558, allocations: 11.89 kB / 1.093 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002096/0.856, allocations: 81.97 kB / 1.093 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.856, allocations: 0.8125 kB / 1.093 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.856, allocations: 5.203 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.8561, allocations: 1.344 kB / 1.093 GB, free: 1.66 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.8562, allocations: 43.16 kB / 1.093 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006865/0.8569, allocations: 400.1 kB / 1.093 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002533/0.8572, allocations: 89.91 kB / 1.093 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.806e-05/0.8572, allocations: 28.36 kB / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.8573, allocations: 2.875 kB / 1.093 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001616/0.8574, allocations: 72.33 kB / 1.093 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 2.224e-06/0.8574, allocations: 4 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003284/0.8578, allocations: 139.4 kB / 1.094 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.8578, allocations: 52.94 kB / 1.094 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004267/0.8582, allocations: 309.8 kB / 1.094 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.8583, allocations: 28.44 kB / 1.094 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.044e-05/0.8584, allocations: 147.9 kB / 1.094 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.8584, allocations: 21.66 kB / 1.094 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.18e-05/0.8585, allocations: 40.36 kB / 1.094 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.158e-05/0.8585, allocations: 342.1 kB / 1.094 GB, free: 368 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.8586, allocations: 43.56 kB / 1.095 GB, free: 352 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.8588, allocations: 63.19 kB / 1.095 GB, free: 316 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001499/0.8589, allocations: 75.06 kB / 1.095 GB, free: 276 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.8589, allocations: 4.688 kB / 1.095 GB, free: 272 kB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003148/0.8593, allocations: 163.4 kB / 1.095 GB, free: 188 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.8593, allocations: 8.844 kB / 1.095 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.8593, allocations: 0.8125 kB / 1.095 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.8593, allocations: 10.08 kB / 1.095 GB, free: 176 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.8595, allocations: 24.97 kB / 1.095 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.934e-06/0.8595, allocations: 1.562 kB / 1.095 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.8596, allocations: 19.97 kB / 1.095 GB, free: 164 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.312e-05/0.8596, allocations: 7.859 kB / 1.095 GB, free: 164 kB / 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.0001485/0.8598, allocations: 156.7 kB / 1.095 GB, free: 28 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.831e-05/0.8598, allocations: 22.56 kB / 1.095 GB, free: 16 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.017e-05/0.8599, allocations: 31.61 kB / 1.095 GB, free: 0 / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.8599, allocations: 0.625 kB / 1.095 GB, free: 0 / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.8599, allocations: 1.609 kB / 1.095 GB, free: 0 / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.729e-05/0.86, allocations: 0.8125 kB / 1.095 GB, free: 0 / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002842/0.8603, allocations: 241.2 kB / 1.095 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.8603, allocations: 7.766 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.592e-05/0.8603, allocations: 4.156 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.8603, allocations: 1.672 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/0.8603, allocations: 9.453 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.8604, allocations: 5.703 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.8604, allocations: 0 / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002751/0.8606, allocations: 127.8 kB / 1.095 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.965e-05/0.8607, allocations: 103.6 kB / 1.096 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.297e-05/0.8608, allocations: 6.578 kB / 1.096 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.907e-05/0.8609, allocations: 9.75 kB / 1.096 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.617e-05/0.8609, allocations: 13.14 kB / 1.096 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.8609, allocations: 8.031 kB / 1.096 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002558/0.8612, allocations: 215.6 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.653e-06/0.8612, allocations: 1.031 kB / 1.096 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.00027/0.8615, allocations: 43.78 kB / 1.096 GB, free: 15.42 MB / 0.8731 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.001427/0.8629, allocations: 0.9934 MB / 1.097 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002724/0.8632, allocations: 97.17 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.8632, allocations: 0 / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 9.007e-05/0.8633, allocations: 29.53 kB / 1.097 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.8637, allocations: 54.53 kB / 1.097 GB, free: 14.61 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002848/0.8665, allocations: 2.214 MB / 1.099 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.8669, allocations: 0.7536 MB / 1.1 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000136/0.867, allocations: 38.62 kB / 1.1 GB, free: 12.43 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001542/0.8672, allocations: 78.47 kB / 1.1 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of SimCode: time 6.71e-07/0.8672, allocations: 0 / 1.1 GB, free: 12.37 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02369/0.8909, allocations: 5.302 MB / 1.105 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.989/8.88, allocations: 10.44 kB / 1.105 GB, free: 11.57 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