Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime") translateModel(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8465/0.8465, allocations: 143.4 MB / 158.3 MB, free: 5.805 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 173.1 kB / 191.5 MB, free: 5.762 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 223.2 MB / 447.7 MB, free: 6.523 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009379/0.0009379, allocations: 96.25 kB / 0.5188 GB, free: 2.871 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001932/0.001931, allocations: 264.9 kB / 0.6005 GB, free: 48.97 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004527/0.0004526, allocations: 16 kB / 0.6929 GB, free: 2.309 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4809/0.4813, allocations: 82.78 MB / 0.7737 GB, free: 26.21 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1688/0.6502, allocations: 110.5 MB / 0.8816 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003358/0.6506, allocations: 75.78 kB / 0.8817 GB, free: 11.48 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01401/0.6646, allocations: 4.488 MB / 0.8861 GB, free: 6.988 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.383e-06/0.6647, allocations: 0 / 0.8861 GB, free: 6.988 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.131e-05/0.6647, allocations: 4 kB / 0.8861 GB, free: 6.984 MB / 0.5417 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.001066/0.6658, allocations: 0.6181 MB / 0.8867 GB, free: 6.293 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.556e-05/0.6658, allocations: 8.031 kB / 0.8867 GB, free: 6.285 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.666, allocations: 35.72 kB / 0.8867 GB, free: 6.25 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000434/0.6664, allocations: 250.6 kB / 0.887 GB, free: 5.965 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.354e-05/0.6665, allocations: 11.94 kB / 0.887 GB, free: 5.953 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.873e-05/0.6666, allocations: 20 kB / 0.887 GB, free: 5.934 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003276/0.6669, allocations: 143 kB / 0.8871 GB, free: 5.789 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.6669, allocations: 4 kB / 0.8871 GB, free: 5.785 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.667e-05/0.667, allocations: 0 / 0.8871 GB, free: 5.785 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.667, allocations: 0 / 0.8871 GB, free: 5.785 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/0.6671, allocations: 47.97 kB / 0.8872 GB, free: 5.738 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004333/0.6676, allocations: 329.2 kB / 0.8875 GB, free: 5.367 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003039/0.6679, allocations: 134.6 kB / 0.8876 GB, free: 5.227 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.6679, allocations: 7.953 kB / 0.8876 GB, free: 5.219 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004707/0.6684, allocations: 220 kB / 0.8879 GB, free: 4.992 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=18): time 1.733e-06/0.6684, allocations: 0 / 0.8879 GB, free: 4.992 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18): time 0.0006514/0.6691, allocations: 267.7 kB / 0.8881 GB, free: 4.727 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.9e-05/0.6691, allocations: 59.41 kB / 0.8882 GB, free: 4.656 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003377/0.6695, allocations: 254.1 kB / 0.8884 GB, free: 4.41 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.019e-05/0.6696, allocations: 45.64 kB / 0.8884 GB, free: 4.359 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.6697, allocations: 93.05 kB / 0.8885 GB, free: 4.266 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 6.521e-05/0.6697, allocations: 39.59 kB / 0.8886 GB, free: 4.227 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.862e-05/0.6698, allocations: 11.98 kB / 0.8886 GB, free: 4.215 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000204/0.67, allocations: 322.8 kB / 0.8889 GB, free: 3.891 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000299/0.6703, allocations: 104.2 kB / 0.889 GB, free: 3.785 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003426/0.6707, allocations: 162.9 kB / 0.8891 GB, free: 3.605 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002959/0.671, allocations: 152.1 kB / 0.8893 GB, free: 3.441 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.671, allocations: 0 / 0.8893 GB, free: 3.441 MB / 0.5417 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008447/0.6718, allocations: 420.8 kB / 0.8897 GB, free: 3.016 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.672, allocations: 83.53 kB / 0.8898 GB, free: 2.922 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.672, allocations: 0 / 0.8898 GB, free: 2.922 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.712e-05/0.672, allocations: 7.938 kB / 0.8898 GB, free: 2.914 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/0.6722, allocations: 23.97 kB / 0.8898 GB, free: 2.891 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.623e-05/0.6722, allocations: 7.938 kB / 0.8898 GB, free: 2.883 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003765/0.6726, allocations: 47.81 kB / 0.8899 GB, free: 2.836 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.202e-05/0.6727, allocations: 59.98 kB / 0.8899 GB, free: 2.777 MB / 0.5417 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.0002526/0.673, allocations: 173.7 kB / 0.8901 GB, free: 2.598 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.969e-05/0.673, allocations: 23.72 kB / 0.8901 GB, free: 2.574 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.282e-05/0.6731, allocations: 38.2 kB / 0.8901 GB, free: 2.535 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.6731, allocations: 0 / 0.8901 GB, free: 2.535 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.6731, allocations: 3.938 kB / 0.8901 GB, free: 2.531 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.6731, allocations: 4 kB / 0.8901 GB, free: 2.527 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009573/0.6741, allocations: 0.5586 MB / 0.8907 GB, free: 1.914 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.6741, allocations: 4 kB / 0.8907 GB, free: 1.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.498e-05/0.6742, allocations: 11.92 kB / 0.8907 GB, free: 1.898 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.6742, allocations: 4 kB / 0.8907 GB, free: 1.895 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.6742, allocations: 7.984 kB / 0.8907 GB, free: 1.887 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.6742, allocations: 0 / 0.8907 GB, free: 1.887 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.6742, allocations: 0 / 0.8907 GB, free: 1.887 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005034/0.6747, allocations: 315.1 kB / 0.891 GB, free: 1.562 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002355/0.675, allocations: 164.5 kB / 0.8912 GB, free: 1.383 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.933e-05/0.6751, allocations: 15.98 kB / 0.8912 GB, free: 1.367 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.6752, allocations: 8 kB / 0.8912 GB, free: 1.359 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.694e-05/0.6753, allocations: 19.97 kB / 0.8912 GB, free: 1.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.194e-05/0.6754, allocations: 27.98 kB / 0.8912 GB, free: 1.312 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002291/0.6756, allocations: 205.9 kB / 0.8914 GB, free: 1.109 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6756, allocations: 0 / 0.8914 GB, free: 1.109 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003555/0.676, allocations: 60.38 kB / 0.8915 GB, free: 1.051 MB / 0.5417 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.0002597/0.6763, allocations: 124.9 kB / 0.8916 GB, free: 0.9219 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0007284/0.677, allocations: 352.5 kB / 0.892 GB, free: 0.5547 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.677, allocations: 0 / 0.892 GB, free: 0.5547 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.6772, allocations: 71.95 kB / 0.892 GB, free: 496 kB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002556/0.6774, allocations: 23.28 kB / 0.892 GB, free: 472 kB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008106/0.6783, allocations: 443.9 kB / 0.8925 GB, free: 16 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.6787, allocations: 0.7515 MB / 0.8932 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0001455/0.6788, allocations: 37.08 kB / 0.8932 GB, free: 15.18 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.6789, allocations: 31.42 kB / 0.8933 GB, free: 15.15 MB / 0.5573 GB Notification: Performance of SimCode: time 4.31e-07/0.6789, allocations: 7.938 kB / 0.8933 GB, free: 15.14 MB / 0.5573 GB Notification: Performance of Templates: time 0.008405/0.6874, allocations: 4.35 MB / 0.8975 GB, free: 10.79 MB / 0.5573 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.sim & ./BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)