Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.475/1.475, allocations: 249.5 MB / 257 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009643/0.0009644, allocations: 180.8 kB / 316.3 MB, free: 3.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.567/1.567, allocations: 205.3 MB / 0.5671 GB, free: 15.87 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008001/0.0008, allocations: 92.25 kB / 0.6714 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.631e-05/1.633e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1915, allocations: 106.3 MB / 0.8853 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6744/0.8659, allocations: 133.8 MB / 1.016 GB, free: 3.746 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.8662, allocations: 67.78 kB / 1.016 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01372/0.8799, allocations: 4.43 MB / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.483e-06/0.88, allocations: 0 / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.698e-05/0.88, allocations: 8 kB / 1.02 GB, free: 15.91 MB / 0.6511 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.00105/0.8811, allocations: 0.5725 MB / 1.021 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.8811, allocations: 12.03 kB / 1.021 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.349e-05/0.8812, allocations: 42.17 kB / 1.021 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.8815, allocations: 249 kB / 1.021 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.8816, allocations: 7.984 kB / 1.021 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.701e-05/0.8816, allocations: 15.69 kB / 1.021 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000108/0.8818, allocations: 38.3 kB / 1.021 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.882, allocations: 139.7 kB / 1.021 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.535e-06/0.882, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.375e-05/0.882, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.882, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003312/0.8824, allocations: 320.6 kB / 1.022 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001892/0.8826, allocations: 108.9 kB / 1.022 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.198e-05/0.8827, allocations: 53.97 kB / 1.022 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.8827, allocations: 4 kB / 1.022 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003723/0.8831, allocations: 208.2 kB / 1.022 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=18): time 1.693e-06/0.8831, allocations: 0 / 1.022 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18): time 0.0003905/0.8835, allocations: 204.5 kB / 1.022 GB, free: 14 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/0.8836, allocations: 63.39 kB / 1.022 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002285/0.8838, allocations: 250.1 kB / 1.023 GB, free: 13.72 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.009e-05/0.8839, allocations: 37.45 kB / 1.023 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.391e-05/0.8839, allocations: 85.45 kB / 1.023 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.917e-05/0.884, allocations: 49.05 kB / 1.023 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.269e-05/0.884, allocations: 4 kB / 1.023 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.8841, allocations: 317.8 kB / 1.023 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001818/0.8843, allocations: 87.97 kB / 1.023 GB, free: 13.18 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.8845, allocations: 149.7 kB / 1.023 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.8847, allocations: 65.95 kB / 1.023 GB, free: 13 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.8847, allocations: 0 / 1.023 GB, free: 13 MB / 0.6511 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005341/0.8852, allocations: 323.2 kB / 1.024 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 6.665e-05/0.8853, allocations: 74.08 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.8853, allocations: 4 kB / 1.024 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.8853, allocations: 0 / 1.024 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.8855, allocations: 31.91 kB / 1.024 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.8855, allocations: 0 / 1.024 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003721/0.8859, allocations: 52 kB / 1.024 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.683e-05/0.886, allocations: 51.3 kB / 1.024 GB, free: 12.52 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001312/0.8861, allocations: 127.3 kB / 1.024 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002996/0.8864, allocations: 212 kB / 1.024 GB, free: 12.21 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.335e-05/0.8865, allocations: 23.72 kB / 1.024 GB, free: 12.19 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.816e-05/0.8865, allocations: 33.09 kB / 1.024 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.8866, allocations: 0 / 1.024 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.8866, allocations: 0 / 1.024 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.8866, allocations: 11.98 kB / 1.024 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006816/0.8873, allocations: 0.521 MB / 1.025 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.8873, allocations: 0 / 1.025 GB, free: 11.65 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.995e-05/0.8873, allocations: 7 kB / 1.025 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.8873, allocations: 4 kB / 1.025 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.8874, allocations: 7.984 kB / 1.025 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.8874, allocations: 0 / 1.025 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.8874, allocations: 7.984 kB / 1.025 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003499/0.8877, allocations: 309.5 kB / 1.025 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001693/0.8879, allocations: 155.6 kB / 1.025 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.332e-05/0.888, allocations: 11.8 kB / 1.025 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.8882, allocations: 8 kB / 1.025 GB, free: 11.17 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.907e-05/0.8882, allocations: 15.97 kB / 1.025 GB, free: 11.15 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.309e-05/0.8883, allocations: 31.55 kB / 1.025 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001624/0.8885, allocations: 192.4 kB / 1.025 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8885, allocations: 0 / 1.025 GB, free: 10.97 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003175/0.8888, allocations: 51.88 kB / 1.025 GB, free: 10.92 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$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.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.year) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006668/0.8895, allocations: 0.8628 MB / 1.026 GB, free: 10.07 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004356/0.8899, allocations: 328.1 kB / 1.027 GB, free: 9.797 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.8899, allocations: 0 / 1.027 GB, free: 9.797 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.8901, allocations: 64.8 kB / 1.027 GB, free: 9.75 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002391/0.8903, allocations: 20.69 kB / 1.027 GB, free: 9.73 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007066/0.891, allocations: 324.8 kB / 1.027 GB, free: 9.41 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.8914, allocations: 0.755 MB / 1.028 GB, free: 8.633 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001369/0.8915, allocations: 33.2 kB / 1.028 GB, free: 8.598 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.8917, allocations: 50.72 kB / 1.028 GB, free: 8.562 MB / 0.6511 GB Notification: Performance of SimCode: time 1.543e-06/0.8917, allocations: 0 / 1.028 GB, free: 8.562 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0236/0.9153, allocations: 4.984 MB / 1.033 GB, free: 3.59 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/0.9155, allocations: 141.6 kB / 1.033 GB, free: 3.398 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.484/2.399, allocations: 0 / 1.033 GB, free: 3.398 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)