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.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.001372/0.001372, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001552/0.001552, allocations: 219.3 kB / 22.99 MB, free: 4.914 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.454/1.454, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.231/3.231, allocations: 0.5107 GB / 0.8166 GB, free: 17.81 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.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,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.CalendarTimeMonthsPlus") [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.002046/0.002046, allocations: 70.11 kB / 1.187 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3482, allocations: 181.9 MB / 1.365 GB, free: 13.56 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003125/0.3514, allocations: 1.727 MB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001439/0.3528, allocations: 0.6218 MB / 1.367 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.034e-05/0.3529, allocations: 0 / 1.367 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.353, allocations: 7.875 kB / 1.367 GB, free: 11.19 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.3531, allocations: 35.58 kB / 1.367 GB, free: 11.15 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009119/0.354, allocations: 369.3 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0007425/0.3548, allocations: 0.597 MB / 1.368 GB, free: 10.2 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.3549, allocations: 29.22 kB / 1.368 GB, free: 10.16 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004271/0.3553, allocations: 323.5 kB / 1.368 GB, free: 9.848 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003066/0.3556, allocations: 143.6 kB / 1.368 GB, free: 9.707 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.3557, allocations: 40 kB / 1.368 GB, free: 9.668 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.3558, allocations: 40 kB / 1.368 GB, free: 9.629 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.000141/0.356, allocations: 127.6 kB / 1.369 GB, free: 9.504 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001999/0.3562, allocations: 183.2 kB / 1.369 GB, free: 9.324 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006376/0.3568, allocations: 0.5879 MB / 1.369 GB, free: 8.734 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3568, allocations: 3.984 kB / 1.369 GB, free: 8.73 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3568, allocations: 4 kB / 1.369 GB, free: 8.727 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.104e-05/0.3568, allocations: 4 kB / 1.369 GB, free: 8.723 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.001425/0.3582, allocations: 0.8354 MB / 1.37 GB, free: 7.816 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.3583, allocations: 8.031 kB / 1.37 GB, free: 7.809 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.3584, allocations: 68.59 kB / 1.37 GB, free: 7.742 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005416/0.359, allocations: 276.7 kB / 1.371 GB, free: 7.449 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.9e-05/0.359, allocations: 20.36 kB / 1.371 GB, free: 7.43 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.445e-05/0.3591, allocations: 28.36 kB / 1.371 GB, free: 7.402 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.3601, allocations: 241.9 kB / 1.371 GB, free: 7.16 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.3601, allocations: 192 / 1.371 GB, free: 7.16 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.3601, allocations: 3.938 kB / 1.371 GB, free: 7.156 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.3601, allocations: 4 kB / 1.371 GB, free: 7.152 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007801/0.3609, allocations: 115.9 kB / 1.371 GB, free: 7.039 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.3623, allocations: 0.539 MB / 1.371 GB, free: 6.469 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.3633, allocations: 177 kB / 1.372 GB, free: 6.289 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007325/0.3641, allocations: 108.8 kB / 1.372 GB, free: 6.18 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.3641, allocations: 4 kB / 1.372 GB, free: 6.176 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009935/0.3651, allocations: 231.2 kB / 1.372 GB, free: 5.938 MB / 1.061 GB Notification: Performance of pre-optimization done (n=16): time 2.374e-06/0.3651, allocations: 0 / 1.372 GB, free: 5.938 MB / 1.061 GB Notification: Performance of matching and sorting (n=16): time 0.002643/0.3677, allocations: 0.4922 MB / 1.372 GB, free: 5.441 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.3678, allocations: 59.41 kB / 1.372 GB, free: 5.371 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000548/0.3683, allocations: 441.9 kB / 1.373 GB, free: 4.926 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.273e-05/0.3684, allocations: 41.69 kB / 1.373 GB, free: 4.879 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.945e-05/0.3685, allocations: 101.4 kB / 1.373 GB, free: 4.777 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.149e-05/0.3685, allocations: 51.61 kB / 1.373 GB, free: 4.727 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/0.3688, allocations: 141.5 kB / 1.373 GB, free: 4.582 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000262/0.369, allocations: 326.8 kB / 1.374 GB, free: 4.254 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.3694, allocations: 219.3 kB / 1.374 GB, free: 4.027 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.3698, allocations: 270.8 kB / 1.374 GB, free: 3.73 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004408/0.3703, allocations: 294.6 kB / 1.374 GB, free: 3.41 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3703, allocations: 4 kB / 1.374 GB, free: 3.406 MB / 1.061 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000993/0.3713, allocations: 0.5955 MB / 1.375 GB, free: 2.781 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.779e-05/0.3714, allocations: 87.38 kB / 1.375 GB, free: 2.684 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.3714, allocations: 4 kB / 1.375 GB, free: 2.68 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.3714, allocations: 3.938 kB / 1.375 GB, free: 2.676 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.3715, allocations: 23.92 kB / 1.375 GB, free: 2.652 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.3716, allocations: 4 kB / 1.375 GB, free: 2.648 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004714/0.372, allocations: 60.03 kB / 1.375 GB, free: 2.59 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.379e-05/0.3721, allocations: 63.97 kB / 1.375 GB, free: 2.527 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.0002878/0.3724, allocations: 220.3 kB / 1.375 GB, free: 2.305 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.251e-05/0.3725, allocations: 35.77 kB / 1.375 GB, free: 2.27 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.251e-05/0.3726, allocations: 39.72 kB / 1.375 GB, free: 2.234 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.3726, allocations: 7.984 kB / 1.375 GB, free: 2.227 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3726, allocations: 4 kB / 1.375 GB, free: 2.223 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.3726, allocations: 0 / 1.375 GB, free: 2.223 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002271/0.3748, allocations: 0.7166 MB / 1.376 GB, free: 1.465 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3748, allocations: 0 / 1.376 GB, free: 1.465 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.681e-05/0.3749, allocations: 4 kB / 1.376 GB, free: 1.461 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.3749, allocations: 8 kB / 1.376 GB, free: 1.453 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.565e-05/0.3749, allocations: 27.97 kB / 1.376 GB, free: 1.426 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.3749, allocations: 0 / 1.376 GB, free: 1.426 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3749, allocations: 0 / 1.376 GB, free: 1.426 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/0.3767, allocations: 0.4902 MB / 1.377 GB, free: 0.9219 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003805/0.3771, allocations: 169.5 kB / 1.377 GB, free: 0.7578 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.845e-05/0.3772, allocations: 20 kB / 1.377 GB, free: 0.7383 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004544/0.3776, allocations: 27.97 kB / 1.377 GB, free: 0.7109 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.3776, allocations: 15.91 kB / 1.377 GB, free: 0.6953 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.317e-05/0.3777, allocations: 55.98 kB / 1.377 GB, free: 0.6406 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004423/0.3782, allocations: 323.1 kB / 1.377 GB, free: 332 kB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3782, allocations: 0 / 1.377 GB, free: 332 kB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004011/0.3786, allocations: 71.89 kB / 1.377 GB, free: 260 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.0001873/0.3788, allocations: 132.1 kB / 1.377 GB, free: 116 kB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001403/0.3802, allocations: 0.498 MB / 1.378 GB, free: 15.58 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3802, allocations: 0 / 1.378 GB, free: 15.58 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0007863/0.3809, allocations: 120.2 kB / 1.378 GB, free: 15.46 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004064/0.3813, allocations: 36.77 kB / 1.378 GB, free: 15.43 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.383, allocations: 0.6387 MB / 1.379 GB, free: 14.75 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002036/0.3832, allocations: 178.9 kB / 1.379 GB, free: 14.56 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.307e-05/0.3833, allocations: 19.42 kB / 1.379 GB, free: 14.54 MB / 1.076 GB Notification: Performance of SimCode: time 8.41e-07/0.3833, allocations: 4 kB / 1.379 GB, free: 14.54 MB / 1.076 GB Notification: Performance of Templates: time 0.006999/0.3903, allocations: 4.126 MB / 1.383 GB, free: 10.36 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) [Timeout 800] 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) [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.285365346819162]