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.8146/0.8146, allocations: 141.8 MB / 149.3 MB, free: 9.215 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.001079/0.001079, allocations: 176.9 kB / 182.2 MB, free: 9.465 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.667/1.667, allocations: 221.5 MB / 436.4 MB, free: 13.32 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.0008186/0.0008187, allocations: 91.98 kB / 0.5074 GB, free: 10.14 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00175/0.00175, allocations: 268.9 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.638e-05/2.64e-05, allocations: 4 kB / 0.6765 GB, free: 12.86 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4188/0.4188, allocations: 82.77 MB / 0.7573 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1397/0.5586, allocations: 109.8 MB / 0.8646 GB, free: 2.098 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.5589, allocations: 71.84 kB / 0.8646 GB, free: 2.031 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01309/0.572, allocations: 4.464 MB / 0.869 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.423e-06/0.572, allocations: 0 / 0.869 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.292e-05/0.5721, allocations: 4 kB / 0.869 GB, free: 13.57 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.0008036/0.5729, allocations: 0.5711 MB / 0.8695 GB, free: 12.93 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.5729, allocations: 12.03 kB / 0.8696 GB, free: 12.92 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.945e-05/0.573, allocations: 31.62 kB / 0.8696 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003062/0.5733, allocations: 250.6 kB / 0.8698 GB, free: 12.6 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.544e-05/0.5734, allocations: 15.94 kB / 0.8698 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.842e-05/0.5734, allocations: 12 kB / 0.8699 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001122/0.5736, allocations: 39.98 kB / 0.8699 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000211/0.5738, allocations: 135.5 kB / 0.87 GB, free: 12.4 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.5738, allocations: 3.984 kB / 0.87 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.5738, allocations: 4 kB / 0.87 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.5738, allocations: 7.984 kB / 0.87 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003166/0.5742, allocations: 301.8 kB / 0.8703 GB, free: 12.05 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.5744, allocations: 124.5 kB / 0.8704 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.17e-05/0.5744, allocations: 52.84 kB / 0.8705 GB, free: 11.87 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.5745, allocations: 3.984 kB / 0.8705 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003579/0.5748, allocations: 212.1 kB / 0.8707 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=18): time 1.603e-06/0.5749, allocations: 0 / 0.8707 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18): time 0.0003829/0.5752, allocations: 210.2 kB / 0.8709 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.241e-05/0.5753, allocations: 59.41 kB / 0.871 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000216/0.5755, allocations: 246.3 kB / 0.8712 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.911e-05/0.5756, allocations: 29.7 kB / 0.8712 GB, free: 11.08 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.852e-05/0.5756, allocations: 93.45 kB / 0.8713 GB, free: 10.98 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.794e-05/0.5757, allocations: 43.5 kB / 0.8713 GB, free: 10.94 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.474e-05/0.5757, allocations: 4 kB / 0.8714 GB, free: 10.94 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.876e-05/0.5758, allocations: 322.8 kB / 0.8717 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.576, allocations: 84.22 kB / 0.8717 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.5762, allocations: 138.1 kB / 0.8719 GB, free: 10.37 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001462/0.5764, allocations: 74.58 kB / 0.8719 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.5764, allocations: 0 / 0.8719 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005486/0.5769, allocations: 326 kB / 0.8723 GB, free: 9.977 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.611e-05/0.577, allocations: 72.83 kB / 0.8723 GB, free: 9.895 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.577, allocations: 7.953 kB / 0.8723 GB, free: 9.887 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.577, allocations: 4 kB / 0.8723 GB, free: 9.883 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.5772, allocations: 27.92 kB / 0.8724 GB, free: 9.855 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.5772, allocations: 7.984 kB / 0.8724 GB, free: 9.848 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/0.5776, allocations: 35.89 kB / 0.8724 GB, free: 9.812 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.118e-05/0.5777, allocations: 55.91 kB / 0.8725 GB, free: 9.758 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 () * 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.0001294/0.5778, allocations: 132 kB / 0.8726 GB, free: 9.621 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.625e-05/0.5779, allocations: 23.72 kB / 0.8726 GB, free: 9.598 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.209e-05/0.5779, allocations: 30.03 kB / 0.8726 GB, free: 9.566 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.578, allocations: 3.953 kB / 0.8726 GB, free: 9.562 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.578, allocations: 3.984 kB / 0.8726 GB, free: 9.559 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.578, allocations: 0 / 0.8726 GB, free: 9.559 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006505/0.5786, allocations: 0.5221 MB / 0.8732 GB, free: 8.992 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.5787, allocations: 12 kB / 0.8732 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.345e-05/0.5787, allocations: 7.984 kB / 0.8732 GB, free: 8.973 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.5787, allocations: 3.953 kB / 0.8732 GB, free: 8.969 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.5787, allocations: 11.98 kB / 0.8732 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.5787, allocations: 0 / 0.8732 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.5788, allocations: 0 / 0.8732 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000341/0.5791, allocations: 308.6 kB / 0.8735 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/0.5793, allocations: 148.7 kB / 0.8736 GB, free: 8.477 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.587e-05/0.5793, allocations: 11.95 kB / 0.8736 GB, free: 8.465 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.5795, allocations: 15.98 kB / 0.8736 GB, free: 8.449 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.62e-05/0.5796, allocations: 15.97 kB / 0.8737 GB, free: 8.434 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.11e-05/0.5796, allocations: 31.98 kB / 0.8737 GB, free: 8.402 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001603/0.5798, allocations: 193.9 kB / 0.8739 GB, free: 8.211 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5798, allocations: 0 / 0.8739 GB, free: 8.211 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003134/0.5801, allocations: 48.36 kB / 0.8739 GB, free: 8.164 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) * 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.0001559/0.5803, allocations: 117 kB / 0.874 GB, free: 8.043 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004561/0.5807, allocations: 340.4 kB / 0.8744 GB, free: 7.688 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.5807, allocations: 4 kB / 0.8744 GB, free: 7.684 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 9.665e-05/0.5808, allocations: 55.98 kB / 0.8744 GB, free: 7.629 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.5811, allocations: 21.53 kB / 0.8744 GB, free: 7.605 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004906/0.5816, allocations: 277.4 kB / 0.8747 GB, free: 7.316 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.5819, allocations: 0.7473 MB / 0.8754 GB, free: 6.539 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001394/0.582, allocations: 37.2 kB / 0.8755 GB, free: 6.504 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.5822, allocations: 35.42 kB / 0.8755 GB, free: 6.469 MB / 0.5417 GB Notification: Performance of SimCode: time 2.4e-07/0.5822, allocations: 0 / 0.8755 GB, free: 6.469 MB / 0.5417 GB Notification: Performance of Templates: time 0.00739/0.5896, allocations: 4.186 MB / 0.8796 GB, free: 2.289 MB / 0.5417 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)