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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 191.7 kB / 16.13 MB, free: 6.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.517/2.517, allocations: 461.8 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 74.92 kB / 0.8985 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2712, allocations: 157.4 MB / 1.052 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002738/0.274, allocations: 1.576 MB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001287/0.2753, allocations: 0.593 MB / 1.054 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.886e-05/0.2754, allocations: 3.938 kB / 1.054 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.2755, allocations: 7.922 kB / 1.054 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.2756, allocations: 27.84 kB / 1.054 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007594/0.2764, allocations: 286.5 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004402/0.2769, allocations: 447.4 kB / 1.055 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.885e-05/0.2769, allocations: 7.984 kB / 1.055 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004631/0.2774, allocations: 315 kB / 1.055 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002998/0.2777, allocations: 163.2 kB / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001135/0.2778, allocations: 16 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.545e-05/0.2779, allocations: 12 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.2781, allocations: 115.6 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.2783, allocations: 182.8 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004238/0.2787, allocations: 422.9 kB / 1.056 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.2788, allocations: 4 kB / 1.056 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.22e-07/0.2788, allocations: 0 / 1.056 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.274e-05/0.2788, allocations: 0 / 1.056 GB, free: 4.082 MB / 0.8106 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.001283/0.2801, allocations: 0.8587 MB / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.2801, allocations: 11.97 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.055e-05/0.2802, allocations: 38.75 kB / 1.057 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.2803, allocations: 52.55 kB / 1.057 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.2807, allocations: 310.1 kB / 1.057 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.925e-05/0.2807, allocations: 20.36 kB / 1.057 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.573e-05/0.2808, allocations: 28.36 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.2818, allocations: 206 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.2819, allocations: 3.938 kB / 1.058 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.173e-05/0.2819, allocations: 7.984 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.2819, allocations: 4 kB / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007973/0.2827, allocations: 95.92 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004067/0.2831, allocations: 397.2 kB / 1.058 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.2842, allocations: 182.4 kB / 1.058 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007674/0.285, allocations: 112.8 kB / 1.058 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.285, allocations: 4 kB / 1.058 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009522/0.286, allocations: 231 kB / 1.059 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.613e-06/0.286, allocations: 0 / 1.059 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.002593/0.2886, allocations: 479.6 kB / 1.059 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.2886, allocations: 67.33 kB / 1.059 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003537/0.289, allocations: 409.9 kB / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.648e-05/0.289, allocations: 45.69 kB / 1.06 GB, free: 332 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.189e-05/0.2891, allocations: 93.45 kB / 1.06 GB, free: 236 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.2892, allocations: 31.61 kB / 1.06 GB, free: 204 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/0.2894, allocations: 137.2 kB / 1.06 GB, free: 60 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.948e-05/0.2895, allocations: 318.8 kB / 1.06 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/0.2897, allocations: 123.9 kB / 1.06 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002842/0.29, allocations: 165.9 kB / 1.06 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003567/0.2904, allocations: 287.1 kB / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.2904, allocations: 0 / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008051/0.2912, allocations: 0.4897 MB / 1.061 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.834e-05/0.2913, allocations: 91.31 kB / 1.061 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.2913, allocations: 0 / 1.061 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.2913, allocations: 4 kB / 1.061 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.2915, allocations: 23.86 kB / 1.061 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.2915, allocations: 4 kB / 1.061 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005228/0.2921, allocations: 67.97 kB / 1.061 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.252e-05/0.2921, allocations: 55.98 kB / 1.061 GB, free: 14.36 MB / 0.8262 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.0002143/0.2924, allocations: 201.7 kB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.114e-05/0.2924, allocations: 43.47 kB / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.061e-05/0.2925, allocations: 39.73 kB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2925, allocations: 0 / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.2925, allocations: 0 / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2925, allocations: 4 kB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00234/0.2949, allocations: 0.7441 MB / 1.062 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.331e-06/0.2949, allocations: 3.984 kB / 1.062 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.635e-05/0.295, allocations: 8 kB / 1.062 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.295, allocations: 0 / 1.062 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.655e-05/0.295, allocations: 23.97 kB / 1.063 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.295, allocations: 4 kB / 1.063 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.295, allocations: 0 / 1.063 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.2969, allocations: 477.6 kB / 1.063 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002612/0.2971, allocations: 204.4 kB / 1.063 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.566e-05/0.2972, allocations: 12 kB / 1.063 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004954/0.2977, allocations: 31.91 kB / 1.063 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.2978, allocations: 7.984 kB / 1.063 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.482e-05/0.2979, allocations: 63.97 kB / 1.063 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002934/0.2982, allocations: 295.1 kB / 1.064 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2982, allocations: 0 / 1.064 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004016/0.2986, allocations: 67.98 kB / 1.064 GB, free: 12.06 MB / 0.8262 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.002121/0.3007, allocations: 1.01 MB / 1.065 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001219/0.3019, allocations: 442.8 kB / 1.065 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.302, allocations: 4.062 kB / 1.065 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008115/0.3028, allocations: 115.9 kB / 1.065 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003531/0.3031, allocations: 32.84 kB / 1.065 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004/0.3071, allocations: 2.883 MB / 1.068 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.3075, allocations: 0.775 MB / 1.069 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.282e-05/0.3075, allocations: 13.08 kB / 1.069 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.375e-05/0.3076, allocations: 27.42 kB / 1.069 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3076, allocations: 0 / 1.069 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.482/1.79, allocations: 6.091 MB / 1.075 GB, free: 480 kB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001925/1.79, allocations: 212.5 kB / 1.075 GB, free: 204 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.322/4.112, allocations: 0 / 1.075 GB, free: 204 kB / 0.8262 GB (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 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)