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.001427/0.001427, allocations: 102.6 kB / 16.45 MB, free: 6.449 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.001541/0.001541, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.517/1.517, allocations: 230.6 MB / 252.8 MB, free: 9.148 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.406/3.406, allocations: 0.505 GB / 0.8066 GB, free: 23.11 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: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) [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.002261/0.002261, allocations: 67.03 kB / 1.172 GB, free: 17.59 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.3756, allocations: 180.2 MB / 1.348 GB, free: 10.07 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002835/0.3784, allocations: 1.538 MB / 1.349 GB, free: 8.523 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001387/0.3798, allocations: 0.5461 MB / 1.35 GB, free: 7.977 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.953e-05/0.3798, allocations: 0 / 1.35 GB, free: 7.977 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 9.865e-05/0.3799, allocations: 7.875 kB / 1.35 GB, free: 7.969 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001182/0.3801, allocations: 39.62 kB / 1.35 GB, free: 7.93 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008255/0.3809, allocations: 312 kB / 1.35 GB, free: 7.629 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005822/0.3815, allocations: 483.4 kB / 1.351 GB, free: 7.156 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.719e-05/0.3815, allocations: 4 kB / 1.351 GB, free: 7.152 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004081/0.3819, allocations: 279.6 kB / 1.351 GB, free: 6.879 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003496/0.3823, allocations: 147.6 kB / 1.351 GB, free: 6.734 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 8.069e-05/0.3824, allocations: 28 kB / 1.351 GB, free: 6.707 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.161e-05/0.3824, allocations: 28 kB / 1.351 GB, free: 6.68 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.3826, allocations: 115.7 kB / 1.351 GB, free: 6.566 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002114/0.3828, allocations: 187 kB / 1.351 GB, free: 6.383 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005146/0.3833, allocations: 422.7 kB / 1.352 GB, free: 5.969 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3833, allocations: 0 / 1.352 GB, free: 5.969 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3833, allocations: 0 / 1.352 GB, free: 5.969 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.3833, allocations: 0 / 1.352 GB, free: 5.969 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.001449/0.3848, allocations: 0.8781 MB / 1.353 GB, free: 5 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.3848, allocations: 19.98 kB / 1.353 GB, free: 4.98 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.071e-05/0.3849, allocations: 42.67 kB / 1.353 GB, free: 4.93 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.385, allocations: 52.7 kB / 1.353 GB, free: 4.879 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004314/0.3854, allocations: 310.6 kB / 1.353 GB, free: 4.539 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.733e-05/0.3855, allocations: 12.38 kB / 1.353 GB, free: 4.527 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.652e-05/0.3856, allocations: 32.36 kB / 1.353 GB, free: 4.496 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.3866, allocations: 214 kB / 1.353 GB, free: 4.281 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.3866, allocations: 3.938 kB / 1.353 GB, free: 4.277 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/0.3867, allocations: 0 / 1.353 GB, free: 4.277 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.3867, allocations: 0 / 1.353 GB, free: 4.277 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000837/0.3875, allocations: 103.9 kB / 1.353 GB, free: 4.176 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005315/0.388, allocations: 393.2 kB / 1.354 GB, free: 3.742 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.3892, allocations: 170.5 kB / 1.354 GB, free: 3.566 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008074/0.39, allocations: 97.16 kB / 1.354 GB, free: 3.469 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.39, allocations: 8 kB / 1.354 GB, free: 3.461 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.3911, allocations: 219.1 kB / 1.354 GB, free: 3.234 MB / 1.045 GB Notification: Performance of pre-optimization done (n=16): time 2.255e-06/0.3911, allocations: 0 / 1.354 GB, free: 3.234 MB / 1.045 GB Notification: Performance of matching and sorting (n=16): time 0.002835/0.3939, allocations: 491.4 kB / 1.355 GB, free: 2.75 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.149e-05/0.394, allocations: 59.41 kB / 1.355 GB, free: 2.68 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005933/0.3946, allocations: 421.8 kB / 1.355 GB, free: 2.254 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.3947, allocations: 41.7 kB / 1.355 GB, free: 2.207 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.3948, allocations: 93.44 kB / 1.355 GB, free: 2.113 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 7.481e-05/0.3949, allocations: 43.67 kB / 1.355 GB, free: 2.07 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002591/0.3951, allocations: 125.5 kB / 1.355 GB, free: 1.941 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001906/0.3953, allocations: 322.8 kB / 1.356 GB, free: 1.617 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003076/0.3956, allocations: 119.9 kB / 1.356 GB, free: 1.5 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003389/0.396, allocations: 177.9 kB / 1.356 GB, free: 1.305 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004636/0.3965, allocations: 271 kB / 1.356 GB, free: 1.008 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.3965, allocations: 4 kB / 1.356 GB, free: 1.004 MB / 1.045 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000969/0.3974, allocations: 494.4 kB / 1.357 GB, free: 0.5039 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.3975, allocations: 91.31 kB / 1.357 GB, free: 412 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/0.3975, allocations: 4 kB / 1.357 GB, free: 408 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.3976, allocations: 3.984 kB / 1.357 GB, free: 404 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.3978, allocations: 27.91 kB / 1.357 GB, free: 376 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.3978, allocations: 8.125 kB / 1.357 GB, free: 368 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005284/0.3983, allocations: 59.84 kB / 1.357 GB, free: 308 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.3984, allocations: 59.98 kB / 1.357 GB, free: 248 kB / 1.045 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.0002815/0.3987, allocations: 193.8 kB / 1.357 GB, free: 48 kB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.167e-05/0.3988, allocations: 43.66 kB / 1.357 GB, free: 4 kB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.3989, allocations: 39.75 kB / 1.357 GB, free: 15.96 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3989, allocations: 8 kB / 1.357 GB, free: 15.96 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/0.3989, allocations: 3.938 kB / 1.357 GB, free: 15.95 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.3989, allocations: 3.984 kB / 1.357 GB, free: 15.95 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.4013, allocations: 0.7366 MB / 1.358 GB, free: 15.15 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.4013, allocations: 4 kB / 1.358 GB, free: 15.15 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.974e-05/0.4013, allocations: 7.938 kB / 1.358 GB, free: 15.14 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.484e-05/0.4013, allocations: 4 kB / 1.358 GB, free: 15.14 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.427e-05/0.4014, allocations: 23.97 kB / 1.358 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4014, allocations: 0 / 1.358 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4014, allocations: 0 / 1.358 GB, free: 15.11 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/0.4033, allocations: 477.7 kB / 1.358 GB, free: 14.63 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002753/0.4036, allocations: 200.7 kB / 1.359 GB, free: 14.42 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.4e-05/0.4036, allocations: 16 kB / 1.359 GB, free: 14.4 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004896/0.4041, allocations: 31.89 kB / 1.359 GB, free: 14.37 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.545e-05/0.4042, allocations: 12 kB / 1.359 GB, free: 14.36 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.927e-05/0.4043, allocations: 63.97 kB / 1.359 GB, free: 14.3 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003283/0.4046, allocations: 295.1 kB / 1.359 GB, free: 14 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4046, allocations: 0 / 1.359 GB, free: 14 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004079/0.405, allocations: 63.98 kB / 1.359 GB, free: 13.94 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.002273/0.4073, allocations: 1.026 MB / 1.36 GB, free: 12.89 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001372/0.4086, allocations: 410.5 kB / 1.36 GB, free: 12.46 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4086, allocations: 0 / 1.36 GB, free: 12.46 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0008196/0.4095, allocations: 110.2 kB / 1.361 GB, free: 12.36 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003704/0.4098, allocations: 25.55 kB / 1.361 GB, free: 12.33 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004594/0.4144, allocations: 2.79 MB / 1.363 GB, free: 9.41 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000479/0.4149, allocations: 0.7708 MB / 1.364 GB, free: 8.613 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.057e-05/0.415, allocations: 17.06 kB / 1.364 GB, free: 8.598 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.458e-05/0.4151, allocations: 23.44 kB / 1.364 GB, free: 8.574 MB / 1.061 GB Notification: Performance of SimCode: time 7.61e-07/0.4151, allocations: 0 / 1.364 GB, free: 8.574 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03253/0.4476, allocations: 6.231 MB / 1.37 GB, free: 2.32 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.426/8.874, allocations: 8.375 kB / 1.37 GB, free: 2.312 MB / 1.061 GB " [Timeout remaining time 291] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.csv --start-time 0 --stop-time 1e+08 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 643.381 Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.csv","/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] "Error: Could not read variable calendarTime2016.year in file Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.csv. Warning: Get data of variable calendarTime2016.year from file Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.csv failed! Error: Could not read variable calendarTime2016.month in file Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.csv. Warning: Get data of variable calendarTime2016.month from file Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.csv failed! Error: Could not read variable calendarTime2016.hour in file Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.csv. Warning: Get data of variable calendarTime2016.hour from file Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 20.428172796964645]