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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007686/0.0007686, allocations: 91.77 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.005357/0.005357, allocations: 171.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.334/1.334, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001684/0.001684, allocations: 262.9 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9377/0.9377, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000436/0.000436, allocations: 13.56 kB / 0.5986 GB, free: 28.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1712, allocations: 88.55 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.001842/0.173, allocations: 1.198 MB / 0.6863 GB, free: 13.87 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.1741, allocations: 445.1 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.268e-05/0.1742, allocations: 1.094 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.892e-05/0.1743, allocations: 3.938 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000106/0.1744, allocations: 22.5 kB / 0.6867 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005868/0.175, allocations: 226.4 kB / 0.687 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003038/0.1753, allocations: 295.8 kB / 0.6872 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.969e-05/0.1753, allocations: 15.97 kB / 0.6873 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003113/0.1757, allocations: 214.9 kB / 0.6875 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.1759, allocations: 126.1 kB / 0.6876 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.016e-05/0.176, allocations: 12 kB / 0.6876 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.479e-05/0.176, allocations: 8 kB / 0.6876 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.1761, allocations: 83.7 kB / 0.6877 GB, free: 12.45 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000152/0.1763, allocations: 145.1 kB / 0.6878 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002989/0.1766, allocations: 295.2 kB / 0.6881 GB, free: 12.02 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1766, allocations: 5.75 kB / 0.6881 GB, free: 12.01 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1766, allocations: 0 / 0.6881 GB, free: 12.01 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.1766, allocations: 4 kB / 0.6881 GB, free: 12.01 MB / 494.1 MB 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.000927/0.1776, allocations: 0.6498 MB / 0.6887 GB, free: 11.27 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.1776, allocations: 11.97 kB / 0.6888 GB, free: 11.26 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.787e-05/0.1777, allocations: 33.53 kB / 0.6888 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002779/0.178, allocations: 258.3 kB / 0.689 GB, free: 10.94 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.205e-05/0.178, allocations: 15.98 kB / 0.689 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.074e-05/0.1781, allocations: 16 kB / 0.6891 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000938/0.179, allocations: 214.3 kB / 0.6893 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1791, allocations: 3.938 kB / 0.6893 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.1791, allocations: 7.984 kB / 0.6893 GB, free: 10.69 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.1791, allocations: 3.984 kB / 0.6893 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007582/0.1799, allocations: 109.7 kB / 0.6894 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003309/0.1802, allocations: 314.8 kB / 0.6897 GB, free: 10.22 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.1813, allocations: 194.9 kB / 0.6899 GB, free: 10.03 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007376/0.182, allocations: 120.8 kB / 0.69 GB, free: 9.906 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.1821, allocations: 0 / 0.69 GB, free: 9.906 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009022/0.183, allocations: 233.1 kB / 0.6902 GB, free: 9.668 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.773e-06/0.183, allocations: 0 / 0.6902 GB, free: 9.668 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.002532/0.1855, allocations: 477 kB / 0.6907 GB, free: 9.195 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/0.1856, allocations: 71.38 kB / 0.6907 GB, free: 9.113 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003131/0.1859, allocations: 290.9 kB / 0.691 GB, free: 8.82 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.235e-05/0.186, allocations: 33.7 kB / 0.691 GB, free: 8.781 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.863e-05/0.1861, allocations: 97.12 kB / 0.6911 GB, free: 8.684 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.553e-05/0.1861, allocations: 31.56 kB / 0.6912 GB, free: 8.652 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.469e-05/0.1862, allocations: 37.69 kB / 0.6912 GB, free: 8.609 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.1864, allocations: 326.8 kB / 0.6915 GB, free: 8.281 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001893/0.1866, allocations: 75.95 kB / 0.6916 GB, free: 8.207 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/0.1868, allocations: 139.8 kB / 0.6917 GB, free: 8.051 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00032/0.1872, allocations: 243.1 kB / 0.6919 GB, free: 7.781 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1872, allocations: 0 / 0.6919 GB, free: 7.781 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006988/0.1879, allocations: 390.6 kB / 0.6923 GB, free: 7.383 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.037e-05/0.188, allocations: 81.03 kB / 0.6924 GB, free: 7.293 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.188, allocations: 4 kB / 0.6924 GB, free: 7.289 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.188, allocations: 0 / 0.6924 GB, free: 7.289 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.1882, allocations: 27.92 kB / 0.6924 GB, free: 7.262 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.1882, allocations: 4 kB / 0.6924 GB, free: 7.258 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000461/0.1887, allocations: 75.83 kB / 0.6925 GB, free: 7.184 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.953e-05/0.1887, allocations: 39.98 kB / 0.6925 GB, free: 7.145 MB / 494.1 MB 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.0001801/0.1889, allocations: 170.4 kB / 0.6927 GB, free: 6.973 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.324e-05/0.189, allocations: 31.59 kB / 0.6927 GB, free: 6.941 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.411e-05/0.189, allocations: 26.3 kB / 0.6928 GB, free: 6.91 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.189, allocations: 8 kB / 0.6928 GB, free: 6.902 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1891, allocations: 0 / 0.6928 GB, free: 6.902 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.1891, allocations: 0 / 0.6928 GB, free: 6.902 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/0.1912, allocations: 0.7189 MB / 0.6935 GB, free: 6.129 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1912, allocations: 0 / 0.6935 GB, free: 6.129 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.525e-05/0.1912, allocations: 4 kB / 0.6935 GB, free: 6.125 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1912, allocations: 0 / 0.6935 GB, free: 6.125 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.428e-05/0.1913, allocations: 19.97 kB / 0.6935 GB, free: 6.105 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.1913, allocations: 7.984 kB / 0.6935 GB, free: 6.098 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.155e-06/0.1913, allocations: 4 kB / 0.6935 GB, free: 6.094 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001716/0.193, allocations: 470.8 kB / 0.694 GB, free: 5.617 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.1932, allocations: 156.7 kB / 0.6941 GB, free: 5.445 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.383e-05/0.1933, allocations: 12 kB / 0.6941 GB, free: 5.434 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004682/0.1938, allocations: 43.95 kB / 0.6942 GB, free: 5.391 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.826e-05/0.1938, allocations: 7.984 kB / 0.6942 GB, free: 5.383 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.372e-05/0.1939, allocations: 43.91 kB / 0.6942 GB, free: 5.34 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002182/0.1941, allocations: 209.9 kB / 0.6944 GB, free: 5.141 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1941, allocations: 0 / 0.6944 GB, free: 5.141 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003527/0.1945, allocations: 52 kB / 0.6945 GB, free: 5.09 MB / 494.1 MB 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.0001592/0.1947, allocations: 120.9 kB / 0.6946 GB, free: 4.961 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.1959, allocations: 384 kB / 0.6949 GB, free: 4.562 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1959, allocations: 4.062 kB / 0.6949 GB, free: 4.559 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007574/0.1966, allocations: 131.8 kB / 0.6951 GB, free: 4.43 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.197, allocations: 29.88 kB / 0.6951 GB, free: 4.402 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.1984, allocations: 0.5105 MB / 0.6956 GB, free: 3.867 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.1988, allocations: 0.7406 MB / 0.6963 GB, free: 3.102 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.335e-05/0.1988, allocations: 17.08 kB / 0.6963 GB, free: 3.086 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.957e-05/0.1989, allocations: 15.44 kB / 0.6963 GB, free: 3.07 MB / 494.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1989, allocations: 0 / 0.6963 GB, free: 3.07 MB / 494.1 MB Notification: Performance of Templates: time 0.00678/0.2057, allocations: 3.6 MB / 0.6999 GB, free: 15.48 MB / 0.4981 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)