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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 196.8 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.707/2.707, allocations: 461.9 MB / 0.7342 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 69.12 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.35, allocations: 157.4 MB / 1.052 GB, free: 8.848 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002617/0.3527, allocations: 1.565 MB / 1.054 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001291/0.354, allocations: 0.6124 MB / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.553e-05/0.354, allocations: 0 / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001042/0.3542, allocations: 7.922 kB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.3543, allocations: 15.94 kB / 1.054 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006745/0.355, allocations: 287.3 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004561/0.3554, allocations: 447.4 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.085e-05/0.3555, allocations: 4 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004276/0.3559, allocations: 307 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002926/0.3562, allocations: 171.1 kB / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.931e-05/0.3563, allocations: 16 kB / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.687e-05/0.3564, allocations: 12 kB / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.3566, allocations: 107.7 kB / 1.056 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002767/0.3569, allocations: 182.8 kB / 1.056 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004573/0.3574, allocations: 418.9 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3574, allocations: 4 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.615e-06/0.3574, allocations: 8 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.003e-05/0.3574, allocations: 0 / 1.056 GB, free: 4.711 MB / 0.8106 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.00155/0.359, allocations: 0.8665 MB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.359, allocations: 8.031 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.3592, allocations: 52.47 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004301/0.3596, allocations: 314.1 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.231e-05/0.3597, allocations: 20.36 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.244e-05/0.3598, allocations: 32.36 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.3609, allocations: 218 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.361, allocations: 192 / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.529e-05/0.361, allocations: 3.938 kB / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.361, allocations: 0 / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008498/0.3619, allocations: 107.9 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005963/0.3625, allocations: 385.3 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.3636, allocations: 178.5 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007946/0.3644, allocations: 108.8 kB / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.3645, allocations: 4 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001032/0.3655, allocations: 227 kB / 1.059 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.883e-06/0.3655, allocations: 0 / 1.059 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.002726/0.3683, allocations: 483.4 kB / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.3683, allocations: 67.39 kB / 1.059 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004551/0.3688, allocations: 409.8 kB / 1.059 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.263e-05/0.3689, allocations: 41.69 kB / 1.06 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.699e-05/0.3689, allocations: 93.44 kB / 1.06 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.23e-05/0.369, allocations: 43.48 kB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001941/0.3692, allocations: 129.3 kB / 1.06 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.3693, allocations: 322.8 kB / 1.06 GB, free: 424 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.3696, allocations: 119.9 kB / 1.06 GB, free: 304 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002941/0.3699, allocations: 176 kB / 1.06 GB, free: 108 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004092/0.3703, allocations: 275.7 kB / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.3703, allocations: 0 / 1.061 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009052/0.3713, allocations: 496.5 kB / 1.061 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001145/0.3714, allocations: 91.31 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.3714, allocations: 4.188 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.3714, allocations: 4 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001953/0.3716, allocations: 31.84 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.3716, allocations: 0 / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005407/0.3722, allocations: 63.8 kB / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.73e-05/0.3723, allocations: 59.98 kB / 1.061 GB, free: 15.04 MB / 0.8262 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 (calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.daySampleTrigger,$whenCondition1,calendarTime2016.hourSampleTrigger,$whenCondition2,calendarTime2016.epochLastMonth,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.yearIndex,$PRE.calendarTime2016.yearIndex,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,$PRE.calendarTime2016.weekDay,calendarTime2016.hour,$PRE.calendarTime2016.hour,calendarTime2016.day,$PRE.calendarTime2016.day,calendarTime2016.month,$PRE.calendarTime2016.month,calendarTime2016.year,$PRE.calendarTime2016.year) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002532/0.3726, allocations: 197.7 kB / 1.062 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.348e-05/0.3726, allocations: 43.45 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.83e-05/0.3727, allocations: 39.75 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.3727, allocations: 4 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3727, allocations: 0 / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3728, allocations: 0 / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002343/0.3751, allocations: 0.7483 MB / 1.062 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.3751, allocations: 3.984 kB / 1.062 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.774e-05/0.3752, allocations: 4 kB / 1.062 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.3752, allocations: 4 kB / 1.062 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.952e-05/0.3752, allocations: 23.97 kB / 1.062 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/0.3752, allocations: 0 / 1.062 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3752, allocations: 3.938 kB / 1.062 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.3771, allocations: 473.8 kB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002367/0.3774, allocations: 200.5 kB / 1.063 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.3775, allocations: 16 kB / 1.063 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004883/0.378, allocations: 27.95 kB / 1.063 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/0.378, allocations: 8 kB / 1.063 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.757e-05/0.3781, allocations: 59.97 kB / 1.063 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002852/0.3784, allocations: 295.1 kB / 1.063 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3784, allocations: 0 / 1.063 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003993/0.3788, allocations: 63.98 kB / 1.063 GB, free: 12.75 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001716/0.379, allocations: 128.9 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001312/0.3803, allocations: 430.5 kB / 1.064 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3803, allocations: 0 / 1.064 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008155/0.3811, allocations: 124.2 kB / 1.064 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003972/0.3815, allocations: 35.5 kB / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.3832, allocations: 0.6624 MB / 1.065 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005368/0.3838, allocations: 0.771 MB / 1.066 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.184e-05/0.3839, allocations: 17.08 kB / 1.066 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.225e-05/0.3839, allocations: 19.44 kB / 1.066 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of SimCode: time 8.82e-07/0.3839, allocations: 0 / 1.066 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of Templates: time 0.009386/0.3933, allocations: 5.047 MB / 1.071 GB, free: 5.348 MB / 0.8262 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches