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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.428/2.428, allocations: 390.3 MB / 405.3 MB, free: 13.46 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 189 kB / 498.1 MB, free: 5.723 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.721/1.721, allocations: 223.2 MB / 0.7948 GB, free: 17.96 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 100.2 kB / 0.9346 GB, free: 6.191 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003825/0.0003828, allocations: 12.98 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3048, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1991/0.504, allocations: 153.3 MB / 1.373 GB, free: 8.77 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/0.5043, allocations: 83.89 kB / 1.373 GB, free: 8.688 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01933/0.5237, allocations: 7.161 MB / 1.38 GB, free: 1.516 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.044e-06/0.5237, allocations: 0 / 1.38 GB, free: 1.516 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.294e-05/0.5238, allocations: 11.98 kB / 1.38 GB, free: 1.504 MB / 0.8698 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.0008577/0.5246, allocations: 0.5411 MB / 1.38 GB, free: 0.9141 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.5247, allocations: 15.97 kB / 1.38 GB, free: 0.8984 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.127e-05/0.5248, allocations: 23.72 kB / 1.38 GB, free: 0.875 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006043/0.5254, allocations: 342.3 kB / 1.381 GB, free: 0.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.5254, allocations: 11.94 kB / 1.381 GB, free: 500 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.5254, allocations: 4 kB / 1.381 GB, free: 496 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.5256, allocations: 85.66 kB / 1.381 GB, free: 404 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.5256, allocations: 0 / 1.381 GB, free: 404 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.5257, allocations: 3.984 kB / 1.381 GB, free: 400 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.5257, allocations: 4 kB / 1.381 GB, free: 396 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001067/0.5258, allocations: 35.98 kB / 1.381 GB, free: 360 kB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007897/0.5266, allocations: 456.5 kB / 1.381 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.5268, allocations: 86.66 kB / 1.381 GB, free: 15.76 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.5269, allocations: 0 / 1.381 GB, free: 15.76 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/0.527, allocations: 87.39 kB / 1.381 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.5271, allocations: 0 / 1.381 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.000336/0.5274, allocations: 137.5 kB / 1.381 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.5275, allocations: 51.41 kB / 1.381 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003848/0.5279, allocations: 350.1 kB / 1.382 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.5279, allocations: 29.7 kB / 1.382 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.528, allocations: 140 kB / 1.382 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.528, allocations: 31.72 kB / 1.382 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.849e-06/0.528, allocations: 0 / 1.382 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.5282, allocations: 338.8 kB / 1.382 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001333/0.5283, allocations: 67.97 kB / 1.382 GB, free: 14.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.5285, allocations: 106.4 kB / 1.382 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001296/0.5286, allocations: 67.97 kB / 1.383 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.5286, allocations: 4.031 kB / 1.383 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003508/0.529, allocations: 229.2 kB / 1.383 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.529, allocations: 4.625 kB / 1.383 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.529, allocations: 7.891 kB / 1.383 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.529, allocations: 3.938 kB / 1.383 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.5292, allocations: 23.98 kB / 1.383 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.5292, allocations: 4.062 kB / 1.383 GB, free: 14.04 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.5293, allocations: 19.98 kB / 1.383 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.5294, allocations: 12.03 kB / 1.383 GB, free: 14.01 MB / 0.8855 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 ($whenCondition1,$PRE.timTabLin.tab.nextTimeEvent,les.y,$PRE.lesHys.lesHys.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001511/0.5295, allocations: 157.8 kB / 1.383 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.285e-05/0.5295, allocations: 23.72 kB / 1.383 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002546/0.5298, allocations: 123.4 kB / 1.383 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.5298, allocations: 3.953 kB / 1.383 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.5298, allocations: 0 / 1.383 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.5298, allocations: 0 / 1.383 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000221/0.5301, allocations: 249.6 kB / 1.383 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.5301, allocations: 4 kB / 1.383 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.995e-05/0.5301, allocations: 7.938 kB / 1.383 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.5301, allocations: 3.984 kB / 1.383 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.5301, allocations: 0 / 1.383 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.5301, allocations: 4 kB / 1.383 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.5302, allocations: 3.953 kB / 1.383 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002452/0.5304, allocations: 141 kB / 1.384 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 9.625e-05/0.5305, allocations: 108.8 kB / 1.384 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/0.5306, allocations: 12 kB / 1.384 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.395e-05/0.5307, allocations: 11.98 kB / 1.384 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.74e-05/0.5307, allocations: 19.92 kB / 1.384 GB, free: 13.05 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.745e-06/0.5307, allocations: 0 / 1.384 GB, free: 13.05 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002514/0.531, allocations: 245.9 kB / 1.384 GB, free: 12.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.531, allocations: 0 / 1.384 GB, free: 12.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000282/0.5313, allocations: 59.95 kB / 1.384 GB, free: 12.75 MB / 0.8855 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 (lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000999/0.5323, allocations: 442.9 kB / 1.384 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002491/0.5326, allocations: 107.9 kB / 1.384 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.5326, allocations: 0 / 1.384 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 8.634e-05/0.5327, allocations: 39.92 kB / 1.385 GB, free: 12.32 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.533, allocations: 41.72 kB / 1.385 GB, free: 12.28 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006752/0.5336, allocations: 449.2 kB / 1.385 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003295/0.534, allocations: 0.7623 MB / 1.386 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 9.608e-05/0.5341, allocations: 38.08 kB / 1.386 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.424e-05/0.5341, allocations: 23.44 kB / 1.386 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of SimCode: time 3.51e-07/0.5342, allocations: 0 / 1.386 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of Templates: time 0.006118/0.5403, allocations: 2.719 MB / 1.388 GB, free: 8.273 MB / 0.8855 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","../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.have_hysteresis,les.lesNoHys.t,les.pre_y_start,les.t,les.u,les.y,lesHys.h,lesHys.have_hysteresis,lesHys.lesHys.h,lesHys.lesHys.pre_y_start,lesHys.lesHys.t,lesHys.lesHys.y,lesHys.pre_y_start,lesHys.t,lesHys.y,timTabLin.extrapolation,timTabLin.nT,timTabLin.nout,timTabLin.offset[1],timTabLin.smoothness,timTabLin.t0,timTabLin.tab.columns[1],timTabLin.tab.extrapolation,timTabLin.tab.nout,timTabLin.tab.offset[1],timTabLin.tab.p_offset[1],timTabLin.tab.shiftTime,timTabLin.tab.smoothness,timTabLin.tab.startTime,timTabLin.tab.t_max,timTabLin.tab.t_maxScaled,timTabLin.tab.t_min,timTabLin.tab.t_minScaled,timTabLin.tab.tableOnFile,timTabLin.tab.table[1,1],timTabLin.tab.table[1,2],timTabLin.tab.table[2,1],timTabLin.tab.table[2,2],timTabLin.tab.table[3,1],timTabLin.tab.table[3,2],timTabLin.tab.table[4,1],timTabLin.tab.table[4,2],timTabLin.tab.table[5,1],timTabLin.tab.table[5,2],timTabLin.tab.table[6,1],timTabLin.tab.table[6,2],timTabLin.tab.table[7,1],timTabLin.tab.table[7,2],timTabLin.tab.timeEvents,timTabLin.tab.timeScale,timTabLin.tab.verboseExtrapolation,timTabLin.tab.verboseRead,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.timeRange,timTabLin.timeScale,timTabLin.y[1],time