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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 105 kB / 15.98 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 195.9 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.657/2.657, allocations: 469.4 MB / 0.7423 GB, free: 3.824 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 62 kB / 0.9084 GB, free: 14.45 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3134/0.315, allocations: 159.1 MB / 1.064 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.00328/0.3183, allocations: 1.803 MB / 1.066 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001347/0.3197, allocations: 0.6207 MB / 1.066 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.3198, allocations: 4 kB / 1.066 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.32, allocations: 3.938 kB / 1.066 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001499/0.3202, allocations: 31.84 kB / 1.066 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009176/0.3211, allocations: 335.5 kB / 1.066 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0007273/0.3218, allocations: 0.636 MB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.322, allocations: 37.09 kB / 1.067 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005777/0.3225, allocations: 374.9 kB / 1.067 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000372/0.3229, allocations: 187 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.3231, allocations: 40 kB / 1.068 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.408e-05/0.3232, allocations: 40 kB / 1.068 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001461/0.3233, allocations: 131.6 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000258/0.3236, allocations: 226.8 kB / 1.068 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004402/0.324, allocations: 491.3 kB / 1.069 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.324, allocations: 0 / 1.069 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.704e-06/0.324, allocations: 4 kB / 1.069 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.48e-05/0.3241, allocations: 0 / 1.069 GB, free: 10.41 MB / 0.8419 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.001554/0.3256, allocations: 0.9053 MB / 1.069 GB, free: 9.41 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3257, allocations: 12.62 kB / 1.069 GB, free: 9.398 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.3259, allocations: 52.47 kB / 1.07 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004056/0.3263, allocations: 330.2 kB / 1.07 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.126e-05/0.3263, allocations: 20.55 kB / 1.07 GB, free: 8.969 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.5e-05/0.3264, allocations: 32.36 kB / 1.07 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.3275, allocations: 238 kB / 1.07 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.3275, allocations: 3.938 kB / 1.07 GB, free: 8.695 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/0.3276, allocations: 0 / 1.07 GB, free: 8.695 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.3276, allocations: 7.938 kB / 1.07 GB, free: 8.688 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008397/0.3284, allocations: 117.6 kB / 1.07 GB, free: 8.574 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.3298, allocations: 0.6758 MB / 1.071 GB, free: 7.848 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/0.3309, allocations: 194.4 kB / 1.071 GB, free: 7.648 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008172/0.3317, allocations: 112.8 kB / 1.071 GB, free: 7.535 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.3318, allocations: 11.92 kB / 1.071 GB, free: 7.523 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001051/0.3328, allocations: 231.1 kB / 1.071 GB, free: 7.285 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 1.803e-06/0.3328, allocations: 0 / 1.071 GB, free: 7.285 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.002732/0.3356, allocations: 496.8 kB / 1.072 GB, free: 6.793 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.3356, allocations: 63.39 kB / 1.072 GB, free: 6.719 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004415/0.3361, allocations: 441.9 kB / 1.072 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 8.036e-05/0.3362, allocations: 37.7 kB / 1.072 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.3363, allocations: 105.3 kB / 1.073 GB, free: 6.125 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.436e-05/0.3363, allocations: 43.48 kB / 1.073 GB, free: 6.082 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002281/0.3366, allocations: 137.3 kB / 1.073 GB, free: 5.941 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.3367, allocations: 326.8 kB / 1.073 GB, free: 5.613 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002915/0.337, allocations: 139.9 kB / 1.073 GB, free: 5.477 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003082/0.3373, allocations: 197.9 kB / 1.073 GB, free: 5.262 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003901/0.3377, allocations: 295.4 kB / 1.074 GB, free: 4.941 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3377, allocations: 4 kB / 1.074 GB, free: 4.938 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008758/0.3386, allocations: 0.524 MB / 1.074 GB, free: 4.395 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.953e-05/0.3387, allocations: 99.38 kB / 1.074 GB, free: 4.285 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.3387, allocations: 0 / 1.074 GB, free: 4.285 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.3387, allocations: 4 kB / 1.074 GB, free: 4.281 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001719/0.3389, allocations: 19.92 kB / 1.074 GB, free: 4.262 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.3389, allocations: 7.984 kB / 1.074 GB, free: 4.254 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005361/0.3395, allocations: 63.98 kB / 1.074 GB, free: 4.191 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.485e-05/0.3396, allocations: 59.92 kB / 1.074 GB, free: 4.133 MB / 0.8419 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.0002484/0.3398, allocations: 212.3 kB / 1.075 GB, free: 3.914 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.704e-05/0.3399, allocations: 39.52 kB / 1.075 GB, free: 3.875 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.623e-05/0.34, allocations: 43.8 kB / 1.075 GB, free: 3.832 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.34, allocations: 0 / 1.075 GB, free: 3.832 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.34, allocations: 4 kB / 1.075 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.34, allocations: 0 / 1.075 GB, free: 3.828 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.3422, allocations: 0.7937 MB / 1.075 GB, free: 2.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3422, allocations: 7.984 kB / 1.075 GB, free: 2.973 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.688e-05/0.3423, allocations: 7.984 kB / 1.075 GB, free: 2.965 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.3423, allocations: 4 kB / 1.075 GB, free: 2.961 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.031e-05/0.3423, allocations: 23.92 kB / 1.075 GB, free: 2.938 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.676e-06/0.3423, allocations: 0 / 1.075 GB, free: 2.938 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3423, allocations: 0 / 1.075 GB, free: 2.938 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/0.3441, allocations: 478.8 kB / 1.076 GB, free: 2.453 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002746/0.3444, allocations: 244.5 kB / 1.076 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.82e-05/0.3445, allocations: 19.94 kB / 1.076 GB, free: 2.176 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004974/0.345, allocations: 31.97 kB / 1.076 GB, free: 2.145 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.3451, allocations: 15.92 kB / 1.076 GB, free: 2.129 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-05/0.3451, allocations: 63.91 kB / 1.076 GB, free: 2.066 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003087/0.3454, allocations: 319.1 kB / 1.077 GB, free: 1.758 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3454, allocations: 0 / 1.077 GB, free: 1.758 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003838/0.3458, allocations: 67.98 kB / 1.077 GB, free: 1.691 MB / 0.8419 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.0001858/0.346, allocations: 127.9 kB / 1.077 GB, free: 1.555 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001388/0.3474, allocations: 486.7 kB / 1.077 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3474, allocations: 0 / 1.077 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0008136/0.3483, allocations: 123.9 kB / 1.077 GB, free: 0.9336 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004308/0.3487, allocations: 41.36 kB / 1.077 GB, free: 0.8984 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.3503, allocations: 0.7679 MB / 1.078 GB, free: 100 kB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4405/0.7908, allocations: 0.7777 MB / 1.079 GB, free: 22.21 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.918e-05/0.791, allocations: 17 kB / 1.079 GB, free: 22.2 MB / 0.8419 GB Notification: Performance of SimCode: time 1.723e-06/0.791, allocations: 0 / 1.079 GB, free: 22.2 MB / 0.8419 GB Notification: Performance of Templates: time 0.008037/0.799, allocations: 4.088 MB / 1.083 GB, free: 21.79 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) 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) "" 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