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.001004/0.001008, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.0063/0.0063, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.325/1.325, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.552/2.552, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003129/0.0003129, allocations: 11.69 kB / 0.9029 GB, free: 36.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2633, allocations: 159.6 MB / 1.059 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001542/0.2648, allocations: 1.237 MB / 1.06 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001193/0.2661, allocations: 0.6026 MB / 1.061 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.533e-05/0.2661, allocations: 0 / 1.061 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.564e-05/0.2662, allocations: 7.922 kB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.2663, allocations: 19.92 kB / 1.061 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007304/0.2671, allocations: 286.5 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004007/0.2675, allocations: 451.4 kB / 1.061 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.327e-05/0.2676, allocations: 4 kB / 1.061 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004135/0.268, allocations: 307 kB / 1.062 GB, free: 2 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002615/0.2682, allocations: 167.1 kB / 1.062 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.187e-05/0.2683, allocations: 16 kB / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.162e-05/0.2684, allocations: 12 kB / 1.062 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.2685, allocations: 115.6 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001942/0.2687, allocations: 208.5 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.2691, allocations: 414.9 kB / 1.062 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.2691, allocations: 4 kB / 1.062 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2691, allocations: 0 / 1.062 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.2691, allocations: 0 / 1.062 GB, free: 1.074 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.0009346/0.2701, allocations: 0.742 MB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.2701, allocations: 15.91 kB / 1.063 GB, free: 232 kB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.302e-05/0.2702, allocations: 42.73 kB / 1.063 GB, free: 180 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.2703, allocations: 52.47 kB / 1.063 GB, free: 128 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.2706, allocations: 314.2 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.409e-05/0.2707, allocations: 24.36 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.349e-05/0.2708, allocations: 28.34 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009948/0.2718, allocations: 218 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.2718, allocations: 3.938 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.901e-05/0.2718, allocations: 8 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.2718, allocations: 0 / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007879/0.2726, allocations: 115.8 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003916/0.273, allocations: 397.2 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.2741, allocations: 186.5 kB / 1.065 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007559/0.2749, allocations: 124.8 kB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.2749, allocations: 4 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009055/0.2758, allocations: 239 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.683e-06/0.2758, allocations: 4 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.002543/0.2784, allocations: 0.4995 MB / 1.065 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.2784, allocations: 63.41 kB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003608/0.2788, allocations: 417.8 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.419e-05/0.2789, allocations: 37.7 kB / 1.066 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.989e-05/0.2789, allocations: 97.44 kB / 1.066 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.002e-05/0.279, allocations: 35.61 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.344e-05/0.2791, allocations: 33.7 kB / 1.066 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.791e-05/0.2791, allocations: 322.8 kB / 1.066 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002524/0.2794, allocations: 119.9 kB / 1.066 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002744/0.2797, allocations: 177.8 kB / 1.067 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003512/0.28, allocations: 282.8 kB / 1.067 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.2801, allocations: 0 / 1.067 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007611/0.2808, allocations: 497.7 kB / 1.067 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.14e-05/0.2809, allocations: 91.3 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.2809, allocations: 0 / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.2809, allocations: 11.88 kB / 1.067 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.2811, allocations: 24.17 kB / 1.067 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.2811, allocations: 7.938 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005101/0.2816, allocations: 67.8 kB / 1.068 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.726e-05/0.2817, allocations: 59.97 kB / 1.068 GB, free: 11.45 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.0001999/0.2819, allocations: 195.3 kB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.251e-05/0.282, allocations: 47.41 kB / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.734e-05/0.282, allocations: 39.73 kB / 1.068 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-06/0.282, allocations: 0 / 1.068 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.2821, allocations: 0 / 1.068 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2821, allocations: 0 / 1.068 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002124/0.2842, allocations: 0.7637 MB / 1.069 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2842, allocations: 0 / 1.069 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.899e-05/0.2843, allocations: 15.92 kB / 1.069 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.2843, allocations: 3.984 kB / 1.069 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.235e-05/0.2843, allocations: 19.98 kB / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2843, allocations: 0 / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2843, allocations: 0 / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/0.2861, allocations: 0.494 MB / 1.069 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002156/0.2863, allocations: 200.4 kB / 1.069 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.148e-05/0.2864, allocations: 19.92 kB / 1.069 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004795/0.2869, allocations: 31.97 kB / 1.069 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.773e-05/0.2869, allocations: 7.984 kB / 1.069 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.747e-05/0.287, allocations: 63.97 kB / 1.069 GB, free: 9.457 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002731/0.2872, allocations: 295.1 kB / 1.07 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2873, allocations: 0 / 1.07 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003337/0.2876, allocations: 64 kB / 1.07 GB, free: 9.109 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.001999/0.2896, allocations: 1.042 MB / 1.071 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001209/0.2908, allocations: 450.4 kB / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.2908, allocations: 384 / 1.071 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007964/0.2916, allocations: 135.8 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.292, allocations: 29.97 kB / 1.071 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003848/0.2958, allocations: 2.885 MB / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.2962, allocations: 0.7711 MB / 1.075 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.183e-05/0.2962, allocations: 17.08 kB / 1.075 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.203e-05/0.2963, allocations: 23.38 kB / 1.075 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of SimCode: time 1.994e-06/0.2963, allocations: 0 / 1.075 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4495/0.7458, allocations: 6.011 MB / 1.081 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002769/0.7462, allocations: 200.5 kB / 1.081 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.289/3.035, allocations: 0 / 1.081 GB, free: 13.32 MB / 0.8419 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)