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.7556/0.7556, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 177.8 kB / 187.3 MB, free: 11.89 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.433/1.433, allocations: 221.3 MB / 441.4 MB, free: 4.605 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.0009392/0.0009391, allocations: 99.42 kB / 0.5124 GB, free: 24.3 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001752/0.001752, allocations: 273.3 kB / 0.5939 GB, free: 7.973 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.481e-05/3.497e-05, allocations: 4 kB / 0.6834 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4626/0.4627, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1236/0.5863, allocations: 110.5 MB / 0.8721 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.5867, allocations: 71.84 kB / 0.8722 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01334/0.6, allocations: 4.487 MB / 0.8766 GB, free: 9.578 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.313e-06/0.6001, allocations: 0 / 0.8766 GB, free: 9.578 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.506e-05/0.6001, allocations: 4 kB / 0.8766 GB, free: 9.574 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.0008159/0.6009, allocations: 0.5711 MB / 0.8771 GB, free: 8.934 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.601, allocations: 12.03 kB / 0.8771 GB, free: 8.922 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.231e-05/0.6011, allocations: 35.61 kB / 0.8772 GB, free: 8.887 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003171/0.6014, allocations: 242.6 kB / 0.8774 GB, free: 8.609 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.676e-05/0.6014, allocations: 19.94 kB / 0.8774 GB, free: 8.59 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.386e-05/0.6015, allocations: 16 kB / 0.8774 GB, free: 8.574 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000266/0.6018, allocations: 145.5 kB / 0.8776 GB, free: 8.426 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.6018, allocations: 0 / 0.8776 GB, free: 8.426 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.689e-05/0.6018, allocations: 4 kB / 0.8776 GB, free: 8.422 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.6018, allocations: 0 / 0.8776 GB, free: 8.422 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001088/0.602, allocations: 43.98 kB / 0.8776 GB, free: 8.379 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003575/0.6023, allocations: 337.2 kB / 0.878 GB, free: 8 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002638/0.6026, allocations: 134.7 kB / 0.8781 GB, free: 7.859 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.6027, allocations: 57.17 kB / 0.8781 GB, free: 7.801 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.6027, allocations: 4 kB / 0.8781 GB, free: 7.797 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003972/0.6032, allocations: 212.2 kB / 0.8783 GB, free: 7.574 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=18): time 3.206e-06/0.6032, allocations: 0 / 0.8783 GB, free: 7.574 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18): time 0.0004452/0.6036, allocations: 222.1 kB / 0.8786 GB, free: 7.352 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.6037, allocations: 63.31 kB / 0.8786 GB, free: 7.277 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002306/0.6039, allocations: 251.4 kB / 0.8789 GB, free: 7.031 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.141e-05/0.604, allocations: 41.62 kB / 0.8789 GB, free: 6.984 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.564e-05/0.604, allocations: 97.14 kB / 0.879 GB, free: 6.887 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.789e-05/0.6041, allocations: 39.5 kB / 0.879 GB, free: 6.848 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.12e-05/0.6041, allocations: 8 kB / 0.879 GB, free: 6.84 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.6042, allocations: 322.8 kB / 0.8793 GB, free: 6.516 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.6045, allocations: 96.2 kB / 0.8794 GB, free: 6.418 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002292/0.6047, allocations: 150.5 kB / 0.8796 GB, free: 6.25 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/0.6049, allocations: 152 kB / 0.8797 GB, free: 6.086 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.605, allocations: 4 kB / 0.8797 GB, free: 6.082 MB / 0.5417 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006684/0.6056, allocations: 417.1 kB / 0.8801 GB, free: 5.66 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.478e-05/0.6057, allocations: 75.38 kB / 0.8802 GB, free: 5.574 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.6057, allocations: 4 kB / 0.8802 GB, free: 5.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.6057, allocations: 4 kB / 0.8802 GB, free: 5.566 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.6059, allocations: 27.92 kB / 0.8802 GB, free: 5.539 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.477e-06/0.6059, allocations: 0 / 0.8802 GB, free: 5.539 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003537/0.6063, allocations: 48 kB / 0.8803 GB, free: 5.492 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.014e-05/0.6064, allocations: 55.98 kB / 0.8803 GB, free: 5.438 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.0001321/0.6065, allocations: 136 kB / 0.8805 GB, free: 5.297 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.521e-05/0.6066, allocations: 27.67 kB / 0.8805 GB, free: 5.27 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.134e-05/0.6066, allocations: 34.03 kB / 0.8805 GB, free: 5.234 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.6066, allocations: 0 / 0.8805 GB, free: 5.234 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.6067, allocations: 4 kB / 0.8805 GB, free: 5.23 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.6067, allocations: 0 / 0.8805 GB, free: 5.23 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007543/0.6074, allocations: 0.5619 MB / 0.8811 GB, free: 4.613 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.6074, allocations: 0 / 0.8811 GB, free: 4.613 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.794e-05/0.6075, allocations: 8 kB / 0.8811 GB, free: 4.605 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.6075, allocations: 0 / 0.8811 GB, free: 4.605 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/0.6075, allocations: 15.98 kB / 0.8811 GB, free: 4.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.6075, allocations: 0 / 0.8811 GB, free: 4.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.6075, allocations: 0 / 0.8811 GB, free: 4.59 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.6079, allocations: 320.7 kB / 0.8814 GB, free: 4.262 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.6081, allocations: 160.7 kB / 0.8816 GB, free: 4.086 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.898e-05/0.6082, allocations: 8 kB / 0.8816 GB, free: 4.078 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/0.6084, allocations: 11.98 kB / 0.8816 GB, free: 4.066 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.273e-05/0.6084, allocations: 11.98 kB / 0.8816 GB, free: 4.055 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.884e-05/0.6085, allocations: 31.97 kB / 0.8816 GB, free: 4.023 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001784/0.6087, allocations: 207.1 kB / 0.8818 GB, free: 3.82 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6087, allocations: 0 / 0.8818 GB, free: 3.82 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003116/0.609, allocations: 56 kB / 0.8819 GB, free: 3.766 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.0001705/0.6092, allocations: 129.2 kB / 0.882 GB, free: 3.633 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005251/0.6097, allocations: 346.8 kB / 0.8823 GB, free: 3.27 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.6097, allocations: 0 / 0.8823 GB, free: 3.27 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.6098, allocations: 73.11 kB / 0.8824 GB, free: 3.199 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.6101, allocations: 20.88 kB / 0.8824 GB, free: 3.176 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005246/0.6106, allocations: 282.4 kB / 0.8827 GB, free: 2.875 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.6109, allocations: 0.7477 MB / 0.8834 GB, free: 2.102 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001354/0.6111, allocations: 37.2 kB / 0.8834 GB, free: 2.062 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.6112, allocations: 31.42 kB / 0.8835 GB, free: 2.031 MB / 0.5417 GB Notification: Performance of SimCode: time 3.2e-07/0.6112, allocations: 0 / 0.8835 GB, free: 2.031 MB / 0.5417 GB Notification: Performance of Templates: time 0.007628/0.6188, allocations: 4.357 MB / 0.8877 GB, free: 13.68 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)