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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 120 kB / 17.08 MB, free: 5.789 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.001641/0.001641, allocations: 191.7 kB / 20.03 MB, free: 2.91 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.543/1.543, allocations: 222.9 MB / 245.7 MB, free: 4.203 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.967/2.967, allocations: 489.3 MB / 0.7687 GB, free: 3.762 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.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") translateModel(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus,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.CalendarTimeMonthsMinus") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 67.88 kB / 1.103 GB, free: 0.7305 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9688/0.9708, allocations: 163.8 MB / 1.263 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus): time 0.00272/0.9736, allocations: 1.752 MB / 1.264 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001278/0.9749, allocations: 0.6194 MB / 1.265 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.11e-05/0.975, allocations: 2 kB / 1.265 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 9.54e-05/0.9751, allocations: 14.67 kB / 1.265 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.9752, allocations: 27.97 kB / 1.265 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008177/0.976, allocations: 370.3 kB / 1.265 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0006763/0.9767, allocations: 0.6293 MB / 1.266 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.9768, allocations: 38.06 kB / 1.266 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004169/0.9773, allocations: 313.7 kB / 1.266 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003117/0.9776, allocations: 155.8 kB / 1.266 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.9777, allocations: 40.28 kB / 1.266 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.9778, allocations: 41.16 kB / 1.267 GB, free: 5.664 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001707/0.978, allocations: 124.4 kB / 1.267 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002107/0.9782, allocations: 220.5 kB / 1.267 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007169/0.979, allocations: 0.5941 MB / 1.267 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.979, allocations: 0 / 1.267 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.462e-06/0.979, allocations: 0.7188 kB / 1.267 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.235e-06/0.979, allocations: 0 / 1.267 GB, free: 5.273 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.001203/0.9802, allocations: 0.92 MB / 1.268 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.9802, allocations: 9.5 kB / 1.268 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000129/0.9804, allocations: 57.28 kB / 1.268 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003395/0.9807, allocations: 341 kB / 1.269 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.108e-05/0.9808, allocations: 19.45 kB / 1.269 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.155e-05/0.9809, allocations: 30.89 kB / 1.269 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.9819, allocations: 237.2 kB / 1.269 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.9819, allocations: 4.125 kB / 1.269 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.052e-05/0.982, allocations: 6.531 kB / 1.269 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.982, allocations: 1.812 kB / 1.269 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008164/0.9828, allocations: 112.3 kB / 1.269 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.984, allocations: 0.6817 MB / 1.27 GB, free: 3.629 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.9851, allocations: 181.4 kB / 1.27 GB, free: 3.57 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007785/0.9859, allocations: 117.1 kB / 1.27 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.9859, allocations: 6.188 kB / 1.27 GB, free: 3.535 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009833/0.9869, allocations: 231 kB / 1.27 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=16): time 2.114e-06/0.9869, allocations: 4 kB / 1.27 GB, free: 3.445 MB / 0.9981 GB Notification: Performance of matching and sorting (n=16): time 0.002679/0.9896, allocations: 0.4909 MB / 1.271 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.9896, allocations: 60.5 kB / 1.271 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004899/0.9901, allocations: 441 kB / 1.271 GB, free: 3.047 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.835e-05/0.9902, allocations: 45.45 kB / 1.271 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.099e-05/0.9903, allocations: 99.86 kB / 1.271 GB, free: 2.918 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.9903, allocations: 42.86 kB / 1.271 GB, free: 2.887 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000248/0.9906, allocations: 133.5 kB / 1.272 GB, free: 2.828 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.388e-05/0.9907, allocations: 323.9 kB / 1.272 GB, free: 2.508 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003033/0.991, allocations: 143.1 kB / 1.272 GB, free: 2.457 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003121/0.9913, allocations: 184.3 kB / 1.272 GB, free: 2.355 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003802/0.9917, allocations: 316.8 kB / 1.272 GB, free: 2.125 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.9917, allocations: 0.75 kB / 1.272 GB, free: 2.125 MB / 0.9981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008787/0.9926, allocations: 0.5114 MB / 1.273 GB, free: 1.895 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.855e-05/0.9927, allocations: 98.5 kB / 1.273 GB, free: 1.812 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.9927, allocations: 3.672 kB / 1.273 GB, free: 1.812 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.9927, allocations: 7.438 kB / 1.273 GB, free: 1.809 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.9929, allocations: 22.31 kB / 1.273 GB, free: 1.805 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.9929, allocations: 3.875 kB / 1.273 GB, free: 1.805 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005139/0.9934, allocations: 54.38 kB / 1.273 GB, free: 1.797 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.514e-05/0.9935, allocations: 62.75 kB / 1.273 GB, free: 1.793 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.00024/0.9938, allocations: 225.6 kB / 1.273 GB, free: 1.625 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.722e-05/0.9938, allocations: 39.69 kB / 1.273 GB, free: 1.605 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.648e-05/0.9939, allocations: 42.95 kB / 1.274 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.9939, allocations: 2.719 kB / 1.274 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.9939, allocations: 0 / 1.274 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.9939, allocations: 0 / 1.274 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002154/0.9961, allocations: 0.7939 MB / 1.274 GB, free: 1.148 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.9961, allocations: 0 / 1.274 GB, free: 1.148 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.582e-05/0.9961, allocations: 5.625 kB / 1.274 GB, free: 1.148 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.9961, allocations: 0 / 1.274 GB, free: 1.148 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.9962, allocations: 23.59 kB / 1.274 GB, free: 1.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.9962, allocations: 8.594 kB / 1.274 GB, free: 1.137 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.9962, allocations: 0.9062 kB / 1.274 GB, free: 1.137 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001764/0.998, allocations: 485.5 kB / 1.275 GB, free: 0.9297 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003027/0.9983, allocations: 249.8 kB / 1.275 GB, free: 0.7578 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.744e-05/0.9984, allocations: 16.03 kB / 1.275 GB, free: 0.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004989/0.9989, allocations: 37.17 kB / 1.275 GB, free: 0.7422 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.9989, allocations: 11.3 kB / 1.275 GB, free: 0.7383 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.68e-05/0.999, allocations: 57.19 kB / 1.275 GB, free: 0.7383 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003398/0.9993, allocations: 322.2 kB / 1.275 GB, free: 0.5859 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9994, allocations: 0 / 1.275 GB, free: 0.5859 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004526/0.9998, allocations: 68.09 kB / 1.276 GB, free: 0.582 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.0001709/1, allocations: 134.5 kB / 1.276 GB, free: 484 kB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001304/1.001, allocations: 472 kB / 1.276 GB, free: 248 kB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/1.001, allocations: 0 / 1.276 GB, free: 248 kB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007734/1.002, allocations: 131.1 kB / 1.276 GB, free: 220 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004116/1.003, allocations: 38.06 kB / 1.276 GB, free: 200 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/1.004, allocations: 0.6488 MB / 1.277 GB, free: 15.8 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004759/1.005, allocations: 0.7901 MB / 1.278 GB, free: 15.09 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.324e-05/1.005, allocations: 21.06 kB / 1.278 GB, free: 15.08 MB / 1.014 GB Notification: Performance of SimCode: time 3.2e-07/1.005, allocations: 0 / 1.278 GB, free: 15.08 MB / 1.014 GB Notification: Performance of Templates: time 0.007544/1.012, allocations: 4.081 MB / 1.282 GB, free: 14.51 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.pipe 2>&1) [Timeout 800] 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.CalendarTimeMonthsMinus.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.567873015999794]