Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.00761/0.00761, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001743/0.001743, allocations: 202.4 kB / 16.68 MB, free: 5.969 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.712/2.712, allocations: 437 MB / 0.7105 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 67.89 kB / 1.018 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3495, allocations: 151.6 MB / 1.167 GB, free: 6.914 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.00282/0.3524, allocations: 1.514 MB / 1.168 GB, free: 5.383 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001257/0.3537, allocations: 0.5422 MB / 1.169 GB, free: 4.84 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.429e-05/0.3538, allocations: 0 / 1.169 GB, free: 4.84 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.3539, allocations: 11.86 kB / 1.169 GB, free: 4.828 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001082/0.354, allocations: 23.66 kB / 1.169 GB, free: 4.805 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007557/0.3548, allocations: 314.6 kB / 1.169 GB, free: 4.5 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0005197/0.3553, allocations: 0.5072 MB / 1.169 GB, free: 3.992 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.364e-05/0.3553, allocations: 4 kB / 1.169 GB, free: 3.988 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003454/0.3557, allocations: 275.6 kB / 1.17 GB, free: 3.719 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00027/0.356, allocations: 139.7 kB / 1.17 GB, free: 3.582 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.3561, allocations: 28 kB / 1.17 GB, free: 3.555 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001128/0.3562, allocations: 31.94 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001443/0.3563, allocations: 115.6 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001801/0.3565, allocations: 187.1 kB / 1.17 GB, free: 3.227 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004655/0.357, allocations: 426.4 kB / 1.171 GB, free: 2.809 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.357, allocations: 0 / 1.171 GB, free: 2.809 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.933e-06/0.357, allocations: 3.938 kB / 1.171 GB, free: 2.805 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.357, allocations: 0 / 1.171 GB, free: 2.805 MB / 0.92 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.001277/0.3583, allocations: 0.8781 MB / 1.171 GB, free: 1.836 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.3584, allocations: 8.031 kB / 1.171 GB, free: 1.828 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.3585, allocations: 52.7 kB / 1.171 GB, free: 1.777 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.3589, allocations: 322.6 kB / 1.172 GB, free: 1.426 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.946e-05/0.359, allocations: 16.36 kB / 1.172 GB, free: 1.41 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.679e-05/0.3591, allocations: 28.36 kB / 1.172 GB, free: 1.383 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009203/0.36, allocations: 209.9 kB / 1.172 GB, free: 1.172 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.36, allocations: 192 / 1.172 GB, free: 1.172 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.36, allocations: 11.92 kB / 1.172 GB, free: 1.16 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.3601, allocations: 4 kB / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007316/0.3608, allocations: 95.92 kB / 1.172 GB, free: 1.062 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004081/0.3612, allocations: 401.2 kB / 1.173 GB, free: 0.6211 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009871/0.3622, allocations: 178.1 kB / 1.173 GB, free: 452 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007183/0.3629, allocations: 108.8 kB / 1.173 GB, free: 340 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.363, allocations: 7.938 kB / 1.173 GB, free: 332 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008697/0.3638, allocations: 220.6 kB / 1.173 GB, free: 100 kB / 0.92 GB Notification: Performance of pre-optimization done (n=16): time 1.733e-06/0.3639, allocations: 0 / 1.173 GB, free: 100 kB / 0.92 GB Notification: Performance of matching and sorting (n=16): time 0.002483/0.3663, allocations: 499.9 kB / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.3664, allocations: 59.41 kB / 1.174 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004436/0.3669, allocations: 413.9 kB / 1.174 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.223e-05/0.3669, allocations: 37.7 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.665e-05/0.367, allocations: 93.44 kB / 1.174 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.961e-05/0.3671, allocations: 51.61 kB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001983/0.3673, allocations: 125.5 kB / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3674, allocations: 322.8 kB / 1.175 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.3677, allocations: 119.9 kB / 1.175 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002928/0.368, allocations: 166.9 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004128/0.3684, allocations: 279.5 kB / 1.175 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3684, allocations: 0 / 1.175 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007998/0.3692, allocations: 492.7 kB / 1.176 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.066e-05/0.3693, allocations: 91.31 kB / 1.176 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3693, allocations: 0 / 1.176 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.3693, allocations: 4 kB / 1.176 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.3695, allocations: 27.91 kB / 1.176 GB, free: 13.24 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.3695, allocations: 3.984 kB / 1.176 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004572/0.37, allocations: 67.98 kB / 1.176 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.151e-05/0.3701, allocations: 55.98 kB / 1.176 GB, free: 13.11 MB / 0.9356 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.0002164/0.3703, allocations: 197.7 kB / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.635e-05/0.3704, allocations: 43.69 kB / 1.176 GB, free: 12.87 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.357e-05/0.3704, allocations: 35.75 kB / 1.176 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3704, allocations: 3.938 kB / 1.176 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3705, allocations: 3.984 kB / 1.176 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3705, allocations: 0 / 1.176 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002172/0.3726, allocations: 0.7521 MB / 1.177 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3727, allocations: 0 / 1.177 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.253e-05/0.3727, allocations: 7.938 kB / 1.177 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.3727, allocations: 0 / 1.177 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/0.3728, allocations: 27.97 kB / 1.177 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3728, allocations: 4 kB / 1.177 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3728, allocations: 0 / 1.177 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/0.3744, allocations: 479.4 kB / 1.177 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000295/0.3747, allocations: 200.7 kB / 1.177 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.14e-05/0.3748, allocations: 12 kB / 1.177 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004453/0.3752, allocations: 31.91 kB / 1.178 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.906e-05/0.3753, allocations: 7.984 kB / 1.178 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.736e-05/0.3754, allocations: 63.97 kB / 1.178 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000276/0.3756, allocations: 291.1 kB / 1.178 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3756, allocations: 0 / 1.178 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003426/0.376, allocations: 71.98 kB / 1.178 GB, free: 10.81 MB / 0.9356 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.0001857/0.3762, allocations: 117 kB / 1.178 GB, free: 10.68 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001193/0.3774, allocations: 435.5 kB / 1.178 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3774, allocations: 384 / 1.178 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0007106/0.3781, allocations: 115.9 kB / 1.179 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003677/0.3785, allocations: 37.39 kB / 1.179 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.3799, allocations: 0.5585 MB / 1.179 GB, free: 9.504 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003716/0.3803, allocations: 0.7745 MB / 1.18 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.671e-05/0.3804, allocations: 9.094 kB / 1.18 GB, free: 8.691 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.393e-05/0.3804, allocations: 19.42 kB / 1.18 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of SimCode: time 2.61e-07/0.3804, allocations: 0 / 1.18 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of Templates: time 0.00904/0.3895, allocations: 5.023 MB / 1.185 GB, free: 3.547 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches