Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.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.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_latest_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_latest_Buildings.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.419/2.419, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001177/0.001177, allocations: 187.4 kB / 0.4902 GB, free: 2.234 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.69/1.69, allocations: 223.2 MB / 0.7992 GB, free: 14.72 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.0009111/0.0009106, allocations: 96.2 kB / 0.9396 GB, free: 1.902 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000378/0.000378, allocations: 7.688 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3464, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2141/0.5605, allocations: 152.7 MB / 1.378 GB, free: 0.8281 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.5609, allocations: 67.97 kB / 1.378 GB, free: 0.7617 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01544/0.5764, allocations: 4.598 MB / 1.383 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.456e-06/0.5765, allocations: 0 / 1.383 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.303e-05/0.5765, allocations: 4 kB / 1.383 GB, free: 12.15 MB / 0.8855 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.001274/0.5778, allocations: 0.6694 MB / 1.384 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.896e-05/0.5778, allocations: 12.5 kB / 1.384 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.578, allocations: 31.72 kB / 1.384 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005027/0.5785, allocations: 250.5 kB / 1.384 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.942e-05/0.5786, allocations: 12 kB / 1.384 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.78e-05/0.5787, allocations: 19.98 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.5798, allocations: 209.5 kB / 1.384 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.5798, allocations: 0 / 1.384 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.073e-05/0.5798, allocations: 0 / 1.384 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.5798, allocations: 4 kB / 1.384 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007646/0.5806, allocations: 111.9 kB / 1.384 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000524/0.5811, allocations: 333.3 kB / 1.385 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.5822, allocations: 186.5 kB / 1.385 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.336e-05/0.5822, allocations: 0 / 1.385 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009312/0.5832, allocations: 215.2 kB / 1.385 GB, free: 9.922 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=16): time 1.953e-06/0.5832, allocations: 3.844 kB / 1.385 GB, free: 9.922 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16): time 0.002719/0.5859, allocations: 488.9 kB / 1.385 GB, free: 9.438 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.625e-05/0.586, allocations: 59.39 kB / 1.385 GB, free: 9.367 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003439/0.5863, allocations: 254.2 kB / 1.386 GB, free: 9.117 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 8.314e-05/0.5864, allocations: 37.69 kB / 1.386 GB, free: 9.074 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 9.193e-05/0.5865, allocations: 93.14 kB / 1.386 GB, free: 8.98 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 8.247e-05/0.5866, allocations: 51.38 kB / 1.386 GB, free: 8.93 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.272e-05/0.5867, allocations: 4 kB / 1.386 GB, free: 8.926 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001671/0.5868, allocations: 326.8 kB / 1.386 GB, free: 8.598 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.5871, allocations: 91.94 kB / 1.386 GB, free: 8.508 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002833/0.5874, allocations: 141.9 kB / 1.386 GB, free: 8.348 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002864/0.5877, allocations: 155.3 kB / 1.387 GB, free: 8.184 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.5877, allocations: 4 kB / 1.387 GB, free: 8.18 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007954/0.5885, allocations: 393.5 kB / 1.387 GB, free: 7.777 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.963e-05/0.5887, allocations: 79.58 kB / 1.387 GB, free: 7.688 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.5887, allocations: 0 / 1.387 GB, free: 7.688 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.5887, allocations: 7.984 kB / 1.387 GB, free: 7.68 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/0.5889, allocations: 23.92 kB / 1.387 GB, free: 7.656 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.5889, allocations: 4 kB / 1.387 GB, free: 7.652 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/0.5893, allocations: 47.81 kB / 1.387 GB, free: 7.605 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.067e-05/0.5894, allocations: 43.98 kB / 1.387 GB, free: 7.562 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$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 (26): * Single equations (assignments): 24 * 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.0002302/0.5896, allocations: 174.6 kB / 1.387 GB, free: 7.383 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.458e-05/0.5897, allocations: 27.67 kB / 1.387 GB, free: 7.355 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.144e-05/0.5897, allocations: 26.3 kB / 1.387 GB, free: 7.328 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.5898, allocations: 4 kB / 1.387 GB, free: 7.324 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.5898, allocations: 0 / 1.387 GB, free: 7.324 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.5898, allocations: 3.984 kB / 1.387 GB, free: 7.32 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002144/0.5919, allocations: 0.7129 MB / 1.388 GB, free: 6.551 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.5919, allocations: 0 / 1.388 GB, free: 6.551 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.715e-05/0.592, allocations: 4 kB / 1.388 GB, free: 6.547 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.592, allocations: 0 / 1.388 GB, free: 6.547 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.705e-05/0.592, allocations: 19.97 kB / 1.388 GB, free: 6.527 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.592, allocations: 0 / 1.388 GB, free: 6.527 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.5921, allocations: 0 / 1.388 GB, free: 6.527 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.5937, allocations: 473.3 kB / 1.388 GB, free: 6.051 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002298/0.5939, allocations: 164.6 kB / 1.389 GB, free: 5.871 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.284e-05/0.594, allocations: 12 kB / 1.389 GB, free: 5.859 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004022/0.5944, allocations: 31.97 kB / 1.389 GB, free: 5.828 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.713e-05/0.5945, allocations: 7.984 kB / 1.389 GB, free: 5.82 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.762e-05/0.5945, allocations: 43.97 kB / 1.389 GB, free: 5.777 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002229/0.5948, allocations: 209.9 kB / 1.389 GB, free: 5.57 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5948, allocations: 7.875 kB / 1.389 GB, free: 5.562 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004028/0.5952, allocations: 56.36 kB / 1.389 GB, free: 5.508 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$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.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.hour) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * 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.0002258/0.5954, allocations: 122.5 kB / 1.389 GB, free: 5.379 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001282/0.5967, allocations: 398.5 kB / 1.389 GB, free: 4.965 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5967, allocations: 0 / 1.389 GB, free: 4.965 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007373/0.5975, allocations: 128.2 kB / 1.39 GB, free: 4.84 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.5978, allocations: 24.42 kB / 1.39 GB, free: 4.816 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.5992, allocations: 0.4894 MB / 1.39 GB, free: 4.293 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.5996, allocations: 0.7554 MB / 1.391 GB, free: 3.512 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.76e-05/0.5997, allocations: 12.64 kB / 1.391 GB, free: 3.5 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.815e-05/0.5997, allocations: 11.44 kB / 1.391 GB, free: 3.488 MB / 0.8855 GB Notification: Performance of SimCode: time 4.31e-07/0.5997, allocations: 0 / 1.391 GB, free: 3.488 MB / 0.8855 GB Notification: Performance of Templates: time 0.008088/0.6078, allocations: 3.958 MB / 1.395 GB, free: 15.53 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","../files/Buildings_latest_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