Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.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.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths") translateModel(Buildings.Utilities.Time.Validation.CalendarTimeMonths,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001529/0.001529, allocations: 168.7 kB / 15.95 MB, free: 204 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.502/1.502, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.154/3.154, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004022/0.0004024, allocations: 12.38 kB / 0.9021 GB, free: 36.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3784/0.3788, allocations: 159.6 MB / 1.058 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Validation.CalendarTimeMonths): time 0.002098/0.381, allocations: 1.207 MB / 1.059 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001429/0.3825, allocations: 0.5385 MB / 1.06 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.856e-05/0.3825, allocations: 0 / 1.06 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001024/0.3826, allocations: 3.938 kB / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001153/0.3828, allocations: 23.91 kB / 1.06 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000678/0.3834, allocations: 262.8 kB / 1.06 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003574/0.3838, allocations: 375.4 kB / 1.06 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.541e-05/0.3839, allocations: 15.98 kB / 1.06 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004455/0.3843, allocations: 315.4 kB / 1.061 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002623/0.3846, allocations: 183.7 kB / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.05e-05/0.3847, allocations: 20 kB / 1.061 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.637e-05/0.3847, allocations: 12 kB / 1.061 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.3849, allocations: 123.7 kB / 1.061 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.748e-05/0.385, allocations: 93.52 kB / 1.061 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002754/0.3853, allocations: 311.6 kB / 1.061 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3853, allocations: 0 / 1.061 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3853, allocations: 0 / 1.061 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.3853, allocations: 0 / 1.061 GB, free: 1.848 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.0009981/0.3863, allocations: 0.7573 MB / 1.062 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3863, allocations: 12.03 kB / 1.062 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.3864, allocations: 47.53 kB / 1.062 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003429/0.3868, allocations: 293.3 kB / 1.062 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.784e-05/0.3868, allocations: 19.92 kB / 1.062 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.641e-05/0.3869, allocations: 31.94 kB / 1.063 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000868/0.3878, allocations: 225.4 kB / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.3878, allocations: 0 / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.3878, allocations: 0 / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.3878, allocations: 3.984 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006636/0.3885, allocations: 115.9 kB / 1.063 GB, free: 228 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004528/0.389, allocations: 397.1 kB / 1.063 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009182/0.3899, allocations: 190.4 kB / 1.063 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006438/0.3906, allocations: 124.8 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.3906, allocations: 7.953 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000818/0.3914, allocations: 227.1 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.473e-06/0.3914, allocations: 0 / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.00222/0.3937, allocations: 0.5048 MB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.3937, allocations: 63.34 kB / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003908/0.3941, allocations: 413.8 kB / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.906e-05/0.3942, allocations: 37.7 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.067e-05/0.3943, allocations: 93.44 kB / 1.065 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.465e-05/0.3943, allocations: 43.53 kB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.542e-05/0.3943, allocations: 12 kB / 1.065 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.3945, allocations: 326.8 kB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002572/0.3947, allocations: 119.9 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002838/0.395, allocations: 165.9 kB / 1.065 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.3953, allocations: 193.1 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.3953, allocations: 3.953 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008316/0.3961, allocations: 492.6 kB / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.3963, allocations: 87.38 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3963, allocations: 0 / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.3963, allocations: 4.188 kB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.3965, allocations: 31.88 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.3965, allocations: 0 / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004579/0.397, allocations: 75.72 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.938e-05/0.3971, allocations: 59.98 kB / 1.066 GB, free: 12.43 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.calTim.firstHourSampling,calTim.firstHourSampling,$PRE.calTim.firstDaySampling,calTim.firstDaySampling,$whenCondition1,calTim.daySampleTrigger,$whenCondition2,calTim.hourSampleTrigger,$PRE.calTim.year,calTim.year,$PRE.calTim.month,calTim.month,$PRE.calTim.day,calTim.day,$PRE.calTim.hour,calTim.hour,$PRE.calTim.weekDay,calTim.weekDay,$PRE.calTim.daysSinceEpoch,calTim.daysSinceEpoch,$PRE.calTim.yearIndex,calTim.yearIndex,$PRE.calTim.epochLastMonth,calTim.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.0002578/0.3973, allocations: 200 kB / 1.067 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-05/0.3974, allocations: 35.53 kB / 1.067 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.72e-05/0.3975, allocations: 43.73 kB / 1.067 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3975, allocations: 4 kB / 1.067 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/0.3975, allocations: 7.891 kB / 1.067 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3975, allocations: 0 / 1.067 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002105/0.3996, allocations: 0.7661 MB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.3997, allocations: 0 / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.682e-05/0.3997, allocations: 4 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3997, allocations: 0 / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.147e-05/0.3998, allocations: 27.92 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.3998, allocations: 0 / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.3998, allocations: 4 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.4013, allocations: 490.8 kB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002361/0.4016, allocations: 196.5 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.368e-05/0.4016, allocations: 16 kB / 1.068 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000425/0.4021, allocations: 35.92 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.4021, allocations: 7.984 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.018e-05/0.4022, allocations: 63.97 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003038/0.4025, allocations: 295 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4025, allocations: 3.938 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003512/0.4029, allocations: 67.98 kB / 1.069 GB, free: 10.1 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 (calTim.hourSampleTrigger,calTim.daySampleTrigger,$whenCondition2,$whenCondition1,calTim.year,calTim.month,calTim.day,calTim.hour,calTim.weekDay,calTim.daysSinceEpoch,calTim.yearIndex,calTim.epochLastMonth,calTim.firstHourSampling,calTim.firstDaySampling) * Number of discrete states: 9 (calTim.firstDaySampling,calTim.daysSinceEpoch,calTim.weekDay,calTim.yearIndex,calTim.year,calTim.epochLastMonth,calTim.month,calTim.firstHourSampling,calTim.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.0001561/0.403, allocations: 113.8 kB / 1.069 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001164/0.4042, allocations: 458.4 kB / 1.069 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4042, allocations: 0 / 1.069 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006669/0.4049, allocations: 131.1 kB / 1.069 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003483/0.4053, allocations: 26.92 kB / 1.069 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.4067, allocations: 0.6482 MB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.4071, allocations: 0.7749 MB / 1.071 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.52e-05/0.4072, allocations: 13.08 kB / 1.071 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.133e-05/0.4072, allocations: 19.42 kB / 1.071 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of SimCode: time 4.41e-07/0.4072, allocations: 4 kB / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of Templates: time 0.009223/0.4165, allocations: 4.826 MB / 1.075 GB, free: 2.93 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.sim & ./Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Validation_CalendarTimeMonths.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches