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.001654/0.001654, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.002128/0.002128, allocations: 219.4 kB / 22.25 MB, free: 5.215 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.545/1.545, allocations: 230.6 MB / 256 MB, free: 8.008 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.345/3.345, allocations: 0.505 GB / 0.8101 GB, free: 22.04 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.002099/0.002099, allocations: 66.55 kB / 1.177 GB, free: 17.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.38, allocations: 180.2 MB / 1.353 GB, free: 8.523 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.003868/0.3838, allocations: 1.544 MB / 1.354 GB, free: 6.973 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00152/0.3853, allocations: 0.5517 MB / 1.355 GB, free: 6.422 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.332e-05/0.3854, allocations: 0 / 1.355 GB, free: 6.422 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.3855, allocations: 11.86 kB / 1.355 GB, free: 6.41 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001424/0.3857, allocations: 39.58 kB / 1.355 GB, free: 6.371 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009402/0.3866, allocations: 305.8 kB / 1.355 GB, free: 6.074 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0006198/0.3872, allocations: 487.4 kB / 1.356 GB, free: 5.598 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 4.698e-05/0.3873, allocations: 4 kB / 1.356 GB, free: 5.594 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004188/0.3877, allocations: 283.7 kB / 1.356 GB, free: 5.316 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003337/0.388, allocations: 151.6 kB / 1.356 GB, free: 5.168 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.848e-05/0.3881, allocations: 28 kB / 1.356 GB, free: 5.141 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.144e-05/0.3882, allocations: 24 kB / 1.356 GB, free: 5.117 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001412/0.3883, allocations: 115.7 kB / 1.356 GB, free: 5.004 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002214/0.3885, allocations: 187 kB / 1.356 GB, free: 4.82 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005511/0.3891, allocations: 426.7 kB / 1.357 GB, free: 4.402 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 8.696e-06/0.3891, allocations: 3.984 kB / 1.357 GB, free: 4.398 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.472e-06/0.3891, allocations: 0 / 1.357 GB, free: 4.398 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.375e-06/0.3891, allocations: 8 kB / 1.357 GB, free: 4.391 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.001446/0.3906, allocations: 0.7989 MB / 1.358 GB, free: 3.52 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.3906, allocations: 8.031 kB / 1.358 GB, free: 3.512 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.736e-05/0.3907, allocations: 42.73 kB / 1.358 GB, free: 3.461 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.3908, allocations: 48.7 kB / 1.358 GB, free: 3.414 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004725/0.3912, allocations: 260.7 kB / 1.358 GB, free: 3.137 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.856e-05/0.3913, allocations: 16.38 kB / 1.358 GB, free: 3.121 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.558e-05/0.3914, allocations: 28.36 kB / 1.358 GB, free: 3.094 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009151/0.3923, allocations: 214 kB / 1.358 GB, free: 2.879 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.3923, allocations: 3.938 kB / 1.358 GB, free: 2.875 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.566e-05/0.3923, allocations: 4 kB / 1.358 GB, free: 2.871 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.3923, allocations: 0 / 1.358 GB, free: 2.871 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007197/0.393, allocations: 107.9 kB / 1.358 GB, free: 2.766 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004922/0.3935, allocations: 356.3 kB / 1.359 GB, free: 2.375 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009664/0.3945, allocations: 166.4 kB / 1.359 GB, free: 2.203 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006889/0.3952, allocations: 105.2 kB / 1.359 GB, free: 2.098 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.3952, allocations: 4 kB / 1.359 GB, free: 2.094 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009693/0.3962, allocations: 227.1 kB / 1.359 GB, free: 1.859 MB / 1.045 GB Notification: Performance of pre-optimization done (n=16): time 1.823e-06/0.3962, allocations: 0 / 1.359 GB, free: 1.859 MB / 1.045 GB Notification: Performance of matching and sorting (n=16): time 0.002479/0.3987, allocations: 490.4 kB / 1.36 GB, free: 1.375 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.3987, allocations: 59.39 kB / 1.36 GB, free: 1.305 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004672/0.3992, allocations: 417.9 kB / 1.36 GB, free: 0.8867 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 7.631e-05/0.3993, allocations: 45.62 kB / 1.36 GB, free: 0.8359 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.176e-05/0.3994, allocations: 93.45 kB / 1.36 GB, free: 0.7422 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.761e-05/0.3994, allocations: 35.69 kB / 1.36 GB, free: 0.707 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002066/0.3996, allocations: 129.5 kB / 1.36 GB, free: 0.5742 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3998, allocations: 322.8 kB / 1.361 GB, free: 256 kB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002686/0.4, allocations: 119.9 kB / 1.361 GB, free: 136 kB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003195/0.4003, allocations: 173.9 kB / 1.361 GB, free: 15.94 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004283/0.4008, allocations: 279 kB / 1.361 GB, free: 15.64 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4008, allocations: 0 / 1.361 GB, free: 15.64 MB / 1.061 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008688/0.4016, allocations: 492.6 kB / 1.362 GB, free: 15.14 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 9.654e-05/0.4017, allocations: 92.88 kB / 1.362 GB, free: 15.04 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.4018, allocations: 8.172 kB / 1.362 GB, free: 15.03 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.4018, allocations: 4 kB / 1.362 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/0.4019, allocations: 19.92 kB / 1.362 GB, free: 15 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.402, allocations: 4 kB / 1.362 GB, free: 15 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004844/0.4024, allocations: 59.84 kB / 1.362 GB, free: 14.94 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.941e-05/0.4025, allocations: 55.98 kB / 1.362 GB, free: 14.89 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.0002547/0.4028, allocations: 205.9 kB / 1.362 GB, free: 14.68 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.442e-05/0.4028, allocations: 47.66 kB / 1.362 GB, free: 14.63 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.473e-05/0.4029, allocations: 35.69 kB / 1.362 GB, free: 14.59 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.4029, allocations: 0 / 1.362 GB, free: 14.59 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.4029, allocations: 0 / 1.362 GB, free: 14.59 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.4029, allocations: 7.969 kB / 1.362 GB, free: 14.58 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002206/0.4051, allocations: 0.72 MB / 1.363 GB, free: 13.81 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.4051, allocations: 0 / 1.363 GB, free: 13.81 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.792e-05/0.4052, allocations: 4 kB / 1.363 GB, free: 13.8 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.4052, allocations: 0 / 1.363 GB, free: 13.8 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.933e-05/0.4052, allocations: 23.97 kB / 1.363 GB, free: 13.78 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.4052, allocations: 4 kB / 1.363 GB, free: 13.78 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4052, allocations: 0 / 1.363 GB, free: 13.78 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/0.407, allocations: 482 kB / 1.363 GB, free: 13.29 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003208/0.4073, allocations: 137.5 kB / 1.364 GB, free: 13.16 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.091e-05/0.4074, allocations: 15.98 kB / 1.364 GB, free: 13.14 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004623/0.4078, allocations: 31.97 kB / 1.364 GB, free: 13.11 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.105e-05/0.4079, allocations: 7.984 kB / 1.364 GB, free: 13.11 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.812e-05/0.4079, allocations: 63.97 kB / 1.364 GB, free: 13.04 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003446/0.4083, allocations: 295.1 kB / 1.364 GB, free: 12.76 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4083, allocations: 0 / 1.364 GB, free: 12.76 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004405/0.4087, allocations: 63.98 kB / 1.364 GB, free: 12.7 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.00212/0.4109, allocations: 1.022 MB / 1.365 GB, free: 11.64 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001256/0.4121, allocations: 412.6 kB / 1.365 GB, free: 11.22 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.4121, allocations: 0 / 1.365 GB, free: 11.22 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0007302/0.4128, allocations: 111.8 kB / 1.365 GB, free: 11.11 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/0.4132, allocations: 33.95 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004466/0.4177, allocations: 2.784 MB / 1.368 GB, free: 8.156 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004567/0.4181, allocations: 0.7708 MB / 1.369 GB, free: 7.355 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 6.627e-05/0.4182, allocations: 17.08 kB / 1.369 GB, free: 7.34 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.282e-05/0.4183, allocations: 19.42 kB / 1.369 GB, free: 7.32 MB / 1.061 GB Notification: Performance of SimCode: time 6.71e-07/0.4183, allocations: 0 / 1.369 GB, free: 7.32 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03881/0.4571, allocations: 6.423 MB / 1.375 GB, free: 0.918 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.97, allocations: 9.266 kB / 1.375 GB, free: 0.9102 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --stepSize=643.381 --timeout=800 --tolerance=1e-06 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.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: 21.8856884019915]