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.001551/0.001551, allocations: 110.5 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.001783/0.001783, allocations: 216.7 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.49/1.49, allocations: 230.6 MB / 256.8 MB, free: 8.055 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.145/3.145, allocations: 0.49 GB / 0.7958 GB, free: 33.47 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.001994/0.001994, allocations: 72.83 kB / 1.155 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3128, allocations: 176.1 MB / 1.327 GB, free: 1.441 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.002969/0.3158, allocations: 1.766 MB / 1.329 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001366/0.3171, allocations: 0.6207 MB / 1.33 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.118e-05/0.3172, allocations: 3.938 kB / 1.33 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 9.332e-05/0.3173, allocations: 11.86 kB / 1.33 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001227/0.3174, allocations: 39.78 kB / 1.33 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008118/0.3182, allocations: 369.3 kB / 1.33 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006488/0.3189, allocations: 0.5932 MB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.81e-05/0.319, allocations: 29.22 kB / 1.331 GB, free: 14.01 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004472/0.3194, allocations: 319.5 kB / 1.331 GB, free: 13.7 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003159/0.3197, allocations: 163.4 kB / 1.331 GB, free: 13.54 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 9.171e-05/0.3198, allocations: 44 kB / 1.331 GB, free: 13.49 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.515e-05/0.3199, allocations: 43.94 kB / 1.331 GB, free: 13.45 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.3201, allocations: 131.6 kB / 1.331 GB, free: 13.32 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000223/0.3203, allocations: 215 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006361/0.3209, allocations: 0.5995 MB / 1.332 GB, free: 12.51 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.3209, allocations: 0 / 1.332 GB, free: 12.51 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.373e-06/0.3209, allocations: 0 / 1.332 GB, free: 12.51 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.3209, allocations: 0 / 1.332 GB, free: 12.51 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.001358/0.3223, allocations: 0.8456 MB / 1.333 GB, free: 11.59 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.3223, allocations: 16.03 kB / 1.333 GB, free: 11.57 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001193/0.3225, allocations: 56.64 kB / 1.333 GB, free: 11.52 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004772/0.3229, allocations: 280.6 kB / 1.333 GB, free: 11.22 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.196e-05/0.323, allocations: 16.38 kB / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.394e-05/0.3231, allocations: 32.36 kB / 1.333 GB, free: 11.17 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009932/0.324, allocations: 235.5 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.3241, allocations: 8.172 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/0.3241, allocations: 3.938 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.3241, allocations: 3.984 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007367/0.3248, allocations: 115.9 kB / 1.334 GB, free: 10.81 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/0.3262, allocations: 0.6438 MB / 1.334 GB, free: 10.12 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009919/0.3272, allocations: 170.5 kB / 1.334 GB, free: 9.945 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007231/0.3279, allocations: 116.8 kB / 1.334 GB, free: 9.828 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.328, allocations: 3.938 kB / 1.334 GB, free: 9.824 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009267/0.3289, allocations: 227.1 kB / 1.335 GB, free: 9.59 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.3289, allocations: 0 / 1.335 GB, free: 9.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.002369/0.3312, allocations: 499.6 kB / 1.335 GB, free: 9.098 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.3313, allocations: 67.41 kB / 1.335 GB, free: 9.02 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005025/0.3318, allocations: 441.9 kB / 1.336 GB, free: 8.574 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.152e-05/0.3319, allocations: 41.69 kB / 1.336 GB, free: 8.527 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.332, allocations: 101.4 kB / 1.336 GB, free: 8.426 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.546e-05/0.332, allocations: 43.72 kB / 1.336 GB, free: 8.383 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002154/0.3322, allocations: 145.4 kB / 1.336 GB, free: 8.234 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3324, allocations: 322.8 kB / 1.336 GB, free: 7.91 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002895/0.3327, allocations: 135.9 kB / 1.336 GB, free: 7.777 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.333, allocations: 201.8 kB / 1.337 GB, free: 7.559 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004284/0.3334, allocations: 294.5 kB / 1.337 GB, free: 7.238 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3334, allocations: 3.938 kB / 1.337 GB, free: 7.234 MB / 1.029 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009045/0.3343, allocations: 0.5178 MB / 1.337 GB, free: 6.699 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/0.3344, allocations: 99.38 kB / 1.337 GB, free: 6.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3344, allocations: 3.984 kB / 1.337 GB, free: 6.586 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.3344, allocations: 4 kB / 1.337 GB, free: 6.582 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.3346, allocations: 24.17 kB / 1.337 GB, free: 6.559 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.3346, allocations: 7.875 kB / 1.337 GB, free: 6.551 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004598/0.3351, allocations: 59.84 kB / 1.338 GB, free: 6.492 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.872e-05/0.3352, allocations: 55.98 kB / 1.338 GB, free: 6.438 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.0002619/0.3354, allocations: 224.8 kB / 1.338 GB, free: 6.207 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.826e-05/0.3355, allocations: 47.72 kB / 1.338 GB, free: 6.16 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.647e-05/0.3356, allocations: 39.73 kB / 1.338 GB, free: 6.121 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.3356, allocations: 0 / 1.338 GB, free: 6.121 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.3356, allocations: 4 kB / 1.338 GB, free: 6.117 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.3356, allocations: 3.984 kB / 1.338 GB, free: 6.113 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002179/0.3378, allocations: 0.7552 MB / 1.339 GB, free: 5.305 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3378, allocations: 0 / 1.339 GB, free: 5.305 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.953e-05/0.3378, allocations: 11.92 kB / 1.339 GB, free: 5.293 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3378, allocations: 0 / 1.339 GB, free: 5.293 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.838e-05/0.3378, allocations: 19.98 kB / 1.339 GB, free: 5.273 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.3379, allocations: 7.922 kB / 1.339 GB, free: 5.266 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3379, allocations: 0 / 1.339 GB, free: 5.266 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.3395, allocations: 482.5 kB / 1.339 GB, free: 4.781 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003501/0.3399, allocations: 177.4 kB / 1.339 GB, free: 4.609 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.381e-05/0.3399, allocations: 23.98 kB / 1.339 GB, free: 4.586 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004683/0.3404, allocations: 35.91 kB / 1.339 GB, free: 4.551 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.512e-05/0.3404, allocations: 7.984 kB / 1.339 GB, free: 4.543 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.389e-05/0.3405, allocations: 59.97 kB / 1.339 GB, free: 4.484 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003494/0.3409, allocations: 319.1 kB / 1.34 GB, free: 4.176 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3409, allocations: 0 / 1.34 GB, free: 4.176 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003628/0.3412, allocations: 71.92 kB / 1.34 GB, free: 4.105 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.0001813/0.3414, allocations: 127.8 kB / 1.34 GB, free: 3.969 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001281/0.3427, allocations: 438.5 kB / 1.34 GB, free: 3.516 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3427, allocations: 3.938 kB / 1.34 GB, free: 3.512 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0007534/0.3434, allocations: 112.3 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.0004167/0.3439, allocations: 49.58 kB / 1.341 GB, free: 3.359 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.3454, allocations: 0.6387 MB / 1.341 GB, free: 2.684 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.3459, allocations: 0.7823 MB / 1.342 GB, free: 1.875 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.947e-05/0.3459, allocations: 23.42 kB / 1.342 GB, free: 1.852 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.3459, allocations: 7.938 kB / 1.342 GB, free: 1.844 MB / 1.029 GB Notification: Performance of Templates: time 0.006718/0.3526, allocations: 4.1 MB / 1.346 GB, free: 13.69 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.215415337996092]