Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001596/0.001596, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001778/0.001778, allocations: 217.3 kB / 23.01 MB, free: 4.566 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.452/1.452, allocations: 230.6 MB / 256.8 MB, free: 8.008 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.159/3.159, allocations: 0.49 GB / 0.7958 GB, free: 33.39 MB / 0.6231 GB " [Timeout remaining time 176] 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.CalendarTimeMonthsMinus,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.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_12_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.002019/0.002019, allocations: 70.47 kB / 1.155 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3252/0.3273, allocations: 176.1 MB / 1.327 GB, free: 1.449 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.003211/0.3305, allocations: 1.769 MB / 1.329 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001412/0.3319, allocations: 0.6285 MB / 1.33 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.022e-05/0.332, allocations: 0 / 1.33 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 9.916e-05/0.3321, allocations: 7.875 kB / 1.33 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.3322, allocations: 35.78 kB / 1.33 GB, free: 15 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.00086/0.3331, allocations: 363.3 kB / 1.33 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006839/0.3337, allocations: 0.6087 MB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.3338, allocations: 25.23 kB / 1.331 GB, free: 14.01 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004358/0.3343, allocations: 315.5 kB / 1.331 GB, free: 13.7 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003254/0.3346, allocations: 171.3 kB / 1.331 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 8.768e-05/0.3347, allocations: 40 kB / 1.331 GB, free: 13.5 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.506e-05/0.3348, allocations: 43.94 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.3349, allocations: 127.6 kB / 1.331 GB, free: 13.33 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002258/0.3352, allocations: 219 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006311/0.3358, allocations: 0.584 MB / 1.332 GB, free: 12.53 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3358, allocations: 4 kB / 1.332 GB, free: 12.52 MB / 1.029 GB Notification: Performance of FrontEnd: time 5.049e-06/0.3358, allocations: 4 kB / 1.332 GB, free: 12.52 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.193e-05/0.3358, allocations: 0 / 1.332 GB, free: 12.52 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.001418/0.3372, allocations: 0.8495 MB / 1.333 GB, free: 11.6 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.3373, allocations: 8.031 kB / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.3374, allocations: 60.64 kB / 1.333 GB, free: 11.53 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005113/0.3379, allocations: 284.6 kB / 1.333 GB, free: 11.23 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.286e-05/0.338, allocations: 24.36 kB / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.832e-05/0.338, allocations: 36.36 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.3391, allocations: 227.5 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.3391, allocations: 192 / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.909e-05/0.3391, allocations: 11.94 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.3391, allocations: 0 / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007786/0.3399, allocations: 123.8 kB / 1.334 GB, free: 10.81 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.3414, allocations: 0.6361 MB / 1.334 GB, free: 10.13 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.3424, allocations: 170.5 kB / 1.334 GB, free: 9.953 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006994/0.3431, allocations: 108.7 kB / 1.334 GB, free: 9.844 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.3431, allocations: 4 kB / 1.334 GB, free: 9.84 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009893/0.3441, allocations: 233.4 kB / 1.335 GB, free: 9.602 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.483e-06/0.3441, allocations: 3.938 kB / 1.335 GB, free: 9.598 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.002514/0.3466, allocations: 497.2 kB / 1.335 GB, free: 9.105 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.3467, allocations: 63.39 kB / 1.335 GB, free: 9.031 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004991/0.3472, allocations: 445.8 kB / 1.336 GB, free: 8.582 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.268e-05/0.3473, allocations: 41.7 kB / 1.336 GB, free: 8.535 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.756e-05/0.3474, allocations: 105.4 kB / 1.336 GB, free: 8.43 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.28e-05/0.3474, allocations: 43.73 kB / 1.336 GB, free: 8.387 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/0.3476, allocations: 137.4 kB / 1.336 GB, free: 8.246 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3478, allocations: 330.8 kB / 1.336 GB, free: 7.914 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.3481, allocations: 135.9 kB / 1.336 GB, free: 7.781 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003201/0.3484, allocations: 193.9 kB / 1.337 GB, free: 7.57 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004054/0.3488, allocations: 296 kB / 1.337 GB, free: 7.25 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-06/0.3488, allocations: 7.984 kB / 1.337 GB, free: 7.242 MB / 1.029 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008894/0.3497, allocations: 0.5163 MB / 1.337 GB, free: 6.707 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.3498, allocations: 99.31 kB / 1.337 GB, free: 6.598 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.3498, allocations: 0 / 1.337 GB, free: 6.598 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.3498, allocations: 4 kB / 1.337 GB, free: 6.594 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.35, allocations: 19.92 kB / 1.337 GB, free: 6.574 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.35, allocations: 7.938 kB / 1.337 GB, free: 6.566 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004682/0.3505, allocations: 68.02 kB / 1.338 GB, free: 6.5 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.01e-05/0.3505, allocations: 59.98 kB / 1.338 GB, free: 6.441 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.0002627/0.3508, allocations: 220.8 kB / 1.338 GB, free: 6.215 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.033e-05/0.3509, allocations: 39.72 kB / 1.338 GB, free: 6.176 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.09e-05/0.3509, allocations: 47.72 kB / 1.338 GB, free: 6.129 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.3509, allocations: 0 / 1.338 GB, free: 6.129 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3509, allocations: 0 / 1.338 GB, free: 6.129 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.351, allocations: 4 kB / 1.338 GB, free: 6.125 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002129/0.3531, allocations: 0.7616 MB / 1.339 GB, free: 5.312 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3531, allocations: 0 / 1.339 GB, free: 5.312 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.067e-05/0.3531, allocations: 4 kB / 1.339 GB, free: 5.309 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3531, allocations: 8 kB / 1.339 GB, free: 5.301 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.692e-05/0.3532, allocations: 19.97 kB / 1.339 GB, free: 5.281 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.3532, allocations: 7.938 kB / 1.339 GB, free: 5.273 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3532, allocations: 0 / 1.339 GB, free: 5.273 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/0.3548, allocations: 483.4 kB / 1.339 GB, free: 4.785 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003346/0.3551, allocations: 181.4 kB / 1.339 GB, free: 4.609 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.128e-05/0.3552, allocations: 16 kB / 1.339 GB, free: 4.594 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004789/0.3557, allocations: 35.91 kB / 1.339 GB, free: 4.559 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.662e-05/0.3557, allocations: 7.984 kB / 1.339 GB, free: 4.551 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.094e-05/0.3558, allocations: 55.97 kB / 1.339 GB, free: 4.496 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003482/0.3561, allocations: 327.1 kB / 1.34 GB, free: 4.18 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3561, allocations: 0 / 1.34 GB, free: 4.18 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003574/0.3565, allocations: 71.94 kB / 1.34 GB, free: 4.109 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.0001884/0.3567, allocations: 127.9 kB / 1.34 GB, free: 3.973 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001253/0.3579, allocations: 442.5 kB / 1.34 GB, free: 3.516 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3579, allocations: 0 / 1.34 GB, free: 3.516 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0007235/0.3587, allocations: 115.8 kB / 1.34 GB, free: 3.402 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000397/0.3591, allocations: 43.38 kB / 1.341 GB, free: 3.367 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.3606, allocations: 0.6468 MB / 1.341 GB, free: 2.684 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.3611, allocations: 0.7862 MB / 1.342 GB, free: 1.871 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.904e-05/0.3611, allocations: 19.42 kB / 1.342 GB, free: 1.852 MB / 1.029 GB Notification: Performance of SimCode: time 3.61e-07/0.3611, allocations: 0 / 1.342 GB, free: 1.852 MB / 1.029 GB Notification: Performance of Templates: time 0.006779/0.3679, allocations: 4.103 MB / 1.346 GB, free: 13.7 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.188718032004545]