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.0007516/0.0007516, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0007923/0.0007923, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 223.3 MB / 240 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001704/0.001705, allocations: 275 kB / 291.4 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9471/0.9471, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004039/0.000404, allocations: 12.5 kB / 0.598 GB, free: 28.41 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.1784, allocations: 88.54 MB / 0.6845 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.001849/0.1803, allocations: 1.186 MB / 0.6856 GB, free: 14.28 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008786/0.1812, allocations: 427.3 kB / 0.686 GB, free: 13.87 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.516e-05/0.1812, allocations: 0 / 0.686 GB, free: 13.87 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.693e-05/0.1813, allocations: 7.922 kB / 0.686 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.307e-05/0.1814, allocations: 15.92 kB / 0.6861 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000588/0.182, allocations: 215.7 kB / 0.6863 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002673/0.1823, allocations: 255.5 kB / 0.6865 GB, free: 13.39 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.258e-05/0.1824, allocations: 11.97 kB / 0.6865 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003346/0.1827, allocations: 227.6 kB / 0.6867 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002121/0.1829, allocations: 137.6 kB / 0.6869 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.48e-05/0.183, allocations: 8 kB / 0.6869 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.571e-05/0.183, allocations: 12 kB / 0.6869 GB, free: 13 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.832e-05/0.1831, allocations: 83.77 kB / 0.687 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.571e-05/0.1832, allocations: 69.58 kB / 0.687 GB, free: 12.85 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.1834, allocations: 204.4 kB / 0.6872 GB, free: 12.65 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.1834, allocations: 4 kB / 0.6872 GB, free: 12.64 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1834, allocations: 0.5625 kB / 0.6872 GB, free: 12.64 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.1835, allocations: 0.5312 kB / 0.6872 GB, free: 12.64 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.0009055/0.1844, allocations: 0.6587 MB / 0.6879 GB, free: 11.9 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.1844, allocations: 12.03 kB / 0.6879 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.326e-05/0.1845, allocations: 35.66 kB / 0.6879 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000289/0.1848, allocations: 254.4 kB / 0.6882 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.925e-05/0.1848, allocations: 13.78 kB / 0.6882 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.087e-05/0.1849, allocations: 20 kB / 0.6882 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000818/0.1857, allocations: 212 kB / 0.6884 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.1857, allocations: 0 / 0.6884 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.1858, allocations: 1.562 kB / 0.6884 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.1858, allocations: 0 / 0.6884 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006172/0.1864, allocations: 111.8 kB / 0.6885 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003235/0.1867, allocations: 317.4 kB / 0.6888 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000856/0.1876, allocations: 189.9 kB / 0.689 GB, free: 10.67 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006047/0.1882, allocations: 123.4 kB / 0.6891 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.1882, allocations: 4 kB / 0.6891 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007758/0.189, allocations: 227.1 kB / 0.6893 GB, free: 10.31 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.533e-06/0.189, allocations: 4 kB / 0.6893 GB, free: 10.31 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.002057/0.1911, allocations: 486.8 kB / 0.6898 GB, free: 9.828 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.1912, allocations: 55.41 kB / 0.6898 GB, free: 9.762 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/0.1914, allocations: 290.9 kB / 0.6901 GB, free: 9.469 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.1915, allocations: 41.69 kB / 0.6902 GB, free: 9.422 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.388e-05/0.1916, allocations: 89.14 kB / 0.6902 GB, free: 9.332 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.372e-05/0.1916, allocations: 39.45 kB / 0.6903 GB, free: 9.293 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.632e-05/0.1917, allocations: 8 kB / 0.6903 GB, free: 9.285 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1918, allocations: 322.8 kB / 0.6906 GB, free: 8.961 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.192, allocations: 83.95 kB / 0.6907 GB, free: 8.879 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.1922, allocations: 139.8 kB / 0.6908 GB, free: 8.723 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.1924, allocations: 151.3 kB / 0.691 GB, free: 8.562 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.1924, allocations: 4 kB / 0.691 GB, free: 8.559 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005788/0.193, allocations: 390.7 kB / 0.6913 GB, free: 8.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.998e-05/0.193, allocations: 75.39 kB / 0.6914 GB, free: 8.074 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1931, allocations: 4 kB / 0.6914 GB, free: 8.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.1931, allocations: 0 / 0.6914 GB, free: 8.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.1932, allocations: 27.91 kB / 0.6914 GB, free: 8.043 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.1933, allocations: 4 kB / 0.6914 GB, free: 8.039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003924/0.1937, allocations: 71.92 kB / 0.6915 GB, free: 7.969 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.974e-05/0.1937, allocations: 39.98 kB / 0.6915 GB, free: 7.93 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$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 (26): * Single equations (assignments): 24 * 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.0001733/0.1939, allocations: 173.7 kB / 0.6917 GB, free: 7.754 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.104e-05/0.194, allocations: 31.7 kB / 0.6917 GB, free: 7.723 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.236e-05/0.194, allocations: 26.31 kB / 0.6918 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.194, allocations: 7.984 kB / 0.6918 GB, free: 7.684 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.194, allocations: 4 kB / 0.6918 GB, free: 7.68 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1941, allocations: 0 / 0.6918 GB, free: 7.68 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001778/0.1958, allocations: 0.709 MB / 0.6925 GB, free: 6.914 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1958, allocations: 0 / 0.6925 GB, free: 6.914 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.204e-05/0.1959, allocations: 11.98 kB / 0.6925 GB, free: 6.902 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.1959, allocations: 0 / 0.6925 GB, free: 6.902 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.817e-05/0.1959, allocations: 11.98 kB / 0.6925 GB, free: 6.891 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1959, allocations: 0 / 0.6925 GB, free: 6.891 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1959, allocations: 4 kB / 0.6925 GB, free: 6.887 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.1973, allocations: 468.6 kB / 0.6929 GB, free: 6.414 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001553/0.1975, allocations: 172.6 kB / 0.6931 GB, free: 6.227 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.668e-05/0.1976, allocations: 8 kB / 0.6931 GB, free: 6.219 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003771/0.1979, allocations: 39.91 kB / 0.6932 GB, free: 6.18 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.406e-05/0.198, allocations: 7.984 kB / 0.6932 GB, free: 6.172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.272e-05/0.198, allocations: 47.97 kB / 0.6932 GB, free: 6.125 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001719/0.1982, allocations: 201.9 kB / 0.6934 GB, free: 5.934 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1982, allocations: 4 kB / 0.6934 GB, free: 5.93 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002962/0.1985, allocations: 51.98 kB / 0.6935 GB, free: 5.879 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 (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.0001391/0.1987, allocations: 109 kB / 0.6936 GB, free: 5.762 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.1997, allocations: 398.5 kB / 0.6939 GB, free: 5.348 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1997, allocations: 0 / 0.6939 GB, free: 5.348 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006371/0.2004, allocations: 122.4 kB / 0.6941 GB, free: 5.23 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.2007, allocations: 33.78 kB / 0.6941 GB, free: 5.199 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.2018, allocations: 0.4911 MB / 0.6946 GB, free: 4.684 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.2021, allocations: 0.7406 MB / 0.6953 GB, free: 3.918 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.309e-05/0.2022, allocations: 13.09 kB / 0.6953 GB, free: 3.906 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.846e-05/0.2022, allocations: 19.42 kB / 0.6953 GB, free: 3.887 MB / 494.1 MB Notification: Performance of SimCode: time 1.9e-07/0.2022, allocations: 0 / 0.6953 GB, free: 3.887 MB / 494.1 MB Notification: Performance of Templates: time 0.006119/0.2084, allocations: 3.53 MB / 0.6988 GB, free: 368 kB / 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)