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.461/2.461, allocations: 390.5 MB / 398 MB, free: 11 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.001428/0.001427, allocations: 184.1 kB / 491.2 MB, free: 1.594 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.698/1.698, allocations: 221.5 MB / 0.7868 GB, free: 13.33 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.000917/0.000917, allocations: 95.73 kB / 0.9269 GB, free: 13.83 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.346e-05/1.349e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3223, allocations: 143 MB / 1.212 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.104/1.427, allocations: 152 MB / 1.361 GB, free: 17.55 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/1.427, allocations: 71.09 kB / 1.361 GB, free: 17.55 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01308/1.44, allocations: 4.566 MB / 1.365 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.242e-06/1.44, allocations: 0 / 1.365 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.198e-05/1.44, allocations: 0 / 1.365 GB, free: 32.98 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005525/1.44, allocations: 0.6245 MB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.858e-05/1.441, allocations: 15.66 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.144e-05/1.441, allocations: 33.59 kB / 1.366 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/1.441, allocations: 253.2 kB / 1.366 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.215e-05/1.441, allocations: 9.516 kB / 1.366 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.496e-05/1.441, allocations: 11.53 kB / 1.366 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001042/1.441, allocations: 45.98 kB / 1.366 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/1.441, allocations: 143.2 kB / 1.366 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/1.441, allocations: 0 / 1.366 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.604e-05/1.441, allocations: 9.312 kB / 1.366 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/1.441, allocations: 0 / 1.366 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002666/1.442, allocations: 309.2 kB / 1.367 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001366/1.442, allocations: 110.5 kB / 1.367 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.07e-05/1.442, allocations: 54.03 kB / 1.367 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.3e-05/1.442, allocations: 0 / 1.367 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/1.442, allocations: 154.2 kB / 1.367 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.282e-06/1.442, allocations: 4 kB / 1.367 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0003622/1.442, allocations: 242 kB / 1.367 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.269e-05/1.442, allocations: 61.78 kB / 1.367 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/1.443, allocations: 250.4 kB / 1.367 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.892e-05/1.443, allocations: 29.55 kB / 1.368 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.151e-05/1.443, allocations: 99.16 kB / 1.368 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.18e-05/1.443, allocations: 28.69 kB / 1.368 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.913e-05/1.443, allocations: 3.875 kB / 1.368 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.525e-05/1.443, allocations: 325 kB / 1.368 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001326/1.443, allocations: 77.7 kB / 1.368 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/1.443, allocations: 127.9 kB / 1.368 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000114/1.443, allocations: 75.45 kB / 1.368 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/1.443, allocations: 0 / 1.368 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004293/1.444, allocations: 298.1 kB / 1.369 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/1.444, allocations: 79.81 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/1.444, allocations: 7.781 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/1.444, allocations: 3.844 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/1.444, allocations: 21.06 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/1.444, allocations: 4.031 kB / 1.369 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003009/1.444, allocations: 41.2 kB / 1.369 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.341e-05/1.444, allocations: 41.66 kB / 1.369 GB, free: 30.98 MB / 0.8386 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 () * 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.0001078/1.445, allocations: 125.6 kB / 1.369 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.343e-05/1.445, allocations: 23.38 kB / 1.369 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.289e-05/1.445, allocations: 32.22 kB / 1.369 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/1.445, allocations: 7.188 kB / 1.369 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/1.445, allocations: 0 / 1.369 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/1.445, allocations: 0 / 1.369 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005914/1.445, allocations: 0.5609 MB / 1.369 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/1.445, allocations: 0 / 1.369 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.275e-05/1.445, allocations: 6.672 kB / 1.369 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/1.445, allocations: 3.953 kB / 1.369 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/1.445, allocations: 14.12 kB / 1.369 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/1.445, allocations: 3.812 kB / 1.369 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/1.445, allocations: 8 kB / 1.369 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/1.446, allocations: 338.8 kB / 1.37 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/1.446, allocations: 161.2 kB / 1.37 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.373e-05/1.446, allocations: 18.08 kB / 1.37 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003957/1.446, allocations: 31.66 kB / 1.37 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.015e-05/1.446, allocations: 10.3 kB / 1.37 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.085e-05/1.446, allocations: 43.28 kB / 1.37 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001237/1.446, allocations: 195.3 kB / 1.37 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.446, allocations: 0 / 1.37 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002885/1.447, allocations: 41.62 kB / 1.37 GB, free: 30.22 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: 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) * 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.0001302/1.447, allocations: 125.4 kB / 1.37 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003464/1.447, allocations: 321.8 kB / 1.371 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/1.447, allocations: 4.375 kB / 1.371 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.58e-05/1.447, allocations: 58.86 kB / 1.371 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002199/1.448, allocations: 25.81 kB / 1.371 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004047/1.448, allocations: 267.2 kB / 1.371 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/1.448, allocations: 0.7483 MB / 1.372 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.743e-05/1.448, allocations: 11.62 kB / 1.372 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.93e-05/1.448, allocations: 17.88 kB / 1.372 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.448, allocations: 0 / 1.372 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of Templates: time 0.005346/1.454, allocations: 3.782 MB / 1.375 GB, free: 28.69 MB / 0.8386 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