Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.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.001897/0.001897, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.002372/0.002372, allocations: 213.3 kB / 22.99 MB, free: 4.945 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.496/1.496, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.407/3.407, allocations: 0.5107 GB / 0.8166 GB, free: 17.83 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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths,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.CalendarTimeMonths") [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.002112/0.002112, allocations: 73.55 kB / 1.187 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.3708, allocations: 181.9 MB / 1.365 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths): time 0.003161/0.3739, allocations: 1.735 MB / 1.366 GB, free: 11.84 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001422/0.3754, allocations: 0.6101 MB / 1.367 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.785e-05/0.3754, allocations: 0 / 1.367 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 9.697e-05/0.3755, allocations: 7.875 kB / 1.367 GB, free: 11.22 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.3757, allocations: 39.56 kB / 1.367 GB, free: 11.18 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000942/0.3766, allocations: 370.5 kB / 1.367 GB, free: 10.82 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0007307/0.3774, allocations: 0.5931 MB / 1.368 GB, free: 10.23 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.3775, allocations: 25.23 kB / 1.368 GB, free: 10.2 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005124/0.378, allocations: 323.5 kB / 1.368 GB, free: 9.883 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003759/0.3784, allocations: 143.6 kB / 1.368 GB, free: 9.742 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.3785, allocations: 40 kB / 1.368 GB, free: 9.703 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.3786, allocations: 40 kB / 1.368 GB, free: 9.664 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.000144/0.3787, allocations: 127.6 kB / 1.369 GB, free: 9.539 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.379, allocations: 183.2 kB / 1.369 GB, free: 9.359 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006427/0.3796, allocations: 0.5957 MB / 1.369 GB, free: 8.762 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.3796, allocations: 3.984 kB / 1.369 GB, free: 8.758 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3796, allocations: 0 / 1.369 GB, free: 8.758 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.123e-05/0.3796, allocations: 0 / 1.369 GB, free: 8.758 MB / 1.061 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.001475/0.3811, allocations: 0.8354 MB / 1.37 GB, free: 7.852 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.3811, allocations: 8.031 kB / 1.37 GB, free: 7.844 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.3813, allocations: 60.66 kB / 1.37 GB, free: 7.785 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005169/0.3818, allocations: 284.6 kB / 1.37 GB, free: 7.484 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.398e-05/0.3818, allocations: 24.36 kB / 1.371 GB, free: 7.461 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.588e-05/0.3819, allocations: 32.36 kB / 1.371 GB, free: 7.43 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009844/0.3829, allocations: 230 kB / 1.371 GB, free: 7.199 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.3829, allocations: 4.125 kB / 1.371 GB, free: 7.195 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.135e-05/0.383, allocations: 7.938 kB / 1.371 GB, free: 7.188 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.383, allocations: 0 / 1.371 GB, free: 7.188 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007557/0.3837, allocations: 123.8 kB / 1.371 GB, free: 7.066 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.385, allocations: 0.5313 MB / 1.371 GB, free: 6.504 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.386, allocations: 166.5 kB / 1.372 GB, free: 6.332 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007157/0.3868, allocations: 116.7 kB / 1.372 GB, free: 6.215 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.3868, allocations: 7.938 kB / 1.372 GB, free: 6.207 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009368/0.3877, allocations: 233.7 kB / 1.372 GB, free: 5.969 MB / 1.061 GB Notification: Performance of pre-optimization done (n=16): time 2.014e-06/0.3877, allocations: 4 kB / 1.372 GB, free: 5.965 MB / 1.061 GB Notification: Performance of matching and sorting (n=16): time 0.002503/0.3902, allocations: 493.2 kB / 1.372 GB, free: 5.477 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.661e-05/0.3903, allocations: 63.41 kB / 1.372 GB, free: 5.402 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000546/0.3908, allocations: 445.8 kB / 1.373 GB, free: 4.953 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.448e-05/0.3909, allocations: 41.69 kB / 1.373 GB, free: 4.906 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.391, allocations: 101.4 kB / 1.373 GB, free: 4.805 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.461e-05/0.3911, allocations: 47.62 kB / 1.373 GB, free: 4.758 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002295/0.3913, allocations: 133.5 kB / 1.373 GB, free: 4.621 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001596/0.3915, allocations: 326.8 kB / 1.373 GB, free: 4.293 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003733/0.3918, allocations: 219.3 kB / 1.374 GB, free: 4.066 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003992/0.3922, allocations: 282.8 kB / 1.374 GB, free: 3.758 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004328/0.3927, allocations: 294.6 kB / 1.374 GB, free: 3.438 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3927, allocations: 0 / 1.374 GB, free: 3.438 MB / 1.061 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009869/0.3937, allocations: 0.5955 MB / 1.375 GB, free: 2.812 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 0.000112/0.3938, allocations: 87.38 kB / 1.375 GB, free: 2.715 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.3938, allocations: 4.188 kB / 1.375 GB, free: 2.711 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.3938, allocations: 8 kB / 1.375 GB, free: 2.703 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.394, allocations: 19.92 kB / 1.375 GB, free: 2.684 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.394, allocations: 7.984 kB / 1.375 GB, free: 2.676 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000484/0.3945, allocations: 59.83 kB / 1.375 GB, free: 2.617 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.375e-05/0.3945, allocations: 63.98 kB / 1.375 GB, free: 2.555 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.0002794/0.3948, allocations: 220.3 kB / 1.375 GB, free: 2.332 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.441e-05/0.3949, allocations: 35.77 kB / 1.375 GB, free: 2.297 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.306e-05/0.395, allocations: 39.72 kB / 1.375 GB, free: 2.262 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.395, allocations: 4 kB / 1.375 GB, free: 2.258 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.395, allocations: 3.938 kB / 1.375 GB, free: 2.254 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.395, allocations: 0 / 1.375 GB, free: 2.254 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/0.3972, allocations: 0.7228 MB / 1.376 GB, free: 1.492 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3972, allocations: 0 / 1.376 GB, free: 1.492 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.465e-05/0.3972, allocations: 4 kB / 1.376 GB, free: 1.488 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.3972, allocations: 0 / 1.376 GB, free: 1.488 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.239e-05/0.3973, allocations: 27.97 kB / 1.376 GB, free: 1.461 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.3973, allocations: 0 / 1.376 GB, free: 1.461 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3973, allocations: 0 / 1.376 GB, free: 1.461 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.399, allocations: 0.4915 MB / 1.377 GB, free: 0.9531 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000361/0.3994, allocations: 169.5 kB / 1.377 GB, free: 0.7891 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.904e-05/0.3994, allocations: 16 kB / 1.377 GB, free: 0.7734 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004545/0.3999, allocations: 31.95 kB / 1.377 GB, free: 0.7422 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.148e-05/0.3999, allocations: 15.91 kB / 1.377 GB, free: 0.7266 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.754e-05/0.4, allocations: 59.98 kB / 1.377 GB, free: 0.668 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003556/0.4004, allocations: 327 kB / 1.377 GB, free: 356 kB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4004, allocations: 0 / 1.377 GB, free: 356 kB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003668/0.4007, allocations: 75.89 kB / 1.377 GB, free: 280 kB / 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.0001818/0.4009, allocations: 120.2 kB / 1.377 GB, free: 148 kB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001442/0.4024, allocations: 0.5058 MB / 1.378 GB, free: 15.6 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4024, allocations: 0 / 1.378 GB, free: 15.6 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0007439/0.4031, allocations: 118.5 kB / 1.378 GB, free: 15.49 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.4035, allocations: 37.45 kB / 1.378 GB, free: 15.46 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/0.4052, allocations: 0.6429 MB / 1.379 GB, free: 14.78 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002124/0.4054, allocations: 178.9 kB / 1.379 GB, free: 14.58 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.385e-05/0.4054, allocations: 23.36 kB / 1.379 GB, free: 14.56 MB / 1.076 GB Notification: Performance of SimCode: time 5.01e-07/0.4054, allocations: 0 / 1.379 GB, free: 14.56 MB / 1.076 GB Notification: Performance of Templates: time 0.007663/0.4131, allocations: 4.116 MB / 1.383 GB, free: 10.39 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.562039835844189]