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.411/1.411, allocations: 252 MB / 267 MB, free: 10.96 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.001043/0.001043, allocations: 179.4 kB / 326.6 MB, free: 2.219 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.871/1.871, allocations: 205.4 MB / 0.5777 GB, free: 20.57 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.0008255/0.0008254, allocations: 82.19 kB / 0.6822 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004168/0.0004171, allocations: 10.31 kB / 0.7964 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.299, allocations: 106.3 MB / 0.9003 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002366/0.3014, allocations: 1.191 MB / 0.9015 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.3025, allocations: 399.2 kB / 0.9018 GB, free: 62.62 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.3026, allocations: 0 / 0.9018 GB, free: 62.62 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.3028, allocations: 7.922 kB / 0.9018 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.303, allocations: 27.91 kB / 0.9019 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009163/0.3039, allocations: 212.3 kB / 0.9021 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0004924/0.3044, allocations: 243.5 kB / 0.9023 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.3045, allocations: 8 kB / 0.9023 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005302/0.305, allocations: 215.7 kB / 0.9025 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003658/0.3054, allocations: 135.7 kB / 0.9027 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001272/0.3056, allocations: 8 kB / 0.9027 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.949e-05/0.3057, allocations: 12 kB / 0.9027 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.3058, allocations: 83.72 kB / 0.9028 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.3059, allocations: 69.58 kB / 0.9028 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002626/0.3062, allocations: 199.9 kB / 0.903 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.3062, allocations: 0 / 0.903 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.624e-06/0.3062, allocations: 0 / 0.903 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.3062, allocations: 0 / 0.903 GB, free: 61.42 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.001204/0.3074, allocations: 0.6181 MB / 0.9036 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.863e-05/0.3075, allocations: 12.03 kB / 0.9036 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.866e-05/0.3075, allocations: 34.56 kB / 0.9037 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.576e-05/0.3076, allocations: 39.58 kB / 0.9037 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002821/0.3079, allocations: 246.6 kB / 0.9039 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.139e-05/0.308, allocations: 15.98 kB / 0.9039 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.882e-05/0.308, allocations: 12 kB / 0.904 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.3083, allocations: 149.5 kB / 0.9041 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.3084, allocations: 0 / 0.9041 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.735e-05/0.3084, allocations: 3.984 kB / 0.9041 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.3084, allocations: 8 kB / 0.9041 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/0.3085, allocations: 47.91 kB / 0.9042 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003219/0.3089, allocations: 321.3 kB / 0.9045 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002623/0.3091, allocations: 126.6 kB / 0.9046 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.3093, allocations: 61.2 kB / 0.9046 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.31e-05/0.3093, allocations: 4 kB / 0.9046 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004901/0.3098, allocations: 214.9 kB / 0.9049 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=18): time 1.282e-06/0.3098, allocations: 0 / 0.9049 GB, free: 59.33 MB / 0.6042 GB Notification: Performance of matching and sorting (n=18): time 0.0005449/0.3104, allocations: 277 kB / 0.9051 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.3104, allocations: 63.41 kB / 0.9052 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002104/0.3106, allocations: 279 kB / 0.9054 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.63e-05/0.3107, allocations: 45.69 kB / 0.9055 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.605e-05/0.3108, allocations: 89.14 kB / 0.9056 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.458e-05/0.3108, allocations: 47.44 kB / 0.9056 GB, free: 58.51 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.977e-05/0.3108, allocations: 8 kB / 0.9056 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.642e-05/0.3109, allocations: 326.7 kB / 0.9059 GB, free: 58.17 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.3111, allocations: 96.17 kB / 0.906 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002048/0.3113, allocations: 146.4 kB / 0.9062 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001938/0.3115, allocations: 160.1 kB / 0.9063 GB, free: 57.74 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.3116, allocations: 0 / 0.9063 GB, free: 57.74 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005834/0.3121, allocations: 415.8 kB / 0.9067 GB, free: 57.32 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.791e-05/0.3122, allocations: 71.39 kB / 0.9068 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3123, allocations: 0 / 0.9068 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.3123, allocations: 4 kB / 0.9068 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.3125, allocations: 31.91 kB / 0.9068 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.3125, allocations: 4 kB / 0.9068 GB, free: 57.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005152/0.313, allocations: 68.05 kB / 0.9069 GB, free: 57.13 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.862e-05/0.3131, allocations: 47.98 kB / 0.9069 GB, free: 57.08 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.0001821/0.3133, allocations: 189.6 kB / 0.9071 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.456e-05/0.3133, allocations: 23.72 kB / 0.9071 GB, free: 56.86 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.86e-05/0.3134, allocations: 26.25 kB / 0.9072 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.3134, allocations: 4 kB / 0.9072 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3134, allocations: 4 kB / 0.9072 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3134, allocations: 0 / 0.9072 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007558/0.3142, allocations: 0.5629 MB / 0.9077 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3142, allocations: 0 / 0.9077 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.024e-05/0.3143, allocations: 8 kB / 0.9077 GB, free: 56.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.3143, allocations: 4 kB / 0.9077 GB, free: 56.2 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.3143, allocations: 15.98 kB / 0.9077 GB, free: 56.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.3143, allocations: 7.922 kB / 0.9078 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3143, allocations: 0 / 0.9078 GB, free: 56.18 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003291/0.3146, allocations: 322.9 kB / 0.9081 GB, free: 55.85 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000143/0.3148, allocations: 160.6 kB / 0.9082 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.863e-05/0.3149, allocations: 8 kB / 0.9082 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.3151, allocations: 19.98 kB / 0.9082 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.949e-05/0.3151, allocations: 15.97 kB / 0.9083 GB, free: 55.63 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.247e-05/0.3152, allocations: 31.98 kB / 0.9083 GB, free: 55.6 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001485/0.3153, allocations: 205.9 kB / 0.9085 GB, free: 55.4 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3153, allocations: 0 / 0.9085 GB, free: 55.4 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002726/0.3156, allocations: 51.95 kB / 0.9085 GB, free: 55.35 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.0006256/0.3162, allocations: 0.8687 MB / 0.9094 GB, free: 54.45 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004628/0.3167, allocations: 338.8 kB / 0.9097 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3167, allocations: 0 / 0.9097 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.3169, allocations: 75.86 kB / 0.9098 GB, free: 54.02 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00034/0.3172, allocations: 27.39 kB / 0.9098 GB, free: 54 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.319, allocations: 1.175 MB / 0.9109 GB, free: 52.75 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001965/0.3192, allocations: 0.739 MB / 0.9117 GB, free: 51.99 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001341/0.3194, allocations: 41.42 kB / 0.9117 GB, free: 51.95 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.3195, allocations: 55.41 kB / 0.9118 GB, free: 51.9 MB / 0.6042 GB Notification: Performance of SimCode: time 1.152e-06/0.3195, allocations: 0 / 0.9118 GB, free: 51.9 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.017/0.3365, allocations: 5.014 MB / 0.9167 GB, free: 47.03 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002359/0.3368, allocations: 190.2 kB / 0.9168 GB, free: 46.79 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.798/2.135, allocations: 0 / 0.9168 GB, free: 46.79 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)