Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.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.CalendarTimeMonths,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.CalendarTimeMonths") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths,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.CalendarTimeMonths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001224/0.001224, allocations: 194.9 kB / 16.14 MB, free: 6.645 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.387/1.387, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.777/2.777, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 63.28 kB / 0.8984 GB, free: 37.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3334, allocations: 157.4 MB / 1.052 GB, free: 8.832 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths): time 0.00313/0.3365, allocations: 1.792 MB / 1.054 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001485/0.3381, allocations: 0.6909 MB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.462e-05/0.3381, allocations: 0 / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.3383, allocations: 19.86 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.3384, allocations: 27.91 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007074/0.3391, allocations: 332.2 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004788/0.3396, allocations: 0.5383 MB / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.3397, allocations: 25.11 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004901/0.3402, allocations: 322.9 kB / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002968/0.3405, allocations: 179.1 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.058e-05/0.3406, allocations: 16 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.819e-05/0.3407, allocations: 12 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.3409, allocations: 119.7 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.3411, allocations: 198.8 kB / 1.056 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005472/0.3417, allocations: 0.5881 MB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3417, allocations: 0 / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3417, allocations: 0 / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.037e-06/0.3417, allocations: 0 / 1.057 GB, free: 3.984 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.001364/0.3431, allocations: 0.9093 MB / 1.058 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.3431, allocations: 8.031 kB / 1.058 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.3433, allocations: 52.47 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003927/0.3437, allocations: 338.1 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.947e-05/0.3437, allocations: 24.55 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.233e-05/0.3438, allocations: 24.38 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.3449, allocations: 238.8 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.3449, allocations: 3.938 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.345, allocations: 7.984 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.345, allocations: 4 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008322/0.3458, allocations: 113.4 kB / 1.059 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.3471, allocations: 0.6875 MB / 1.059 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.3483, allocations: 182.4 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008118/0.3491, allocations: 112.8 kB / 1.059 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.3491, allocations: 7.984 kB / 1.059 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001065/0.3502, allocations: 223.2 kB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 2.324e-06/0.3502, allocations: 0 / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.00272/0.3529, allocations: 0.493 MB / 1.06 GB, free: 380 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/0.353, allocations: 55.41 kB / 1.06 GB, free: 312 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004684/0.3535, allocations: 445.8 kB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.229e-05/0.3536, allocations: 41.69 kB / 1.061 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.036e-05/0.3537, allocations: 113.3 kB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.179e-05/0.3537, allocations: 35.55 kB / 1.061 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/0.3539, allocations: 141.3 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.3541, allocations: 322.8 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002967/0.3544, allocations: 143.9 kB / 1.061 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.3547, allocations: 188 kB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003944/0.3551, allocations: 306.3 kB / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3551, allocations: 0 / 1.062 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009078/0.356, allocations: 0.5219 MB / 1.062 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.754e-05/0.3561, allocations: 100.3 kB / 1.062 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.3561, allocations: 0 / 1.062 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.3562, allocations: 4 kB / 1.062 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.3563, allocations: 19.92 kB / 1.063 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.3564, allocations: 4 kB / 1.063 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005326/0.3569, allocations: 67.86 kB / 1.063 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.439e-05/0.357, allocations: 67.91 kB / 1.063 GB, free: 13.71 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.0002576/0.3573, allocations: 216.3 kB / 1.063 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.135e-05/0.3573, allocations: 35.53 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.224e-05/0.3574, allocations: 47.78 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.3574, allocations: 0 / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3574, allocations: 0 / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3574, allocations: 0 / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002271/0.3597, allocations: 0.79 MB / 1.064 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.335e-06/0.3597, allocations: 8 kB / 1.064 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.943e-05/0.3598, allocations: 4 kB / 1.064 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.3598, allocations: 4 kB / 1.064 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.01e-05/0.3598, allocations: 27.91 kB / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3598, allocations: 0 / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3598, allocations: 0 / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.3616, allocations: 482.7 kB / 1.064 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003251/0.3619, allocations: 240.5 kB / 1.064 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.309e-05/0.362, allocations: 27.86 kB / 1.064 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004775/0.3625, allocations: 31.97 kB / 1.064 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.614e-05/0.3626, allocations: 7.984 kB / 1.064 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.43e-05/0.3626, allocations: 55.97 kB / 1.065 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003152/0.363, allocations: 319.1 kB / 1.065 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.81e-07/0.363, allocations: 4 kB / 1.065 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000428/0.3634, allocations: 67.98 kB / 1.065 GB, free: 11.28 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.000229/0.3636, allocations: 131.5 kB / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001377/0.365, allocations: 482.7 kB / 1.066 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.365, allocations: 0 / 1.066 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008126/0.3659, allocations: 126.2 kB / 1.066 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000465/0.3663, allocations: 35.59 kB / 1.066 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/0.3681, allocations: 0.725 MB / 1.066 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004996/0.3686, allocations: 0.7943 MB / 1.067 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.552e-05/0.3687, allocations: 9.438 kB / 1.067 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.53e-05/0.3688, allocations: 19.42 kB / 1.067 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of SimCode: time 7.81e-07/0.3688, allocations: 0 / 1.067 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of Templates: time 0.01098/0.3798, allocations: 5.437 MB / 1.072 GB, free: 3.348 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonths.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches