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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001306/0.001306, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00187/0.00187, allocations: 198.9 kB / 16.79 MB, free: 6.809 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.461/1.461, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.793/2.793, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 64.94 kB / 0.8991 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3198, allocations: 157.4 MB / 1.053 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003347/0.3232, allocations: 1.793 MB / 1.055 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.3248, allocations: 0.691 MB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.3249, allocations: 3.938 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.325, allocations: 11.92 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001695/0.3253, allocations: 31.86 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009502/0.3262, allocations: 330.4 kB / 1.056 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005966/0.3268, allocations: 0.5383 MB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.327, allocations: 29.09 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005631/0.3275, allocations: 318.9 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003765/0.3279, allocations: 175.1 kB / 1.057 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001431/0.3281, allocations: 19.94 kB / 1.057 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.3282, allocations: 12 kB / 1.057 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001626/0.3283, allocations: 115.7 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002936/0.3286, allocations: 202.7 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004533/0.3291, allocations: 491.2 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3291, allocations: 0 / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.82e-07/0.3291, allocations: 0 / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.266e-05/0.3291, allocations: 0 / 1.057 GB, free: 3.508 MB / 0.8106 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.001624/0.3308, allocations: 0.9092 MB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.3308, allocations: 15.97 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.331, allocations: 52.45 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.3315, allocations: 330.2 kB / 1.059 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.435e-05/0.3315, allocations: 20.55 kB / 1.059 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.434e-05/0.3316, allocations: 32.36 kB / 1.059 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.3328, allocations: 241.9 kB / 1.059 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.3328, allocations: 3.938 kB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.3328, allocations: 0 / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.3328, allocations: 4 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008384/0.3337, allocations: 107.9 kB / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.3351, allocations: 0.6836 MB / 1.06 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.3362, allocations: 190.4 kB / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007998/0.337, allocations: 120.8 kB / 1.06 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.364e-05/0.337, allocations: 0 / 1.06 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009697/0.338, allocations: 231.2 kB / 1.06 GB, free: 392 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.923e-06/0.338, allocations: 0 / 1.06 GB, free: 392 kB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.002775/0.3408, allocations: 498.6 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.3409, allocations: 59.41 kB / 1.061 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006019/0.3415, allocations: 445.8 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.3416, allocations: 41.69 kB / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.3417, allocations: 101.3 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.151e-05/0.3418, allocations: 43.47 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002522/0.3421, allocations: 137.3 kB / 1.062 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3422, allocations: 330.8 kB / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003036/0.3425, allocations: 135.9 kB / 1.062 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003889/0.3429, allocations: 197.9 kB / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005891/0.3435, allocations: 303.8 kB / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.3435, allocations: 0 / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009401/0.3445, allocations: 0.5203 MB / 1.063 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.892e-05/0.3446, allocations: 99.38 kB / 1.063 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.3446, allocations: 4 kB / 1.063 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.3446, allocations: 4 kB / 1.063 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.3448, allocations: 23.92 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.3448, allocations: 7.938 kB / 1.063 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000564/0.3454, allocations: 59.78 kB / 1.063 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.213e-05/0.3455, allocations: 71.92 kB / 1.063 GB, free: 13.22 MB / 0.8262 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.0002789/0.3458, allocations: 208.3 kB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.153e-05/0.3459, allocations: 35.53 kB / 1.063 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.728e-05/0.3459, allocations: 43.78 kB / 1.063 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.3459, allocations: 4 kB / 1.063 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.346, allocations: 0 / 1.063 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.346, allocations: 0 / 1.063 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002419/0.3484, allocations: 0.7986 MB / 1.064 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.3484, allocations: 0 / 1.064 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.855e-05/0.3484, allocations: 4 kB / 1.064 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3485, allocations: 0 / 1.064 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.143e-05/0.3485, allocations: 31.91 kB / 1.064 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.297e-05/0.3485, allocations: 4 kB / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3485, allocations: 0 / 1.064 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001933/0.3505, allocations: 486.1 kB / 1.065 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002902/0.3508, allocations: 244.5 kB / 1.065 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.903e-05/0.3509, allocations: 19.94 kB / 1.065 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005181/0.3514, allocations: 23.97 kB / 1.065 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.866e-05/0.3514, allocations: 11.98 kB / 1.065 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.748e-05/0.3515, allocations: 59.97 kB / 1.065 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000333/0.3518, allocations: 319.1 kB / 1.065 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3519, allocations: 0 / 1.065 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003825/0.3522, allocations: 71.98 kB / 1.065 GB, free: 10.79 MB / 0.8262 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.000195/0.3524, allocations: 123.7 kB / 1.066 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001417/0.3539, allocations: 474.7 kB / 1.066 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.3539, allocations: 8.062 kB / 1.066 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008203/0.3547, allocations: 123.8 kB / 1.066 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004148/0.3551, allocations: 31.09 kB / 1.066 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.3569, allocations: 0.7734 MB / 1.067 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003923/0.3573, allocations: 0.7944 MB / 1.068 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.97e-05/0.3574, allocations: 15.42 kB / 1.068 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of SimCode: time 6.32e-07/0.3574, allocations: 4 kB / 1.068 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of Templates: time 0.007132/0.3645, allocations: 4.087 MB / 1.072 GB, free: 4.223 MB / 0.8262 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