Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 221.1 kB / 23 MB, free: 4.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.536/1.536, allocations: 230.6 MB / 256.8 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.314/3.314, allocations: 0.5107 GB / 0.8166 GB, free: 17.78 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003343/0.003343, allocations: 71.3 kB / 1.187 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.3813, allocations: 181.9 MB / 1.365 GB, free: 13.6 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002791/0.3841, allocations: 1.518 MB / 1.366 GB, free: 12.07 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001307/0.3854, allocations: 0.5228 MB / 1.367 GB, free: 11.54 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.43e-05/0.3854, allocations: 4 kB / 1.367 GB, free: 11.54 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 9.175e-05/0.3855, allocations: 11.88 kB / 1.367 GB, free: 11.53 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.3856, allocations: 31.62 kB / 1.367 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007954/0.3864, allocations: 309.8 kB / 1.367 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005388/0.387, allocations: 487.4 kB / 1.367 GB, free: 10.72 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.088e-05/0.387, allocations: 7.984 kB / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000412/0.3874, allocations: 279.6 kB / 1.368 GB, free: 10.44 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002968/0.3877, allocations: 135.6 kB / 1.368 GB, free: 10.3 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 8.49e-05/0.3878, allocations: 24 kB / 1.368 GB, free: 10.28 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.196e-05/0.3879, allocations: 28 kB / 1.368 GB, free: 10.25 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001392/0.388, allocations: 119.7 kB / 1.368 GB, free: 10.14 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.3882, allocations: 155.3 kB / 1.368 GB, free: 9.984 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004738/0.3887, allocations: 430.4 kB / 1.369 GB, free: 9.562 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.3887, allocations: 0 / 1.369 GB, free: 9.562 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.002e-06/0.3887, allocations: 0 / 1.369 GB, free: 9.562 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.3887, allocations: 0 / 1.369 GB, free: 9.562 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.00125/0.39, allocations: 0.795 MB / 1.369 GB, free: 8.695 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.39, allocations: 12.03 kB / 1.369 GB, free: 8.684 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001198/0.3901, allocations: 52.69 kB / 1.369 GB, free: 8.633 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004457/0.3906, allocations: 260.6 kB / 1.37 GB, free: 8.355 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.941e-05/0.3906, allocations: 20.36 kB / 1.37 GB, free: 8.336 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-05/0.3907, allocations: 28.36 kB / 1.37 GB, free: 8.309 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000929/0.3916, allocations: 206 kB / 1.37 GB, free: 8.102 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.3916, allocations: 192 / 1.37 GB, free: 8.102 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.501e-05/0.3917, allocations: 15.92 kB / 1.37 GB, free: 8.086 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.3917, allocations: 0 / 1.37 GB, free: 8.086 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007504/0.3924, allocations: 103.9 kB / 1.37 GB, free: 7.984 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003906/0.3928, allocations: 273.1 kB / 1.37 GB, free: 7.688 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009982/0.3938, allocations: 170.4 kB / 1.37 GB, free: 7.512 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007055/0.3945, allocations: 101.2 kB / 1.37 GB, free: 7.41 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.3945, allocations: 0 / 1.37 GB, free: 7.41 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009368/0.3955, allocations: 231.2 kB / 1.371 GB, free: 7.172 MB / 1.061 GB Notification: Performance of pre-optimization done (n=16): time 1.513e-06/0.3955, allocations: 0 / 1.371 GB, free: 7.172 MB / 1.061 GB Notification: Performance of matching and sorting (n=16): time 0.002467/0.3979, allocations: 495.7 kB / 1.371 GB, free: 6.684 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/0.398, allocations: 63.39 kB / 1.371 GB, free: 6.609 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004655/0.3985, allocations: 409.9 kB / 1.372 GB, free: 6.195 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.152e-05/0.3985, allocations: 45.69 kB / 1.372 GB, free: 6.145 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.48e-05/0.3986, allocations: 93.44 kB / 1.372 GB, free: 6.051 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.202e-05/0.3987, allocations: 43.62 kB / 1.372 GB, free: 6.008 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001966/0.3989, allocations: 129.5 kB / 1.372 GB, free: 5.875 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001629/0.399, allocations: 318.8 kB / 1.372 GB, free: 5.555 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003307/0.3994, allocations: 191.3 kB / 1.372 GB, free: 5.355 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003674/0.3997, allocations: 250.4 kB / 1.373 GB, free: 5.078 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000399/0.4001, allocations: 278.6 kB / 1.373 GB, free: 4.773 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.4001, allocations: 0 / 1.373 GB, free: 4.773 MB / 1.061 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009337/0.4011, allocations: 0.5488 MB / 1.373 GB, free: 4.195 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.519e-05/0.4012, allocations: 79.38 kB / 1.374 GB, free: 4.105 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.4012, allocations: 7.938 kB / 1.374 GB, free: 4.098 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.4012, allocations: 3.938 kB / 1.374 GB, free: 4.094 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.4013, allocations: 23.98 kB / 1.374 GB, free: 4.07 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.4014, allocations: 4 kB / 1.374 GB, free: 4.066 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004625/0.4018, allocations: 63.77 kB / 1.374 GB, free: 4.004 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.593e-05/0.4019, allocations: 60.05 kB / 1.374 GB, free: 3.945 MB / 1.061 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 (calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.daySampleTrigger,$whenCondition1,calendarTime2016.hourSampleTrigger,$whenCondition2,calendarTime2016.epochLastMonth,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.yearIndex,$PRE.calendarTime2016.yearIndex,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,$PRE.calendarTime2016.weekDay,calendarTime2016.hour,$PRE.calendarTime2016.hour,calendarTime2016.day,$PRE.calendarTime2016.day,calendarTime2016.month,$PRE.calendarTime2016.month,calendarTime2016.year,$PRE.calendarTime2016.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.0002335/0.4021, allocations: 193.8 kB / 1.374 GB, free: 3.75 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.26e-05/0.4022, allocations: 35.77 kB / 1.374 GB, free: 3.715 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.934e-05/0.4023, allocations: 47.61 kB / 1.374 GB, free: 3.672 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.4023, allocations: 4 kB / 1.374 GB, free: 3.668 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4023, allocations: 3.938 kB / 1.374 GB, free: 3.664 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.4023, allocations: 0 / 1.374 GB, free: 3.664 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.4045, allocations: 0.6777 MB / 1.375 GB, free: 2.945 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.4045, allocations: 3.938 kB / 1.375 GB, free: 2.941 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.525e-05/0.4045, allocations: 7.984 kB / 1.375 GB, free: 2.934 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.4045, allocations: 0 / 1.375 GB, free: 2.934 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.368e-05/0.4046, allocations: 19.98 kB / 1.375 GB, free: 2.914 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.4046, allocations: 11.92 kB / 1.375 GB, free: 2.902 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4046, allocations: 0 / 1.375 GB, free: 2.902 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.4062, allocations: 478.2 kB / 1.375 GB, free: 2.422 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003216/0.4066, allocations: 137.5 kB / 1.375 GB, free: 2.285 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.013e-05/0.4066, allocations: 8 kB / 1.375 GB, free: 2.277 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004422/0.4071, allocations: 35.95 kB / 1.375 GB, free: 2.242 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.089e-05/0.4071, allocations: 11.98 kB / 1.375 GB, free: 2.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.615e-05/0.4072, allocations: 51.98 kB / 1.375 GB, free: 2.18 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003289/0.4075, allocations: 299.1 kB / 1.376 GB, free: 1.883 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4075, allocations: 0 / 1.376 GB, free: 1.883 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000343/0.4078, allocations: 67.98 kB / 1.376 GB, free: 1.816 MB / 1.061 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 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition2,$whenCondition1,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.weekDay,calendarTime2016.daysSinceEpoch,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling) * Number of discrete states: 9 (calendarTime2016.firstDaySampling,calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,calendarTime2016.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.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.0001845/0.408, allocations: 116.9 kB / 1.376 GB, free: 1.691 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001285/0.4093, allocations: 477.9 kB / 1.376 GB, free: 1.188 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4093, allocations: 3.938 kB / 1.376 GB, free: 1.184 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0007245/0.41, allocations: 115.8 kB / 1.376 GB, free: 1.07 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.4104, allocations: 29.58 kB / 1.376 GB, free: 1.043 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.4119, allocations: 0.5853 MB / 1.377 GB, free: 436 kB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002098/0.4121, allocations: 171 kB / 1.377 GB, free: 244 kB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.766e-05/0.4121, allocations: 15.42 kB / 1.377 GB, free: 228 kB / 1.061 GB Notification: Performance of SimCode: time 3.6e-07/0.4121, allocations: 0 / 1.377 GB, free: 228 kB / 1.061 GB Notification: Performance of Templates: time 0.006299/0.4184, allocations: 3.75 MB / 1.381 GB, free: 12.43 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 299] Reference file matches [Calling sys.exit(0), Time elapsed: 13.259572585579008]