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.418/1.418, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001441/0.001441, allocations: 185.8 kB / 326.5 MB, free: 2.238 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.916/1.916, allocations: 205.4 MB / 0.5775 GB, free: 20.26 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.0008705/0.0008701, allocations: 88.67 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003496, allocations: 15.44 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2444, allocations: 106.3 MB / 0.9001 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001754/0.2462, allocations: 1.183 MB / 0.9013 GB, free: 62.7 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009664/0.2472, allocations: 399.8 kB / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.851e-05/0.2474, allocations: 0 / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 4.4e-05/0.2474, allocations: 4 kB / 0.9017 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.2476, allocations: 27.89 kB / 0.9017 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007831/0.2484, allocations: 208.4 kB / 0.9019 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002687/0.2486, allocations: 151.8 kB / 0.902 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 6.798e-05/0.2487, allocations: 8 kB / 0.9021 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003011/0.249, allocations: 159.6 kB / 0.9022 GB, free: 61.76 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.2493, allocations: 127.7 kB / 0.9023 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 6.648e-05/0.2493, allocations: 11.94 kB / 0.9023 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.24e-05/0.2494, allocations: 12 kB / 0.9023 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 9.149e-05/0.2495, allocations: 79.78 kB / 0.9024 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.198e-05/0.2496, allocations: 65.58 kB / 0.9025 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.2498, allocations: 207.8 kB / 0.9027 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2498, allocations: 0 / 0.9027 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.895e-06/0.2498, allocations: 0 / 0.9027 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.237e-06/0.2498, allocations: 0 / 0.9027 GB, free: 61.26 MB / 0.6042 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.00116/0.251, allocations: 0.6104 MB / 0.9033 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.2511, allocations: 8.031 kB / 0.9033 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.833e-05/0.2511, allocations: 38.55 kB / 0.9033 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.2513, allocations: 35.58 kB / 0.9034 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003442/0.2516, allocations: 250.6 kB / 0.9036 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.2517, allocations: 12 kB / 0.9036 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.822e-05/0.2517, allocations: 23.92 kB / 0.9036 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002879/0.252, allocations: 145.5 kB / 0.9038 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.252, allocations: 4 kB / 0.9038 GB, free: 60.02 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.55e-05/0.2521, allocations: 4 kB / 0.9038 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-06/0.2521, allocations: 0 / 0.9038 GB, free: 60.01 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001239/0.2522, allocations: 47.97 kB / 0.9038 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003359/0.2526, allocations: 313.3 kB / 0.9041 GB, free: 59.61 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002633/0.2528, allocations: 134.6 kB / 0.9043 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.2529, allocations: 384 / 0.9043 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004259/0.2533, allocations: 214.5 kB / 0.9045 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=18): time 2.465e-06/0.2533, allocations: 0 / 0.9045 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=18): time 0.0005331/0.2539, allocations: 277 kB / 0.9047 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.2539, allocations: 63.41 kB / 0.9048 GB, free: 58.9 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.2542, allocations: 286.9 kB / 0.9051 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.181e-05/0.2542, allocations: 45.69 kB / 0.9051 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.052e-05/0.2543, allocations: 85.14 kB / 0.9052 GB, free: 58.47 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.802e-05/0.2544, allocations: 47.44 kB / 0.9052 GB, free: 58.42 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.2544, allocations: 8 kB / 0.9052 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.173e-05/0.2545, allocations: 330.8 kB / 0.9055 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.2547, allocations: 88.17 kB / 0.9056 GB, free: 57.99 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.2549, allocations: 154.3 kB / 0.9058 GB, free: 57.82 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002109/0.2551, allocations: 147.1 kB / 0.9059 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.2551, allocations: 4 kB / 0.9059 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005928/0.2557, allocations: 415.1 kB / 0.9063 GB, free: 57.24 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.146e-05/0.2558, allocations: 74.2 kB / 0.9064 GB, free: 57.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.2558, allocations: 4 kB / 0.9064 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.2558, allocations: 4 kB / 0.9064 GB, free: 57.15 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.256, allocations: 35.84 kB / 0.9064 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.256, allocations: 4 kB / 0.9064 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005182/0.2566, allocations: 71.98 kB / 0.9065 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.071e-05/0.2566, allocations: 47.98 kB / 0.9066 GB, free: 56.99 MB / 0.6042 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 () * Number of clocked 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.0001857/0.2568, allocations: 177.7 kB / 0.9067 GB, free: 56.81 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.456e-05/0.2569, allocations: 23.72 kB / 0.9067 GB, free: 56.79 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.783e-05/0.257, allocations: 38.19 kB / 0.9068 GB, free: 56.75 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.257, allocations: 4 kB / 0.9068 GB, free: 56.75 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.257, allocations: 0 / 0.9068 GB, free: 56.75 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.257, allocations: 0 / 0.9068 GB, free: 56.75 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007613/0.2578, allocations: 0.5606 MB / 0.9073 GB, free: 56.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.2578, allocations: 0 / 0.9073 GB, free: 56.13 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.489e-05/0.2578, allocations: 8 kB / 0.9073 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.2578, allocations: 0 / 0.9073 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.2579, allocations: 19.98 kB / 0.9074 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.2579, allocations: 7.984 kB / 0.9074 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2579, allocations: 3.938 kB / 0.9074 GB, free: 56.09 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003924/0.2583, allocations: 315 kB / 0.9077 GB, free: 55.77 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.2585, allocations: 156.6 kB / 0.9078 GB, free: 55.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.657e-05/0.2585, allocations: 8 kB / 0.9078 GB, free: 55.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/0.2587, allocations: 15.98 kB / 0.9078 GB, free: 55.57 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.006e-05/0.2588, allocations: 19.97 kB / 0.9079 GB, free: 55.55 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.143e-05/0.2589, allocations: 31.98 kB / 0.9079 GB, free: 55.52 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001616/0.259, allocations: 205.9 kB / 0.9081 GB, free: 55.32 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.259, allocations: 0 / 0.9081 GB, free: 55.32 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003148/0.2594, allocations: 48 kB / 0.9081 GB, free: 55.27 MB / 0.6042 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) * Number of clocked states: 0 () * 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.0006064/0.26, allocations: 0.8766 MB / 0.909 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005077/0.2605, allocations: 338.8 kB / 0.9093 GB, free: 54.02 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2605, allocations: 0 / 0.9093 GB, free: 54.02 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.2607, allocations: 75.81 kB / 0.9094 GB, free: 53.94 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.261, allocations: 18.59 kB / 0.9094 GB, free: 53.92 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.2623, allocations: 1.612 MB / 0.911 GB, free: 52.23 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002196/0.2625, allocations: 0.7436 MB / 0.9117 GB, free: 51.46 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001505/0.2627, allocations: 45.41 kB / 0.9117 GB, free: 51.42 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.2628, allocations: 47.41 kB / 0.9118 GB, free: 51.38 MB / 0.6042 GB Notification: Performance of SimCode: time 4.41e-07/0.2628, allocations: 0 / 0.9118 GB, free: 51.38 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01838/0.2812, allocations: 4.98 MB / 0.9167 GB, free: 46.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000148/0.2814, allocations: 194.9 kB / 0.9168 GB, free: 46.29 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.637/1.918, allocations: 0 / 0.9168 GB, free: 46.29 MB / 0.6042 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)