Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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.CalendarTimeMonthsMinus,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.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_latest_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.01209/0.01209, allocations: 100.1 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.00251/0.00251, allocations: 187 kB / 16.67 MB, free: 5.949 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.609/1.609, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.956/2.956, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.89 kB / 1.054 GB, free: 7.078 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4303/0.4316, allocations: 157.4 MB / 1.208 GB, free: 9.562 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.003828/0.4355, allocations: 1.739 MB / 1.209 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001699/0.4372, allocations: 0.6238 MB / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.4374, allocations: 0 / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001497/0.4375, allocations: 15.75 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001475/0.4377, allocations: 35.78 kB / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001011/0.4388, allocations: 364.1 kB / 1.21 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0007238/0.4395, allocations: 0.6321 MB / 1.211 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.4396, allocations: 29.11 kB / 1.211 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000436/0.4401, allocations: 311.5 kB / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003089/0.4404, allocations: 169.7 kB / 1.212 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 8.122e-05/0.4405, allocations: 44 kB / 1.212 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.946e-05/0.4406, allocations: 40 kB / 1.212 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.4407, allocations: 127.6 kB / 1.212 GB, free: 5.445 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002146/0.4409, allocations: 219 kB / 1.212 GB, free: 5.23 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0006242/0.4416, allocations: 0.5958 MB / 1.213 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.216e-06/0.4416, allocations: 4 kB / 1.213 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.026e-06/0.4416, allocations: 0 / 1.213 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.714e-05/0.4416, allocations: 0 / 1.213 GB, free: 4.629 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.00152/0.4432, allocations: 0.9092 MB / 1.213 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.4432, allocations: 8.625 kB / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.4434, allocations: 52.47 kB / 1.214 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004942/0.4439, allocations: 334.2 kB / 1.214 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.374e-05/0.4439, allocations: 20.36 kB / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.977e-05/0.444, allocations: 32.36 kB / 1.214 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00097/0.445, allocations: 235.5 kB / 1.214 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.445, allocations: 4.188 kB / 1.214 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.079e-05/0.445, allocations: 3.938 kB / 1.214 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.4451, allocations: 4 kB / 1.214 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000742/0.4458, allocations: 115.9 kB / 1.214 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.4474, allocations: 0.6797 MB / 1.215 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.4485, allocations: 174.5 kB / 1.215 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007134/0.4492, allocations: 120.8 kB / 1.215 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.189e-05/0.4492, allocations: 8 kB / 1.215 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009282/0.4502, allocations: 224.9 kB / 1.215 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=16): time 2.545e-06/0.4502, allocations: 0 / 1.215 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16): time 0.002667/0.4529, allocations: 496.8 kB / 1.216 GB, free: 1.035 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.659e-05/0.4529, allocations: 67.39 kB / 1.216 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000606/0.4536, allocations: 445.8 kB / 1.216 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 8.315e-05/0.4537, allocations: 41.69 kB / 1.216 GB, free: 476 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.294e-05/0.4537, allocations: 101.4 kB / 1.217 GB, free: 372 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.338e-05/0.4538, allocations: 39.45 kB / 1.217 GB, free: 332 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/0.454, allocations: 133.3 kB / 1.217 GB, free: 192 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001619/0.4542, allocations: 330.8 kB / 1.217 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002761/0.4545, allocations: 135.9 kB / 1.217 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003107/0.4548, allocations: 199.2 kB / 1.217 GB, free: 15.51 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004203/0.4552, allocations: 295.7 kB / 1.218 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.4552, allocations: 0 / 1.218 GB, free: 15.19 MB / 0.9825 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009642/0.4562, allocations: 0.5203 MB / 1.218 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001352/0.4563, allocations: 91.38 kB / 1.218 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.4564, allocations: 7.984 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.918e-05/0.4564, allocations: 4.125 kB / 1.218 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.4566, allocations: 27.92 kB / 1.218 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.4566, allocations: 4 kB / 1.218 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000474/0.4571, allocations: 59.73 kB / 1.218 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.11e-05/0.4572, allocations: 59.98 kB / 1.218 GB, free: 14.39 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.0003625/0.4576, allocations: 224.3 kB / 1.219 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.466e-05/0.4576, allocations: 39.53 kB / 1.219 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002047/0.4579, allocations: 43.8 kB / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.4579, allocations: 7.984 kB / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.4579, allocations: 0 / 1.219 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.4579, allocations: 3.984 kB / 1.219 GB, free: 14.06 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.4602, allocations: 0.7897 MB / 1.219 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4602, allocations: 0 / 1.219 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.776e-05/0.4602, allocations: 8 kB / 1.219 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.4602, allocations: 0 / 1.219 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.185e-05/0.4603, allocations: 19.97 kB / 1.219 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.633e-06/0.4603, allocations: 3.938 kB / 1.219 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4603, allocations: 3.938 kB / 1.219 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001724/0.462, allocations: 479.3 kB / 1.22 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003542/0.4624, allocations: 244.4 kB / 1.22 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.512e-05/0.4625, allocations: 16 kB / 1.22 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004403/0.4629, allocations: 43.89 kB / 1.22 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.046e-05/0.463, allocations: 7.984 kB / 1.22 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.468e-05/0.463, allocations: 55.98 kB / 1.22 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003663/0.4634, allocations: 319.1 kB / 1.221 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4634, allocations: 0 / 1.221 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0004084/0.4638, allocations: 64 kB / 1.221 GB, free: 11.95 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.0002431/0.4641, allocations: 139.9 kB / 1.221 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001323/0.4654, allocations: 473.6 kB / 1.221 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4654, allocations: 0 / 1.221 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0007385/0.4662, allocations: 128.2 kB / 1.221 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004841/0.4667, allocations: 34.66 kB / 1.221 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/0.4684, allocations: 0.5946 MB / 1.222 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004185/0.4688, allocations: 0.7824 MB / 1.223 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.107e-05/0.4689, allocations: 17.42 kB / 1.223 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.577e-05/0.469, allocations: 19.42 kB / 1.223 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of SimCode: time 5.41e-07/0.469, allocations: 3.938 kB / 1.223 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of Templates: time 0.01085/0.4798, allocations: 5.548 MB / 1.228 GB, free: 4.055 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_CalendarTimeMonthsMinus.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches