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.001713/0.001713, allocations: 108 kB / 15.61 MB, free: 152 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.001734/0.001734, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.545/1.545, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.046/3.046, allocations: 472.6 MB / 0.7451 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 64.09 kB / 0.9121 GB, free: 33.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4451/0.4466, 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.CalendarTimeMonthsMinus): time 0.005754/0.4525, allocations: 1.729 MB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002201/0.4547, allocations: 0.6416 MB / 1.071 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002178/0.455, allocations: 0 / 1.071 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.4552, allocations: 15.8 kB / 1.071 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002779/0.4555, allocations: 27.8 kB / 1.071 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001483/0.457, allocations: 362.8 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001156/0.4582, allocations: 0.6282 MB / 1.072 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.4584, allocations: 41.06 kB / 1.072 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008602/0.4593, allocations: 299.6 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005531/0.4599, allocations: 151.5 kB / 1.072 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0002676/0.4601, allocations: 40 kB / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.4603, allocations: 44 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.4605, allocations: 127.6 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003212/0.4609, allocations: 223 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008339/0.4617, allocations: 0.5884 MB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.4617, allocations: 0 / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.895e-06/0.4617, allocations: 0 / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.185e-05/0.4618, allocations: 0 / 1.073 GB, free: 5.457 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.001882/0.4637, allocations: 0.9131 MB / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.4637, allocations: 12.03 kB / 1.074 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001808/0.4639, allocations: 56.45 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005066/0.4644, allocations: 330.2 kB / 1.074 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.88e-05/0.4645, allocations: 24.55 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.628e-05/0.4646, allocations: 28.38 kB / 1.074 GB, free: 3.973 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001101/0.4657, allocations: 234 kB / 1.075 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.4657, allocations: 3.938 kB / 1.075 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.4658, allocations: 7.922 kB / 1.075 GB, free: 3.727 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.4658, allocations: 4 kB / 1.075 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008337/0.4666, allocations: 115.9 kB / 1.075 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.468, allocations: 0.6837 MB / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.4691, allocations: 182.4 kB / 1.076 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007675/0.4699, allocations: 116.8 kB / 1.076 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.4699, allocations: 3.984 kB / 1.076 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001036/0.471, allocations: 231.1 kB / 1.076 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 3.997e-06/0.471, allocations: 3.984 kB / 1.076 GB, free: 2.324 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002621/0.4736, allocations: 0.489 MB / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.4737, allocations: 59.41 kB / 1.076 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004817/0.4742, allocations: 441.9 kB / 1.077 GB, free: 1.316 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.746e-05/0.4743, allocations: 45.69 kB / 1.077 GB, free: 1.266 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.4744, allocations: 101.3 kB / 1.077 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.557e-05/0.4744, allocations: 43.47 kB / 1.077 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/0.4747, allocations: 141.1 kB / 1.077 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.4748, allocations: 330.8 kB / 1.077 GB, free: 0.6445 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002922/0.4751, allocations: 135.9 kB / 1.078 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003101/0.4754, allocations: 200.2 kB / 1.078 GB, free: 304 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004219/0.4758, allocations: 307 kB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.4758, allocations: 0 / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008574/0.4767, allocations: 0.5201 MB / 1.079 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.837e-05/0.4768, allocations: 91.38 kB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.4768, allocations: 4 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.4769, allocations: 4 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.477, allocations: 24.11 kB / 1.079 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.477, allocations: 8 kB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000507/0.4776, allocations: 63.73 kB / 1.079 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-05/0.4777, allocations: 63.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.0002604/0.4779, allocations: 212.3 kB / 1.079 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.681e-05/0.478, allocations: 39.53 kB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.1e-05/0.4781, allocations: 43.78 kB / 1.079 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.922e-06/0.4781, allocations: 4 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.4781, allocations: 0 / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.4781, allocations: 3.938 kB / 1.079 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002311/0.4805, allocations: 0.7909 MB / 1.08 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.4805, allocations: 0 / 1.08 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.634e-05/0.4805, allocations: 4 kB / 1.08 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.4805, allocations: 4 kB / 1.08 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.4806, allocations: 19.91 kB / 1.08 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.267e-06/0.4806, allocations: 4 kB / 1.08 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4806, allocations: 0 / 1.08 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001798/0.4824, allocations: 488.5 kB / 1.08 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002968/0.4827, allocations: 236.5 kB / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.497e-05/0.4828, allocations: 23.92 kB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004848/0.4833, allocations: 35.97 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.939e-05/0.4833, allocations: 15.97 kB / 1.081 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.058e-05/0.4834, allocations: 59.97 kB / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003348/0.4837, allocations: 319.1 kB / 1.081 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of sort global known variables: time 5.41e-07/0.4838, allocations: 0 / 1.081 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003892/0.4842, allocations: 71.89 kB / 1.081 GB, free: 12.73 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.000202/0.4844, allocations: 132 kB / 1.081 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001385/0.4858, allocations: 478.4 kB / 1.082 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4858, allocations: 0 / 1.082 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0008192/0.4866, allocations: 128.2 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.0004339/0.487, allocations: 44.52 kB / 1.082 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.4887, allocations: 0.5985 MB / 1.082 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.4891, allocations: 0.7902 MB / 1.083 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.981e-05/0.4892, allocations: 17.42 kB / 1.083 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.367e-05/0.4892, allocations: 15.38 kB / 1.083 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of SimCode: time 3.71e-07/0.4892, allocations: 4 kB / 1.083 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of Templates: time 0.01141/0.5006, allocations: 5.445 MB / 1.089 GB, free: 4.918 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