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.517/1.517, allocations: 249.3 MB / 261.9 MB, free: 5.828 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.001397/0.001397, allocations: 172.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.133/2.133, allocations: 205.2 MB / 0.572 GB, free: 10.68 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.001179/0.001179, allocations: 98.16 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.474e-05/3.477e-05, allocations: 8 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.276, allocations: 106.3 MB / 0.8918 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9064/1.182, allocations: 133.5 MB / 1.022 GB, free: 1.266 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/1.183, allocations: 76.16 kB / 1.022 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01233/1.195, allocations: 4.452 MB / 1.027 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of FrontEnd: time 8.72e-07/1.195, allocations: 0 / 1.027 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.222e-05/1.195, allocations: 4 kB / 1.027 GB, free: 13.35 MB / 0.6511 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.0007225/1.196, allocations: 0.5766 MB / 1.027 GB, free: 12.72 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/1.196, allocations: 12.03 kB / 1.027 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.968e-05/1.196, allocations: 30.84 kB / 1.027 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002942/1.196, allocations: 265 kB / 1.027 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/1.196, allocations: 19.55 kB / 1.027 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.908e-05/1.196, allocations: 12 kB / 1.027 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/1.197, allocations: 151.6 kB / 1.028 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.58e-06/1.197, allocations: 0 / 1.028 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/1.197, allocations: 0 / 1.028 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/1.197, allocations: 0 / 1.028 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001008/1.197, allocations: 43.05 kB / 1.028 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003145/1.197, allocations: 335.7 kB / 1.028 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002063/1.197, allocations: 134 kB / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.299e-05/1.197, allocations: 52.91 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/1.197, allocations: 4 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003459/1.198, allocations: 209.9 kB / 1.028 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 1.453e-06/1.198, allocations: 0 / 1.028 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.0003956/1.198, allocations: 218.8 kB / 1.029 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/1.198, allocations: 63.39 kB / 1.029 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002194/1.198, allocations: 260.9 kB / 1.029 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.569e-05/1.198, allocations: 33.27 kB / 1.029 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.225e-05/1.199, allocations: 96.31 kB / 1.029 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.288e-05/1.199, allocations: 42.62 kB / 1.029 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/1.199, allocations: 11 kB / 1.029 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001026/1.199, allocations: 322.3 kB / 1.029 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/1.199, allocations: 96.08 kB / 1.029 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/1.199, allocations: 147.1 kB / 1.03 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002021/1.199, allocations: 152.8 kB / 1.03 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.199, allocations: 0 / 1.03 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006277/1.2, allocations: 414.6 kB / 1.03 GB, free: 9.879 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 6.061e-05/1.2, allocations: 70.95 kB / 1.03 GB, free: 9.801 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/1.2, allocations: 4 kB / 1.03 GB, free: 9.797 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/1.2, allocations: 0 / 1.03 GB, free: 9.797 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/1.2, allocations: 35.16 kB / 1.03 GB, free: 9.766 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/1.2, allocations: 3.984 kB / 1.03 GB, free: 9.762 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003378/1.201, allocations: 55.44 kB / 1.03 GB, free: 9.711 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.399e-05/1.201, allocations: 51.36 kB / 1.03 GB, free: 9.664 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.0001169/1.201, allocations: 142.8 kB / 1.03 GB, free: 9.523 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/1.201, allocations: 27.62 kB / 1.03 GB, free: 9.496 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.208e-05/1.201, allocations: 33.09 kB / 1.03 GB, free: 9.473 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/1.201, allocations: 0 / 1.03 GB, free: 9.473 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/1.201, allocations: 0 / 1.03 GB, free: 9.473 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/1.201, allocations: 4 kB / 1.03 GB, free: 9.469 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006922/1.202, allocations: 0.5531 MB / 1.031 GB, free: 8.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/1.202, allocations: 0 / 1.031 GB, free: 8.93 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.075e-05/1.202, allocations: 15.92 kB / 1.031 GB, free: 8.914 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/1.202, allocations: 0 / 1.031 GB, free: 8.914 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.355e-05/1.202, allocations: 15.98 kB / 1.031 GB, free: 8.898 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/1.202, allocations: 0 / 1.031 GB, free: 8.898 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/1.202, allocations: 0 / 1.031 GB, free: 8.898 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003578/1.202, allocations: 322.8 kB / 1.031 GB, free: 8.602 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/1.202, allocations: 162.5 kB / 1.032 GB, free: 8.438 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.793e-05/1.202, allocations: 11.8 kB / 1.032 GB, free: 8.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/1.203, allocations: 7.312 kB / 1.032 GB, free: 8.426 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.804e-05/1.203, allocations: 15.97 kB / 1.032 GB, free: 8.41 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.865e-05/1.203, allocations: 31.55 kB / 1.032 GB, free: 8.383 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001597/1.203, allocations: 206 kB / 1.032 GB, free: 8.215 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1.203, allocations: 0 / 1.032 GB, free: 8.215 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003072/1.203, allocations: 55.5 kB / 1.032 GB, free: 8.168 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.0001244/1.203, allocations: 118.2 kB / 1.032 GB, free: 8.051 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004943/1.204, allocations: 350.8 kB / 1.032 GB, free: 7.754 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/1.204, allocations: 0 / 1.032 GB, free: 7.754 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001258/1.204, allocations: 73.84 kB / 1.032 GB, free: 7.695 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002194/1.204, allocations: 19.89 kB / 1.032 GB, free: 7.68 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005037/1.205, allocations: 280.4 kB / 1.033 GB, free: 7.414 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/1.205, allocations: 0.7457 MB / 1.033 GB, free: 6.648 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001361/1.205, allocations: 41.2 kB / 1.033 GB, free: 6.605 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/1.205, allocations: 34.98 kB / 1.033 GB, free: 6.578 MB / 0.6511 GB Notification: Performance of SimCode: time 2.043e-06/1.205, allocations: 0 / 1.033 GB, free: 6.578 MB / 0.6511 GB Notification: Performance of Templates: time 0.007141/1.212, allocations: 4.363 MB / 1.038 GB, free: 2.215 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