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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 112.8 kB / 17.08 MB, free: 5.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 194.2 kB / 20.03 MB, free: 3.059 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 222.9 MB / 245.7 MB, free: 4.227 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.998/2.998, allocations: 489.3 MB / 0.7687 GB, free: 3.961 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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=2500,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=2500,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") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002152/0.002152, allocations: 75.88 kB / 1.103 GB, free: 0.7266 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.087/1.089, allocations: 163.8 MB / 1.263 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus): time 0.002543/1.092, allocations: 1.735 MB / 1.264 GB, free: 6.812 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001203/1.093, allocations: 0.6222 MB / 1.265 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.475e-05/1.093, allocations: 3.125 kB / 1.265 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 9.017e-05/1.093, allocations: 10.42 kB / 1.265 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001144/1.093, allocations: 35.84 kB / 1.265 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007958/1.094, allocations: 370.3 kB / 1.265 GB, free: 6.16 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0006593/1.095, allocations: 0.6367 MB / 1.266 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/1.095, allocations: 30.89 kB / 1.266 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004195/1.095, allocations: 318 kB / 1.266 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003034/1.096, allocations: 150.2 kB / 1.266 GB, free: 5.688 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.000125/1.096, allocations: 41.56 kB / 1.266 GB, free: 5.688 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/1.096, allocations: 40.38 kB / 1.267 GB, free: 5.688 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001505/1.096, allocations: 124.6 kB / 1.267 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002152/1.096, allocations: 220.9 kB / 1.267 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006452/1.097, allocations: 0.5975 MB / 1.267 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/1.097, allocations: 0.7188 kB / 1.267 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.713e-06/1.097, allocations: 0 / 1.267 GB, free: 5.293 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.368e-05/1.097, allocations: 0.7812 kB / 1.267 GB, free: 5.293 MB / 0.9981 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.001184/1.098, allocations: 0.9123 MB / 1.268 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/1.098, allocations: 13.22 kB / 1.268 GB, free: 4.516 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/1.098, allocations: 57.53 kB / 1.268 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/1.099, allocations: 348.5 kB / 1.269 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.899e-05/1.099, allocations: 19.22 kB / 1.269 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.068e-05/1.099, allocations: 35.5 kB / 1.269 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/1.1, allocations: 233.6 kB / 1.269 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/1.1, allocations: 1 kB / 1.269 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.104e-05/1.1, allocations: 6.891 kB / 1.269 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/1.1, allocations: 2.219 kB / 1.269 GB, free: 4.105 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000807/1.101, allocations: 119.9 kB / 1.269 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/1.102, allocations: 0.6776 MB / 1.27 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/1.103, allocations: 185 kB / 1.27 GB, free: 3.582 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007579/1.104, allocations: 114.9 kB / 1.27 GB, free: 3.555 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/1.104, allocations: 2.688 kB / 1.27 GB, free: 3.555 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009553/1.105, allocations: 231.1 kB / 1.27 GB, free: 3.469 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=16): time 1.863e-06/1.105, allocations: 0 / 1.27 GB, free: 3.469 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16): time 0.002676/1.108, allocations: 0.4943 MB / 1.271 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/1.108, allocations: 56.56 kB / 1.271 GB, free: 3.281 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004778/1.108, allocations: 440.6 kB / 1.271 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.065e-05/1.108, allocations: 48.75 kB / 1.271 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.028e-05/1.108, allocations: 103.8 kB / 1.271 GB, free: 2.938 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.553e-05/1.108, allocations: 40.23 kB / 1.271 GB, free: 2.906 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/1.108, allocations: 133.9 kB / 1.272 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.817e-05/1.109, allocations: 324.5 kB / 1.272 GB, free: 2.527 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002953/1.109, allocations: 142.3 kB / 1.272 GB, free: 2.48 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002982/1.109, allocations: 193.4 kB / 1.272 GB, free: 2.371 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003716/1.11, allocations: 308.8 kB / 1.272 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/1.11, allocations: 4 kB / 1.272 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008595/1.11, allocations: 0.5088 MB / 1.273 GB, free: 1.914 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.065e-05/1.11, allocations: 97.08 kB / 1.273 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.393e-06/1.111, allocations: 3.328 kB / 1.273 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/1.111, allocations: 3.062 kB / 1.273 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001611/1.111, allocations: 23.03 kB / 1.273 GB, free: 1.828 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/1.111, allocations: 7.578 kB / 1.273 GB, free: 1.824 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005121/1.111, allocations: 58.28 kB / 1.273 GB, free: 1.812 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.256e-05/1.111, allocations: 61.73 kB / 1.273 GB, free: 1.809 MB / 0.9981 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.0002424/1.112, allocations: 222 kB / 1.273 GB, free: 1.645 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.188e-05/1.112, allocations: 41.28 kB / 1.273 GB, free: 1.625 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.477e-05/1.112, allocations: 39.84 kB / 1.274 GB, free: 1.605 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/1.112, allocations: 5.781 kB / 1.274 GB, free: 1.602 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/1.112, allocations: 0.5625 kB / 1.274 GB, free: 1.602 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/1.112, allocations: 3.359 kB / 1.274 GB, free: 1.602 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002122/1.114, allocations: 0.7919 MB / 1.274 GB, free: 1.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/1.114, allocations: 8.625 kB / 1.274 GB, free: 1.156 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.711e-05/1.114, allocations: 4.875 kB / 1.274 GB, free: 1.156 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/1.114, allocations: 5.359 kB / 1.274 GB, free: 1.152 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.895e-05/1.114, allocations: 22.14 kB / 1.274 GB, free: 1.148 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/1.114, allocations: 7.812 kB / 1.274 GB, free: 1.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/1.114, allocations: 0.6875 kB / 1.274 GB, free: 1.145 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/1.116, allocations: 483.3 kB / 1.275 GB, free: 0.9375 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002762/1.116, allocations: 250.3 kB / 1.275 GB, free: 0.7656 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.87e-05/1.116, allocations: 16.25 kB / 1.275 GB, free: 0.7578 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005026/1.117, allocations: 32.92 kB / 1.275 GB, free: 0.7539 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/1.117, allocations: 15.56 kB / 1.275 GB, free: 0.7461 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.18e-05/1.117, allocations: 56.61 kB / 1.275 GB, free: 0.7461 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003327/1.117, allocations: 319.4 kB / 1.275 GB, free: 0.5977 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/1.117, allocations: 0 / 1.275 GB, free: 0.5977 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004476/1.118, allocations: 67.44 kB / 1.276 GB, free: 0.5938 MB / 0.9981 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.0001617/1.118, allocations: 126.2 kB / 1.276 GB, free: 0.4922 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001354/1.119, allocations: 476.3 kB / 1.276 GB, free: 264 kB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.119, allocations: 0 / 1.276 GB, free: 264 kB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007904/1.12, allocations: 125.8 kB / 1.276 GB, free: 240 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004415/1.12, allocations: 38.05 kB / 1.276 GB, free: 224 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/1.122, allocations: 0.6558 MB / 1.277 GB, free: 15.82 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004478/1.122, allocations: 0.7853 MB / 1.278 GB, free: 15.11 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.407e-05/1.123, allocations: 17.31 kB / 1.278 GB, free: 15.11 MB / 1.014 GB Notification: Performance of SimCode: time 4.51e-07/1.123, allocations: 0 / 1.278 GB, free: 15.11 MB / 1.014 GB Notification: Performance of Templates: time 0.007106/1.13, allocations: 4.094 MB / 1.282 GB, free: 14.53 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.pipe 2>&1) [Timeout 800] 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_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsPlus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,calTim.year,calTim.month,calTim.day,calTim.weekDay,calTim.hour,calTim.minute Variables in the result:calTim.day,calTim.hour,calTim.minute,calTim.month,calTim.weekDay,calTim.year,time [Calling sys.exit(0), Time elapsed: 11.787754696793854]