Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001764/0.001764, allocations: 100.8 kB / 19.74 MB, free: 2.07 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.00217/0.00217, allocations: 210.8 kB / 23.04 MB, free: 4.867 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.492/1.492, allocations: 230.6 MB / 256.8 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.165/3.165, allocations: 0.49 GB / 0.7959 GB, free: 35.52 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002085/0.002085, allocations: 68.52 kB / 1.155 GB, free: 25.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3451, allocations: 176.1 MB / 1.327 GB, free: 0.9258 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.00317/0.3483, allocations: 1.734 MB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001491/0.3498, allocations: 0.6052 MB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.439e-05/0.3499, allocations: 0 / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.35, allocations: 11.86 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001435/0.3501, allocations: 35.78 kB / 1.33 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009262/0.3511, allocations: 373.7 kB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006861/0.3517, allocations: 0.6009 MB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.3519, allocations: 21.25 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004601/0.3523, allocations: 323.5 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003092/0.3526, allocations: 152.3 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001108/0.3527, allocations: 40 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.3528, allocations: 40 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.353, allocations: 127.6 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.3532, allocations: 179.2 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006293/0.3538, allocations: 0.5957 MB / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3538, allocations: 4 kB / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.194e-06/0.3538, allocations: 4 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.377e-06/0.3538, allocations: 3.984 kB / 1.332 GB, free: 12.09 MB / 1.029 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.001368/0.3552, allocations: 0.8455 MB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.3552, allocations: 15.97 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.3554, allocations: 56.66 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004439/0.3558, allocations: 272.8 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.238e-05/0.3559, allocations: 24.36 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.805e-05/0.356, allocations: 28.36 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.357, allocations: 251.7 kB / 1.333 GB, free: 10.51 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.357, allocations: 192 / 1.333 GB, free: 10.51 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.023e-05/0.357, allocations: 15.81 kB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.357, allocations: 0 / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008104/0.3579, allocations: 139.9 kB / 1.334 GB, free: 10.36 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.3591, allocations: 0.5352 MB / 1.334 GB, free: 9.793 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.3602, allocations: 186.4 kB / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007688/0.361, allocations: 124.8 kB / 1.334 GB, free: 9.477 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.361, allocations: 4 kB / 1.334 GB, free: 9.473 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001002/0.362, allocations: 241.4 kB / 1.335 GB, free: 9.227 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 2.414e-06/0.362, allocations: 0 / 1.335 GB, free: 9.227 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.002698/0.3647, allocations: 0.5402 MB / 1.335 GB, free: 8.68 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.3648, allocations: 55.41 kB / 1.335 GB, free: 8.613 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005388/0.3653, allocations: 445.9 kB / 1.336 GB, free: 8.164 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 8.266e-05/0.3654, allocations: 45.69 kB / 1.336 GB, free: 8.113 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.3655, allocations: 105.4 kB / 1.336 GB, free: 8.008 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.039e-05/0.3656, allocations: 43.66 kB / 1.336 GB, free: 7.965 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002329/0.3658, allocations: 145.4 kB / 1.336 GB, free: 7.816 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3659, allocations: 326.8 kB / 1.336 GB, free: 7.488 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000372/0.3663, allocations: 223.3 kB / 1.336 GB, free: 7.258 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003916/0.3667, allocations: 273.2 kB / 1.337 GB, free: 6.957 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004236/0.3671, allocations: 298.3 kB / 1.337 GB, free: 6.633 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3671, allocations: 0 / 1.337 GB, free: 6.633 MB / 1.029 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001007/0.3681, allocations: 0.5991 MB / 1.338 GB, free: 6.004 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.246e-05/0.3682, allocations: 87.38 kB / 1.338 GB, free: 5.906 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.3682, allocations: 4 kB / 1.338 GB, free: 5.902 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.3683, allocations: 0 / 1.338 GB, free: 5.902 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.3684, allocations: 27.92 kB / 1.338 GB, free: 5.875 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.3684, allocations: 12.19 kB / 1.338 GB, free: 5.863 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005077/0.369, allocations: 59.84 kB / 1.338 GB, free: 5.805 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.884e-05/0.3691, allocations: 67.91 kB / 1.338 GB, free: 5.738 MB / 1.029 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.0002906/0.3693, allocations: 220.8 kB / 1.338 GB, free: 5.512 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.631e-05/0.3694, allocations: 39.72 kB / 1.338 GB, free: 5.473 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.686e-05/0.3695, allocations: 43.72 kB / 1.338 GB, free: 5.43 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.3695, allocations: 8 kB / 1.338 GB, free: 5.422 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3695, allocations: 0 / 1.338 GB, free: 5.422 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.3695, allocations: 7.922 kB / 1.338 GB, free: 5.414 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.3717, allocations: 0.7416 MB / 1.339 GB, free: 4.633 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.281e-06/0.3717, allocations: 4 kB / 1.339 GB, free: 4.629 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.937e-05/0.3718, allocations: 8 kB / 1.339 GB, free: 4.621 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3718, allocations: 4 kB / 1.339 GB, free: 4.617 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.903e-05/0.3718, allocations: 19.97 kB / 1.339 GB, free: 4.598 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3718, allocations: 0 / 1.339 GB, free: 4.598 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3718, allocations: 0 / 1.339 GB, free: 4.598 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.3736, allocations: 0.5189 MB / 1.339 GB, free: 4.062 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000327/0.374, allocations: 177.5 kB / 1.34 GB, free: 3.891 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.414e-05/0.374, allocations: 16 kB / 1.34 GB, free: 3.875 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004864/0.3745, allocations: 31.97 kB / 1.34 GB, free: 3.844 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.095e-05/0.3746, allocations: 19.91 kB / 1.34 GB, free: 3.824 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.298e-05/0.3746, allocations: 55.98 kB / 1.34 GB, free: 3.77 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003634/0.375, allocations: 319.1 kB / 1.34 GB, free: 3.457 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.375, allocations: 0 / 1.34 GB, free: 3.457 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000423/0.3754, allocations: 75.94 kB / 1.34 GB, free: 3.383 MB / 1.029 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.0001767/0.3756, allocations: 123.9 kB / 1.34 GB, free: 3.25 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001434/0.377, allocations: 0.5241 MB / 1.341 GB, free: 2.691 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.377, allocations: 0 / 1.341 GB, free: 2.691 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0007858/0.3778, allocations: 132.2 kB / 1.341 GB, free: 2.562 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.3783, allocations: 39.66 kB / 1.341 GB, free: 2.527 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.38, allocations: 0.6504 MB / 1.341 GB, free: 1.84 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000202/0.3802, allocations: 182.7 kB / 1.342 GB, free: 1.641 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.725e-05/0.3802, allocations: 23.42 kB / 1.342 GB, free: 1.617 MB / 1.029 GB Notification: Performance of SimCode: time 8.52e-07/0.3802, allocations: 3.938 kB / 1.342 GB, free: 1.613 MB / 1.029 GB Notification: Performance of Templates: time 0.006922/0.3872, allocations: 4.124 MB / 1.346 GB, free: 13.44 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.437367908889428]