Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.428/1.428, allocations: 251.9 MB / 266.9 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 174.8 kB / 326.5 MB, free: 2.277 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.82/1.82, allocations: 205.4 MB / 0.5775 GB, free: 20.29 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007994/0.0007994, allocations: 93.83 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003111, allocations: 12.03 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1889, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1661/0.3551, allocations: 133.9 MB / 1.031 GB, free: 9.844 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.3553, allocations: 79.89 kB / 1.031 GB, free: 9.766 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01424/0.3696, allocations: 5.207 MB / 1.036 GB, free: 4.551 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.143e-06/0.3696, allocations: 0 / 1.036 GB, free: 4.551 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.617e-05/0.3697, allocations: 8 kB / 1.036 GB, free: 4.543 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001006/0.3707, allocations: 0.6496 MB / 1.037 GB, free: 3.82 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.3707, allocations: 8.031 kB / 1.037 GB, free: 3.812 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.602e-05/0.3708, allocations: 35.62 kB / 1.037 GB, free: 3.777 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000431/0.3713, allocations: 275.1 kB / 1.037 GB, free: 3.469 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.993e-05/0.3713, allocations: 12 kB / 1.037 GB, free: 3.457 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.893e-05/0.3714, allocations: 31.91 kB / 1.037 GB, free: 3.426 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003217/0.3717, allocations: 162.9 kB / 1.037 GB, free: 3.262 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.3717, allocations: 0 / 1.037 GB, free: 3.262 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.884e-05/0.3718, allocations: 7.953 kB / 1.037 GB, free: 3.254 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.3718, allocations: 4 kB / 1.037 GB, free: 3.25 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001442/0.3719, allocations: 59.97 kB / 1.037 GB, free: 3.191 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.3731, allocations: 0.5902 MB / 1.038 GB, free: 2.551 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002793/0.3734, allocations: 134.7 kB / 1.038 GB, free: 2.41 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.3734, allocations: 0 / 1.038 GB, free: 2.41 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004128/0.3738, allocations: 228.9 kB / 1.038 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 1.643e-06/0.3739, allocations: 0 / 1.038 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18): time 0.0005551/0.3744, allocations: 279.6 kB / 1.038 GB, free: 1.895 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.3745, allocations: 71.33 kB / 1.039 GB, free: 1.812 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002658/0.3748, allocations: 283.6 kB / 1.039 GB, free: 1.531 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.469e-05/0.3748, allocations: 37.7 kB / 1.039 GB, free: 1.488 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.907e-05/0.3749, allocations: 93.05 kB / 1.039 GB, free: 1.395 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.165e-05/0.375, allocations: 51.47 kB / 1.039 GB, free: 1.344 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.633e-05/0.375, allocations: 8 kB / 1.039 GB, free: 1.336 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001081/0.3751, allocations: 330.8 kB / 1.039 GB, free: 1.004 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002818/0.3754, allocations: 116.2 kB / 1.039 GB, free: 0.8867 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00029/0.3757, allocations: 178.3 kB / 1.04 GB, free: 0.6914 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002619/0.376, allocations: 171.7 kB / 1.04 GB, free: 0.5117 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.376, allocations: 0 / 1.04 GB, free: 0.5117 MB / 0.6823 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007635/0.3768, allocations: 455 kB / 1.04 GB, free: 52 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.637e-05/0.3769, allocations: 79.38 kB / 1.04 GB, free: 15.96 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3769, allocations: 192 / 1.04 GB, free: 15.96 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.3769, allocations: 8 kB / 1.04 GB, free: 15.95 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.3771, allocations: 23.92 kB / 1.04 GB, free: 15.93 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.3771, allocations: 4 kB / 1.04 GB, free: 15.93 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000368/0.3775, allocations: 47.88 kB / 1.04 GB, free: 15.88 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-05/0.3775, allocations: 51.98 kB / 1.04 GB, free: 15.83 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.firstHourSampling,$whenCondition3,calTim.calTim.hourSampleTrigger,$whenCondition4,calTim.calTim.daySampleTrigger,$whenCondition2,$whenCondition1,$PRE.calTim.calTim.year,calTim.calTim.year,$PRE.calTim.calTim.month,calTim.calTim.month,$PRE.calTim.calTim.day,calTim.calTim.day,$PRE.calTim.calTim.hour,calTim.calTim.hour,$PRE.calTim.calTim.weekDay,calTim.calTim.weekDay,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.yearIndex,calTim.calTim.yearIndex,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.epochLastMonth) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * 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.0002017/0.3778, allocations: 201.7 kB / 1.041 GB, free: 15.62 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.64e-05/0.3778, allocations: 27.62 kB / 1.041 GB, free: 15.59 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.874e-05/0.3779, allocations: 30.36 kB / 1.041 GB, free: 15.56 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.3779, allocations: 3.938 kB / 1.041 GB, free: 15.55 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.3779, allocations: 0 / 1.041 GB, free: 15.55 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3779, allocations: 3.984 kB / 1.041 GB, free: 15.55 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007437/0.3786, allocations: 0.5997 MB / 1.041 GB, free: 14.89 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3787, allocations: 4 kB / 1.041 GB, free: 14.89 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.022e-05/0.3787, allocations: 4 kB / 1.041 GB, free: 14.89 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3787, allocations: 0 / 1.041 GB, free: 14.89 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.721e-05/0.3787, allocations: 15.97 kB / 1.041 GB, free: 14.87 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3788, allocations: 0 / 1.041 GB, free: 14.87 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3788, allocations: 3.984 kB / 1.041 GB, free: 14.87 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000407/0.3792, allocations: 329 kB / 1.042 GB, free: 14.53 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002046/0.3794, allocations: 184.7 kB / 1.042 GB, free: 14.33 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.459e-05/0.3795, allocations: 19.92 kB / 1.042 GB, free: 14.31 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.3796, allocations: 16 kB / 1.042 GB, free: 14.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.481e-05/0.3797, allocations: 15.97 kB / 1.042 GB, free: 14.28 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.544e-05/0.3797, allocations: 27.98 kB / 1.042 GB, free: 14.25 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001919/0.3799, allocations: 227 kB / 1.042 GB, free: 14.03 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.31e-07/0.38, allocations: 0 / 1.042 GB, free: 14.03 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003167/0.3803, allocations: 67.78 kB / 1.042 GB, free: 13.96 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calTim.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,calTim.calTim.year,calTim.calTim.month,calTim.calTim.day,calTim.calTim.hour,calTim.calTim.weekDay,calTim.calTim.daysSinceEpoch,calTim.calTim.yearIndex,calTim.calTim.epochLastMonth,calTim.calTim.firstHourSampling,calTim.calTim.firstDaySampling) * Number of discrete states: 9 (calTim.calTim.yearIndex,calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.firstHourSampling,calTim.calTim.hour,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.year) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0001764/0.3805, allocations: 133.2 kB / 1.042 GB, free: 13.83 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005909/0.3811, allocations: 374.8 kB / 1.043 GB, free: 13.44 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3811, allocations: 4 kB / 1.043 GB, free: 13.43 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.3812, allocations: 75.91 kB / 1.043 GB, free: 13.36 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.3815, allocations: 31.66 kB / 1.043 GB, free: 13.33 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006879/0.3822, allocations: 489.1 kB / 1.043 GB, free: 12.83 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.3825, allocations: 0.7634 MB / 1.044 GB, free: 12.04 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001381/0.3826, allocations: 33.42 kB / 1.044 GB, free: 12.01 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.3828, allocations: 51.34 kB / 1.044 GB, free: 11.96 MB / 0.698 GB Notification: Performance of SimCode: time 4.41e-07/0.3828, allocations: 0 / 1.044 GB, free: 11.96 MB / 0.698 GB Notification: Performance of Templates: time 0.007558/0.3903, allocations: 4.738 MB / 1.049 GB, free: 7.258 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonthsMinus.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,calTim.year,calTim.month,calTim.day,calTim.weekDay,calTim.hour,calTim.minute Variables in the result:calTim.calTim.day,calTim.calTim.daySampleStart,calTim.calTim.hour,calTim.calTim.hourSampleStart,calTim.calTim.month,calTim.calTim.offset,calTim.calTim.outputUnixTimeStamp,calTim.calTim.timOff,calTim.calTim.timZon,calTim.calTim.weekDay,calTim.calTim.year,calTim.calTim.yearRef,calTim.calTim.zerTim,calTim.day,calTim.hour,calTim.minute,calTim.month,calTim.offset,calTim.weekDay,calTim.year,calTim.yearRef,calTim.zerTim,time