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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 106.2 kB / 19.69 MB, free: 2.277 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002033/0.002033, allocations: 217.8 kB / 23.01 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.529/1.529, allocations: 230.6 MB / 256.8 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.273/3.273, allocations: 0.505 GB / 0.8108 GB, free: 22.02 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,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") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 67.19 kB / 1.178 GB, free: 16.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.354, allocations: 180.2 MB / 1.354 GB, free: 7.918 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.003216/0.3572, allocations: 1.776 MB / 1.356 GB, free: 6.133 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001542/0.3588, allocations: 0.6341 MB / 1.356 GB, free: 5.5 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.156e-05/0.3588, allocations: 0 / 1.356 GB, free: 5.5 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.000105/0.3589, allocations: 15.8 kB / 1.356 GB, free: 5.484 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001415/0.3591, allocations: 31.62 kB / 1.357 GB, free: 5.453 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008978/0.36, allocations: 374.2 kB / 1.357 GB, free: 5.09 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0007043/0.3607, allocations: 0.5931 MB / 1.357 GB, free: 4.496 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.3608, allocations: 25.23 kB / 1.357 GB, free: 4.473 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004505/0.3612, allocations: 319.6 kB / 1.358 GB, free: 4.16 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003419/0.3616, allocations: 165.2 kB / 1.358 GB, free: 4 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 9.325e-05/0.3617, allocations: 40 kB / 1.358 GB, free: 3.961 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.685e-05/0.3618, allocations: 40 kB / 1.358 GB, free: 3.922 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.3619, allocations: 127.6 kB / 1.358 GB, free: 3.797 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002368/0.3622, allocations: 219 kB / 1.358 GB, free: 3.582 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.00068/0.3628, allocations: 0.5996 MB / 1.359 GB, free: 2.98 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3628, allocations: 0 / 1.359 GB, free: 2.98 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3628, allocations: 0 / 1.359 GB, free: 2.98 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.224e-05/0.3629, allocations: 0 / 1.359 GB, free: 2.98 MB / 1.045 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.001418/0.3643, allocations: 0.8377 MB / 1.36 GB, free: 2.07 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.3643, allocations: 12.03 kB / 1.36 GB, free: 2.059 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.3644, allocations: 56.66 kB / 1.36 GB, free: 2.004 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004815/0.3649, allocations: 284.7 kB / 1.36 GB, free: 1.703 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.851e-05/0.365, allocations: 20.36 kB / 1.36 GB, free: 1.684 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.539e-05/0.3651, allocations: 32.36 kB / 1.36 GB, free: 1.652 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.3661, allocations: 243.9 kB / 1.36 GB, free: 1.41 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.3661, allocations: 192 / 1.36 GB, free: 1.41 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/0.3661, allocations: 3.938 kB / 1.36 GB, free: 1.406 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.3661, allocations: 8 kB / 1.36 GB, free: 1.398 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008013/0.3669, allocations: 119.9 kB / 1.361 GB, free: 1.281 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.3684, allocations: 0.636 MB / 1.361 GB, free: 0.6016 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.3694, allocations: 174.4 kB / 1.361 GB, free: 432 kB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007176/0.3701, allocations: 104.8 kB / 1.361 GB, free: 324 kB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.3702, allocations: 7.984 kB / 1.361 GB, free: 316 kB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009664/0.3711, allocations: 231.1 kB / 1.362 GB, free: 72 kB / 1.045 GB Notification: Performance of pre-optimization done (n=16): time 1.993e-06/0.3711, allocations: 0 / 1.362 GB, free: 72 kB / 1.045 GB Notification: Performance of matching and sorting (n=16): time 0.002552/0.3737, allocations: 0.4894 MB / 1.362 GB, free: 15.57 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/0.3738, allocations: 63.41 kB / 1.362 GB, free: 15.5 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005149/0.3743, allocations: 441.9 kB / 1.363 GB, free: 15.06 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.101e-05/0.3743, allocations: 45.69 kB / 1.363 GB, free: 15.01 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.588e-05/0.3744, allocations: 105.3 kB / 1.363 GB, free: 14.9 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.641e-05/0.3745, allocations: 43.69 kB / 1.363 GB, free: 14.86 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.3747, allocations: 137.5 kB / 1.363 GB, free: 14.72 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3749, allocations: 326.8 kB / 1.363 GB, free: 14.39 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002945/0.3751, allocations: 135.9 kB / 1.363 GB, free: 14.26 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.3755, allocations: 198.5 kB / 1.364 GB, free: 14.04 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004244/0.3759, allocations: 303 kB / 1.364 GB, free: 13.71 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3759, allocations: 0 / 1.364 GB, free: 13.71 MB / 1.061 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009642/0.3769, allocations: 0.5136 MB / 1.364 GB, free: 13.18 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.377, allocations: 95.38 kB / 1.364 GB, free: 13.08 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.377, allocations: 0 / 1.364 GB, free: 13.08 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.377, allocations: 4 kB / 1.364 GB, free: 13.07 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.3772, allocations: 31.91 kB / 1.364 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.3772, allocations: 0 / 1.364 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004748/0.3777, allocations: 63.97 kB / 1.365 GB, free: 12.98 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.877e-05/0.3778, allocations: 59.98 kB / 1.365 GB, free: 12.92 MB / 1.061 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.0002805/0.378, allocations: 220.2 kB / 1.365 GB, free: 12.7 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.898e-05/0.3781, allocations: 47.7 kB / 1.365 GB, free: 12.65 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.154e-05/0.3782, allocations: 43.72 kB / 1.365 GB, free: 12.6 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3782, allocations: 4 kB / 1.365 GB, free: 12.6 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3782, allocations: 4 kB / 1.365 GB, free: 12.59 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3782, allocations: 0 / 1.365 GB, free: 12.59 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002256/0.3805, allocations: 0.7629 MB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3805, allocations: 0 / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.59e-05/0.3805, allocations: 4 kB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.3805, allocations: 0 / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.083e-05/0.3806, allocations: 19.97 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.3806, allocations: 3.938 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3806, allocations: 0 / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001748/0.3823, allocations: 493.9 kB / 1.366 GB, free: 11.25 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003798/0.3827, allocations: 169.5 kB / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.371e-05/0.3828, allocations: 20 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004892/0.3833, allocations: 39.89 kB / 1.366 GB, free: 11.03 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.3833, allocations: 11.98 kB / 1.366 GB, free: 11.02 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-05/0.3834, allocations: 59.92 kB / 1.366 GB, free: 10.96 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003578/0.3837, allocations: 319.1 kB / 1.367 GB, free: 10.65 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3837, allocations: 3.938 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004204/0.3841, allocations: 75.92 kB / 1.367 GB, free: 10.57 MB / 1.061 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.0001982/0.3843, allocations: 123.9 kB / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001309/0.3857, allocations: 434.5 kB / 1.367 GB, free: 9.988 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3857, allocations: 0 / 1.367 GB, free: 9.988 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0007646/0.3864, allocations: 111.9 kB / 1.367 GB, free: 9.879 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.3868, allocations: 38.36 kB / 1.367 GB, free: 9.844 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.3885, allocations: 0.6509 MB / 1.368 GB, free: 9.16 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000425/0.3889, allocations: 0.7825 MB / 1.369 GB, free: 8.352 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.495e-05/0.3889, allocations: 15.44 kB / 1.369 GB, free: 8.336 MB / 1.061 GB Notification: Performance of SimCode: time 5.41e-07/0.3889, allocations: 0 / 1.369 GB, free: 8.336 MB / 1.061 GB Notification: Performance of Templates: time 0.006674/0.3956, allocations: 4.114 MB / 1.373 GB, free: 4.172 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,calTim.year,calTim.month,calTim.day,calTim.weekDay,calTim.hour,calTim.minute Variables in the result:calTim.day,calTim.hour,calTim.minute,calTim.month,calTim.weekDay,calTim.year,time [Calling sys.exit(0), Time elapsed: 11.574943206011085]