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.001619/0.001619, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.002053/0.002053, allocations: 216.3 kB / 23.01 MB, free: 4.566 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.535/1.535, allocations: 230.6 MB / 256.8 MB, free: 8.238 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.17/3.17, allocations: 0.505 GB / 0.8108 GB, free: 22.03 MB / 0.6231 GB " [Timeout remaining time 177] 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.002006/0.002006, allocations: 67.98 kB / 1.178 GB, free: 16.98 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3518, allocations: 180.2 MB / 1.354 GB, free: 7.98 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002718/0.3545, allocations: 1.547 MB / 1.356 GB, free: 6.426 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001304/0.3558, allocations: 0.55 MB / 1.356 GB, free: 5.875 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.041e-05/0.3558, allocations: 0 / 1.356 GB, free: 5.875 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 9.479e-05/0.3559, allocations: 11.88 kB / 1.356 GB, free: 5.863 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001105/0.356, allocations: 27.64 kB / 1.356 GB, free: 5.836 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008121/0.3569, allocations: 318.2 kB / 1.356 GB, free: 5.527 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005447/0.3574, allocations: 483.4 kB / 1.357 GB, free: 5.055 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.736e-05/0.3574, allocations: 11.98 kB / 1.357 GB, free: 5.043 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004023/0.3578, allocations: 275.7 kB / 1.357 GB, free: 4.773 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003146/0.3582, allocations: 155.6 kB / 1.357 GB, free: 4.621 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.19e-05/0.3582, allocations: 24 kB / 1.357 GB, free: 4.598 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.497e-05/0.3583, allocations: 28 kB / 1.357 GB, free: 4.57 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.3584, allocations: 115.7 kB / 1.357 GB, free: 4.457 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001937/0.3586, allocations: 187 kB / 1.358 GB, free: 4.273 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004589/0.3591, allocations: 434.3 kB / 1.358 GB, free: 3.848 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3591, allocations: 0 / 1.358 GB, free: 3.848 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.082e-06/0.3591, allocations: 0 / 1.358 GB, free: 3.848 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.3591, allocations: 0 / 1.358 GB, free: 3.848 MB / 1.045 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.001262/0.3604, allocations: 0.8028 MB / 1.359 GB, free: 2.973 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.3604, allocations: 12.03 kB / 1.359 GB, free: 2.961 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.3605, allocations: 48.7 kB / 1.359 GB, free: 2.914 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004321/0.3609, allocations: 260.8 kB / 1.359 GB, free: 2.637 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.303e-05/0.361, allocations: 20.36 kB / 1.359 GB, free: 2.617 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.143e-05/0.3611, allocations: 20.38 kB / 1.359 GB, free: 2.598 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000949/0.362, allocations: 214 kB / 1.359 GB, free: 2.383 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.362, allocations: 4.125 kB / 1.359 GB, free: 2.379 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/0.3621, allocations: 11.94 kB / 1.359 GB, free: 2.367 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.3621, allocations: 0 / 1.359 GB, free: 2.367 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000723/0.3628, allocations: 95.92 kB / 1.36 GB, free: 2.273 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004488/0.3632, allocations: 364.3 kB / 1.36 GB, free: 1.875 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009788/0.3642, allocations: 166.5 kB / 1.36 GB, free: 1.703 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007014/0.3649, allocations: 101.2 kB / 1.36 GB, free: 1.602 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.3649, allocations: 7.938 kB / 1.36 GB, free: 1.594 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009268/0.3659, allocations: 227.1 kB / 1.36 GB, free: 1.359 MB / 1.045 GB Notification: Performance of pre-optimization done (n=16): time 1.804e-06/0.3659, allocations: 0 / 1.36 GB, free: 1.359 MB / 1.045 GB Notification: Performance of matching and sorting (n=16): time 0.002411/0.3683, allocations: 487 kB / 1.361 GB, free: 0.8789 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.3683, allocations: 63.39 kB / 1.361 GB, free: 0.8047 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004442/0.3688, allocations: 413.9 kB / 1.361 GB, free: 400 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 6.332e-05/0.3688, allocations: 41.69 kB / 1.361 GB, free: 352 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.31e-05/0.3689, allocations: 93.45 kB / 1.361 GB, free: 256 kB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.945e-05/0.369, allocations: 43.67 kB / 1.361 GB, free: 212 kB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/0.3692, allocations: 125.5 kB / 1.362 GB, free: 80 kB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001711/0.3693, allocations: 326.8 kB / 1.362 GB, free: 15.75 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/0.3696, allocations: 115.9 kB / 1.362 GB, free: 15.64 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003008/0.3699, allocations: 177.8 kB / 1.362 GB, free: 15.44 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004006/0.3703, allocations: 271.4 kB / 1.362 GB, free: 15.14 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3703, allocations: 0 / 1.362 GB, free: 15.14 MB / 1.061 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008964/0.3712, allocations: 498.3 kB / 1.363 GB, free: 14.64 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.359e-05/0.3713, allocations: 91.31 kB / 1.363 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.3713, allocations: 0 / 1.363 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.3713, allocations: 4 kB / 1.363 GB, free: 14.54 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.3715, allocations: 20.11 kB / 1.363 GB, free: 14.52 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.3715, allocations: 11.94 kB / 1.363 GB, free: 14.5 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004808/0.372, allocations: 59.84 kB / 1.363 GB, free: 14.45 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.856e-05/0.3721, allocations: 63.97 kB / 1.363 GB, free: 14.38 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.0002414/0.3723, allocations: 197.6 kB / 1.363 GB, free: 14.18 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.151e-05/0.3724, allocations: 47.66 kB / 1.363 GB, free: 14.13 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.236e-05/0.3724, allocations: 47.67 kB / 1.363 GB, free: 14.08 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3725, allocations: 0 / 1.363 GB, free: 14.08 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3725, allocations: 0 / 1.363 GB, free: 14.08 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.3725, allocations: 0 / 1.363 GB, free: 14.08 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002219/0.3747, allocations: 0.7221 MB / 1.364 GB, free: 13.31 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3747, allocations: 0 / 1.364 GB, free: 13.31 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.889e-05/0.3747, allocations: 7.938 kB / 1.364 GB, free: 13.3 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3747, allocations: 0 / 1.364 GB, free: 13.3 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.918e-05/0.3748, allocations: 19.97 kB / 1.364 GB, free: 13.28 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.3748, allocations: 4 kB / 1.364 GB, free: 13.28 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3748, allocations: 0 / 1.364 GB, free: 13.28 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.3765, allocations: 475.4 kB / 1.365 GB, free: 12.8 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000307/0.3768, allocations: 133.5 kB / 1.365 GB, free: 12.67 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.651e-05/0.3769, allocations: 12 kB / 1.365 GB, free: 12.66 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004712/0.3773, allocations: 31.97 kB / 1.365 GB, free: 12.62 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.304e-05/0.3774, allocations: 11.92 kB / 1.365 GB, free: 12.61 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.084e-05/0.3774, allocations: 59.97 kB / 1.365 GB, free: 12.55 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003137/0.3777, allocations: 299 kB / 1.365 GB, free: 12.27 MB / 1.061 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3777, allocations: 0 / 1.365 GB, free: 12.27 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003916/0.3781, allocations: 71.92 kB / 1.365 GB, free: 12.2 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.0001521/0.3783, allocations: 109 kB / 1.365 GB, free: 12.08 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001256/0.3795, allocations: 416.1 kB / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3795, allocations: 0 / 1.366 GB, free: 11.65 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0007139/0.3803, allocations: 103.9 kB / 1.366 GB, free: 11.55 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000364/0.3806, allocations: 36.94 kB / 1.366 GB, free: 11.51 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001656/0.3823, allocations: 0.5916 MB / 1.366 GB, free: 10.88 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004958/0.3828, allocations: 0.7708 MB / 1.367 GB, free: 10.08 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.754e-05/0.3828, allocations: 19.42 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of SimCode: time 3.51e-07/0.3828, allocations: 0 / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of Templates: time 0.006562/0.3894, allocations: 3.735 MB / 1.371 GB, free: 6.277 MB / 1.061 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: 12.750861316977534]