Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_maint_8_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 8.0.1-maint.8.0.x/package.mo): time 1.761/1.761, allocations: 288.2 MB / 303.2 MB, free: 8.086 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 174.2 kB / 371.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.804/1.804, allocations: 205.4 MB / 0.6305 GB, free: 10 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001055/0.001055, allocations: 90.7 kB / 0.7439 GB, free: 5.926 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005767/0.0005768, allocations: 10.06 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2654, allocations: 115.3 MB / 0.9795 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001518/0.2669, allocations: 1.175 MB / 0.9806 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007848/0.2677, allocations: 396.1 kB / 0.981 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.556e-05/0.2678, allocations: 0 / 0.981 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 4.481e-05/0.2679, allocations: 7.922 kB / 0.981 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.268, allocations: 19.97 kB / 0.981 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006105/0.2686, allocations: 206.8 kB / 0.9812 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001786/0.2688, allocations: 147.8 kB / 0.9814 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.887e-05/0.2688, allocations: 4 kB / 0.9814 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002286/0.2691, allocations: 175.6 kB / 0.9815 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.2693, allocations: 119.8 kB / 0.9816 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.883e-05/0.2693, allocations: 8 kB / 0.9816 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.502e-05/0.2694, allocations: 12 kB / 0.9817 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.662e-05/0.2695, allocations: 71.78 kB / 0.9817 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.983e-05/0.2696, allocations: 69.58 kB / 0.9818 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001957/0.2698, allocations: 207.8 kB / 0.982 GB, free: 25 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.2698, allocations: 0 / 0.982 GB, free: 25 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2698, allocations: 0 / 0.982 GB, free: 25 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.2698, allocations: 0 / 0.982 GB, free: 25 MB / 0.6198 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.0009669/0.2708, allocations: 0.6141 MB / 0.9826 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.2708, allocations: 16 kB / 0.9826 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.652e-05/0.2709, allocations: 38.56 kB / 0.9826 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.9e-05/0.2709, allocations: 31.72 kB / 0.9827 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003133/0.2713, allocations: 258.4 kB / 0.9829 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.2713, allocations: 15.94 kB / 0.9829 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.894e-05/0.2714, allocations: 19.98 kB / 0.983 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.2716, allocations: 150.5 kB / 0.9831 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.2716, allocations: 0 / 0.9831 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.558e-05/0.2717, allocations: 4 kB / 0.9831 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.2717, allocations: 4 kB / 0.9831 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.2718, allocations: 43.91 kB / 0.9832 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002789/0.2721, allocations: 317.3 kB / 0.9835 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002309/0.2723, allocations: 134.6 kB / 0.9836 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.2724, allocations: 4 kB / 0.9836 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004087/0.2728, allocations: 221.8 kB / 0.9838 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=18): time 1.532e-06/0.2728, allocations: 0 / 0.9838 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=18): time 0.0005116/0.2733, allocations: 265.2 kB / 0.984 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.2734, allocations: 59.41 kB / 0.9841 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.2736, allocations: 290.9 kB / 0.9844 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.298e-05/0.2736, allocations: 37.7 kB / 0.9844 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.383e-05/0.2737, allocations: 93.12 kB / 0.9845 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.903e-05/0.2737, allocations: 39.52 kB / 0.9845 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.867e-05/0.2738, allocations: 15.98 kB / 0.9846 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.939e-05/0.2738, allocations: 326.8 kB / 0.9849 GB, free: 21.8 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001799/0.274, allocations: 88.19 kB / 0.985 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001969/0.2742, allocations: 150.3 kB / 0.9851 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001851/0.2744, allocations: 150 kB / 0.9852 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.2744, allocations: 4 kB / 0.9852 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005461/0.275, allocations: 411.1 kB / 0.9856 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.919e-05/0.275, allocations: 76.95 kB / 0.9857 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.275, allocations: 0 / 0.9857 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.2751, allocations: 8.172 kB / 0.9857 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.2752, allocations: 27.92 kB / 0.9857 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.2752, allocations: 4 kB / 0.9858 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004775/0.2757, allocations: 71.73 kB / 0.9858 GB, free: 20.77 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.97e-05/0.2758, allocations: 63.97 kB / 0.9859 GB, free: 20.71 MB / 0.6198 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.0001501/0.276, allocations: 169.8 kB / 0.986 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.493e-05/0.276, allocations: 27.62 kB / 0.9861 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.851e-05/0.2761, allocations: 26.25 kB / 0.9861 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2761, allocations: 4 kB / 0.9861 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.2761, allocations: 0 / 0.9861 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.2761, allocations: 7.922 kB / 0.9861 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006736/0.2768, allocations: 0.5606 MB / 0.9867 GB, free: 19.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2768, allocations: 4 kB / 0.9867 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.967e-05/0.2768, allocations: 11.94 kB / 0.9867 GB, free: 19.83 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2768, allocations: 0 / 0.9867 GB, free: 19.83 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/0.2769, allocations: 19.97 kB / 0.9867 GB, free: 19.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2769, allocations: 0 / 0.9867 GB, free: 19.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2769, allocations: 0 / 0.9867 GB, free: 19.81 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003543/0.2772, allocations: 320.2 kB / 0.987 GB, free: 19.48 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.2774, allocations: 160.6 kB / 0.9871 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.144e-05/0.2775, allocations: 12 kB / 0.9872 GB, free: 19.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.2777, allocations: 11.98 kB / 0.9872 GB, free: 19.29 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.608e-05/0.2777, allocations: 19.97 kB / 0.9872 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-05/0.2778, allocations: 27.98 kB / 0.9872 GB, free: 19.24 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001339/0.2779, allocations: 205.9 kB / 0.9874 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2779, allocations: 4 kB / 0.9874 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003006/0.2782, allocations: 44 kB / 0.9875 GB, free: 18.99 MB / 0.6198 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.0005553/0.2788, allocations: 0.8803 MB / 0.9883 GB, free: 18.08 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004498/0.2792, allocations: 342.7 kB / 0.9886 GB, free: 17.72 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2792, allocations: 0 / 0.9886 GB, free: 17.72 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.2794, allocations: 75.89 kB / 0.9887 GB, free: 17.65 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.2796, allocations: 21.25 kB / 0.9887 GB, free: 17.62 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.2807, allocations: 1.601 MB / 0.9903 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/0.2809, allocations: 0.7516 MB / 0.991 GB, free: 15.17 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001507/0.281, allocations: 33.44 kB / 0.9911 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.2812, allocations: 43.41 kB / 0.9911 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of SimCode: time 3.21e-07/0.2812, allocations: 4 kB / 0.9911 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01541/0.2966, allocations: 4.989 MB / 0.996 GB, free: 10.25 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/0.2968, allocations: 191.5 kB / 0.9962 GB, free: 10.01 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/1.921, allocations: 0 / 0.9962 GB, free: 10.01 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)