Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.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.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001738/0.001738, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002557/0.002557, allocations: 193 kB / 16.25 MB, free: 6.633 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.477/1.477, allocations: 222.9 MB / 239.9 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.961/2.961, allocations: 472.6 MB / 0.7448 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 65.31 kB / 0.9116 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4225/0.4238, allocations: 159.9 MB / 1.068 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.004388/0.4282, allocations: 1.795 MB / 1.07 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001886/0.4302, allocations: 0.6224 MB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001832/0.4304, allocations: 3.938 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.4306, allocations: 11.92 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001911/0.4308, allocations: 23.86 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001262/0.4321, allocations: 339.1 kB / 1.07 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009068/0.433, allocations: 0.636 MB / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.4332, allocations: 37.08 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006784/0.4338, allocations: 374.9 kB / 1.071 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004227/0.4343, allocations: 179.3 kB / 1.072 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001494/0.4344, allocations: 44 kB / 1.072 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.4345, allocations: 40 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001596/0.4347, allocations: 127.4 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002968/0.435, allocations: 234.8 kB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007715/0.4358, allocations: 0.5961 MB / 1.073 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.4358, allocations: 4 kB / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.344e-06/0.4358, allocations: 4 kB / 1.073 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.977e-05/0.4358, allocations: 0 / 1.073 GB, free: 5.672 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.002128/0.438, allocations: 0.9053 MB / 1.074 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/0.438, allocations: 8.031 kB / 1.074 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.4382, allocations: 60.39 kB / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004724/0.4387, allocations: 330.2 kB / 1.074 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.982e-05/0.4388, allocations: 24.55 kB / 1.074 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.101e-05/0.4389, allocations: 28.38 kB / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.4399, allocations: 237.9 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.44, allocations: 7.938 kB / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.492e-05/0.44, allocations: 7.984 kB / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.44, allocations: 0 / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000831/0.4409, allocations: 111.9 kB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.4423, allocations: 0.6798 MB / 1.075 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.4434, allocations: 186.4 kB / 1.075 GB, free: 2.914 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007718/0.4442, allocations: 116.8 kB / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.774e-05/0.4442, allocations: 0 / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001068/0.4453, allocations: 235.1 kB / 1.076 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 2.284e-06/0.4453, allocations: 0 / 1.076 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002775/0.4481, allocations: 0.4918 MB / 1.076 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.4481, allocations: 55.41 kB / 1.076 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005525/0.4487, allocations: 441.9 kB / 1.076 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.151e-05/0.4488, allocations: 45.69 kB / 1.077 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.4489, allocations: 109.3 kB / 1.077 GB, free: 1.391 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.44e-05/0.449, allocations: 39.53 kB / 1.077 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002377/0.4492, allocations: 137.2 kB / 1.077 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.4494, allocations: 326.8 kB / 1.077 GB, free: 0.8828 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/0.4497, allocations: 139.9 kB / 1.077 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000338/0.45, allocations: 193.9 kB / 1.077 GB, free: 0.5352 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004355/0.4505, allocations: 303.1 kB / 1.078 GB, free: 212 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.4505, allocations: 4 kB / 1.078 GB, free: 208 kB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009199/0.4514, allocations: 0.5215 MB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.4515, allocations: 91.38 kB / 1.078 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4516, allocations: 4 kB / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.4516, allocations: 0 / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.4518, allocations: 23.92 kB / 1.078 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.4518, allocations: 4 kB / 1.078 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005653/0.4524, allocations: 67.91 kB / 1.078 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.772e-05/0.4525, allocations: 67.92 kB / 1.078 GB, free: 15.39 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.0003712/0.4529, allocations: 216.3 kB / 1.079 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-05/0.4529, allocations: 35.53 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.519e-05/0.453, allocations: 43.78 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.453, allocations: 4 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.453, allocations: 4 kB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.4531, allocations: 0 / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002367/0.4554, allocations: 0.7908 MB / 1.08 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4554, allocations: 4 kB / 1.08 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.665e-05/0.4555, allocations: 4 kB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.4555, allocations: 0 / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.504e-05/0.4556, allocations: 23.91 kB / 1.08 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.4556, allocations: 4 kB / 1.08 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4556, allocations: 0 / 1.08 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.4574, allocations: 482.7 kB / 1.08 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003094/0.4577, allocations: 244.5 kB / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.4579, allocations: 15.94 kB / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000479/0.4584, allocations: 31.97 kB / 1.08 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.375e-05/0.4584, allocations: 7.984 kB / 1.08 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.736e-05/0.4585, allocations: 63.97 kB / 1.08 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003605/0.4589, allocations: 315.1 kB / 1.081 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.91e-07/0.4589, allocations: 4 kB / 1.081 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004188/0.4593, allocations: 79.83 kB / 1.081 GB, free: 12.95 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.000237/0.4595, allocations: 128.4 kB / 1.081 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001423/0.461, allocations: 487.9 kB / 1.081 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.461, allocations: 0 / 1.081 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007968/0.4618, allocations: 119.9 kB / 1.081 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/0.4622, allocations: 39.95 kB / 1.081 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001896/0.4641, allocations: 0.7193 MB / 1.082 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000531/0.4647, allocations: 0.7941 MB / 1.083 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.992e-05/0.4648, allocations: 25.34 kB / 1.083 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.131e-05/0.4648, allocations: 11.44 kB / 1.083 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of SimCode: time 8.42e-07/0.4648, allocations: 0 / 1.083 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of Templates: time 0.01052/0.4754, allocations: 5.617 MB / 1.088 GB, free: 4.848 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches