Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Controls.OBC.CDL.Reals.Sources.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.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.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.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.534/1.534, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.969/2.969, allocations: 472.6 MB / 0.7451 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 60.92 kB / 0.9121 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4551/0.4566, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths): time 0.004212/0.4609, allocations: 1.734 MB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001836/0.4627, allocations: 0.6244 MB / 1.071 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.463, allocations: 8 kB / 1.071 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.4631, allocations: 11.86 kB / 1.071 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000205/0.4634, allocations: 35.78 kB / 1.071 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.4646, allocations: 358.5 kB / 1.071 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009921/0.4657, allocations: 0.6321 MB / 1.072 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/0.4658, allocations: 33.08 kB / 1.072 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006246/0.4665, allocations: 311.6 kB / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005064/0.467, allocations: 155.5 kB / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0002221/0.4672, allocations: 40 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001538/0.4674, allocations: 40 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.4676, allocations: 127.5 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000267/0.4678, allocations: 211 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006821/0.4685, allocations: 0.6001 MB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.4685, allocations: 0 / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.843e-06/0.4686, allocations: 0 / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.207e-06/0.4686, allocations: 7.938 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001541/0.4701, allocations: 0.9131 MB / 1.074 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.977e-05/0.4702, allocations: 8.031 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.4703, allocations: 52.47 kB / 1.074 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004689/0.4708, allocations: 330.2 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.998e-05/0.4709, allocations: 24.55 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.453e-05/0.471, allocations: 28.36 kB / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.4721, allocations: 234 kB / 1.075 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.4721, allocations: 3.938 kB / 1.075 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/0.4721, allocations: 8 kB / 1.075 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.4721, allocations: 3.938 kB / 1.075 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008213/0.473, allocations: 118 kB / 1.075 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.4745, allocations: 0.6758 MB / 1.075 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.4756, allocations: 190.5 kB / 1.076 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007303/0.4763, allocations: 112.8 kB / 1.076 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.4764, allocations: 0 / 1.076 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.4774, allocations: 235.6 kB / 1.076 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 3.296e-06/0.4774, allocations: 0 / 1.076 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002697/0.4801, allocations: 0.4913 MB / 1.076 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.076e-05/0.4802, allocations: 59.39 kB / 1.076 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005623/0.4808, allocations: 441.9 kB / 1.077 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.4809, allocations: 37.7 kB / 1.077 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.481, allocations: 105.3 kB / 1.077 GB, free: 1.172 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.98e-05/0.4811, allocations: 43.48 kB / 1.077 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002496/0.4814, allocations: 145.2 kB / 1.077 GB, free: 0.9805 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001748/0.4815, allocations: 326.8 kB / 1.077 GB, free: 0.6523 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003084/0.4819, allocations: 139.9 kB / 1.078 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000312/0.4822, allocations: 191.1 kB / 1.078 GB, free: 316 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000428/0.4826, allocations: 305.3 kB / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.4826, allocations: 0 / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009504/0.4836, allocations: 0.5223 MB / 1.079 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/0.4837, allocations: 97.41 kB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.4837, allocations: 4 kB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.633e-05/0.4838, allocations: 3.984 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.484, allocations: 19.98 kB / 1.079 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.484, allocations: 7.938 kB / 1.079 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005382/0.4845, allocations: 63.97 kB / 1.079 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000111/0.4846, allocations: 71.91 kB / 1.079 GB, free: 15.16 MB / 0.8419 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 (calTim.calTim.firstDaySampling,$PRE.calTim.calTim.firstDaySampling,calTim.calTim.firstHourSampling,$PRE.calTim.calTim.firstHourSampling,calTim.calTim.hourSampleTrigger,$whenCondition1,calTim.calTim.daySampleTrigger,$whenCondition2,calTim.calTim.epochLastMonth,$PRE.calTim.calTim.epochLastMonth,calTim.calTim.yearIndex,$PRE.calTim.calTim.yearIndex,calTim.calTim.daysSinceEpoch,$PRE.calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,$PRE.calTim.calTim.weekDay,calTim.calTim.hour,$PRE.calTim.calTim.hour,calTim.calTim.day,$PRE.calTim.calTim.day,calTim.calTim.month,$PRE.calTim.calTim.month,calTim.calTim.year,$PRE.calTim.calTim.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.000344/0.485, allocations: 212.4 kB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.166e-05/0.4851, allocations: 39.47 kB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.124e-05/0.4852, allocations: 39.78 kB / 1.079 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.4852, allocations: 7.938 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.4852, allocations: 0 / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.4852, allocations: 0 / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00239/0.4876, allocations: 0.7909 MB / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4876, allocations: 0 / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.96e-05/0.4877, allocations: 11.94 kB / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.4877, allocations: 4 kB / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.561e-05/0.4877, allocations: 23.91 kB / 1.08 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.4878, allocations: 0 / 1.08 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4878, allocations: 0 / 1.08 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.4896, allocations: 484.5 kB / 1.08 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003357/0.49, allocations: 244.5 kB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.147e-05/0.4901, allocations: 15.94 kB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000488/0.4906, allocations: 27.97 kB / 1.081 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.4906, allocations: 11.98 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.234e-05/0.4907, allocations: 59.97 kB / 1.081 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003748/0.4911, allocations: 319.1 kB / 1.081 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4911, allocations: 0 / 1.081 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005872/0.4917, allocations: 71.89 kB / 1.081 GB, free: 12.74 MB / 0.8419 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.calTim.daySampleTrigger,calTim.calTim.hourSampleTrigger,$whenCondition2,$whenCondition1,calTim.calTim.year,calTim.calTim.month,calTim.calTim.day,calTim.calTim.hour,calTim.calTim.weekDay,calTim.calTim.daysSinceEpoch,calTim.calTim.yearIndex,calTim.calTim.epochLastMonth,calTim.calTim.firstHourSampling,calTim.calTim.firstDaySampling) * Number of discrete states: 9 (calTim.calTim.firstDaySampling,calTim.calTim.daysSinceEpoch,calTim.calTim.weekDay,calTim.calTim.yearIndex,calTim.calTim.year,calTim.calTim.epochLastMonth,calTim.calTim.month,calTim.calTim.firstHourSampling,calTim.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 (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.0002863/0.492, allocations: 139.9 kB / 1.081 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001578/0.4936, allocations: 488.2 kB / 1.082 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.4936, allocations: 0 / 1.082 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0008239/0.4944, allocations: 123.9 kB / 1.082 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004894/0.4949, allocations: 34.47 kB / 1.082 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.497, allocations: 0.5988 MB / 1.082 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005252/0.4975, allocations: 0.7863 MB / 1.083 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001007/0.4977, allocations: 17.42 kB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.776e-05/0.4977, allocations: 19.44 kB / 1.083 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of SimCode: time 1.653e-06/0.4977, allocations: 3.938 kB / 1.083 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of Templates: time 0.01242/0.5101, allocations: 5.44 MB / 1.089 GB, free: 4.926 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches