Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.CalendarTimeMonthsPlus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|calTim.year|calTim.month|calTim.day|calTim.weekDay|calTim.hour|calTim.minute",fileNamePrefix="Buildings_10_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_10_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.009761/0.009761, allocations: 100.6 kB / 15.73 MB, free: 6.012 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.001831/0.001831, allocations: 196 kB / 16.67 MB, free: 5.926 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.528/1.528, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.616/2.616, allocations: 437 MB / 0.7105 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001248, allocations: 67.89 kB / 1.019 GB, free: 9.375 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.043/1.044, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.002898/1.047, allocations: 1.748 MB / 1.168 GB, free: 2.09 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001423/1.049, allocations: 0.6168 MB / 1.169 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.743e-05/1.049, allocations: 0 / 1.169 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001181/1.049, allocations: 15.8 kB / 1.169 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001306/1.049, allocations: 43.56 kB / 1.169 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008471/1.05, allocations: 366.3 kB / 1.169 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000665/1.05, allocations: 0.6321 MB / 1.17 GB, free: 436 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/1.051, allocations: 33.09 kB / 1.17 GB, free: 400 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004301/1.051, allocations: 307.6 kB / 1.17 GB, free: 92 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003281/1.051, allocations: 165 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001039/1.051, allocations: 40 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 9.859e-05/1.052, allocations: 40 kB / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.000137/1.052, allocations: 123.7 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002085/1.052, allocations: 219 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005996/1.053, allocations: 0.5923 MB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/1.053, allocations: 0 / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.224e-06/1.053, allocations: 3.938 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.366e-06/1.053, allocations: 0 / 1.171 GB, free: 14.92 MB / 0.9044 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.001395/1.054, allocations: 0.9247 MB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/1.054, allocations: 12.88 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001296/1.054, allocations: 56.66 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004372/1.055, allocations: 334.6 kB / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.329e-05/1.055, allocations: 24.36 kB / 1.173 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.547e-05/1.055, allocations: 28.36 kB / 1.173 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001078/1.056, allocations: 244.1 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/1.056, allocations: 192 / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/1.056, allocations: 15.88 kB / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/1.056, allocations: 0 / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000798/1.057, allocations: 115.9 kB / 1.173 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/1.058, allocations: 0.672 MB / 1.174 GB, free: 12.33 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/1.059, allocations: 178.5 kB / 1.174 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000793/1.06, allocations: 116.8 kB / 1.174 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.636e-05/1.06, allocations: 11.97 kB / 1.174 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001009/1.061, allocations: 223.2 kB / 1.174 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=16): time 1.984e-06/1.061, allocations: 0 / 1.174 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16): time 0.002792/1.064, allocations: 0.4926 MB / 1.175 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/1.064, allocations: 59.41 kB / 1.175 GB, free: 11.22 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005146/1.064, allocations: 445.9 kB / 1.175 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.321e-05/1.064, allocations: 41.69 kB / 1.175 GB, free: 10.72 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/1.065, allocations: 101.4 kB / 1.175 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.088e-05/1.065, allocations: 43.62 kB / 1.175 GB, free: 10.58 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002268/1.065, allocations: 137.5 kB / 1.176 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001361/1.065, allocations: 326.8 kB / 1.176 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002943/1.065, allocations: 143.9 kB / 1.176 GB, free: 9.969 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003131/1.066, allocations: 197.9 kB / 1.176 GB, free: 9.754 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003894/1.066, allocations: 299.1 kB / 1.177 GB, free: 9.43 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/1.066, allocations: 0 / 1.177 GB, free: 9.43 MB / 0.9044 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008216/1.067, allocations: 0.5163 MB / 1.177 GB, free: 8.895 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 9.968e-05/1.067, allocations: 91.38 kB / 1.177 GB, free: 8.793 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/1.067, allocations: 12.19 kB / 1.177 GB, free: 8.781 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/1.067, allocations: 0 / 1.177 GB, free: 8.781 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001686/1.067, allocations: 31.91 kB / 1.177 GB, free: 8.75 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/1.067, allocations: 4 kB / 1.177 GB, free: 8.746 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000486/1.068, allocations: 59.84 kB / 1.177 GB, free: 8.688 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.484e-05/1.068, allocations: 55.98 kB / 1.177 GB, free: 8.633 MB / 0.9044 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.0002714/1.068, allocations: 232.2 kB / 1.177 GB, free: 8.398 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.926e-05/1.068, allocations: 35.77 kB / 1.178 GB, free: 8.363 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.883e-05/1.068, allocations: 39.8 kB / 1.178 GB, free: 8.328 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/1.068, allocations: 4 kB / 1.178 GB, free: 8.324 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/1.068, allocations: 0 / 1.178 GB, free: 8.324 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/1.068, allocations: 7.922 kB / 1.178 GB, free: 8.316 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/1.07, allocations: 0.7873 MB / 1.178 GB, free: 7.469 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/1.07, allocations: 0 / 1.178 GB, free: 7.469 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.846e-05/1.071, allocations: 7.984 kB / 1.178 GB, free: 7.461 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/1.071, allocations: 0 / 1.178 GB, free: 7.461 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.443e-05/1.071, allocations: 15.98 kB / 1.178 GB, free: 7.445 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/1.071, allocations: 3.938 kB / 1.178 GB, free: 7.441 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/1.071, allocations: 3.984 kB / 1.178 GB, free: 7.438 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/1.072, allocations: 487.5 kB / 1.179 GB, free: 6.945 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002836/1.073, allocations: 240.6 kB / 1.179 GB, free: 6.691 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.839e-05/1.073, allocations: 20 kB / 1.179 GB, free: 6.672 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004706/1.073, allocations: 39.89 kB / 1.179 GB, free: 6.633 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/1.073, allocations: 4 kB / 1.179 GB, free: 6.629 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.637e-05/1.073, allocations: 63.97 kB / 1.179 GB, free: 6.566 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0003069/1.074, allocations: 315.1 kB / 1.179 GB, free: 6.262 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.2e-07/1.074, allocations: 0 / 1.179 GB, free: 6.262 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003532/1.074, allocations: 71.94 kB / 1.18 GB, free: 6.191 MB / 0.9044 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.0002016/1.074, allocations: 135.2 kB / 1.18 GB, free: 6.047 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001405/1.076, allocations: 470.5 kB / 1.18 GB, free: 5.562 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/1.076, allocations: 0 / 1.18 GB, free: 5.562 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0007894/1.076, allocations: 129.6 kB / 1.18 GB, free: 5.438 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004348/1.077, allocations: 42.58 kB / 1.18 GB, free: 5.398 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/1.079, allocations: 0.5977 MB / 1.181 GB, free: 4.773 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/1.079, allocations: 0.7864 MB / 1.182 GB, free: 3.961 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.03e-05/1.079, allocations: 13.42 kB / 1.182 GB, free: 3.949 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.791e-05/1.079, allocations: 23.38 kB / 1.182 GB, free: 3.926 MB / 0.9044 GB Notification: Performance of SimCode: time 5.92e-07/1.079, allocations: 0 / 1.182 GB, free: 3.926 MB / 0.9044 GB Notification: Performance of Templates: time 0.01088/1.09, allocations: 5.423 MB / 1.187 GB, free: 14.41 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsPlus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches