Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.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.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") translateModel(Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 91.61 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.001577/0.001577, 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.528/1.528, allocations: 223.3 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 2.882/2.882, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003994/0.0003995, allocations: 8.25 kB / 0.9021 GB, free: 36.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3862/0.3866, allocations: 159.6 MB / 1.058 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus): time 0.001805/0.3885, allocations: 1.211 MB / 1.059 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001222/0.3897, allocations: 0.5405 MB / 1.06 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.951e-05/0.3898, allocations: 0 / 1.06 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.951e-05/0.3899, allocations: 7.922 kB / 1.06 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001095/0.39, allocations: 27.84 kB / 1.06 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007122/0.3907, allocations: 266.4 kB / 1.06 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000391/0.3911, allocations: 383.4 kB / 1.06 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.198e-05/0.3912, allocations: 7.984 kB / 1.06 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004804/0.3917, allocations: 319.5 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002703/0.3919, allocations: 179.7 kB / 1.061 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.08e-05/0.392, allocations: 12 kB / 1.061 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.221e-05/0.3921, allocations: 16 kB / 1.061 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001537/0.3922, allocations: 115.7 kB / 1.061 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.3924, allocations: 93.52 kB / 1.061 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003216/0.3927, allocations: 319.6 kB / 1.061 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3927, allocations: 4 kB / 1.061 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.164e-06/0.3927, allocations: 0 / 1.061 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.3927, allocations: 0 / 1.061 GB, free: 1.863 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.001061/0.3938, allocations: 0.7418 MB / 1.062 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3938, allocations: 8.031 kB / 1.062 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.394, allocations: 51.53 kB / 1.062 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003691/0.3943, allocations: 301.2 kB / 1.062 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.906e-05/0.3944, allocations: 15.98 kB / 1.062 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.229e-05/0.3945, allocations: 31.95 kB / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009223/0.3954, allocations: 221.4 kB / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.3954, allocations: 0 / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.908e-05/0.3955, allocations: 12 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.3955, allocations: 3.938 kB / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006748/0.3962, allocations: 115.8 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004753/0.3966, allocations: 393.2 kB / 1.063 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009304/0.3976, allocations: 194.5 kB / 1.063 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000656/0.3982, allocations: 116.8 kB / 1.064 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.3983, allocations: 3.953 kB / 1.064 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008726/0.3992, allocations: 247 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 2.284e-06/0.3992, allocations: 0 / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002324/0.4015, allocations: 0.5072 MB / 1.064 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/0.4016, allocations: 59.41 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004683/0.4021, allocations: 409.8 kB / 1.065 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.012e-05/0.4021, allocations: 41.69 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.661e-05/0.4022, allocations: 97.44 kB / 1.065 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.086e-05/0.4023, allocations: 39.53 kB / 1.065 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.696e-05/0.4023, allocations: 12 kB / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.4024, allocations: 322.8 kB / 1.065 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002528/0.4027, allocations: 119.9 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000276/0.403, allocations: 169.9 kB / 1.065 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002656/0.4033, allocations: 192.7 kB / 1.066 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.4033, allocations: 3.953 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007753/0.4041, allocations: 488.7 kB / 1.066 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.947e-05/0.4042, allocations: 91.38 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.4042, allocations: 0 / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.4042, allocations: 4 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.4044, allocations: 23.88 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.4044, allocations: 4 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004546/0.4048, allocations: 75.92 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.859e-05/0.4049, allocations: 63.97 kB / 1.066 GB, free: 12.45 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.0002194/0.4052, allocations: 188 kB / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.845e-05/0.4052, allocations: 39.53 kB / 1.067 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.78e-05/0.4053, allocations: 47.73 kB / 1.067 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.4053, allocations: 0 / 1.067 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.4053, allocations: 3.953 kB / 1.067 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.4053, allocations: 0 / 1.067 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.4074, allocations: 0.7637 MB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.4074, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.717e-05/0.4074, allocations: 7.984 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.4074, allocations: 4 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.681e-05/0.4075, allocations: 19.94 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.4075, allocations: 0 / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.4075, allocations: 3.984 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.4091, allocations: 494.7 kB / 1.068 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002549/0.4093, allocations: 200.5 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.314e-05/0.4094, allocations: 11.98 kB / 1.068 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004219/0.4098, allocations: 39.92 kB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.4099, allocations: 15.98 kB / 1.068 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.202e-05/0.41, allocations: 55.97 kB / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003072/0.4103, allocations: 291.1 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4103, allocations: 0 / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004105/0.4107, allocations: 64 kB / 1.069 GB, free: 10.13 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.0001583/0.4109, allocations: 116.4 kB / 1.069 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0012/0.4121, allocations: 465.5 kB / 1.069 GB, free: 9.531 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4121, allocations: 0 / 1.069 GB, free: 9.531 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006707/0.4128, allocations: 123.9 kB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003658/0.4131, allocations: 33.86 kB / 1.069 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.4147, allocations: 0.6483 MB / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000433/0.4151, allocations: 0.7748 MB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.282e-05/0.4152, allocations: 17.08 kB / 1.071 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.021e-05/0.4152, allocations: 15.44 kB / 1.071 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of SimCode: time 7.92e-07/0.4152, allocations: 0 / 1.071 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of Templates: time 0.00948/0.4247, allocations: 4.828 MB / 1.075 GB, free: 2.949 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches