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.00985/0.00985, allocations: 101.3 kB / 15.73 MB, free: 6.422 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.001819/0.001819, allocations: 188.9 kB / 16.67 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.333/2.333, allocations: 222.9 MB / 240.4 MB, free: 4.348 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 4.006/4.006, allocations: 390.3 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002347/0.002347, allocations: 62.44 kB / 0.9505 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.383/0.3853, allocations: 140.4 MB / 1.088 GB, free: 1.949 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.00613/0.3915, allocations: 1.929 MB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003311/0.3949, allocations: 1.1 MB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003166/0.3953, allocations: 7.938 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000755/0.3962, allocations: 107.5 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006579/0.3969, allocations: 111.6 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009554/0.3979, allocations: 155.5 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006599/0.3986, allocations: 207.4 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002998/0.3989, allocations: 49.64 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003234/0.3992, allocations: 91.61 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002655/0.3995, allocations: 95.59 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.248e-05/0.3996, allocations: 12 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002785/0.3999, allocations: 59.89 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.4001, allocations: 51.83 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.4003, allocations: 99.34 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006446/0.4009, allocations: 270.8 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.401, allocations: 4 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.954e-06/0.401, allocations: 0 / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.135e-05/0.401, allocations: 0 / 1.092 GB, free: 13.6 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.001344/0.4024, allocations: 0.541 MB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/0.4024, allocations: 12.03 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.963e-05/0.4025, allocations: 42.67 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.4026, allocations: 24.66 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008523/0.4035, allocations: 383.5 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.4035, allocations: 8.125 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.312e-05/0.4036, allocations: 4 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003001/0.4039, allocations: 82.27 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.4039, allocations: 0 / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.27e-05/0.404, allocations: 4 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.404, allocations: 0 / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001927/0.4042, allocations: 49.3 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.4053, allocations: 400.6 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003871/0.4057, allocations: 86.61 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.777e-05/0.4058, allocations: 32.84 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.4059, allocations: 0 / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002382/0.4061, allocations: 83.38 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 2.645e-06/0.4061, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005638/0.4067, allocations: 133.2 kB / 1.094 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.4068, allocations: 51.41 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005646/0.4074, allocations: 318.8 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.4074, allocations: 29.64 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.4076, allocations: 152 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.404e-05/0.4076, allocations: 11.81 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.4078, allocations: 49.69 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001795/0.408, allocations: 334.8 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.4082, allocations: 39.98 kB / 1.095 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.4084, allocations: 71.94 kB / 1.095 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.4086, allocations: 83.69 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.4087, allocations: 0 / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005231/0.4092, allocations: 165.3 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.4092, allocations: 4 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.4093, allocations: 0 / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.301e-05/0.4093, allocations: 3.938 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001946/0.4095, allocations: 31.95 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.4095, allocations: 0 / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002018/0.4097, allocations: 15.94 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.072e-05/0.4098, allocations: 11.98 kB / 1.095 GB, free: 10.15 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.0002377/0.41, allocations: 157.8 kB / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.228e-05/0.4101, allocations: 23.72 kB / 1.095 GB, free: 9.965 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.459e-05/0.4102, allocations: 29.72 kB / 1.095 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.4102, allocations: 4 kB / 1.095 GB, free: 9.934 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.4102, allocations: 4 kB / 1.095 GB, free: 9.93 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.4103, allocations: 0 / 1.095 GB, free: 9.93 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003366/0.4106, allocations: 241.6 kB / 1.095 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.4106, allocations: 0 / 1.095 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.231e-05/0.4107, allocations: 7.984 kB / 1.095 GB, free: 9.637 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.89e-06/0.4107, allocations: 0 / 1.095 GB, free: 9.637 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.122e-05/0.4107, allocations: 3.938 kB / 1.095 GB, free: 9.633 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.4107, allocations: 320 / 1.095 GB, free: 9.633 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.4107, allocations: 4 kB / 1.095 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000381/0.4111, allocations: 140.8 kB / 1.095 GB, free: 9.473 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 9.825e-05/0.4112, allocations: 96.81 kB / 1.096 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.306e-05/0.4113, allocations: 7.938 kB / 1.096 GB, free: 9.352 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.4115, allocations: 11.98 kB / 1.096 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.428e-05/0.4116, allocations: 19.92 kB / 1.096 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.4116, allocations: 0 / 1.096 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003551/0.412, allocations: 221.9 kB / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3e-07/0.412, allocations: 0 / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005076/0.4125, allocations: 44.03 kB / 1.096 GB, free: 9.062 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.002351/0.4149, allocations: 0.9814 MB / 1.097 GB, free: 8.211 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003816/0.4153, allocations: 98.22 kB / 1.097 GB, free: 8.117 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.4153, allocations: 4.062 kB / 1.097 GB, free: 8.113 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001222/0.4154, allocations: 31.94 kB / 1.097 GB, free: 8.082 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006006/0.416, allocations: 54.27 kB / 1.097 GB, free: 8.027 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004321/0.4204, allocations: 2.187 MB / 1.099 GB, free: 5.754 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005315/0.4209, allocations: 0.7558 MB / 1.1 GB, free: 4.973 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002077/0.4212, allocations: 46.02 kB / 1.1 GB, free: 4.926 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002077/0.4214, allocations: 75.41 kB / 1.1 GB, free: 4.852 MB / 0.8575 GB Notification: Performance of SimCode: time 1.182e-06/0.4214, allocations: 0 / 1.1 GB, free: 4.852 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03839/0.4598, allocations: 5.23 MB / 1.105 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.51/13.97, allocations: 0 / 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