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.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.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.001436/0.001436, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001637/0.001637, allocations: 191 kB / 17.29 MB, free: 5.516 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.51/1.51, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.579/2.579, allocations: 442.6 MB / 0.7165 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 71.58 kB / 0.8774 GB, free: 10.87 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3842/0.3855, allocations: 153 MB / 1.027 GB, free: 1.961 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003013/0.3886, allocations: 1.753 MB / 1.028 GB, free: 208 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001408/0.39, allocations: 0.6286 MB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.832e-05/0.3901, allocations: 4 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001146/0.3902, allocations: 11.86 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.3904, allocations: 31.78 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008327/0.3912, allocations: 358.8 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006184/0.3918, allocations: 0.636 MB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.392, allocations: 25.11 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003602/0.3923, allocations: 315.6 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.3926, allocations: 151.5 kB / 1.031 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.02e-05/0.3927, allocations: 40 kB / 1.031 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.577e-05/0.3928, allocations: 44 kB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001453/0.3929, allocations: 131.5 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002277/0.3932, allocations: 219 kB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005248/0.3937, allocations: 0.5918 MB / 1.032 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3937, allocations: 0 / 1.032 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3937, allocations: 0 / 1.032 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.3937, allocations: 4 kB / 1.032 GB, free: 13.04 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.001327/0.3951, allocations: 0.9053 MB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.3951, allocations: 12.03 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.3952, allocations: 52.47 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.3957, allocations: 334.1 kB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.199e-05/0.3958, allocations: 20.38 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.012e-05/0.3958, allocations: 28.36 kB / 1.033 GB, free: 11.56 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000951/0.3968, allocations: 243.5 kB / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.3968, allocations: 192 / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.054e-05/0.3969, allocations: 7.938 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.3969, allocations: 4 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000703/0.3976, allocations: 111.9 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/0.3989, allocations: 0.6797 MB / 1.034 GB, free: 10.47 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000937/0.3998, allocations: 186.5 kB / 1.034 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006646/0.4005, allocations: 120.8 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.4005, allocations: 0 / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008772/0.4014, allocations: 231.1 kB / 1.034 GB, free: 9.918 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.773e-06/0.4014, allocations: 0 / 1.034 GB, free: 9.918 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.00235/0.4038, allocations: 496.9 kB / 1.035 GB, free: 9.426 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.4039, allocations: 63.39 kB / 1.035 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004455/0.4043, allocations: 441.8 kB / 1.035 GB, free: 8.914 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.712e-05/0.4044, allocations: 37.7 kB / 1.035 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.818e-05/0.4045, allocations: 105.3 kB / 1.035 GB, free: 8.762 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.046e-05/0.4045, allocations: 43.53 kB / 1.036 GB, free: 8.719 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002168/0.4047, allocations: 141.3 kB / 1.036 GB, free: 8.574 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.4049, allocations: 330.7 kB / 1.036 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002841/0.4052, allocations: 135.9 kB / 1.036 GB, free: 8.109 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002952/0.4055, allocations: 194.9 kB / 1.036 GB, free: 7.898 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003899/0.4059, allocations: 295.5 kB / 1.037 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.4059, allocations: 0 / 1.037 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008904/0.4068, allocations: 0.5202 MB / 1.037 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.000101/0.4069, allocations: 99.41 kB / 1.037 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.4069, allocations: 0 / 1.037 GB, free: 6.93 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.4069, allocations: 4 kB / 1.037 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.4071, allocations: 27.92 kB / 1.037 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.4071, allocations: 3.984 kB / 1.037 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004642/0.4076, allocations: 63.73 kB / 1.037 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.383e-05/0.4077, allocations: 59.97 kB / 1.037 GB, free: 6.773 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.0002455/0.4079, allocations: 224.2 kB / 1.038 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.759e-05/0.408, allocations: 35.53 kB / 1.038 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.235e-05/0.4081, allocations: 47.78 kB / 1.038 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.4081, allocations: 0 / 1.038 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.4081, allocations: 0 / 1.038 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.4081, allocations: 3.984 kB / 1.038 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002086/0.4102, allocations: 0.7936 MB / 1.038 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.4102, allocations: 0 / 1.038 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.896e-05/0.4103, allocations: 4 kB / 1.038 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.4103, allocations: 4 kB / 1.038 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.402e-05/0.4103, allocations: 19.97 kB / 1.038 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.4104, allocations: 7.875 kB / 1.038 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4104, allocations: 4 kB / 1.038 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001555/0.4119, allocations: 475.2 kB / 1.039 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003205/0.4123, allocations: 244.5 kB / 1.039 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.688e-05/0.4123, allocations: 19.98 kB / 1.039 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004325/0.4128, allocations: 35.91 kB / 1.039 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.775e-05/0.4128, allocations: 15.92 kB / 1.039 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.863e-05/0.4129, allocations: 59.97 kB / 1.039 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003388/0.4133, allocations: 315.1 kB / 1.04 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4133, allocations: 3.938 kB / 1.04 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003977/0.4137, allocations: 71.98 kB / 1.04 GB, free: 4.316 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.000179/0.4139, allocations: 131.5 kB / 1.04 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001197/0.4151, allocations: 474.4 kB / 1.04 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4151, allocations: 384 / 1.04 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006763/0.4158, allocations: 123.3 kB / 1.04 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.4162, allocations: 42.97 kB / 1.04 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.4178, allocations: 0.5906 MB / 1.041 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004986/0.4183, allocations: 0.7941 MB / 1.042 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 8.099e-05/0.4184, allocations: 9.438 kB / 1.042 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.62e-05/0.4185, allocations: 15.42 kB / 1.042 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of SimCode: time 9.42e-07/0.4185, allocations: 0 / 1.042 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of Templates: time 0.009457/0.4279, allocations: 5.418 MB / 1.047 GB, free: 12.57 MB / 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 -s cvode -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/jenkins1/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