Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001442/0.001442, allocations: 105.1 kB / 15.98 MB, free: 6.352 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.001483/0.001483, allocations: 195.6 kB / 16.91 MB, free: 6.184 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.344/1.344, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.545/2.545, allocations: 469.8 MB / 0.7427 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001812/0.001812, allocations: 71.88 kB / 0.9088 GB, free: 14.2 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.284, allocations: 159.1 MB / 1.064 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.002941/0.287, allocations: 1.793 MB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001239/0.2883, allocations: 0.6229 MB / 1.067 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.457e-05/0.2883, allocations: 0 / 1.067 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.2884, allocations: 11.92 kB / 1.067 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001117/0.2886, allocations: 27.84 kB / 1.067 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007486/0.2893, allocations: 338.2 kB / 1.067 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0006634/0.29, allocations: 0.6321 MB / 1.068 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.2901, allocations: 37.09 kB / 1.068 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004776/0.2906, allocations: 378.9 kB / 1.068 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002718/0.2909, allocations: 183.1 kB / 1.068 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.342e-05/0.291, allocations: 40 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 8.072e-05/0.2911, allocations: 47.94 kB / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001438/0.2912, allocations: 123.6 kB / 1.068 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000241/0.2915, allocations: 230.8 kB / 1.068 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000454/0.2919, allocations: 491.3 kB / 1.069 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2919, allocations: 0 / 1.069 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2919, allocations: 0 / 1.069 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.2919, allocations: 0 / 1.069 GB, free: 10.15 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.00132/0.2933, allocations: 0.9092 MB / 1.07 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.2933, allocations: 8.031 kB / 1.07 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001242/0.2934, allocations: 52.47 kB / 1.07 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004058/0.2938, allocations: 334.2 kB / 1.07 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.94e-05/0.2939, allocations: 24.56 kB / 1.07 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.181e-05/0.294, allocations: 28.36 kB / 1.07 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.2951, allocations: 236 kB / 1.071 GB, free: 8.438 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.2951, allocations: 3.938 kB / 1.071 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.441e-05/0.2951, allocations: 11.92 kB / 1.071 GB, free: 8.422 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.2951, allocations: 4 kB / 1.071 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007953/0.2959, allocations: 111.9 kB / 1.071 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.2972, allocations: 0.6758 MB / 1.071 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.2983, allocations: 182.5 kB / 1.071 GB, free: 7.395 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007608/0.2991, allocations: 112.8 kB / 1.072 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.2991, allocations: 11.98 kB / 1.072 GB, free: 7.27 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009574/0.3001, allocations: 232.6 kB / 1.072 GB, free: 7.031 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 4.057e-06/0.3001, allocations: 3.984 kB / 1.072 GB, free: 7.027 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.00258/0.3027, allocations: 0.4946 MB / 1.072 GB, free: 6.527 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.3027, allocations: 55.41 kB / 1.072 GB, free: 6.461 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004847/0.3032, allocations: 445.9 kB / 1.073 GB, free: 6.016 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.961e-05/0.3033, allocations: 41.69 kB / 1.073 GB, free: 5.969 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.861e-05/0.3034, allocations: 105.3 kB / 1.073 GB, free: 5.863 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.892e-05/0.3034, allocations: 39.48 kB / 1.073 GB, free: 5.824 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002208/0.3037, allocations: 141.3 kB / 1.073 GB, free: 5.68 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3038, allocations: 322.8 kB / 1.073 GB, free: 5.355 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003005/0.3041, allocations: 139.9 kB / 1.074 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003333/0.3045, allocations: 197.9 kB / 1.074 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004224/0.3049, allocations: 302.8 kB / 1.074 GB, free: 4.676 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3049, allocations: 0 / 1.074 GB, free: 4.676 MB / 0.8419 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009269/0.3058, allocations: 0.5162 MB / 1.075 GB, free: 4.141 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.704e-05/0.3059, allocations: 99.38 kB / 1.075 GB, free: 4.031 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.306, allocations: 3.984 kB / 1.075 GB, free: 4.027 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.306, allocations: 4 kB / 1.075 GB, free: 4.023 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.3062, allocations: 15.98 kB / 1.075 GB, free: 4.008 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.3062, allocations: 8.125 kB / 1.075 GB, free: 4 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005034/0.3067, allocations: 63.8 kB / 1.075 GB, free: 3.938 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.376e-05/0.3068, allocations: 67.91 kB / 1.075 GB, free: 3.871 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.0002593/0.3071, allocations: 213.7 kB / 1.075 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.04e-05/0.3071, allocations: 35.53 kB / 1.075 GB, free: 3.621 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.039e-05/0.3072, allocations: 47.78 kB / 1.075 GB, free: 3.574 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.3072, allocations: 0 / 1.075 GB, free: 3.574 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3072, allocations: 0 / 1.075 GB, free: 3.574 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3072, allocations: 3.938 kB / 1.075 GB, free: 3.57 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.3094, allocations: 0.791 MB / 1.076 GB, free: 2.723 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.3095, allocations: 4 kB / 1.076 GB, free: 2.719 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.316e-05/0.3095, allocations: 3.938 kB / 1.076 GB, free: 2.715 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3095, allocations: 4 kB / 1.076 GB, free: 2.711 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.292e-05/0.3095, allocations: 27.91 kB / 1.076 GB, free: 2.684 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3096, allocations: 0 / 1.076 GB, free: 2.684 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3096, allocations: 0 / 1.076 GB, free: 2.684 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.3113, allocations: 482.2 kB / 1.076 GB, free: 2.199 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000296/0.3116, allocations: 240.5 kB / 1.077 GB, free: 1.945 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.093e-05/0.3117, allocations: 23.92 kB / 1.077 GB, free: 1.922 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004843/0.3122, allocations: 31.97 kB / 1.077 GB, free: 1.891 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.608e-05/0.3122, allocations: 15.97 kB / 1.077 GB, free: 1.875 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.791e-05/0.3123, allocations: 51.98 kB / 1.077 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003311/0.3127, allocations: 327 kB / 1.077 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3127, allocations: 0 / 1.077 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003543/0.313, allocations: 67.98 kB / 1.077 GB, free: 1.441 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.0001848/0.3132, allocations: 131.9 kB / 1.077 GB, free: 1.301 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001397/0.3146, allocations: 486.7 kB / 1.078 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3146, allocations: 0 / 1.078 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007762/0.3154, allocations: 124.2 kB / 1.078 GB, free: 0.6797 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003835/0.3158, allocations: 49.97 kB / 1.078 GB, free: 0.6367 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4055/0.7214, allocations: 0.7575 MB / 1.079 GB, free: 23.2 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.7217, allocations: 0.7833 MB / 1.079 GB, free: 22.5 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.21e-05/0.7217, allocations: 17.06 kB / 1.079 GB, free: 22.49 MB / 0.8419 GB Notification: Performance of SimCode: time 9.02e-07/0.7218, allocations: 2.672 kB / 1.079 GB, free: 22.49 MB / 0.8419 GB Notification: Performance of Templates: time 0.007828/0.7296, allocations: 4.092 MB / 1.083 GB, free: 22.03 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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