Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.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.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005722/0.005722, allocations: 100.4 kB / 15.87 MB, free: 5.867 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.001241/0.001241, allocations: 192.2 kB / 16.79 MB, free: 5.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.388/1.388, allocations: 222.9 MB / 240.5 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.737/2.737, allocations: 461.8 MB / 0.7348 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 64.17 kB / 0.8991 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3244, allocations: 157.4 MB / 1.053 GB, free: 8.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.004052/0.3285, allocations: 1.785 MB / 1.055 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001593/0.3301, allocations: 0.7001 MB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.3303, allocations: 0 / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.3304, allocations: 7.922 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.3306, allocations: 31.84 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009402/0.3316, allocations: 334.3 kB / 1.056 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005755/0.3322, allocations: 0.5305 MB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.3323, allocations: 41.08 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005408/0.3328, allocations: 314.9 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.3332, allocations: 175.1 kB / 1.057 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001219/0.3333, allocations: 16 kB / 1.057 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.813e-05/0.3334, allocations: 16 kB / 1.057 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.3336, allocations: 115.6 kB / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002631/0.3339, allocations: 198.8 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004578/0.3343, allocations: 491.2 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3344, allocations: 4 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.445e-06/0.3344, allocations: 0 / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.67e-05/0.3344, allocations: 3.938 kB / 1.057 GB, free: 3.559 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.001565/0.336, allocations: 0.9069 MB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.336, allocations: 11.97 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001617/0.3362, allocations: 52.47 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004337/0.3366, allocations: 330.2 kB / 1.059 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.458e-05/0.3367, allocations: 28.55 kB / 1.059 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.986e-05/0.3368, allocations: 28.36 kB / 1.059 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.3379, allocations: 237.9 kB / 1.059 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3379, allocations: 3.938 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.338, allocations: 0 / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.338, allocations: 4 kB / 1.059 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008572/0.3388, allocations: 119.9 kB / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.3403, allocations: 0.6719 MB / 1.06 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.3414, allocations: 194.4 kB / 1.06 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008403/0.3423, allocations: 112.8 kB / 1.06 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.3423, allocations: 4 kB / 1.06 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001068/0.3434, allocations: 228.9 kB / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 2.615e-06/0.3434, allocations: 0 / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.002816/0.3462, allocations: 498.3 kB / 1.061 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.3463, allocations: 63.39 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005524/0.3469, allocations: 445.8 kB / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001308/0.347, allocations: 41.7 kB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.3471, allocations: 105.3 kB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.135e-05/0.3472, allocations: 39.55 kB / 1.061 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002617/0.3475, allocations: 145.2 kB / 1.062 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.3476, allocations: 322.8 kB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003124/0.3479, allocations: 143.9 kB / 1.062 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003358/0.3483, allocations: 193.9 kB / 1.062 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004214/0.3487, allocations: 299 kB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3487, allocations: 4 kB / 1.062 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009184/0.3496, allocations: 0.5177 MB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.932e-05/0.3497, allocations: 99.38 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.3498, allocations: 0 / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/0.3498, allocations: 4 kB / 1.063 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002025/0.35, allocations: 23.91 kB / 1.063 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.35, allocations: 4 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005512/0.3506, allocations: 63.98 kB / 1.063 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.073e-05/0.3507, allocations: 67.86 kB / 1.063 GB, free: 13.29 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.0003142/0.351, allocations: 214.3 kB / 1.063 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.529e-05/0.3511, allocations: 43.53 kB / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.346e-05/0.3512, allocations: 35.8 kB / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.3512, allocations: 4 kB / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.3512, allocations: 0 / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3512, allocations: 3.984 kB / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002358/0.3536, allocations: 0.7948 MB / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.3536, allocations: 3.984 kB / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.174e-05/0.3536, allocations: 7.984 kB / 1.064 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3536, allocations: 0 / 1.064 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.434e-05/0.3537, allocations: 23.92 kB / 1.064 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.3537, allocations: 0 / 1.064 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.3537, allocations: 3.984 kB / 1.064 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/0.3556, allocations: 481.4 kB / 1.065 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003218/0.3559, allocations: 244.5 kB / 1.065 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.976e-05/0.356, allocations: 19.94 kB / 1.065 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000488/0.3565, allocations: 31.95 kB / 1.065 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.191e-05/0.3566, allocations: 12 kB / 1.065 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.741e-05/0.3566, allocations: 55.97 kB / 1.065 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003489/0.357, allocations: 319.1 kB / 1.065 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.357, allocations: 0 / 1.065 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004316/0.3574, allocations: 67.98 kB / 1.065 GB, free: 10.86 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.0002189/0.3577, allocations: 131.6 kB / 1.066 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.00147/0.3591, allocations: 478.5 kB / 1.066 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3591, allocations: 3.938 kB / 1.066 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008034/0.36, allocations: 119.9 kB / 1.066 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004334/0.3604, allocations: 42.72 kB / 1.066 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.3622, allocations: 0.7677 MB / 1.067 GB, free: 9.262 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.3626, allocations: 0.7865 MB / 1.068 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.653e-05/0.3626, allocations: 19.42 kB / 1.068 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of SimCode: time 7.91e-07/0.3626, allocations: 0 / 1.068 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of Templates: time 0.007689/0.3703, allocations: 4.085 MB / 1.072 GB, free: 4.289 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.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