Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001622/0.001622, allocations: 106.2 kB / 19.69 MB, free: 2.277 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.001573/0.001573, allocations: 217.9 kB / 23.01 MB, free: 4.602 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.491/1.491, allocations: 230.6 MB / 256.8 MB, free: 8.062 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.24/3.24, allocations: 0.49 GB / 0.7958 GB, free: 33.29 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002063/0.002063, allocations: 68.12 kB / 1.155 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4003/0.4024, allocations: 176.1 MB / 1.327 GB, free: 1.52 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003177/0.4056, allocations: 1.558 MB / 1.329 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001436/0.407, allocations: 0.5396 MB / 1.329 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.091e-05/0.4071, allocations: 0 / 1.329 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.4072, allocations: 11.86 kB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001269/0.4073, allocations: 27.8 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008864/0.4082, allocations: 321.9 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005888/0.4088, allocations: 483.5 kB / 1.33 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.526e-05/0.4089, allocations: 12 kB / 1.33 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000428/0.4093, allocations: 279.6 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003722/0.4097, allocations: 151.4 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.693e-05/0.4097, allocations: 28 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.631e-05/0.4098, allocations: 28 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001459/0.41, allocations: 115.7 kB / 1.331 GB, free: 13.99 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002086/0.4102, allocations: 187 kB / 1.331 GB, free: 13.81 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004947/0.4107, allocations: 422.4 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.4107, allocations: 0 / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.763e-06/0.4107, allocations: 4 kB / 1.331 GB, free: 13.39 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.313e-06/0.4107, allocations: 0 / 1.331 GB, free: 13.39 MB / 1.029 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.001375/0.412, allocations: 0.8028 MB / 1.332 GB, free: 12.52 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.4121, allocations: 8.031 kB / 1.332 GB, free: 12.51 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.4122, allocations: 56.7 kB / 1.332 GB, free: 12.45 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004497/0.4127, allocations: 256.7 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.876e-05/0.4127, allocations: 16.36 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.17e-05/0.4128, allocations: 28.38 kB / 1.332 GB, free: 12.13 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009322/0.4137, allocations: 217 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.4137, allocations: 192 / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/0.4138, allocations: 3.938 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.4138, allocations: 4 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007042/0.4145, allocations: 107.8 kB / 1.333 GB, free: 11.8 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004822/0.4149, allocations: 356.3 kB / 1.333 GB, free: 11.41 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009452/0.4159, allocations: 166.5 kB / 1.333 GB, free: 11.24 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006846/0.4166, allocations: 112.7 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.4166, allocations: 3.984 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009419/0.4175, allocations: 223.2 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of pre-optimization done (n=16): time 1.503e-06/0.4176, allocations: 0 / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of matching and sorting (n=16): time 0.002369/0.4199, allocations: 489 kB / 1.334 GB, free: 10.41 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.47e-05/0.42, allocations: 63.39 kB / 1.334 GB, free: 10.34 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005093/0.4205, allocations: 409.9 kB / 1.334 GB, free: 9.922 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 6.5e-05/0.4206, allocations: 45.69 kB / 1.334 GB, free: 9.871 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.4207, allocations: 93.44 kB / 1.334 GB, free: 9.777 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.155e-05/0.4207, allocations: 35.7 kB / 1.334 GB, free: 9.742 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002195/0.4209, allocations: 133.5 kB / 1.335 GB, free: 9.605 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001829/0.4211, allocations: 318.8 kB / 1.335 GB, free: 9.285 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002626/0.4214, allocations: 123.9 kB / 1.335 GB, free: 9.164 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003003/0.4217, allocations: 169.9 kB / 1.335 GB, free: 8.977 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004153/0.4221, allocations: 275 kB / 1.335 GB, free: 8.676 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.4221, allocations: 0 / 1.335 GB, free: 8.676 MB / 1.029 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008478/0.4229, allocations: 492.7 kB / 1.336 GB, free: 8.176 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001076/0.4231, allocations: 95.25 kB / 1.336 GB, free: 8.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.4231, allocations: 8.125 kB / 1.336 GB, free: 8.062 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.4231, allocations: 4 kB / 1.336 GB, free: 8.059 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.4233, allocations: 19.98 kB / 1.336 GB, free: 8.039 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.4233, allocations: 4 kB / 1.336 GB, free: 8.035 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000457/0.4237, allocations: 63.78 kB / 1.336 GB, free: 7.973 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.726e-05/0.4238, allocations: 59.97 kB / 1.336 GB, free: 7.914 MB / 1.029 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.0002378/0.4241, allocations: 194.3 kB / 1.336 GB, free: 7.719 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.57e-05/0.4241, allocations: 47.66 kB / 1.336 GB, free: 7.672 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.019e-05/0.4242, allocations: 43.67 kB / 1.336 GB, free: 7.629 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.4242, allocations: 0 / 1.336 GB, free: 7.629 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.4242, allocations: 0 / 1.336 GB, free: 7.629 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.4242, allocations: 0 / 1.336 GB, free: 7.629 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.4264, allocations: 0.7183 MB / 1.337 GB, free: 6.859 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.4264, allocations: 0 / 1.337 GB, free: 6.859 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.844e-05/0.4264, allocations: 4 kB / 1.337 GB, free: 6.855 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.4264, allocations: 3.984 kB / 1.337 GB, free: 6.852 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.048e-05/0.4265, allocations: 19.98 kB / 1.337 GB, free: 6.832 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.4265, allocations: 11.92 kB / 1.337 GB, free: 6.82 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4265, allocations: 0 / 1.337 GB, free: 6.82 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.428, allocations: 483.4 kB / 1.338 GB, free: 6.332 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003022/0.4283, allocations: 129.9 kB / 1.338 GB, free: 6.203 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.169e-05/0.4284, allocations: 12 kB / 1.338 GB, free: 6.191 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.4289, allocations: 31.97 kB / 1.338 GB, free: 6.16 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.704e-05/0.4289, allocations: 11.97 kB / 1.338 GB, free: 6.148 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.64e-05/0.429, allocations: 63.92 kB / 1.338 GB, free: 6.086 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0003205/0.4293, allocations: 291.1 kB / 1.338 GB, free: 5.801 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4293, allocations: 0 / 1.338 GB, free: 5.801 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000346/0.4296, allocations: 67.98 kB / 1.338 GB, free: 5.734 MB / 1.029 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.0001854/0.4298, allocations: 124.9 kB / 1.338 GB, free: 5.598 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001189/0.431, allocations: 405.3 kB / 1.339 GB, free: 5.18 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.431, allocations: 0 / 1.339 GB, free: 5.18 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0007056/0.4317, allocations: 116.2 kB / 1.339 GB, free: 5.066 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003716/0.4321, allocations: 29.58 kB / 1.339 GB, free: 5.039 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.4336, allocations: 0.5878 MB / 1.339 GB, free: 4.418 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004442/0.434, allocations: 0.7708 MB / 1.34 GB, free: 3.621 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.191e-05/0.4341, allocations: 19.42 kB / 1.34 GB, free: 3.602 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/0.4341, allocations: 0 / 1.34 GB, free: 3.602 MB / 1.029 GB Notification: Performance of Templates: time 0.006456/0.4405, allocations: 3.726 MB / 1.344 GB, free: 15.82 MB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.233791303995531]