Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.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.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.392/1.392, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001211/0.001211, allocations: 177.8 kB / 326.5 MB, free: 2.246 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.792/1.792, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.0009141/0.0009142, allocations: 94.44 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003408/0.0003408, allocations: 10.31 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2588, allocations: 106.3 MB / 0.9001 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2152/0.4741, allocations: 133.5 MB / 1.03 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.4744, allocations: 67.97 kB / 1.031 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01891/0.4934, allocations: 4.459 MB / 1.035 GB, free: 5.695 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.553e-06/0.4934, allocations: 0 / 1.035 GB, free: 5.695 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.521e-05/0.4935, allocations: 7.938 kB / 1.035 GB, free: 5.688 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001109/0.4946, allocations: 0.6148 MB / 1.036 GB, free: 5 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.4946, allocations: 11.97 kB / 1.036 GB, free: 4.988 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.4948, allocations: 39.61 kB / 1.036 GB, free: 4.949 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004235/0.4952, allocations: 254.6 kB / 1.036 GB, free: 4.66 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.232e-05/0.4953, allocations: 16 kB / 1.036 GB, free: 4.645 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.574e-05/0.4953, allocations: 16 kB / 1.036 GB, free: 4.629 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003818/0.4957, allocations: 145.5 kB / 1.036 GB, free: 4.48 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.4958, allocations: 0 / 1.036 GB, free: 4.48 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.4958, allocations: 0 / 1.036 GB, free: 4.48 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.4958, allocations: 0 / 1.036 GB, free: 4.48 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.496, allocations: 55.91 kB / 1.036 GB, free: 4.426 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004689/0.4965, allocations: 337.2 kB / 1.036 GB, free: 4.047 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/0.4968, allocations: 122.7 kB / 1.036 GB, free: 3.918 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.4969, allocations: 4 kB / 1.036 GB, free: 3.914 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005565/0.4974, allocations: 218.8 kB / 1.037 GB, free: 3.691 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 1.643e-06/0.4975, allocations: 0 / 1.037 GB, free: 3.691 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18): time 0.0007806/0.4983, allocations: 269.1 kB / 1.037 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.535e-05/0.4983, allocations: 67.33 kB / 1.037 GB, free: 3.344 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003304/0.4987, allocations: 250.1 kB / 1.037 GB, free: 3.094 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 6.99e-05/0.4987, allocations: 41.7 kB / 1.037 GB, free: 3.047 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.611e-05/0.4988, allocations: 93.12 kB / 1.037 GB, free: 2.953 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.595e-05/0.4989, allocations: 43.45 kB / 1.037 GB, free: 2.91 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.307e-05/0.499, allocations: 12 kB / 1.037 GB, free: 2.898 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.4991, allocations: 322.8 kB / 1.038 GB, free: 2.574 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003669/0.4995, allocations: 96.17 kB / 1.038 GB, free: 2.477 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003949/0.4999, allocations: 154.4 kB / 1.038 GB, free: 2.305 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000367/0.5003, allocations: 154.8 kB / 1.038 GB, free: 2.141 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.5003, allocations: 3.953 kB / 1.038 GB, free: 2.137 MB / 0.6823 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00112/0.5014, allocations: 431 kB / 1.039 GB, free: 1.699 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.075e-05/0.5015, allocations: 75.38 kB / 1.039 GB, free: 1.613 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.5015, allocations: 0 / 1.039 GB, free: 1.613 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.5016, allocations: 8.188 kB / 1.039 GB, free: 1.605 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.5018, allocations: 27.92 kB / 1.039 GB, free: 1.578 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.5018, allocations: 4 kB / 1.039 GB, free: 1.574 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005377/0.5024, allocations: 43.88 kB / 1.039 GB, free: 1.531 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/0.5025, allocations: 55.92 kB / 1.039 GB, free: 1.477 MB / 0.6823 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.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.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.0002894/0.5028, allocations: 181.7 kB / 1.039 GB, free: 1.289 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.435e-05/0.5029, allocations: 27.67 kB / 1.039 GB, free: 1.262 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.142e-05/0.503, allocations: 34.25 kB / 1.039 GB, free: 1.227 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.503, allocations: 0 / 1.039 GB, free: 1.227 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.503, allocations: 7.938 kB / 1.039 GB, free: 1.219 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.503, allocations: 0 / 1.039 GB, free: 1.219 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.5041, allocations: 0.559 MB / 1.04 GB, free: 0.6055 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.5041, allocations: 3.984 kB / 1.04 GB, free: 0.6016 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.726e-05/0.5042, allocations: 4 kB / 1.04 GB, free: 0.5977 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.5042, allocations: 8 kB / 1.04 GB, free: 0.5898 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.792e-05/0.5043, allocations: 11.98 kB / 1.04 GB, free: 0.5781 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.5043, allocations: 0 / 1.04 GB, free: 0.5781 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.5043, allocations: 4 kB / 1.04 GB, free: 0.5742 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006121/0.5049, allocations: 323 kB / 1.04 GB, free: 248 kB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002558/0.5052, allocations: 156.7 kB / 1.04 GB, free: 72 kB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.606e-05/0.5053, allocations: 8 kB / 1.04 GB, free: 64 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.5056, allocations: 12 kB / 1.04 GB, free: 52 kB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.625e-05/0.5056, allocations: 15.97 kB / 1.04 GB, free: 36 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.734e-05/0.5057, allocations: 27.98 kB / 1.04 GB, free: 8 kB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0002836/0.506, allocations: 209.9 kB / 1.04 GB, free: 15.8 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.135e-06/0.506, allocations: 0 / 1.04 GB, free: 15.8 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005527/0.5066, allocations: 59.92 kB / 1.04 GB, free: 15.75 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 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.weekDay,calendarTime2016.daysSinceEpoch,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling) * Number of discrete states: 9 (calendarTime2016.firstDaySampling,calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,calendarTime2016.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.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.0002035/0.5068, allocations: 109.5 kB / 1.04 GB, free: 15.63 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0008895/0.5077, allocations: 364.8 kB / 1.041 GB, free: 15.25 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.5077, allocations: 4 kB / 1.041 GB, free: 15.25 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002036/0.5079, allocations: 67.91 kB / 1.041 GB, free: 15.18 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003483/0.5083, allocations: 22.86 kB / 1.041 GB, free: 15.16 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009711/0.5093, allocations: 447.6 kB / 1.041 GB, free: 14.69 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.5097, allocations: 0.7438 MB / 1.042 GB, free: 13.92 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002138/0.5099, allocations: 41.06 kB / 1.042 GB, free: 13.88 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.5101, allocations: 31.42 kB / 1.042 GB, free: 13.85 MB / 0.698 GB Notification: Performance of SimCode: time 4.71e-07/0.5101, allocations: 4 kB / 1.042 GB, free: 13.84 MB / 0.698 GB Notification: Performance of Templates: time 0.0116/0.5217, allocations: 4.349 MB / 1.046 GB, free: 9.492 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Time_Examples_CalendarTime.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.minute Variables in the result:calendarTime2016.day,calendarTime2016.daySampleStart,calendarTime2016.hour,calendarTime2016.hourSampleStart,calendarTime2016.minute,calendarTime2016.month,calendarTime2016.offset,calendarTime2016.outputUnixTimeStamp,calendarTime2016.timOff,calendarTime2016.timZon,calendarTime2016.year,calendarTime2016.yearRef,calendarTime2016.zerTim,time