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.001594/0.001594, allocations: 104.3 kB / 19.71 MB, free: 2.148 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.001965/0.001965, allocations: 208.3 kB / 22.99 MB, free: 4.965 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.521/1.521, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.174/3.174, allocations: 0.4892 GB / 0.7951 GB, free: 35.44 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.002114/0.002114, allocations: 72.12 kB / 1.154 GB, free: 25.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.331, allocations: 176.1 MB / 1.326 GB, free: 1.801 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003188/0.3342, allocations: 1.737 MB / 1.328 GB, free: 56 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001449/0.3357, allocations: 0.6033 MB / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.3358, allocations: 0 / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.3359, allocations: 15.86 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001572/0.3361, allocations: 35.78 kB / 1.329 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009562/0.337, allocations: 371.3 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000719/0.3377, allocations: 0.597 MB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.3379, allocations: 29.23 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005831/0.3384, allocations: 319.6 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004322/0.3389, allocations: 151.3 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.339, allocations: 40 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.3391, allocations: 44 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.3393, allocations: 123.6 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002361/0.3396, allocations: 187.2 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006309/0.3402, allocations: 0.5918 MB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3402, allocations: 4 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.984e-06/0.3402, allocations: 0 / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.134e-06/0.3402, allocations: 0 / 1.331 GB, free: 12.97 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.001322/0.3415, allocations: 0.8378 MB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.3416, allocations: 12.03 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.3417, allocations: 60.59 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004843/0.3422, allocations: 284.6 kB / 1.332 GB, free: 11.69 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.689e-05/0.3422, allocations: 20.36 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.974e-05/0.3423, allocations: 32.36 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009728/0.3433, allocations: 241.9 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.3433, allocations: 192 / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.3433, allocations: 3.938 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.3433, allocations: 4 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007655/0.3441, allocations: 109.6 kB / 1.333 GB, free: 11.28 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001295/0.3454, allocations: 0.5391 MB / 1.333 GB, free: 10.71 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.3464, allocations: 170.5 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007271/0.3471, allocations: 108.8 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.3471, allocations: 0 / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009593/0.3481, allocations: 227.1 kB / 1.334 GB, free: 10.19 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.613e-06/0.3481, allocations: 4 kB / 1.334 GB, free: 10.19 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.002512/0.3506, allocations: 0.4917 MB / 1.334 GB, free: 9.691 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.3507, allocations: 63.41 kB / 1.334 GB, free: 9.617 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004928/0.3512, allocations: 441.9 kB / 1.335 GB, free: 9.168 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.97e-05/0.3512, allocations: 45.69 kB / 1.335 GB, free: 9.117 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.363e-05/0.3513, allocations: 105.3 kB / 1.335 GB, free: 9.012 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.387e-05/0.3514, allocations: 39.73 kB / 1.335 GB, free: 8.973 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002147/0.3516, allocations: 145.4 kB / 1.335 GB, free: 8.824 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3517, allocations: 334.7 kB / 1.335 GB, free: 8.488 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003491/0.3521, allocations: 211.3 kB / 1.335 GB, free: 8.27 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003968/0.3525, allocations: 277.2 kB / 1.336 GB, free: 7.965 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004096/0.3529, allocations: 291 kB / 1.336 GB, free: 7.648 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3529, allocations: 0 / 1.336 GB, free: 7.648 MB / 1.029 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009597/0.3539, allocations: 0.5938 MB / 1.337 GB, free: 7.023 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.962e-05/0.3539, allocations: 87.38 kB / 1.337 GB, free: 6.926 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.354, allocations: 3.984 kB / 1.337 GB, free: 6.922 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.354, allocations: 4 kB / 1.337 GB, free: 6.918 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.3541, allocations: 23.92 kB / 1.337 GB, free: 6.895 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.3541, allocations: 4.188 kB / 1.337 GB, free: 6.891 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004646/0.3546, allocations: 63.78 kB / 1.337 GB, free: 6.828 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.832e-05/0.3547, allocations: 59.98 kB / 1.337 GB, free: 6.77 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.0002642/0.3549, allocations: 224.8 kB / 1.337 GB, free: 6.539 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.395e-05/0.355, allocations: 43.72 kB / 1.337 GB, free: 6.496 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.972e-05/0.3551, allocations: 39.73 kB / 1.337 GB, free: 6.457 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.3551, allocations: 4 kB / 1.337 GB, free: 6.453 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.3551, allocations: 7.984 kB / 1.337 GB, free: 6.445 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.3551, allocations: 0 / 1.337 GB, free: 6.445 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002217/0.3573, allocations: 0.7089 MB / 1.338 GB, free: 5.695 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.3573, allocations: 7.938 kB / 1.338 GB, free: 5.688 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.566e-05/0.3574, allocations: 7.984 kB / 1.338 GB, free: 5.68 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3574, allocations: 0 / 1.338 GB, free: 5.68 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.417e-05/0.3574, allocations: 23.97 kB / 1.338 GB, free: 5.656 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.3574, allocations: 4 kB / 1.338 GB, free: 5.652 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3574, allocations: 0 / 1.338 GB, free: 5.652 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.3592, allocations: 489.8 kB / 1.338 GB, free: 5.16 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004099/0.3596, allocations: 177.5 kB / 1.338 GB, free: 4.988 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.429e-05/0.3597, allocations: 20 kB / 1.338 GB, free: 4.969 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004578/0.3601, allocations: 27.97 kB / 1.338 GB, free: 4.941 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.3e-05/0.3602, allocations: 15.86 kB / 1.339 GB, free: 4.926 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.09e-05/0.3602, allocations: 59.97 kB / 1.339 GB, free: 4.867 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003562/0.3606, allocations: 323 kB / 1.339 GB, free: 4.555 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3606, allocations: 0 / 1.339 GB, free: 4.555 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003575/0.3609, allocations: 75.92 kB / 1.339 GB, free: 4.48 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.0001865/0.3611, allocations: 127.9 kB / 1.339 GB, free: 4.344 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001318/0.3625, allocations: 0.4979 MB / 1.34 GB, free: 3.809 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3625, allocations: 384 / 1.34 GB, free: 3.809 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0007327/0.3632, allocations: 119.9 kB / 1.34 GB, free: 3.691 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/0.3636, allocations: 37.66 kB / 1.34 GB, free: 3.66 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.3652, allocations: 0.6387 MB / 1.34 GB, free: 2.984 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002037/0.3654, allocations: 190.7 kB / 1.341 GB, free: 2.777 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.998e-05/0.3654, allocations: 19.42 kB / 1.341 GB, free: 2.758 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.3654, allocations: 0 / 1.341 GB, free: 2.758 MB / 1.029 GB Notification: Performance of Templates: time 0.006527/0.3719, allocations: 4.127 MB / 1.345 GB, free: 14.58 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.198474396951497]