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.001409/0.001409, allocations: 123.1 kB / 17.17 MB, free: 5.918 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.001742/0.001742, allocations: 210.3 kB / 20.13 MB, free: 2.98 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.574/1.574, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.06/3.06, allocations: 0.5003 GB / 0.8026 GB, free: 6.742 MB / 0.6387 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="cs",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.002117/0.002117, allocations: 63.91 kB / 1.165 GB, free: 0.5352 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9604/0.9625, allocations: 178.9 MB / 1.34 GB, free: 16.27 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002303/0.9648, allocations: 1.545 MB / 1.342 GB, free: 15.18 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001094/0.9659, allocations: 0.5448 MB / 1.342 GB, free: 14.83 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.92e-05/0.9659, allocations: 0 / 1.342 GB, free: 14.83 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 9.263e-05/0.966, allocations: 10.88 kB / 1.342 GB, free: 14.82 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.9661, allocations: 26.19 kB / 1.342 GB, free: 14.81 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007578/0.9669, allocations: 309.5 kB / 1.342 GB, free: 14.66 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004848/0.9674, allocations: 483.2 kB / 1.343 GB, free: 14.47 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.03e-05/0.9674, allocations: 4.125 kB / 1.343 GB, free: 14.47 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003243/0.9678, allocations: 276 kB / 1.343 GB, free: 14.39 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002613/0.968, allocations: 150.2 kB / 1.343 GB, free: 14.34 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.918e-05/0.9681, allocations: 27.5 kB / 1.343 GB, free: 14.34 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.83e-05/0.9682, allocations: 26.12 kB / 1.343 GB, free: 14.34 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.9683, allocations: 118.8 kB / 1.343 GB, free: 14.3 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001617/0.9684, allocations: 189.3 kB / 1.344 GB, free: 14.19 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004331/0.9689, allocations: 430.2 kB / 1.344 GB, free: 14.03 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.9689, allocations: 1.406 kB / 1.344 GB, free: 14.03 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.493e-06/0.9689, allocations: 0 / 1.344 GB, free: 14.03 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.9689, allocations: 0 / 1.344 GB, free: 14.03 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.001103/0.97, allocations: 0.8769 MB / 1.345 GB, free: 13.28 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.97, allocations: 9.812 kB / 1.345 GB, free: 13.28 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.236e-05/0.9701, allocations: 6.781 kB / 1.345 GB, free: 13.27 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.933e-05/0.9701, allocations: 38.89 kB / 1.345 GB, free: 13.23 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.9702, allocations: 51.91 kB / 1.345 GB, free: 13.21 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/0.9705, allocations: 304.2 kB / 1.345 GB, free: 12.95 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.757e-05/0.9706, allocations: 22.2 kB / 1.345 GB, free: 12.94 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.795e-05/0.9706, allocations: 29.02 kB / 1.345 GB, free: 12.94 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.9717, allocations: 219.7 kB / 1.346 GB, free: 12.87 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.9717, allocations: 1.375 kB / 1.346 GB, free: 12.87 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.867e-05/0.9717, allocations: 1.125 kB / 1.346 GB, free: 12.87 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.9717, allocations: 7.25 kB / 1.346 GB, free: 12.87 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008072/0.9725, allocations: 103.7 kB / 1.346 GB, free: 12.85 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004073/0.9729, allocations: 390.5 kB / 1.346 GB, free: 12.59 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.974, allocations: 171.9 kB / 1.346 GB, free: 12.53 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008086/0.9748, allocations: 99.81 kB / 1.346 GB, free: 12.51 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.9749, allocations: 11.67 kB / 1.346 GB, free: 12.5 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009932/0.9759, allocations: 219.1 kB / 1.347 GB, free: 12.42 MB / 1.061 GB Notification: Performance of pre-optimization done (n=16): time 2.304e-06/0.9759, allocations: 0 / 1.347 GB, free: 12.42 MB / 1.061 GB Notification: Performance of matching and sorting (n=16): time 0.002812/0.9787, allocations: 487.9 kB / 1.347 GB, free: 12.31 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.9787, allocations: 59.09 kB / 1.347 GB, free: 12.25 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004788/0.9792, allocations: 419 kB / 1.347 GB, free: 12.04 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 6.345e-05/0.9793, allocations: 40 kB / 1.348 GB, free: 12.01 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.71e-05/0.9793, allocations: 98.97 kB / 1.348 GB, free: 11.92 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.076e-05/0.9794, allocations: 37.34 kB / 1.348 GB, free: 11.89 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/0.9796, allocations: 127.6 kB / 1.348 GB, free: 11.84 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.157e-05/0.9796, allocations: 320.8 kB / 1.348 GB, free: 11.52 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002691/0.9799, allocations: 120.7 kB / 1.348 GB, free: 11.48 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002828/0.9802, allocations: 173.5 kB / 1.348 GB, free: 11.39 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000323/0.9805, allocations: 276.3 kB / 1.349 GB, free: 11.19 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.9805, allocations: 3.938 kB / 1.349 GB, free: 11.18 MB / 1.061 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007935/0.9813, allocations: 497.6 kB / 1.349 GB, free: 10.97 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.557e-05/0.9814, allocations: 88.58 kB / 1.349 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.9814, allocations: 6.625 kB / 1.349 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.9814, allocations: 2.188 kB / 1.349 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.9816, allocations: 23.72 kB / 1.349 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.719e-06/0.9816, allocations: 3.5 kB / 1.349 GB, free: 10.89 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005269/0.9821, allocations: 58.92 kB / 1.349 GB, free: 10.88 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.435e-05/0.9822, allocations: 61.52 kB / 1.349 GB, free: 10.87 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.0002505/0.9825, allocations: 196.9 kB / 1.35 GB, free: 10.73 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.462e-05/0.9825, allocations: 45.41 kB / 1.35 GB, free: 10.7 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.236e-05/0.9826, allocations: 42.48 kB / 1.35 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.9826, allocations: 6.375 kB / 1.35 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.9826, allocations: 0 / 1.35 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.9826, allocations: 1.266 kB / 1.35 GB, free: 10.68 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002465/0.9851, allocations: 0.7397 MB / 1.35 GB, free: 10.27 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.9851, allocations: 9.156 kB / 1.35 GB, free: 10.27 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.738e-05/0.9851, allocations: 4.5 kB / 1.35 GB, free: 10.27 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.9851, allocations: 0.9062 kB / 1.35 GB, free: 10.27 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.379e-05/0.9852, allocations: 23.48 kB / 1.35 GB, free: 10.26 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.9852, allocations: 0 / 1.35 GB, free: 10.26 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.9852, allocations: 1.562 kB / 1.35 GB, free: 10.26 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001876/0.9871, allocations: 474.1 kB / 1.351 GB, free: 10.06 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000253/0.9873, allocations: 212.4 kB / 1.351 GB, free: 9.914 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.434e-05/0.9874, allocations: 15.42 kB / 1.351 GB, free: 9.906 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004943/0.9879, allocations: 27.75 kB / 1.351 GB, free: 9.906 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.551e-05/0.9879, allocations: 16.36 kB / 1.351 GB, free: 9.898 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.532e-05/0.988, allocations: 55.89 kB / 1.351 GB, free: 9.898 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003143/0.9883, allocations: 294.5 kB / 1.351 GB, free: 9.758 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.9883, allocations: 0 / 1.351 GB, free: 9.758 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004089/0.9887, allocations: 64.59 kB / 1.351 GB, free: 9.754 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.002217/0.9909, allocations: 1.02 MB / 1.352 GB, free: 9.008 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001317/0.9923, allocations: 411.2 kB / 1.353 GB, free: 8.809 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.9923, allocations: 1.156 kB / 1.353 GB, free: 8.809 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0008013/0.9931, allocations: 107.9 kB / 1.353 GB, free: 8.793 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000358/0.9934, allocations: 29.02 kB / 1.353 GB, free: 8.781 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004168/0.9976, allocations: 2.8 MB / 1.356 GB, free: 6.922 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.9978, allocations: 0.7755 MB / 1.356 GB, free: 6.215 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.006e-05/0.9979, allocations: 11.62 kB / 1.357 GB, free: 6.215 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.399e-05/0.998, allocations: 24.44 kB / 1.357 GB, free: 6.199 MB / 1.061 GB Notification: Performance of SimCode: time 8.42e-07/0.998, allocations: 0 / 1.357 GB, free: 6.199 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02421/1.022, allocations: 6.261 MB / 1.363 GB, free: 4.93 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.558/9.58, allocations: 6.625 kB / 1.363 GB, free: 4.926 MB / 1.061 GB " [Timeout remaining time 290] (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] [Calling os._exit(0), Time elapsed: 16.366356220969465] Failed to read output from testmodel.py, exit status != 0: 9.710508054005913 9.732796055 8.759577334 Calling exit ...