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.001152/0.001152, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.009663/0.009663, allocations: 173.7 kB / 16.27 MB, free: 6.613 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.439/1.439, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.815/2.815, allocations: 462.7 MB / 0.7364 GB, free: 300 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.0003861, allocations: 9.625 kB / 0.9028 GB, free: 36.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3745, allocations: 159.6 MB / 1.059 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.00195/0.3765, allocations: 1.234 MB / 1.06 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001282/0.3778, allocations: 0.587 MB / 1.06 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.496e-05/0.3779, allocations: 0 / 1.06 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.559e-05/0.378, allocations: 11.92 kB / 1.06 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001004/0.3781, allocations: 19.86 kB / 1.06 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006911/0.3788, allocations: 298.5 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000467/0.3793, allocations: 455.4 kB / 1.061 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.856e-05/0.3793, allocations: 4 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004033/0.3798, allocations: 303 kB / 1.061 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.38, allocations: 163.2 kB / 1.062 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.346e-05/0.3801, allocations: 12 kB / 1.062 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.878e-05/0.3802, allocations: 16 kB / 1.062 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.3803, allocations: 111.6 kB / 1.062 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002103/0.3805, allocations: 212.5 kB / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004026/0.3809, allocations: 414.9 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3809, allocations: 0 / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.562e-06/0.3809, allocations: 0 / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.081e-06/0.381, allocations: 0 / 1.062 GB, free: 1.695 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.001117/0.3821, allocations: 0.7459 MB / 1.063 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3821, allocations: 12.03 kB / 1.063 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.3823, allocations: 56.41 kB / 1.063 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003449/0.3826, allocations: 322.1 kB / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.916e-05/0.3827, allocations: 20.36 kB / 1.063 GB, free: 432 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.3828, allocations: 24.36 kB / 1.064 GB, free: 408 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.3838, allocations: 222 kB / 1.064 GB, free: 180 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.3838, allocations: 4.188 kB / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.134e-05/0.3839, allocations: 7.922 kB / 1.064 GB, free: 168 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.3839, allocations: 0 / 1.064 GB, free: 168 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008003/0.3847, allocations: 107.9 kB / 1.064 GB, free: 60 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005366/0.3852, allocations: 385.3 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.3863, allocations: 198.3 kB / 1.064 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008917/0.3872, allocations: 120.8 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.3873, allocations: 4 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00103/0.3883, allocations: 245.9 kB / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 2.224e-06/0.3883, allocations: 0 / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002666/0.391, allocations: 0.5047 MB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.387e-05/0.391, allocations: 59.41 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004103/0.3915, allocations: 413.8 kB / 1.066 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.899e-05/0.3915, allocations: 37.7 kB / 1.066 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.601e-05/0.3916, allocations: 97.44 kB / 1.066 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.296e-05/0.3917, allocations: 43.53 kB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.264e-05/0.3918, allocations: 37.69 kB / 1.066 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.3919, allocations: 318.8 kB / 1.066 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002575/0.3922, allocations: 123.9 kB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.3925, allocations: 168 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003809/0.3928, allocations: 283.1 kB / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.3929, allocations: 0 / 1.067 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008259/0.3937, allocations: 0.4938 MB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.409e-05/0.3938, allocations: 91.31 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3938, allocations: 0 / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.3938, allocations: 8.188 kB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.394, allocations: 19.92 kB / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.394, allocations: 4 kB / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005143/0.3945, allocations: 75.72 kB / 1.067 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.532e-05/0.3946, allocations: 59.98 kB / 1.067 GB, free: 12.12 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.0002635/0.3949, allocations: 193.7 kB / 1.068 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.953e-05/0.395, allocations: 43.47 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.054e-05/0.395, allocations: 43.73 kB / 1.068 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.395, allocations: 0 / 1.068 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3951, allocations: 4 kB / 1.068 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.3951, allocations: 0 / 1.068 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002241/0.3973, allocations: 0.7637 MB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.3973, allocations: 3.984 kB / 1.068 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.216e-05/0.3974, allocations: 4 kB / 1.068 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3974, allocations: 0 / 1.068 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.564e-05/0.3974, allocations: 23.97 kB / 1.069 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3974, allocations: 0 / 1.069 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3974, allocations: 0 / 1.069 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.3992, allocations: 0.4934 MB / 1.069 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002323/0.3995, allocations: 204.5 kB / 1.069 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.514e-05/0.3995, allocations: 8 kB / 1.069 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004732/0.4, allocations: 31.97 kB / 1.069 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/0.4001, allocations: 7.984 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.968e-05/0.4001, allocations: 67.97 kB / 1.069 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003032/0.4004, allocations: 295 kB / 1.07 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4004, allocations: 0 / 1.07 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003762/0.4008, allocations: 67.98 kB / 1.07 GB, free: 9.789 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.0001632/0.401, allocations: 112.9 kB / 1.07 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001292/0.4023, allocations: 454.5 kB / 1.07 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4023, allocations: 0 / 1.07 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007995/0.4031, allocations: 132.2 kB / 1.07 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.4035, allocations: 32.58 kB / 1.07 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.4051, allocations: 0.6759 MB / 1.071 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003717/0.4055, allocations: 0.7749 MB / 1.072 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.684e-05/0.4055, allocations: 17.06 kB / 1.072 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.087e-05/0.4056, allocations: 19.44 kB / 1.072 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of SimCode: time 4.81e-07/0.4056, allocations: 0 / 1.072 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of Templates: time 0.01002/0.4156, allocations: 5.01 MB / 1.077 GB, free: 2.395 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