Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.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.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.Controls.OBC.CDL.Reals.Sources.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.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.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.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001145, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.01324/0.01324, allocations: 168.7 kB / 16.26 MB, free: 6.652 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.591/1.591, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.905/2.905, allocations: 462.6 MB / 0.7364 GB, free: 316 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.000373, allocations: 14.31 kB / 0.9028 GB, free: 36.65 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.415/0.4154, allocations: 159.6 MB / 1.059 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.002482/0.4179, allocations: 1.454 MB / 1.06 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001676/0.4196, allocations: 0.689 MB / 1.061 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.695e-05/0.4197, allocations: 0 / 1.061 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.4198, allocations: 11.92 kB / 1.061 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.42, allocations: 23.84 kB / 1.061 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008503/0.4208, allocations: 339 kB / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006015/0.4214, allocations: 0.5305 MB / 1.062 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.4216, allocations: 37.08 kB / 1.062 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004906/0.4221, allocations: 314.9 kB / 1.062 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003189/0.4224, allocations: 171 kB / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.896e-05/0.4225, allocations: 16 kB / 1.062 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.657e-05/0.4226, allocations: 12 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001744/0.4228, allocations: 119.6 kB / 1.062 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002676/0.423, allocations: 220.5 kB / 1.063 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005856/0.4236, allocations: 0.5763 MB / 1.063 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.4236, allocations: 4 kB / 1.063 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.557e-06/0.4237, allocations: 0 / 1.063 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.4237, allocations: 0 / 1.063 GB, free: 0.9375 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001255/0.4249, allocations: 0.7731 MB / 1.064 GB, free: 76 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.425, allocations: 8.031 kB / 1.064 GB, free: 68 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.4251, allocations: 56.38 kB / 1.064 GB, free: 12 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004822/0.4256, allocations: 338.2 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/0.4257, allocations: 24.56 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.869e-05/0.4258, allocations: 28.36 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.4269, allocations: 243 kB / 1.065 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.4269, allocations: 3.938 kB / 1.065 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.4269, allocations: 8 kB / 1.065 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.4269, allocations: 4 kB / 1.065 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008091/0.4277, allocations: 123.9 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001601/0.4294, allocations: 0.6796 MB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.4305, allocations: 198.5 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007621/0.4313, allocations: 128.8 kB / 1.066 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/0.4313, allocations: 7.984 kB / 1.066 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009914/0.4323, allocations: 243 kB / 1.066 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 2.725e-06/0.4323, allocations: 0 / 1.066 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002728/0.4351, allocations: 0.5224 MB / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.4351, allocations: 63.39 kB / 1.066 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005367/0.4357, allocations: 445.8 kB / 1.067 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.952e-05/0.4358, allocations: 41.69 kB / 1.067 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.4359, allocations: 109.3 kB / 1.067 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.144e-05/0.4359, allocations: 31.56 kB / 1.067 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-05/0.436, allocations: 45.69 kB / 1.067 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.4362, allocations: 326.8 kB / 1.067 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003012/0.4365, allocations: 143.9 kB / 1.068 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000328/0.4368, allocations: 192 kB / 1.068 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004271/0.4373, allocations: 290.9 kB / 1.068 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.4373, allocations: 4 kB / 1.068 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009182/0.4382, allocations: 0.5255 MB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.4383, allocations: 99.38 kB / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.4383, allocations: 0 / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.4384, allocations: 4 kB / 1.069 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.4385, allocations: 31.91 kB / 1.069 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.4386, allocations: 0 / 1.069 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005237/0.4391, allocations: 75.92 kB / 1.069 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.833e-05/0.4392, allocations: 63.91 kB / 1.069 GB, free: 10.79 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 (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.0002792/0.4395, allocations: 212.3 kB / 1.069 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.816e-05/0.4395, allocations: 39.53 kB / 1.069 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.4e-05/0.4396, allocations: 39.8 kB / 1.069 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.4396, allocations: 7.984 kB / 1.069 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.4396, allocations: 4 kB / 1.069 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.4397, allocations: 0 / 1.069 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002289/0.4419, allocations: 0.8104 MB / 1.07 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.442, allocations: 0 / 1.07 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.861e-05/0.442, allocations: 4 kB / 1.07 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.442, allocations: 0 / 1.07 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.199e-05/0.4421, allocations: 31.91 kB / 1.07 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.4421, allocations: 0 / 1.07 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4421, allocations: 0 / 1.07 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001819/0.4439, allocations: 0.4893 MB / 1.07 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002937/0.4442, allocations: 240.4 kB / 1.071 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.058e-05/0.4443, allocations: 27.92 kB / 1.071 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004843/0.4448, allocations: 35.97 kB / 1.071 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.479e-05/0.4449, allocations: 11.92 kB / 1.071 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-05/0.4449, allocations: 55.98 kB / 1.071 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003401/0.4453, allocations: 327 kB / 1.071 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.91e-07/0.4453, allocations: 0 / 1.071 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004164/0.4457, allocations: 71.92 kB / 1.071 GB, free: 8.305 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.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.0002247/0.4459, allocations: 131.5 kB / 1.071 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001428/0.4474, allocations: 490.4 kB / 1.072 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.4474, allocations: 0 / 1.072 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008185/0.4482, allocations: 127.9 kB / 1.072 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004352/0.4487, allocations: 41.91 kB / 1.072 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/0.4505, allocations: 0.7328 MB / 1.073 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004793/0.451, allocations: 0.7866 MB / 1.073 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.091e-05/0.4511, allocations: 13.42 kB / 1.073 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.616e-05/0.4512, allocations: 19.44 kB / 1.073 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of SimCode: time 4.3e-07/0.4512, allocations: 0 / 1.073 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of Templates: time 0.01195/0.4631, allocations: 5.424 MB / 1.079 GB, free: 388 kB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches