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 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.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.002095/0.002095, allocations: 109 kB / 16.37 MB, free: 6.477 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.002224/0.002225, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.586/1.586, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.621/2.621, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.00135, allocations: 69.23 kB / 0.8774 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3831, allocations: 153 MB / 1.027 GB, free: 2.016 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.003181/0.3863, allocations: 1.742 MB / 1.028 GB, free: 272 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001397/0.3877, allocations: 0.6323 MB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.134e-05/0.3878, allocations: 0 / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.14e-05/0.3879, allocations: 15.86 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.00011/0.388, allocations: 31.78 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007153/0.3887, allocations: 363.4 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006218/0.3893, allocations: 0.6282 MB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.3895, allocations: 37.09 kB / 1.03 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003556/0.3898, allocations: 311.5 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002704/0.3901, allocations: 147.6 kB / 1.031 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.144e-05/0.3902, allocations: 44 kB / 1.031 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.968e-05/0.3903, allocations: 40 kB / 1.031 GB, free: 14.03 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.3904, allocations: 127.6 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001948/0.3906, allocations: 219 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005178/0.3911, allocations: 0.5958 MB / 1.032 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.3912, allocations: 0 / 1.032 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.944e-06/0.3912, allocations: 7.922 kB / 1.032 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.3912, allocations: 0 / 1.032 GB, free: 13.09 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.001254/0.3924, allocations: 0.9093 MB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.3925, allocations: 8.031 kB / 1.032 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.3926, allocations: 52.47 kB / 1.033 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004578/0.3931, allocations: 330.1 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.963e-05/0.3931, allocations: 28.36 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.472e-05/0.3932, allocations: 28.36 kB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009511/0.3942, allocations: 235.7 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.3942, allocations: 192 / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.797e-05/0.3942, allocations: 7.938 kB / 1.033 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.3942, allocations: 4 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007202/0.3949, allocations: 115.9 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.3963, allocations: 0.6758 MB / 1.034 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009564/0.3973, allocations: 190.5 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006881/0.398, allocations: 112.8 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.398, allocations: 0 / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008325/0.3989, allocations: 231.1 kB / 1.034 GB, free: 9.977 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.773e-06/0.3989, allocations: 0 / 1.034 GB, free: 9.977 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.002308/0.4012, allocations: 499.7 kB / 1.035 GB, free: 9.484 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/0.4013, allocations: 63.39 kB / 1.035 GB, free: 9.41 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004502/0.4017, allocations: 441.8 kB / 1.035 GB, free: 8.973 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.536e-05/0.4018, allocations: 41.7 kB / 1.035 GB, free: 8.926 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.025e-05/0.4019, allocations: 105.3 kB / 1.035 GB, free: 8.816 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.853e-05/0.4019, allocations: 39.53 kB / 1.036 GB, free: 8.777 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/0.4022, allocations: 141.3 kB / 1.036 GB, free: 8.633 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.4023, allocations: 326.8 kB / 1.036 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002728/0.4026, allocations: 135.9 kB / 1.036 GB, free: 8.172 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002893/0.4029, allocations: 198.9 kB / 1.036 GB, free: 7.957 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003597/0.4032, allocations: 295.4 kB / 1.037 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.4033, allocations: 0 / 1.037 GB, free: 7.637 MB / 0.8106 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008114/0.4041, allocations: 0.524 MB / 1.037 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.087e-05/0.4042, allocations: 95.38 kB / 1.037 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.4042, allocations: 0 / 1.037 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.4042, allocations: 4 kB / 1.037 GB, free: 6.984 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.4044, allocations: 27.92 kB / 1.037 GB, free: 6.957 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.4044, allocations: 0 / 1.037 GB, free: 6.957 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004373/0.4048, allocations: 59.98 kB / 1.037 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.908e-05/0.4049, allocations: 63.97 kB / 1.037 GB, free: 6.836 MB / 0.8106 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.0002402/0.4052, allocations: 224.2 kB / 1.038 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.83e-05/0.4052, allocations: 39.53 kB / 1.038 GB, free: 6.566 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.916e-05/0.4053, allocations: 47.78 kB / 1.038 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.4053, allocations: 3.938 kB / 1.038 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4053, allocations: 4 kB / 1.038 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.4053, allocations: 4 kB / 1.038 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002093/0.4074, allocations: 0.7834 MB / 1.038 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.4074, allocations: 0 / 1.038 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.666e-05/0.4075, allocations: 15.88 kB / 1.038 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.4075, allocations: 0 / 1.038 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.119e-05/0.4075, allocations: 19.97 kB / 1.038 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.4075, allocations: 3.938 kB / 1.038 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.4076, allocations: 0 / 1.038 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/0.4092, allocations: 482.2 kB / 1.039 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003603/0.4096, allocations: 240.5 kB / 1.039 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.669e-05/0.4097, allocations: 19.98 kB / 1.039 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004384/0.4101, allocations: 38.91 kB / 1.039 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.382e-05/0.4102, allocations: 7.984 kB / 1.039 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-05/0.4102, allocations: 51.98 kB / 1.039 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003208/0.4106, allocations: 327.1 kB / 1.04 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4106, allocations: 0 / 1.04 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003565/0.4109, allocations: 71.98 kB / 1.04 GB, free: 4.383 MB / 0.8106 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.0001994/0.4111, allocations: 131.4 kB / 1.04 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001224/0.4124, allocations: 482.4 kB / 1.04 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4124, allocations: 0 / 1.04 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0007057/0.4131, allocations: 111.9 kB / 1.04 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004048/0.4135, allocations: 40.08 kB / 1.04 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.415, allocations: 0.595 MB / 1.041 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004253/0.4154, allocations: 0.794 MB / 1.042 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.13e-05/0.4155, allocations: 13.44 kB / 1.042 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.431e-05/0.4156, allocations: 19.42 kB / 1.042 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.4156, allocations: 0 / 1.042 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of Templates: time 0.01177/0.4273, allocations: 5.419 MB / 1.047 GB, free: 12.63 MB / 0.8262 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 -s cvode -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/jenkins1/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