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.529/1.529, allocations: 249.5 MB / 257 MB, free: 6.887 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 176.9 kB / 316.3 MB, free: 3.238 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.794/1.794, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.001009/0.001009, allocations: 94.47 kB / 0.6714 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.32e-05/2.323e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2988, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9746/1.273, allocations: 133.7 MB / 1.016 GB, free: 4.094 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/1.274, allocations: 74.45 kB / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0139/1.288, allocations: 4.432 MB / 1.02 GB, free: 264 kB / 0.6355 GB Notification: Performance of FrontEnd: time 1.513e-06/1.288, allocations: 0 / 1.02 GB, free: 264 kB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.942e-05/1.288, allocations: 4 kB / 1.02 GB, free: 260 kB / 0.6355 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.001024/1.289, allocations: 0.582 MB / 1.021 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.28e-05/1.289, allocations: 8.031 kB / 1.021 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/1.289, allocations: 31.72 kB / 1.021 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/1.289, allocations: 249.7 kB / 1.021 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/1.289, allocations: 11.92 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.413e-05/1.289, allocations: 16 kB / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001308/1.29, allocations: 39.73 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/1.29, allocations: 136.3 kB / 1.021 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/1.29, allocations: 0 / 1.021 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.201e-05/1.29, allocations: 3.984 kB / 1.021 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/1.29, allocations: 8 kB / 1.021 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003921/1.29, allocations: 307.6 kB / 1.022 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002034/1.291, allocations: 117.9 kB / 1.022 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.058e-05/1.291, allocations: 51.34 kB / 1.022 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.308e-05/1.291, allocations: 4 kB / 1.022 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004229/1.291, allocations: 210.8 kB / 1.022 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 1.443e-06/1.291, allocations: 0 / 1.022 GB, free: 14.51 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.0004499/1.292, allocations: 203.5 kB / 1.022 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/1.292, allocations: 63.41 kB / 1.022 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/1.292, allocations: 250.1 kB / 1.022 GB, free: 14.05 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.77e-05/1.292, allocations: 33.14 kB / 1.022 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.042e-05/1.292, allocations: 92.77 kB / 1.023 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 5.616e-05/1.292, allocations: 35.14 kB / 1.023 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.429e-05/1.292, allocations: 4 kB / 1.023 GB, free: 13.89 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001864/1.292, allocations: 321.9 kB / 1.023 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/1.293, allocations: 92.33 kB / 1.023 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/1.293, allocations: 141.7 kB / 1.023 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/1.293, allocations: 72.94 kB / 1.023 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/1.293, allocations: 0 / 1.023 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006105/1.294, allocations: 316.6 kB / 1.023 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 8.865e-05/1.294, allocations: 80.09 kB / 1.024 GB, free: 12.99 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/1.294, allocations: 0 / 1.024 GB, free: 12.99 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/1.294, allocations: 4 kB / 1.024 GB, free: 12.99 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001806/1.294, allocations: 27.48 kB / 1.024 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/1.294, allocations: 4 kB / 1.024 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003795/1.294, allocations: 48 kB / 1.024 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.611e-05/1.294, allocations: 55.97 kB / 1.024 GB, free: 12.86 MB / 0.6511 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 () * 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.00017/1.295, allocations: 130.2 kB / 1.024 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.714e-05/1.295, allocations: 31.58 kB / 1.024 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.855e-05/1.295, allocations: 32.66 kB / 1.024 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/1.295, allocations: 0 / 1.024 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/1.295, allocations: 7.938 kB / 1.024 GB, free: 12.67 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/1.295, allocations: 7.984 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007124/1.295, allocations: 0.5107 MB / 1.024 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/1.295, allocations: 0 / 1.024 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.002e-05/1.296, allocations: 4 kB / 1.024 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.752e-06/1.296, allocations: 4 kB / 1.024 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.582e-05/1.296, allocations: 15.41 kB / 1.024 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/1.296, allocations: 0 / 1.024 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/1.296, allocations: 4 kB / 1.024 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004054/1.296, allocations: 312.1 kB / 1.025 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002268/1.296, allocations: 159.2 kB / 1.025 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.904e-05/1.296, allocations: 7.375 kB / 1.025 GB, free: 11.69 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/1.297, allocations: 15.98 kB / 1.025 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.671e-05/1.297, allocations: 15.17 kB / 1.025 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-05/1.297, allocations: 31.97 kB / 1.025 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001965/1.297, allocations: 191.7 kB / 1.025 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.31e-07/1.297, allocations: 4 kB / 1.025 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003365/1.297, allocations: 48 kB / 1.025 GB, free: 11.43 MB / 0.6511 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) * 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.0002098/1.297, allocations: 119.5 kB / 1.025 GB, free: 11.31 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005504/1.298, allocations: 332 kB / 1.026 GB, free: 11.03 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.298, allocations: 0 / 1.026 GB, free: 11.03 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001128/1.298, allocations: 66.14 kB / 1.026 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/1.298, allocations: 19.38 kB / 1.026 GB, free: 10.96 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006003/1.299, allocations: 274.9 kB / 1.026 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/1.299, allocations: 0.7449 MB / 1.027 GB, free: 9.941 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001481/1.3, allocations: 41.2 kB / 1.027 GB, free: 9.898 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/1.3, allocations: 31.42 kB / 1.027 GB, free: 9.871 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/1.3, allocations: 0 / 1.027 GB, free: 9.871 MB / 0.6511 GB Notification: Performance of Templates: time 0.008637/1.308, allocations: 4.172 MB / 1.031 GB, free: 5.711 MB / 0.6511 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