Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Less,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u1|les.u2|les.y|lesHys.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Less,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u1|les.u2|les.y|lesHys.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.285/2.285, allocations: 390.3 MB / 402.8 MB, free: 6.652 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.0009332/0.0009332, allocations: 168.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.557/1.557, allocations: 221.3 MB / 0.7915 GB, free: 5.344 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.0008344/0.0008346, allocations: 92 kB / 0.9317 GB, free: 5.66 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.741e-05/2.743e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.404/0.404, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.428/1.832, allocations: 154.1 MB / 1.369 GB, free: 16 kB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/1.832, allocations: 77.89 kB / 1.369 GB, free: 15.98 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.03053/1.863, allocations: 11.43 MB / 1.38 GB, free: 6.266 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.322e-06/1.863, allocations: 0 / 1.38 GB, free: 6.266 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.13e-05/1.863, allocations: 8 kB / 1.38 GB, free: 6.258 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0009509/1.864, allocations: 0.5752 MB / 1.381 GB, free: 5.652 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/1.864, allocations: 8.031 kB / 1.381 GB, free: 5.645 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.276e-05/1.864, allocations: 35.53 kB / 1.381 GB, free: 5.609 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008585/1.865, allocations: 445.9 kB / 1.381 GB, free: 5.18 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/1.865, allocations: 7.688 kB / 1.382 GB, free: 5.176 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.347e-05/1.865, allocations: 11.62 kB / 1.382 GB, free: 5.168 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002327/1.865, allocations: 119.4 kB / 1.382 GB, free: 5.074 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/1.865, allocations: 0 / 1.382 GB, free: 5.074 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.185e-05/1.865, allocations: 7 kB / 1.382 GB, free: 5.07 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/1.865, allocations: 0 / 1.382 GB, free: 5.07 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001341/1.865, allocations: 64.48 kB / 1.382 GB, free: 5.027 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000977/1.866, allocations: 0.5718 MB / 1.382 GB, free: 4.5 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002559/1.867, allocations: 130.5 kB / 1.382 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.334e-05/1.867, allocations: 46.09 kB / 1.382 GB, free: 4.363 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/1.867, allocations: 0 / 1.382 GB, free: 4.363 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002366/1.867, allocations: 109.7 kB / 1.383 GB, free: 4.262 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.743e-06/1.867, allocations: 0 / 1.383 GB, free: 4.262 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0003627/1.867, allocations: 167.6 kB / 1.383 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/1.867, allocations: 51.41 kB / 1.383 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005839/1.868, allocations: 499.5 kB / 1.383 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/1.868, allocations: 28.7 kB / 1.383 GB, free: 3.637 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/1.868, allocations: 183.8 kB / 1.383 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.963e-05/1.868, allocations: 38.3 kB / 1.383 GB, free: 3.48 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.594e-05/1.868, allocations: 7.5 kB / 1.383 GB, free: 3.477 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001703/1.868, allocations: 350.4 kB / 1.384 GB, free: 3.141 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/1.869, allocations: 120.1 kB / 1.384 GB, free: 3.059 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/1.869, allocations: 152 kB / 1.384 GB, free: 2.941 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/1.869, allocations: 114.6 kB / 1.384 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/1.869, allocations: 4 kB / 1.384 GB, free: 2.859 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005157/1.869, allocations: 351.9 kB / 1.385 GB, free: 2.59 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/1.87, allocations: 11.94 kB / 1.385 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/1.87, allocations: 0 / 1.385 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/1.87, allocations: 4 kB / 1.385 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001983/1.87, allocations: 44.06 kB / 1.385 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/1.87, allocations: 4 kB / 1.385 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/1.87, allocations: 35.05 kB / 1.385 GB, free: 2.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.504e-05/1.87, allocations: 15.98 kB / 1.385 GB, free: 2.484 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition2,$PRE.timTabLin1.tab.nextTimeEvent,$whenCondition1,$PRE.timTabLin.tab.nextTimeEvent,les.y,$PRE.lesHys.lesHys.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEvent,$PRE.timTabLin1.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.0001117/1.87, allocations: 119.5 kB / 1.385 GB, free: 2.367 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.281e-05/1.87, allocations: 39.48 kB / 1.385 GB, free: 2.328 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003453/1.871, allocations: 197.7 kB / 1.385 GB, free: 2.172 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-06/1.871, allocations: 3.984 kB / 1.385 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/1.871, allocations: 0 / 1.385 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/1.871, allocations: 0 / 1.385 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003293/1.871, allocations: 321.2 kB / 1.385 GB, free: 1.855 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/1.871, allocations: 0 / 1.385 GB, free: 1.855 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.72e-05/1.871, allocations: 15.92 kB / 1.385 GB, free: 1.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/1.871, allocations: 3.953 kB / 1.385 GB, free: 1.836 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/1.871, allocations: 7.938 kB / 1.385 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/1.871, allocations: 0 / 1.385 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/1.871, allocations: 4 kB / 1.385 GB, free: 1.828 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/1.871, allocations: 203.6 kB / 1.385 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/1.871, allocations: 124.3 kB / 1.386 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.844e-05/1.872, allocations: 11.08 kB / 1.386 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/1.872, allocations: 18.92 kB / 1.386 GB, free: 1.484 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.678e-05/1.872, allocations: 11.97 kB / 1.386 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/1.872, allocations: 10.62 kB / 1.386 GB, free: 1.465 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003792/1.872, allocations: 330.9 kB / 1.386 GB, free: 1.211 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.872, allocations: 0 / 1.386 GB, free: 1.211 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003478/1.873, allocations: 75.42 kB / 1.386 GB, free: 1.145 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,les.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEvent,timTabLin1.tab.nextTimeEventScaled) * Number of discrete states: 5 (lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin1.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,timTabLin1.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001073/1.874, allocations: 389.8 kB / 1.386 GB, free: 0.8867 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003634/1.874, allocations: 192.4 kB / 1.387 GB, free: 0.75 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/1.874, allocations: 4.125 kB / 1.387 GB, free: 0.7461 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/1.874, allocations: 62.36 kB / 1.387 GB, free: 0.6992 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004527/1.875, allocations: 86.8 kB / 1.387 GB, free: 0.6328 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008537/1.875, allocations: 458.3 kB / 1.387 GB, free: 236 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004659/1.876, allocations: 0.8052 MB / 1.388 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0001641/1.876, allocations: 54.94 kB / 1.388 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.001e-05/1.876, allocations: 31.42 kB / 1.388 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of SimCode: time 3.31e-07/1.876, allocations: 7.938 kB / 1.388 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of Templates: time 0.008871/1.885, allocations: 4.008 MB / 1.392 GB, free: 11.35 MB / 0.8542 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_Less.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,les.u1,les.u2,les.y,lesHys.y Variables in the result:les.h,les.have_hysteresis,les.pre_y_start,les.u1,les.u2,les.y,lesHys.h,lesHys.have_hysteresis,lesHys.lesHys.h,lesHys.lesHys.pre_y_start,lesHys.lesHys.y,lesHys.pre_y_start,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.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.timeRange,timTabLin.timeScale,timTabLin.y[1],timTabLin1.extrapolation,timTabLin1.nT,timTabLin1.nout,timTabLin1.offset[1],timTabLin1.smoothness,timTabLin1.t0,timTabLin1.tab.columns[1],timTabLin1.tab.extrapolation,timTabLin1.tab.nout,timTabLin1.tab.offset[1],timTabLin1.tab.p_offset[1],timTabLin1.tab.shiftTime,timTabLin1.tab.smoothness,timTabLin1.tab.startTime,timTabLin1.tab.t_max,timTabLin1.tab.t_maxScaled,timTabLin1.tab.t_min,timTabLin1.tab.t_minScaled,timTabLin1.tab.tableOnFile,timTabLin1.tab.table[1,1],timTabLin1.tab.table[1,2],timTabLin1.tab.table[2,1],timTabLin1.tab.table[2,2],timTabLin1.tab.table[3,1],timTabLin1.tab.table[3,2],timTabLin1.tab.table[4,1],timTabLin1.tab.table[4,2],timTabLin1.tab.table[5,1],timTabLin1.tab.table[5,2],timTabLin1.tab.timeEvents,timTabLin1.tab.timeScale,timTabLin1.tab.verboseExtrapolation,timTabLin1.tab.verboseRead,timTabLin1.table[1,1],timTabLin1.table[1,2],timTabLin1.table[2,1],timTabLin1.table[2,2],timTabLin1.table[3,1],timTabLin1.table[3,2],timTabLin1.table[4,1],timTabLin1.table[4,2],timTabLin1.table[5,1],timTabLin1.table[5,2],timTabLin1.timeRange,timTabLin1.timeScale,timTabLin1.y[1],time