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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001084/0.001085, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.00123/0.00123, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 223.3 MB / 240 MB, free: 5.219 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.894/2.894, allocations: 462.6 MB / 0.736 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004051/0.0004051, allocations: 8.812 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3797/0.3802, allocations: 159.6 MB / 1.058 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001708/0.3819, allocations: 1.211 MB / 1.059 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001194/0.3831, allocations: 0.5245 MB / 1.06 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.85e-05/0.3832, allocations: 0 / 1.06 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.911e-05/0.3833, allocations: 11.86 kB / 1.06 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001051/0.3834, allocations: 27.84 kB / 1.06 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007229/0.3842, allocations: 262.7 kB / 1.06 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004464/0.3846, allocations: 383.4 kB / 1.06 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.128e-05/0.3847, allocations: 7.984 kB / 1.06 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005302/0.3852, allocations: 315.5 kB / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003055/0.3856, allocations: 187.7 kB / 1.061 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.771e-05/0.3856, allocations: 12 kB / 1.061 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.755e-05/0.3857, allocations: 16 kB / 1.061 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.3859, allocations: 115.7 kB / 1.061 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.386, allocations: 97.52 kB / 1.061 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003832/0.3864, allocations: 311.6 kB / 1.061 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.3864, allocations: 4 kB / 1.061 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.475e-06/0.3864, allocations: 0 / 1.061 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.3865, allocations: 0 / 1.061 GB, free: 1.898 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.001186/0.3876, allocations: 0.7457 MB / 1.062 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.3877, allocations: 8.031 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.3878, allocations: 55.53 kB / 1.062 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004152/0.3882, allocations: 301.2 kB / 1.062 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.418e-05/0.3883, allocations: 15.98 kB / 1.062 GB, free: 0.6523 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.348e-05/0.3884, allocations: 27.95 kB / 1.062 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009232/0.3893, allocations: 224.3 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.3893, allocations: 0 / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/0.3894, allocations: 4 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.3894, allocations: 8 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006944/0.3901, allocations: 111.9 kB / 1.063 GB, free: 288 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004813/0.3906, allocations: 405.1 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009772/0.3916, allocations: 186.5 kB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006614/0.3923, allocations: 120.8 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.3923, allocations: 3.953 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008806/0.3932, allocations: 239.1 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.3932, allocations: 0 / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002295/0.3955, allocations: 0.5036 MB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.3955, allocations: 59.39 kB / 1.064 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004016/0.396, allocations: 409.8 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.396, allocations: 41.69 kB / 1.065 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.644e-05/0.3961, allocations: 97.44 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.328e-05/0.3961, allocations: 39.48 kB / 1.065 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.014e-05/0.3962, allocations: 15.98 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.3963, allocations: 322.8 kB / 1.065 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.3966, allocations: 123.9 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002643/0.3969, allocations: 165.9 kB / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002847/0.3972, allocations: 196.7 kB / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3972, allocations: 3.953 kB / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007521/0.3979, allocations: 480.7 kB / 1.066 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.961e-05/0.398, allocations: 91.36 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.398, allocations: 4 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.3981, allocations: 4 kB / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.3982, allocations: 23.88 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.3982, allocations: 7.984 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004339/0.3987, allocations: 71.98 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.493e-05/0.3988, allocations: 63.97 kB / 1.066 GB, free: 12.49 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002126/0.399, allocations: 193.7 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.627e-05/0.3991, allocations: 39.53 kB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.873e-05/0.3991, allocations: 47.73 kB / 1.067 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.3992, allocations: 0 / 1.067 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.3992, allocations: 3.953 kB / 1.067 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3992, allocations: 0 / 1.067 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001952/0.4011, allocations: 0.7597 MB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.4011, allocations: 4 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.521e-05/0.4012, allocations: 15.98 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.4012, allocations: 0 / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.932e-05/0.4012, allocations: 19.94 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4013, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.4013, allocations: 4 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.4028, allocations: 494.7 kB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002312/0.403, allocations: 204.5 kB / 1.068 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.027e-05/0.4031, allocations: 15.92 kB / 1.068 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004269/0.4035, allocations: 35.92 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.297e-05/0.4036, allocations: 15.98 kB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.449e-05/0.4036, allocations: 51.98 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002778/0.4039, allocations: 291.1 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4039, allocations: 4 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003347/0.4043, allocations: 63.98 kB / 1.069 GB, free: 10.16 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 (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.0001533/0.4044, allocations: 117.5 kB / 1.069 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001134/0.4056, allocations: 457.1 kB / 1.069 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4056, allocations: 4 kB / 1.069 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006587/0.4062, allocations: 128.2 kB / 1.069 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.4066, allocations: 29.55 kB / 1.069 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.4082, allocations: 0.656 MB / 1.07 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.4087, allocations: 0.7785 MB / 1.071 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.586e-05/0.4087, allocations: 13.08 kB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.4088, allocations: 19.44 kB / 1.071 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.4088, allocations: 0 / 1.071 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of Templates: time 0.009251/0.4181, allocations: 4.915 MB / 1.075 GB, free: 2.879 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