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.004738/0.004738, allocations: 100.8 kB / 15.73 MB, free: 5.992 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.001088/0.001088, allocations: 196.3 kB / 16.67 MB, free: 5.93 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.989/2.989, allocations: 461.9 MB / 0.7347 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 64.12 kB / 1.054 GB, free: 7.215 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3835/0.385, allocations: 157.4 MB / 1.208 GB, free: 9.715 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003313/0.3883, allocations: 1.517 MB / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001349/0.3897, allocations: 0.5423 MB / 1.21 GB, free: 7.641 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.02e-05/0.3898, allocations: 0 / 1.21 GB, free: 7.641 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.39, allocations: 7.875 kB / 1.21 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.3901, allocations: 27.84 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000996/0.3911, allocations: 313.2 kB / 1.21 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0006573/0.3918, allocations: 0.4994 MB / 1.211 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 6.408e-05/0.3919, allocations: 15.98 kB / 1.211 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004981/0.3924, allocations: 275.6 kB / 1.211 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003551/0.3927, allocations: 139.6 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.255e-05/0.3928, allocations: 28 kB / 1.211 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.148e-05/0.3929, allocations: 24 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.3931, allocations: 115.7 kB / 1.211 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001973/0.3933, allocations: 187 kB / 1.211 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004574/0.3937, allocations: 422.7 kB / 1.212 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3938, allocations: 0 / 1.212 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3938, allocations: 8 kB / 1.212 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.324e-05/0.3938, allocations: 0 / 1.212 GB, free: 5.609 MB / 0.9669 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.00137/0.3952, allocations: 0.8665 MB / 1.213 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.3952, allocations: 8.625 kB / 1.213 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.3954, allocations: 48.47 kB / 1.213 GB, free: 4.598 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003785/0.3958, allocations: 314.2 kB / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.096e-05/0.3958, allocations: 20.36 kB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.398e-05/0.3959, allocations: 28.31 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000961/0.3969, allocations: 216.6 kB / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.3969, allocations: 192 / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.704e-05/0.3969, allocations: 7.938 kB / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.397, allocations: 0 / 1.213 GB, free: 3.984 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007853/0.3977, allocations: 99.92 kB / 1.213 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005594/0.3983, allocations: 389.2 kB / 1.214 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009408/0.3993, allocations: 174.4 kB / 1.214 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006947/0.4, allocations: 112.8 kB / 1.214 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.317e-05/0.4, allocations: 4 kB / 1.214 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009494/0.401, allocations: 236.5 kB / 1.214 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 2.024e-06/0.401, allocations: 0 / 1.214 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16): time 0.002474/0.4035, allocations: 486.6 kB / 1.215 GB, free: 2.438 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.4035, allocations: 63.39 kB / 1.215 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005297/0.4041, allocations: 405.9 kB / 1.215 GB, free: 1.957 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 6.835e-05/0.4042, allocations: 41.69 kB / 1.215 GB, free: 1.91 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.4043, allocations: 97.36 kB / 1.215 GB, free: 1.812 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.311e-05/0.4043, allocations: 39.53 kB / 1.215 GB, free: 1.773 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.4045, allocations: 129.3 kB / 1.215 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4047, allocations: 322.8 kB / 1.216 GB, free: 1.316 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002609/0.4049, allocations: 119.9 kB / 1.216 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002788/0.4052, allocations: 171.2 kB / 1.216 GB, free: 1.012 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003737/0.4056, allocations: 279.4 kB / 1.216 GB, free: 0.707 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4056, allocations: 0 / 1.216 GB, free: 0.707 MB / 0.9669 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007983/0.4064, allocations: 484.7 kB / 1.217 GB, free: 220 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.533e-05/0.4065, allocations: 91.31 kB / 1.217 GB, free: 116 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.4065, allocations: 8.188 kB / 1.217 GB, free: 108 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.4066, allocations: 4 kB / 1.217 GB, free: 104 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.4067, allocations: 19.92 kB / 1.217 GB, free: 84 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.4068, allocations: 4 kB / 1.217 GB, free: 80 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004544/0.4072, allocations: 59.73 kB / 1.217 GB, free: 20 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.4073, allocations: 67.97 kB / 1.217 GB, free: 15.95 MB / 0.9825 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.0002238/0.4076, allocations: 197.7 kB / 1.217 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.379e-05/0.4076, allocations: 39.47 kB / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.921e-05/0.4077, allocations: 43.73 kB / 1.217 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.4077, allocations: 4 kB / 1.217 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.4077, allocations: 0 / 1.217 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4077, allocations: 0 / 1.217 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002133/0.4099, allocations: 0.7486 MB / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.4099, allocations: 0 / 1.218 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.701e-05/0.41, allocations: 7.984 kB / 1.218 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.41, allocations: 0 / 1.218 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/0.41, allocations: 19.92 kB / 1.218 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.41, allocations: 0 / 1.218 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.41, allocations: 0 / 1.218 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/0.4116, allocations: 489.4 kB / 1.218 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002755/0.4119, allocations: 200.5 kB / 1.219 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.402e-05/0.412, allocations: 15.98 kB / 1.219 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000419/0.4124, allocations: 31.97 kB / 1.219 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.945e-05/0.4125, allocations: 11.98 kB / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.834e-05/0.4125, allocations: 51.98 kB / 1.219 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000315/0.4129, allocations: 295.1 kB / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4129, allocations: 0 / 1.219 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003995/0.4133, allocations: 71.98 kB / 1.219 GB, free: 13.66 MB / 0.9825 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.0001626/0.4134, allocations: 120.9 kB / 1.219 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001199/0.4146, allocations: 442.5 kB / 1.22 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4147, allocations: 0 / 1.22 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006892/0.4153, allocations: 120.2 kB / 1.22 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003595/0.4157, allocations: 36.72 kB / 1.22 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.4171, allocations: 0.5396 MB / 1.22 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.4175, allocations: 0.7746 MB / 1.221 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.692e-05/0.4176, allocations: 13.08 kB / 1.221 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.59e-05/0.4176, allocations: 19.42 kB / 1.221 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of SimCode: time 4.8e-07/0.4176, allocations: 0 / 1.221 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of Templates: time 0.009549/0.4272, allocations: 5.021 MB / 1.226 GB, free: 6.391 MB / 0.9825 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