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.001227/0.001227, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001162/0.001162, allocations: 196.8 kB / 16.14 MB, free: 6.734 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.286/1.286, allocations: 222.9 MB / 239.8 MB, free: 4.613 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.109/2.109, allocations: 390.2 MB / 0.6643 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 67.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5415/0.5428, allocations: 140.4 MB / 0.9491 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.002353/0.5452, allocations: 1.978 MB / 0.951 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001179/0.5464, allocations: 1.093 MB / 0.9521 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.005e-05/0.5465, allocations: 6.531 kB / 0.9521 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002364/0.5467, allocations: 109.8 kB / 0.9522 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.5469, allocations: 93.44 kB / 0.9523 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002361/0.5472, allocations: 128.9 kB / 0.9524 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001536/0.5473, allocations: 194.1 kB / 0.9526 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.348e-05/0.5474, allocations: 48.86 kB / 0.9526 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.466e-05/0.5475, allocations: 82.31 kB / 0.9527 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.346e-05/0.5476, allocations: 98.36 kB / 0.9528 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.5476, allocations: 8.406 kB / 0.9528 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.783e-05/0.5477, allocations: 42.58 kB / 0.9528 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.429e-05/0.5478, allocations: 61.8 kB / 0.9529 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.949e-05/0.5478, allocations: 85.52 kB / 0.953 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000196/0.548, allocations: 267.4 kB / 0.9532 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.548, allocations: 0 / 0.9532 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of FrontEnd: time 5.21e-07/0.5481, allocations: 0 / 0.9532 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.406e-06/0.5481, allocations: 1 kB / 0.9532 GB, free: 5.984 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.0005084/0.5486, allocations: 0.5425 MB / 0.9538 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.428e-05/0.5486, allocations: 9.844 kB / 0.9538 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.083e-05/0.5486, allocations: 40.83 kB / 0.9538 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.916e-05/0.5487, allocations: 24.09 kB / 0.9538 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003416/0.549, allocations: 383 kB / 0.9542 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.227e-06/0.549, allocations: 11.97 kB / 0.9542 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.5491, allocations: 3.969 kB / 0.9542 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.5492, allocations: 77.16 kB / 0.9543 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.829e-06/0.5492, allocations: 0 / 0.9543 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.416e-06/0.5492, allocations: 5.25 kB / 0.9543 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.146e-06/0.5492, allocations: 1.188 kB / 0.9543 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.997e-05/0.5493, allocations: 49.02 kB / 0.9543 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000426/0.5498, allocations: 408.3 kB / 0.9547 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.55, allocations: 86.53 kB / 0.9548 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.304e-05/0.55, allocations: 25.23 kB / 0.9548 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.55, allocations: 1.062 kB / 0.9548 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001159/0.5502, allocations: 85.8 kB / 0.9549 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.5502, allocations: 0 / 0.9549 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002483/0.5504, allocations: 136.9 kB / 0.9551 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.466e-05/0.5504, allocations: 56.59 kB / 0.9551 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002316/0.5507, allocations: 302.3 kB / 0.9554 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.134e-05/0.5507, allocations: 26.86 kB / 0.9554 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.641e-05/0.5508, allocations: 144.7 kB / 0.9556 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.5508, allocations: 27.92 kB / 0.9556 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-05/0.5508, allocations: 47.64 kB / 0.9556 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.55e-05/0.5509, allocations: 333.5 kB / 0.956 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.556e-05/0.551, allocations: 41.86 kB / 0.956 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.743e-05/0.5511, allocations: 63.28 kB / 0.9561 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001161/0.5512, allocations: 81.7 kB / 0.9561 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.5512, allocations: 0 / 0.9561 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002312/0.5514, allocations: 164.3 kB / 0.9563 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/0.5515, allocations: 5.562 kB / 0.9563 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-06/0.5515, allocations: 0 / 0.9563 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.5515, allocations: 4.938 kB / 0.9563 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.247e-05/0.5516, allocations: 26.64 kB / 0.9563 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.5516, allocations: 2.031 kB / 0.9563 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.54e-05/0.5517, allocations: 18.86 kB / 0.9563 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.5517, allocations: 10.38 kB / 0.9564 GB, free: 3.309 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 8.94e-05/0.5518, allocations: 157.8 kB / 0.9565 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.831e-05/0.5518, allocations: 22.41 kB / 0.9565 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.316e-05/0.5519, allocations: 31.88 kB / 0.9566 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.5519, allocations: 1.594 kB / 0.9566 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.5519, allocations: 7.938 kB / 0.9566 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.5519, allocations: 11.91 kB / 0.9566 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.552, allocations: 246 kB / 0.9568 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.552, allocations: 0 / 0.9568 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.066e-05/0.5521, allocations: 3.25 kB / 0.9568 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.5521, allocations: 1.188 kB / 0.9568 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.5521, allocations: 9.125 kB / 0.9568 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.5521, allocations: 0 / 0.9568 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.5521, allocations: 0 / 0.9568 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001742/0.5523, allocations: 135.6 kB / 0.957 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.1e-05/0.5523, allocations: 98.27 kB / 0.957 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.54e-05/0.5523, allocations: 5.25 kB / 0.957 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.596e-05/0.5524, allocations: 14.52 kB / 0.9571 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.284e-05/0.5525, allocations: 11.89 kB / 0.9571 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-06/0.5525, allocations: 3.281 kB / 0.9571 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001517/0.5526, allocations: 220.2 kB / 0.9573 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5526, allocations: 0 / 0.9573 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002121/0.5529, allocations: 35.17 kB / 0.9573 GB, free: 2.48 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.00103/0.5539, allocations: 0.9839 MB / 0.9583 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001748/0.5541, allocations: 96.08 kB / 0.9584 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-06/0.5541, allocations: 0 / 0.9584 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.603e-05/0.5542, allocations: 29.89 kB / 0.9584 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.5544, allocations: 48.83 kB / 0.9584 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.5564, allocations: 2.245 MB / 0.9606 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002733/0.5567, allocations: 0.761 MB / 0.9614 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001146/0.5568, allocations: 45.28 kB / 0.9614 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.5569, allocations: 74.78 kB / 0.9615 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of SimCode: time 4.2e-07/0.5569, allocations: 0 / 0.9615 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2505/0.8074, allocations: 4.843 MB / 0.9662 GB, free: 12.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/0.8076, allocations: 257.8 kB / 0.9665 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.954/2.762, allocations: 0 / 0.9665 GB, free: 12.55 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