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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001519/0.001519, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.406/1.406, allocations: 222.9 MB / 241 MB, free: 15.15 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.289/2.289, allocations: 390.3 MB / 0.6655 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002298/0.002298, allocations: 67.91 kB / 0.9516 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9193/0.9216, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.002885/0.9245, allocations: 1.936 MB / 1.091 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.926, allocations: 1.101 MB / 1.092 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.9261, allocations: 3.312 kB / 1.092 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003884/0.9266, allocations: 120.7 kB / 1.092 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002481/0.9268, allocations: 107.7 kB / 1.092 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.9272, allocations: 149.4 kB / 1.092 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002885/0.9275, allocations: 203.9 kB / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000166/0.9277, allocations: 47.11 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.9278, allocations: 94.72 kB / 1.092 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.928, allocations: 100.9 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.928, allocations: 10.5 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.9281, allocations: 56.2 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.212e-05/0.9282, allocations: 61.34 kB / 1.093 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.577e-05/0.9283, allocations: 84.97 kB / 1.093 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.9287, allocations: 280.4 kB / 1.093 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.9287, allocations: 0 / 1.093 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.203e-06/0.9287, allocations: 3.938 kB / 1.093 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.9287, allocations: 1.094 kB / 1.093 GB, free: 2.848 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.000717/0.9295, allocations: 0.5336 MB / 1.093 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.9295, allocations: 8.969 kB / 1.093 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.079e-05/0.9296, allocations: 23.81 kB / 1.093 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004641/0.93, allocations: 395.7 kB / 1.094 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.9301, allocations: 7.297 kB / 1.094 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.37e-05/0.9301, allocations: 12.8 kB / 1.094 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001812/0.9303, allocations: 78.17 kB / 1.094 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.9303, allocations: 0 / 1.094 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.9303, allocations: 1 kB / 1.094 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.9303, allocations: 1.562 kB / 1.094 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001088/0.9304, allocations: 43.48 kB / 1.094 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005586/0.931, allocations: 408.6 kB / 1.094 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002443/0.9313, allocations: 85.91 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.514e-05/0.9313, allocations: 32.08 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.854e-05/0.9314, allocations: 1.312 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001823/0.9316, allocations: 76.59 kB / 1.095 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.9316, allocations: 0.75 kB / 1.095 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.000385/0.932, allocations: 136 kB / 1.095 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.151e-05/0.932, allocations: 53.06 kB / 1.095 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004001/0.9324, allocations: 313.7 kB / 1.095 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.9324, allocations: 28 kB / 1.095 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.9326, allocations: 148.7 kB / 1.095 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/0.9326, allocations: 24.95 kB / 1.095 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.204e-05/0.9327, allocations: 41.55 kB / 1.095 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.411e-05/0.9328, allocations: 336.8 kB / 1.096 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.9329, allocations: 43.66 kB / 1.096 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.933, allocations: 63.47 kB / 1.096 GB, free: 0.6445 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.9332, allocations: 72.67 kB / 1.096 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.9332, allocations: 0.6094 kB / 1.096 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003095/0.9335, allocations: 173.7 kB / 1.096 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.9335, allocations: 5.25 kB / 1.096 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.9335, allocations: 4.906 kB / 1.096 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.9336, allocations: 6.141 kB / 1.096 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.9337, allocations: 25.23 kB / 1.096 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.9337, allocations: 6.031 kB / 1.096 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.9338, allocations: 14.55 kB / 1.096 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/0.9339, allocations: 7.609 kB / 1.096 GB, free: 0.4961 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.0001375/0.934, allocations: 154 kB / 1.096 GB, free: 376 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.59e-05/0.934, allocations: 22.41 kB / 1.096 GB, free: 364 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.788e-05/0.9341, allocations: 27.02 kB / 1.096 GB, free: 352 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.9341, allocations: 5.031 kB / 1.096 GB, free: 348 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.9341, allocations: 5.062 kB / 1.096 GB, free: 344 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.9341, allocations: 0.5156 kB / 1.096 GB, free: 344 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000209/0.9343, allocations: 241.2 kB / 1.096 GB, free: 120 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.9344, allocations: 1.094 kB / 1.096 GB, free: 120 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.439e-05/0.9344, allocations: 4.328 kB / 1.096 GB, free: 120 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.9344, allocations: 1.156 kB / 1.096 GB, free: 120 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.9344, allocations: 9.375 kB / 1.096 GB, free: 112 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.9344, allocations: 9.406 kB / 1.096 GB, free: 104 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.9344, allocations: 320 / 1.096 GB, free: 104 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/0.9346, allocations: 135.7 kB / 1.097 GB, free: 4 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 9.354e-05/0.9347, allocations: 103.2 kB / 1.097 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.257e-05/0.9348, allocations: 2.578 kB / 1.097 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.932e-05/0.9349, allocations: 13.39 kB / 1.097 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.962e-05/0.9349, allocations: 17.7 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.935, allocations: 3.75 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002416/0.9352, allocations: 217.2 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9352, allocations: 4 kB / 1.097 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004296/0.9356, allocations: 40.47 kB / 1.097 GB, free: 15.75 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.001154/0.9368, allocations: 417.5 kB / 1.097 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002629/0.9371, allocations: 93.52 kB / 1.097 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.9371, allocations: 4.812 kB / 1.097 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 8.618e-05/0.9372, allocations: 32.95 kB / 1.097 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003524/0.9376, allocations: 59.3 kB / 1.098 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000708/0.9383, allocations: 399.3 kB / 1.098 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.9386, allocations: 0.7537 MB / 1.099 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.469e-05/0.9387, allocations: 32.72 kB / 1.099 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.9387, allocations: 1.125 kB / 1.099 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of Templates: time 0.006489/0.9452, allocations: 3.303 MB / 1.102 GB, free: 14.12 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches