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.CalendarTimeMonths.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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths,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.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.377/1.377, allocations: 251.9 MB / 266.9 MB, free: 11 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.001442/0.001442, allocations: 173.6 kB / 326.5 MB, free: 2.242 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.839/1.839, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.0008075/0.0008074, allocations: 95.56 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003443, allocations: 15.78 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.2021, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1644/0.3665, allocations: 133.9 MB / 1.031 GB, free: 9.875 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/0.3668, allocations: 79.95 kB / 1.031 GB, free: 9.797 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01498/0.3818, allocations: 5.198 MB / 1.036 GB, free: 4.59 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.986e-06/0.3818, allocations: 4 kB / 1.036 GB, free: 4.586 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.791e-05/0.3819, allocations: 4 kB / 1.036 GB, free: 4.582 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.001143/0.383, allocations: 0.6456 MB / 1.037 GB, free: 3.863 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.3831, allocations: 16.02 kB / 1.037 GB, free: 3.848 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001621/0.3832, allocations: 35.62 kB / 1.037 GB, free: 3.812 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004842/0.3837, allocations: 271.1 kB / 1.037 GB, free: 3.508 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.292e-05/0.3838, allocations: 15.98 kB / 1.037 GB, free: 3.492 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.603e-05/0.3839, allocations: 20 kB / 1.037 GB, free: 3.473 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003682/0.3843, allocations: 165.5 kB / 1.037 GB, free: 3.305 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.3843, allocations: 0 / 1.037 GB, free: 3.305 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.3843, allocations: 19.94 kB / 1.037 GB, free: 3.285 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.3843, allocations: 4 kB / 1.037 GB, free: 3.281 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001508/0.3845, allocations: 55.97 kB / 1.037 GB, free: 3.227 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.3858, allocations: 0.5863 MB / 1.038 GB, free: 2.59 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000294/0.3861, allocations: 134.7 kB / 1.038 GB, free: 2.449 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.3861, allocations: 4 kB / 1.038 GB, free: 2.445 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004689/0.3866, allocations: 228.9 kB / 1.038 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 1.944e-06/0.3866, allocations: 0 / 1.038 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18): time 0.0006125/0.3872, allocations: 281.1 kB / 1.038 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/0.3873, allocations: 59.39 kB / 1.038 GB, free: 1.855 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003026/0.3876, allocations: 287.5 kB / 1.039 GB, free: 1.57 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.263e-05/0.3877, allocations: 41.7 kB / 1.039 GB, free: 1.523 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.748e-05/0.3878, allocations: 101 kB / 1.039 GB, free: 1.422 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.523e-05/0.3878, allocations: 51.41 kB / 1.039 GB, free: 1.371 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.491e-05/0.3879, allocations: 8 kB / 1.039 GB, free: 1.363 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.388, allocations: 326.8 kB / 1.039 GB, free: 1.035 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000297/0.3883, allocations: 120.2 kB / 1.039 GB, free: 0.9141 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003065/0.3886, allocations: 166.4 kB / 1.04 GB, free: 0.7305 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002827/0.3889, allocations: 168.1 kB / 1.04 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3889, allocations: 0 / 1.04 GB, free: 0.5508 MB / 0.6823 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000839/0.3898, allocations: 453.9 kB / 1.04 GB, free: 96 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.911e-05/0.3899, allocations: 83.56 kB / 1.04 GB, free: 0 / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.3899, allocations: 4.047 kB / 1.04 GB, free: 15.99 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.3899, allocations: 4 kB / 1.04 GB, free: 15.99 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.3901, allocations: 27.92 kB / 1.04 GB, free: 15.96 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.3901, allocations: 4 kB / 1.04 GB, free: 15.96 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004127/0.3905, allocations: 43.88 kB / 1.04 GB, free: 15.91 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.042e-05/0.3906, allocations: 55.97 kB / 1.04 GB, free: 15.86 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.0002291/0.3909, allocations: 195.4 kB / 1.041 GB, free: 15.66 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.141e-05/0.3909, allocations: 31.62 kB / 1.041 GB, free: 15.63 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.092e-05/0.391, allocations: 30.3 kB / 1.041 GB, free: 15.6 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.391, allocations: 4 kB / 1.041 GB, free: 15.59 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.391, allocations: 0 / 1.041 GB, free: 15.59 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.391, allocations: 3.984 kB / 1.041 GB, free: 15.59 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008216/0.3919, allocations: 0.5958 MB / 1.041 GB, free: 14.94 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.3919, allocations: 0 / 1.041 GB, free: 14.94 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.657e-05/0.3919, allocations: 11.98 kB / 1.041 GB, free: 14.93 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.3919, allocations: 0 / 1.041 GB, free: 14.93 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.873e-05/0.392, allocations: 15.98 kB / 1.041 GB, free: 14.91 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.392, allocations: 0 / 1.041 GB, free: 14.91 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.392, allocations: 0 / 1.041 GB, free: 14.91 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004239/0.3924, allocations: 329.1 kB / 1.041 GB, free: 14.57 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002265/0.3927, allocations: 184.6 kB / 1.042 GB, free: 14.38 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.729e-05/0.3927, allocations: 16 kB / 1.042 GB, free: 14.36 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.3929, allocations: 11.98 kB / 1.042 GB, free: 14.35 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.289e-05/0.393, allocations: 15.92 kB / 1.042 GB, free: 14.33 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.075e-05/0.393, allocations: 31.98 kB / 1.042 GB, free: 14.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002162/0.3932, allocations: 227 kB / 1.042 GB, free: 14.08 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3933, allocations: 0 / 1.042 GB, free: 14.08 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003453/0.3936, allocations: 67.8 kB / 1.042 GB, free: 14.01 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.0002007/0.3938, allocations: 137.2 kB / 1.042 GB, free: 13.87 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006324/0.3945, allocations: 378.8 kB / 1.043 GB, free: 13.48 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3945, allocations: 0 / 1.043 GB, free: 13.48 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.3946, allocations: 71.91 kB / 1.043 GB, free: 13.41 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.3949, allocations: 38.59 kB / 1.043 GB, free: 13.37 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008038/0.3957, allocations: 489.9 kB / 1.043 GB, free: 12.87 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.3961, allocations: 0.7698 MB / 1.044 GB, free: 12.08 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001584/0.3963, allocations: 37.42 kB / 1.044 GB, free: 12.04 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.3964, allocations: 35.42 kB / 1.044 GB, free: 12.01 MB / 0.698 GB Notification: Performance of SimCode: time 4.11e-07/0.3964, allocations: 0 / 1.044 GB, free: 12.01 MB / 0.698 GB Notification: Performance of Templates: time 0.009277/0.4057, allocations: 4.746 MB / 1.049 GB, free: 7.301 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_CalendarTimeMonths.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.CalendarTimeMonths.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