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.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.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.01013/0.01013, allocations: 101.5 kB / 15.73 MB, free: 6.492 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.001672/0.001673, allocations: 195.7 kB / 16.68 MB, free: 6.375 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.019/3.019, allocations: 461.8 MB / 0.7347 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.91 kB / 1.054 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4457/0.447, allocations: 157.4 MB / 1.208 GB, free: 9.586 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.003154/0.4502, allocations: 1.738 MB / 1.209 GB, free: 7.832 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.4517, allocations: 0.6288 MB / 1.21 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.127e-05/0.4518, allocations: 4 kB / 1.21 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001131/0.4519, allocations: 7.875 kB / 1.21 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001382/0.4521, allocations: 31.8 kB / 1.21 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009002/0.453, allocations: 372.4 kB / 1.21 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0006521/0.4537, allocations: 0.6243 MB / 1.211 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.4538, allocations: 41.08 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003925/0.4542, allocations: 303.6 kB / 1.211 GB, free: 5.84 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002844/0.4545, allocations: 169.4 kB / 1.212 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 8.154e-05/0.4546, allocations: 40 kB / 1.212 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.489e-05/0.4547, allocations: 40 kB / 1.212 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.4548, allocations: 127.6 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002314/0.4551, allocations: 227 kB / 1.212 GB, free: 5.25 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000582/0.4556, allocations: 0.5919 MB / 1.213 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.4557, allocations: 0 / 1.213 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.094e-06/0.4557, allocations: 4 kB / 1.213 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.4557, allocations: 0 / 1.213 GB, free: 4.652 MB / 0.9669 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.001429/0.4571, allocations: 0.9092 MB / 1.213 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.4572, allocations: 8.625 kB / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.4573, allocations: 52.47 kB / 1.214 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004843/0.4578, allocations: 334.1 kB / 1.214 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.373e-05/0.4579, allocations: 24.36 kB / 1.214 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.864e-05/0.458, allocations: 28.36 kB / 1.214 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/0.459, allocations: 235.4 kB / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.4591, allocations: 192 / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.603e-05/0.4591, allocations: 11.94 kB / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.4591, allocations: 0 / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007996/0.4599, allocations: 115.9 kB / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.4612, allocations: 0.6758 MB / 1.215 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.4623, allocations: 182.5 kB / 1.215 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007832/0.4631, allocations: 116.8 kB / 1.215 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.4631, allocations: 4 kB / 1.215 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.4642, allocations: 232.7 kB / 1.215 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 1.924e-06/0.4642, allocations: 0 / 1.215 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16): time 0.002618/0.4668, allocations: 494.5 kB / 1.216 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.4669, allocations: 59.41 kB / 1.216 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004659/0.4673, allocations: 445.8 kB / 1.216 GB, free: 0.543 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 6.14e-05/0.4674, allocations: 41.69 kB / 1.216 GB, free: 0.4961 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.437e-05/0.4675, allocations: 101.4 kB / 1.217 GB, free: 404 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.453e-05/0.4675, allocations: 51.38 kB / 1.217 GB, free: 352 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/0.4678, allocations: 137.3 kB / 1.217 GB, free: 208 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.4679, allocations: 326.8 kB / 1.217 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002847/0.4682, allocations: 139.9 kB / 1.217 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003189/0.4685, allocations: 195.2 kB / 1.217 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004094/0.469, allocations: 291.5 kB / 1.218 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.469, allocations: 0 / 1.218 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008462/0.4698, allocations: 0.5243 MB / 1.218 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.4699, allocations: 91.38 kB / 1.218 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.4699, allocations: 4 kB / 1.218 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.47, allocations: 0 / 1.218 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.4701, allocations: 31.91 kB / 1.218 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.4702, allocations: 4 kB / 1.218 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004701/0.4706, allocations: 59.73 kB / 1.218 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.898e-05/0.4707, allocations: 64.05 kB / 1.218 GB, free: 14.41 MB / 0.9825 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.0002692/0.471, allocations: 228.2 kB / 1.219 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.672e-05/0.4711, allocations: 35.53 kB / 1.219 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.093e-05/0.4711, allocations: 39.8 kB / 1.219 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.4712, allocations: 4 kB / 1.219 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.4712, allocations: 0 / 1.219 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.4712, allocations: 3.984 kB / 1.219 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002315/0.4735, allocations: 0.7872 MB / 1.219 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.4735, allocations: 0 / 1.219 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.733e-05/0.4736, allocations: 7.984 kB / 1.219 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.4736, allocations: 0 / 1.219 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.585e-05/0.4736, allocations: 19.97 kB / 1.219 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.4736, allocations: 7.938 kB / 1.219 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.4736, allocations: 4 kB / 1.219 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.4754, allocations: 477.7 kB / 1.22 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002827/0.4757, allocations: 248.4 kB / 1.22 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.204e-05/0.4758, allocations: 12 kB / 1.22 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004887/0.4763, allocations: 39.89 kB / 1.22 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.25e-05/0.4763, allocations: 4 kB / 1.22 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.752e-05/0.4764, allocations: 59.97 kB / 1.22 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003374/0.4768, allocations: 323 kB / 1.221 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.523e-06/0.4768, allocations: 0 / 1.221 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000377/0.4772, allocations: 79.94 kB / 1.221 GB, free: 11.96 MB / 0.9825 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.0002196/0.4774, allocations: 124 kB / 1.221 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001362/0.4788, allocations: 478.4 kB / 1.221 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4788, allocations: 384 / 1.221 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0008041/0.4796, allocations: 119.9 kB / 1.221 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.48, allocations: 48.2 kB / 1.221 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.4817, allocations: 0.5945 MB / 1.222 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/0.4821, allocations: 0.7902 MB / 1.223 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.947e-05/0.4822, allocations: 13.42 kB / 1.223 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.48e-05/0.4822, allocations: 19.42 kB / 1.223 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of SimCode: time 2.01e-07/0.4822, allocations: 0 / 1.223 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of Templates: time 0.009749/0.492, allocations: 5.424 MB / 1.228 GB, free: 4.191 MB / 0.9825 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 -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/jenkins/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