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.001162/0.001162, allocations: 106.2 kB / 16.27 MB, free: 6.414 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.001104/0.001104, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.266/1.266, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00202/0.00202, allocations: 294.5 kB / 291.3 MB, free: 14.54 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9043/0.9043, allocations: 169.3 MB / 0.4988 GB, free: 4.512 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 97.58 kB / 0.5959 GB, free: 15.16 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.171/0.1729, allocations: 86.98 MB / 0.6808 GB, free: 8.191 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002831/0.1758, allocations: 1.466 MB / 0.6823 GB, free: 6.707 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.1769, allocations: 431.3 kB / 0.6827 GB, free: 6.281 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.504e-05/0.177, allocations: 0 / 0.6827 GB, free: 6.281 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.1771, allocations: 7.875 kB / 0.6827 GB, free: 6.273 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001151/0.1772, allocations: 24.22 kB / 0.6827 GB, free: 6.25 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007828/0.178, allocations: 254.3 kB / 0.6829 GB, free: 6.004 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003849/0.1784, allocations: 327.5 kB / 0.6833 GB, free: 5.684 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.454e-05/0.1785, allocations: 11.98 kB / 0.6833 GB, free: 5.672 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003168/0.1788, allocations: 191.7 kB / 0.6835 GB, free: 5.484 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00024/0.1791, allocations: 108 kB / 0.6836 GB, free: 5.379 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.463e-05/0.1792, allocations: 23.94 kB / 0.6836 GB, free: 5.355 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.11e-05/0.1792, allocations: 20 kB / 0.6836 GB, free: 5.336 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.1794, allocations: 87.77 kB / 0.6837 GB, free: 5.25 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.1795, allocations: 123.4 kB / 0.6838 GB, free: 5.129 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003108/0.1798, allocations: 291.4 kB / 0.6841 GB, free: 4.844 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.1798, allocations: 4 kB / 0.6841 GB, free: 4.84 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1798, allocations: 3.938 kB / 0.6841 GB, free: 4.836 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.1799, allocations: 0 / 0.6841 GB, free: 4.836 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.001107/0.181, allocations: 0.7424 MB / 0.6848 GB, free: 4.008 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.181, allocations: 8.031 kB / 0.6848 GB, free: 4 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.1812, allocations: 32.66 kB / 0.6849 GB, free: 3.969 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.1815, allocations: 267.5 kB / 0.6851 GB, free: 3.672 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.308e-05/0.1815, allocations: 12.38 kB / 0.6851 GB, free: 3.66 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.839e-05/0.1816, allocations: 23.92 kB / 0.6851 GB, free: 3.637 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009432/0.1825, allocations: 204.8 kB / 0.6853 GB, free: 3.434 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.1826, allocations: 0 / 0.6853 GB, free: 3.434 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.08e-05/0.1826, allocations: 4 kB / 0.6853 GB, free: 3.43 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.1826, allocations: 7.938 kB / 0.6853 GB, free: 3.422 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007404/0.1834, allocations: 95.91 kB / 0.6854 GB, free: 3.328 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003642/0.1837, allocations: 317.4 kB / 0.6857 GB, free: 2.969 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.1848, allocations: 182.4 kB / 0.6859 GB, free: 2.781 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007158/0.1855, allocations: 108.8 kB / 0.686 GB, free: 2.672 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.1855, allocations: 4 kB / 0.686 GB, free: 2.668 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009055/0.1864, allocations: 209.8 kB / 0.6862 GB, free: 2.453 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 2.324e-06/0.1865, allocations: 0 / 0.6862 GB, free: 2.453 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.002427/0.1889, allocations: 452.9 kB / 0.6867 GB, free: 2.004 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.189, allocations: 55.41 kB / 0.6867 GB, free: 1.938 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.1893, allocations: 299 kB / 0.687 GB, free: 1.641 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.269e-05/0.1893, allocations: 33.7 kB / 0.687 GB, free: 1.602 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.048e-05/0.1894, allocations: 93.08 kB / 0.6871 GB, free: 1.508 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.153e-05/0.1895, allocations: 47.44 kB / 0.6872 GB, free: 1.461 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.1896, allocations: 93.48 kB / 0.6872 GB, free: 1.363 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.1897, allocations: 322.8 kB / 0.6876 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/0.1899, allocations: 87.88 kB / 0.6876 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.1902, allocations: 141.9 kB / 0.6878 GB, free: 0.793 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003093/0.1905, allocations: 235 kB / 0.688 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.1905, allocations: 3.938 kB / 0.688 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006387/0.1911, allocations: 394.4 kB / 0.6884 GB, free: 128 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.784e-05/0.1912, allocations: 75.38 kB / 0.6885 GB, free: 40 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1912, allocations: 4 kB / 0.6885 GB, free: 36 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.1913, allocations: 4 kB / 0.6885 GB, free: 32 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.1914, allocations: 20.11 kB / 0.6885 GB, free: 12 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.1914, allocations: 8 kB / 0.6885 GB, free: 4 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2593/0.4507, allocations: 53.08 kB / 0.6885 GB, free: 18.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-05/0.4509, allocations: 42.3 kB / 0.6886 GB, free: 18.14 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.0002398/0.4511, allocations: 173 kB / 0.6887 GB, free: 18.02 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.221e-05/0.4512, allocations: 27.03 kB / 0.6888 GB, free: 18.02 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.894e-05/0.4512, allocations: 29.38 kB / 0.6888 GB, free: 18.02 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.4513, allocations: 3.484 kB / 0.6888 GB, free: 18.02 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.4513, allocations: 6.219 kB / 0.6888 GB, free: 18.02 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.4513, allocations: 1.203 kB / 0.6888 GB, free: 18.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/0.4534, allocations: 0.6852 MB / 0.6895 GB, free: 17.72 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4534, allocations: 0.5 kB / 0.6895 GB, free: 17.72 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.018e-05/0.4534, allocations: 7.141 kB / 0.6895 GB, free: 17.72 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.4534, allocations: 1.625 kB / 0.6895 GB, free: 17.72 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/0.4535, allocations: 18.73 kB / 0.6895 GB, free: 17.72 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.4535, allocations: 1.969 kB / 0.6895 GB, free: 17.72 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4535, allocations: 0.8438 kB / 0.6895 GB, free: 17.72 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001645/0.4551, allocations: 453 kB / 0.6899 GB, free: 17.59 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001634/0.4553, allocations: 159.7 kB / 0.6901 GB, free: 17.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.648e-05/0.4554, allocations: 10.66 kB / 0.6901 GB, free: 17.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004515/0.4558, allocations: 38.28 kB / 0.6901 GB, free: 17.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.865e-05/0.4559, allocations: 8.281 kB / 0.6901 GB, free: 17.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.843e-05/0.456, allocations: 46.94 kB / 0.6902 GB, free: 17.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001896/0.4561, allocations: 212.8 kB / 0.6904 GB, free: 17.42 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4562, allocations: 0 / 0.6904 GB, free: 17.42 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003226/0.4565, allocations: 49.58 kB / 0.6904 GB, free: 17.42 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.0001339/0.4566, allocations: 113.4 kB / 0.6905 GB, free: 17.34 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.4578, allocations: 391.2 kB / 0.6909 GB, free: 17.21 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4578, allocations: 0.9062 kB / 0.6909 GB, free: 17.21 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007447/0.4585, allocations: 121.7 kB / 0.691 GB, free: 17.21 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.4589, allocations: 31.19 kB / 0.6911 GB, free: 17.21 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.4602, allocations: 467.4 kB / 0.6915 GB, free: 16.98 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.4604, allocations: 0.7461 MB / 0.6922 GB, free: 16.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.221e-05/0.4604, allocations: 17.14 kB / 0.6923 GB, free: 16.28 MB / 494.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4604, allocations: 0 / 0.6923 GB, free: 16.28 MB / 494.1 MB Notification: Performance of Templates: time 0.005603/0.466, allocations: 2.865 MB / 0.6951 GB, free: 16.05 MB / 494.1 MB 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)