Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 106.1 kB / 16.29 MB, free: 6.43 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.00103/0.00103, allocations: 187.9 kB / 17.22 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.208/1.208, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.587/1.587, allocations: 292.3 MB / 0.5495 GB, free: 17.57 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 70.88 kB / 0.6722 GB, free: 6.527 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1991, allocations: 114.5 MB / 0.7841 GB, free: 3.867 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002334/0.2015, allocations: 1.484 MB / 0.7855 GB, free: 2.367 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0008297/0.2023, allocations: 435.2 kB / 0.7859 GB, free: 1.938 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.36e-05/0.2024, allocations: 0 / 0.7859 GB, free: 1.938 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 8.282e-05/0.2025, allocations: 11.88 kB / 0.7859 GB, free: 1.926 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.379e-05/0.2026, allocations: 24.23 kB / 0.786 GB, free: 1.902 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.000597/0.2032, allocations: 254.4 kB / 0.7862 GB, free: 1.656 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.000314/0.2035, allocations: 323.5 kB / 0.7865 GB, free: 1.34 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.536e-05/0.2035, allocations: 11.98 kB / 0.7865 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002395/0.2038, allocations: 195.7 kB / 0.7867 GB, free: 1.137 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002111/0.204, allocations: 116.1 kB / 0.7868 GB, free: 1.023 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 6.8e-05/0.2041, allocations: 16 kB / 0.7868 GB, free: 1.008 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.751e-05/0.2042, allocations: 20 kB / 0.7868 GB, free: 0.9883 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.2043, allocations: 87.77 kB / 0.7869 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.2044, allocations: 127.2 kB / 0.7871 GB, free: 0.7773 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.2047, allocations: 287.4 kB / 0.7873 GB, free: 0.4961 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.2047, allocations: 0 / 0.7873 GB, free: 0.4961 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2047, allocations: 0 / 0.7873 GB, free: 0.4961 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.2047, allocations: 4 kB / 0.7873 GB, free: 0.4922 MB / 0.6544 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.3205/0.5252, allocations: 0.7308 MB / 0.788 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.5253, allocations: 9.625 kB / 0.7881 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.359e-05/0.5254, allocations: 36.36 kB / 0.7881 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.5256, allocations: 266.5 kB / 0.7883 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.596e-05/0.5257, allocations: 16.86 kB / 0.7884 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.719e-05/0.5257, allocations: 19.12 kB / 0.7884 GB, free: 48.43 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007627/0.5265, allocations: 195.4 kB / 0.7886 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.5265, allocations: 0.9375 kB / 0.7886 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.408e-05/0.5265, allocations: 11.88 kB / 0.7886 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.5265, allocations: 0 / 0.7886 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006001/0.5271, allocations: 99.69 kB / 0.7887 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002375/0.5274, allocations: 316.1 kB / 0.789 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007845/0.5282, allocations: 169.6 kB / 0.7891 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005622/0.5288, allocations: 112.2 kB / 0.7892 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.5288, allocations: 2.562 kB / 0.7892 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007414/0.5295, allocations: 217 kB / 0.7894 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.5295, allocations: 0.8438 kB / 0.7894 GB, free: 48.12 MB / 0.6544 GB Notification: Performance of matching and sorting (n=16): time 0.001949/0.5315, allocations: 450.6 kB / 0.7899 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.5315, allocations: 62.12 kB / 0.7899 GB, free: 48.01 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001962/0.5317, allocations: 294.9 kB / 0.7902 GB, free: 47.9 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.263e-05/0.5318, allocations: 38.89 kB / 0.7903 GB, free: 47.87 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.024e-05/0.5318, allocations: 93.78 kB / 0.7903 GB, free: 47.79 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.116e-05/0.5319, allocations: 38.03 kB / 0.7904 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.532, allocations: 95.75 kB / 0.7905 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.056e-05/0.532, allocations: 326.7 kB / 0.7908 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.5322, allocations: 77.42 kB / 0.7909 GB, free: 47.43 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.5324, allocations: 137.4 kB / 0.791 GB, free: 47.38 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002249/0.5326, allocations: 236.1 kB / 0.7912 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.5326, allocations: 0.6562 kB / 0.7912 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004758/0.5331, allocations: 392.3 kB / 0.7916 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.098e-05/0.5331, allocations: 82.61 kB / 0.7917 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.5331, allocations: 4.219 kB / 0.7917 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.5332, allocations: 6.047 kB / 0.7917 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.5333, allocations: 23.09 kB / 0.7917 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.5333, allocations: 4.25 kB / 0.7917 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.5337, allocations: 56.86 kB / 0.7918 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.362e-05/0.5337, allocations: 44.77 kB / 0.7918 GB, free: 47.08 MB / 0.6544 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.0001177/0.5339, allocations: 168.6 kB / 0.792 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.408e-05/0.5339, allocations: 29.44 kB / 0.792 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.245e-05/0.534, allocations: 33.33 kB / 0.792 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.534, allocations: 3.281 kB / 0.792 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.534, allocations: 0 / 0.792 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.534, allocations: 0 / 0.792 GB, free: 46.95 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.5355, allocations: 0.6881 MB / 0.7927 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.5355, allocations: 1.781 kB / 0.7927 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.058e-05/0.5356, allocations: 10.11 kB / 0.7927 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.5356, allocations: 0 / 0.7927 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.693e-05/0.5356, allocations: 22.38 kB / 0.7927 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.5356, allocations: 5.375 kB / 0.7927 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.5356, allocations: 0 / 0.7927 GB, free: 46.64 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.5369, allocations: 453 kB / 0.7932 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.537, allocations: 159.1 kB / 0.7933 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.347e-05/0.5371, allocations: 10.69 kB / 0.7933 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003749/0.5374, allocations: 32.19 kB / 0.7934 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.414e-05/0.5375, allocations: 12.67 kB / 0.7934 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.054e-05/0.5375, allocations: 38.22 kB / 0.7934 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001256/0.5376, allocations: 211 kB / 0.7936 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5377, allocations: 0 / 0.7936 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002686/0.5379, allocations: 51.72 kB / 0.7937 GB, free: 46.3 MB / 0.6544 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 9.923e-05/0.538, allocations: 123.7 kB / 0.7938 GB, free: 46.21 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0008669/0.5389, allocations: 383.1 kB / 0.7941 GB, free: 46.08 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.5389, allocations: 0 / 0.7941 GB, free: 46.08 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0005862/0.5395, allocations: 111.6 kB / 0.7942 GB, free: 46.08 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.5398, allocations: 35.05 kB / 0.7943 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000946/0.5408, allocations: 424 kB / 0.7947 GB, free: 45.89 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001323/0.5409, allocations: 0.742 MB / 0.7954 GB, free: 45.19 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 4.697e-05/0.541, allocations: 13.7 kB / 0.7954 GB, free: 45.19 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.281e-05/0.541, allocations: 14.44 kB / 0.7954 GB, free: 45.18 MB / 0.6544 GB Notification: Performance of SimCode: time 7.02e-07/0.541, allocations: 0 / 0.7954 GB, free: 45.18 MB / 0.6544 GB Notification: Performance of Templates: time 0.005734/0.5467, allocations: 3.663 MB / 0.799 GB, free: 44.94 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.makefile (rm -f Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)