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.001453/0.001453, allocations: 114.7 kB / 16.37 MB, free: 5.984 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.00158/0.00158, allocations: 192.6 kB / 17.31 MB, free: 5.602 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.358/1.358, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.459/2.459, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 64.19 kB / 0.8774 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3065, allocations: 153 MB / 1.027 GB, free: 2.043 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.002649/0.3092, allocations: 1.749 MB / 1.028 GB, free: 296 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.00121/0.3104, allocations: 0.6246 MB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.011e-05/0.3105, allocations: 0 / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.985e-05/0.3106, allocations: 11.86 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.3107, allocations: 39.78 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007333/0.3115, allocations: 363.1 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000565/0.312, allocations: 0.6321 MB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.985e-05/0.3122, allocations: 25.12 kB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003542/0.3125, allocations: 319.4 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002491/0.3128, allocations: 151.6 kB / 1.031 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.905e-05/0.3129, allocations: 44 kB / 1.031 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.178e-05/0.3129, allocations: 40 kB / 1.031 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.3131, allocations: 127.6 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001909/0.3133, allocations: 219 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005453/0.3138, allocations: 0.5919 MB / 1.032 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3138, allocations: 3.984 kB / 1.032 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3138, allocations: 0 / 1.032 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.632e-06/0.3138, allocations: 4 kB / 1.032 GB, free: 13.12 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.001254/0.3151, allocations: 0.9093 MB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.3151, allocations: 8.031 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.3153, allocations: 52.47 kB / 1.033 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004594/0.3157, allocations: 338.1 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.299e-05/0.3158, allocations: 16.38 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.777e-05/0.3159, allocations: 28.36 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009421/0.3168, allocations: 239.7 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.3168, allocations: 192 / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.894e-05/0.3169, allocations: 3.938 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.3169, allocations: 4 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007275/0.3176, allocations: 115.9 kB / 1.033 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.3191, allocations: 0.6836 MB / 1.034 GB, free: 10.55 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009822/0.3201, allocations: 186.4 kB / 1.034 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007784/0.3208, allocations: 116.8 kB / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.3209, allocations: 0 / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009007/0.3218, allocations: 235.1 kB / 1.034 GB, free: 10 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.703e-06/0.3218, allocations: 4 kB / 1.034 GB, free: 9.996 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.002484/0.3243, allocations: 492.9 kB / 1.035 GB, free: 9.508 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.874e-05/0.3244, allocations: 63.39 kB / 1.035 GB, free: 9.434 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005565/0.3249, allocations: 441.8 kB / 1.035 GB, free: 8.996 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 7.154e-05/0.325, allocations: 41.7 kB / 1.035 GB, free: 8.949 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.905e-05/0.3251, allocations: 101.3 kB / 1.035 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.595e-05/0.3252, allocations: 39.53 kB / 1.036 GB, free: 8.805 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/0.3254, allocations: 137.3 kB / 1.036 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.3255, allocations: 330.8 kB / 1.036 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002839/0.3258, allocations: 139.9 kB / 1.036 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003245/0.3262, allocations: 194.9 kB / 1.036 GB, free: 7.984 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003993/0.3266, allocations: 299.3 kB / 1.037 GB, free: 7.66 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.3266, allocations: 0 / 1.037 GB, free: 7.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009467/0.3275, allocations: 0.5201 MB / 1.037 GB, free: 7.121 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 8.482e-05/0.3276, allocations: 99.31 kB / 1.037 GB, free: 7.012 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.3276, allocations: 8.188 kB / 1.037 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.3277, allocations: 0 / 1.037 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.3278, allocations: 23.92 kB / 1.037 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.3279, allocations: 4 kB / 1.037 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004553/0.3283, allocations: 55.8 kB / 1.037 GB, free: 6.922 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.074e-05/0.3284, allocations: 63.97 kB / 1.037 GB, free: 6.859 MB / 0.8106 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.0002395/0.3287, allocations: 224.2 kB / 1.038 GB, free: 6.629 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.698e-05/0.3287, allocations: 39.53 kB / 1.038 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.472e-05/0.3288, allocations: 39.78 kB / 1.038 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3288, allocations: 3.984 kB / 1.038 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3288, allocations: 4 kB / 1.038 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3288, allocations: 0 / 1.038 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002137/0.331, allocations: 0.7944 MB / 1.038 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.331, allocations: 0 / 1.038 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.525e-05/0.331, allocations: 4 kB / 1.038 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.331, allocations: 0 / 1.038 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.175e-05/0.3311, allocations: 23.97 kB / 1.038 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.815e-06/0.3311, allocations: 3.938 kB / 1.038 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3311, allocations: 3.938 kB / 1.038 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/0.3328, allocations: 483.2 kB / 1.039 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003246/0.3331, allocations: 236.5 kB / 1.039 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.238e-05/0.3332, allocations: 23.98 kB / 1.039 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000454/0.3336, allocations: 35.91 kB / 1.039 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.3337, allocations: 11.98 kB / 1.039 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.025e-05/0.3338, allocations: 51.98 kB / 1.039 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003995/0.3342, allocations: 327 kB / 1.04 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3342, allocations: 0 / 1.04 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003715/0.3345, allocations: 67.98 kB / 1.04 GB, free: 4.41 MB / 0.8106 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.0002248/0.3348, allocations: 131.5 kB / 1.04 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001235/0.336, allocations: 474.4 kB / 1.04 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.336, allocations: 0 / 1.04 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0007166/0.3368, allocations: 120.3 kB / 1.04 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004/0.3372, allocations: 41.05 kB / 1.04 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.3387, allocations: 0.5984 MB / 1.041 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.3391, allocations: 0.7902 MB / 1.042 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.291e-05/0.3392, allocations: 13.38 kB / 1.042 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.447e-05/0.3392, allocations: 19.42 kB / 1.042 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.3392, allocations: 0 / 1.042 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of Templates: time 0.00983/0.3491, allocations: 5.415 MB / 1.047 GB, free: 12.67 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 -s gbode -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) Reference file matches