Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.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.Less,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u1|les.u2|les.y|lesHys.y",fileNamePrefix="Buildings_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.303/2.303, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.001115/0.001115, allocations: 184.8 kB / 487.4 MB, free: 5.074 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.554/1.554, allocations: 221.5 MB / 0.7824 GB, free: 1 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009361/0.0009363, allocations: 104.5 kB / 0.9219 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 3.136e-05/3.156e-05, allocations: 12 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2884, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7994/1.088, allocations: 152.6 MB / 1.355 GB, free: 18.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/1.088, allocations: 79.8 kB / 1.355 GB, free: 18.45 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02691/1.115, allocations: 11.34 MB / 1.366 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.363e-06/1.115, allocations: 3.938 kB / 1.366 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.968e-05/1.115, allocations: 7.656 kB / 1.366 GB, free: 33.55 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.0006678/1.116, allocations: 0.5702 MB / 1.367 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/1.116, allocations: 12.12 kB / 1.367 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.319e-05/1.116, allocations: 38.53 kB / 1.367 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006678/1.117, allocations: 438.5 kB / 1.367 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/1.117, allocations: 11.78 kB / 1.367 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.292e-05/1.117, allocations: 7.719 kB / 1.367 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001161/1.117, allocations: 61.98 kB / 1.367 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/1.117, allocations: 106.5 kB / 1.367 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/1.117, allocations: 0 / 1.367 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/1.117, allocations: 2.906 kB / 1.367 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/1.117, allocations: 7.812 kB / 1.367 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008386/1.118, allocations: 0.5294 MB / 1.368 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/1.118, allocations: 127.7 kB / 1.368 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.683e-05/1.118, allocations: 39.89 kB / 1.368 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/1.118, allocations: 11.42 kB / 1.368 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001532/1.118, allocations: 99.91 kB / 1.368 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.412e-06/1.118, allocations: 0 / 1.368 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0002586/1.119, allocations: 160.3 kB / 1.368 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.994e-05/1.119, allocations: 55.28 kB / 1.368 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004528/1.119, allocations: 483 kB / 1.369 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/1.119, allocations: 29.52 kB / 1.369 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/1.119, allocations: 182.7 kB / 1.369 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/1.119, allocations: 32.8 kB / 1.369 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.591e-05/1.119, allocations: 3.844 kB / 1.369 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001238/1.119, allocations: 346.3 kB / 1.369 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/1.119, allocations: 114.7 kB / 1.369 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/1.12, allocations: 149.2 kB / 1.37 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002824/1.12, allocations: 128.2 kB / 1.37 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/1.12, allocations: 0 / 1.37 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004796/1.12, allocations: 355.6 kB / 1.37 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/1.12, allocations: 7.797 kB / 1.37 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/1.12, allocations: 3.844 kB / 1.37 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/1.12, allocations: 0 / 1.37 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/1.121, allocations: 48.2 kB / 1.37 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/1.121, allocations: 3.812 kB / 1.37 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/1.121, allocations: 25.33 kB / 1.37 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/1.121, allocations: 14.78 kB / 1.37 GB, free: 31.61 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 9.611e-05/1.121, allocations: 119.7 kB / 1.37 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.879e-05/1.121, allocations: 31.12 kB / 1.37 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002407/1.121, allocations: 177.3 kB / 1.37 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/1.121, allocations: 3.875 kB / 1.371 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/1.121, allocations: 0 / 1.371 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/1.121, allocations: 2.578 kB / 1.371 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001823/1.121, allocations: 281.3 kB / 1.371 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/1.121, allocations: 0 / 1.371 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.465e-05/1.122, allocations: 25.81 kB / 1.371 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/1.122, allocations: 0 / 1.371 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/1.122, allocations: 0 / 1.371 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/1.122, allocations: 3.781 kB / 1.371 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/1.122, allocations: 3.953 kB / 1.371 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001922/1.122, allocations: 192.4 kB / 1.371 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.229e-05/1.122, allocations: 126 kB / 1.371 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.032e-05/1.122, allocations: 3.812 kB / 1.371 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/1.122, allocations: 24.72 kB / 1.371 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.879e-05/1.122, allocations: 13.47 kB / 1.371 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/1.122, allocations: 11.73 kB / 1.371 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002483/1.122, allocations: 318.4 kB / 1.371 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.122, allocations: 0 / 1.371 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002924/1.123, allocations: 68.92 kB / 1.372 GB, free: 30.95 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.0007441/1.123, allocations: 375.7 kB / 1.372 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000229/1.124, allocations: 175 kB / 1.372 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/1.124, allocations: 0 / 1.372 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.923e-05/1.124, allocations: 58.25 kB / 1.372 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/1.124, allocations: 87.41 kB / 1.372 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005699/1.125, allocations: 436.3 kB / 1.373 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/1.125, allocations: 0.8068 MB / 1.373 GB, free: 29.88 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001283/1.125, allocations: 59.16 kB / 1.373 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.559e-05/1.125, allocations: 29.56 kB / 1.373 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.125, allocations: 0 / 1.373 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of Templates: time 0.006036/1.131, allocations: 3.734 MB / 1.377 GB, free: 29.3 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Less.csv","../files/Buildings_9_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