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.001291/0.001291, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001371/0.001371, allocations: 197.3 kB / 16.26 MB, free: 6.629 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.424/1.424, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003698/0.003699, allocations: 294.7 kB / 290.4 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.091/1.091, allocations: 178.6 MB / 0.5069 GB, free: 4.719 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003946/0.003946, allocations: 97.81 kB / 0.6059 GB, free: 25.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1815, allocations: 89.17 MB / 0.693 GB, free: 4.688 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002752/0.1843, allocations: 1.562 MB / 0.6945 GB, free: 3.121 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001202/0.1855, allocations: 0.5435 MB / 0.695 GB, free: 2.578 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.681e-05/0.1856, allocations: 4.719 kB / 0.695 GB, free: 2.574 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.897e-05/0.1857, allocations: 4 kB / 0.695 GB, free: 2.57 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001032/0.1858, allocations: 28.5 kB / 0.6951 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007181/0.1866, allocations: 280.8 kB / 0.6953 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005574/0.1871, allocations: 0.5111 MB / 0.6958 GB, free: 1.762 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.395e-05/0.1872, allocations: 8 kB / 0.6958 GB, free: 1.754 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004663/0.1876, allocations: 338.9 kB / 0.6962 GB, free: 1.422 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000266/0.1879, allocations: 167.2 kB / 0.6963 GB, free: 1.258 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.244e-05/0.188, allocations: 28 kB / 0.6964 GB, free: 1.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.89e-05/0.1881, allocations: 28.78 kB / 0.6964 GB, free: 1.203 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.1882, allocations: 119.6 kB / 0.6965 GB, free: 1.086 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002264/0.1885, allocations: 198.8 kB / 0.6967 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00045/0.1889, allocations: 434.7 kB / 0.6971 GB, free: 476 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1889, allocations: 0 / 0.6971 GB, free: 476 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1889, allocations: 0 / 0.6971 GB, free: 476 kB / 494.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.189, allocations: 0 / 0.6971 GB, free: 476 kB / 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.001295/0.1903, allocations: 0.8665 MB / 0.6979 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.1903, allocations: 8.031 kB / 0.698 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.1904, allocations: 56.45 kB / 0.698 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003794/0.1908, allocations: 310.1 kB / 0.6983 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.688e-05/0.1909, allocations: 20.38 kB / 0.6983 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.273e-05/0.191, allocations: 32.34 kB / 0.6984 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.192, allocations: 217.4 kB / 0.6986 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.192, allocations: 192 / 0.6986 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.193e-05/0.1921, allocations: 7.938 kB / 0.6986 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.1921, allocations: 0 / 0.6986 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008083/0.1929, allocations: 103.9 kB / 0.6987 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004771/0.1934, allocations: 389.2 kB / 0.699 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.1945, allocations: 178.5 kB / 0.6992 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008063/0.1953, allocations: 108.8 kB / 0.6993 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.1954, allocations: 7.938 kB / 0.6993 GB, free: 14 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001043/0.1964, allocations: 223.1 kB / 0.6995 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 1.693e-06/0.1964, allocations: 0 / 0.6995 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16): time 0.002769/0.1992, allocations: 490.1 kB / 0.7 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.105e-05/0.1993, allocations: 63.33 kB / 0.7001 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004485/0.1997, allocations: 409.9 kB / 0.7005 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.698e-05/0.1998, allocations: 41.69 kB / 0.7005 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.126e-05/0.1999, allocations: 97.34 kB / 0.7006 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.196e-05/0.1999, allocations: 31.61 kB / 0.7006 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/0.2002, allocations: 137.3 kB / 0.7007 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001462/0.2003, allocations: 322.8 kB / 0.7011 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002832/0.2006, allocations: 115.9 kB / 0.7012 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.2009, allocations: 166.6 kB / 0.7013 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004103/0.2014, allocations: 283.8 kB / 0.7016 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2014, allocations: 0 / 0.7016 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008913/0.2023, allocations: 0.4889 MB / 0.7021 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.2024, allocations: 91.31 kB / 0.7022 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.2024, allocations: 0 / 0.7022 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.2024, allocations: 7.938 kB / 0.7022 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.2026, allocations: 19.92 kB / 0.7022 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.2026, allocations: 4 kB / 0.7022 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005223/0.2031, allocations: 71.88 kB / 0.7023 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.251e-05/0.2032, allocations: 59.98 kB / 0.7023 GB, free: 10.79 MB / 0.4981 GB 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.0002468/0.2035, allocations: 189.7 kB / 0.7025 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.697e-05/0.2036, allocations: 47.45 kB / 0.7025 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.643e-05/0.2036, allocations: 39.75 kB / 0.7026 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2037, allocations: 0 / 0.7026 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2037, allocations: 0 / 0.7026 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.2037, allocations: 0 / 0.7026 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/0.206, allocations: 0.7574 MB / 0.7033 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.206, allocations: 0 / 0.7033 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.587e-05/0.206, allocations: 4 kB / 0.7033 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/0.2061, allocations: 3.984 kB / 0.7033 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.128e-05/0.2061, allocations: 27.97 kB / 0.7034 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.2061, allocations: 4 kB / 0.7034 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.2061, allocations: 0 / 0.7034 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/0.208, allocations: 474.7 kB / 0.7038 GB, free: 9.18 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002624/0.2083, allocations: 204.4 kB / 0.704 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.556e-05/0.2083, allocations: 8 kB / 0.704 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005088/0.2089, allocations: 27.97 kB / 0.704 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.645e-05/0.2089, allocations: 11.98 kB / 0.7041 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-05/0.209, allocations: 59.97 kB / 0.7041 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000308/0.2093, allocations: 291.1 kB / 0.7044 GB, free: 8.566 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.894e-06/0.2093, allocations: 4 kB / 0.7044 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003606/0.2097, allocations: 71.92 kB / 0.7045 GB, free: 8.492 MB / 0.4981 GB 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.0001648/0.2099, allocations: 116.9 kB / 0.7046 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0014/0.2113, allocations: 443.5 kB / 0.705 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.2113, allocations: 4.375 kB / 0.705 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008274/0.2121, allocations: 125.5 kB / 0.7051 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000383/0.2125, allocations: 33.45 kB / 0.7051 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.2141, allocations: 0.6608 MB / 0.7058 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000423/0.2146, allocations: 0.7747 MB / 0.7066 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.541e-05/0.2147, allocations: 17.08 kB / 0.7066 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.135e-05/0.2147, allocations: 15.44 kB / 0.7066 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of SimCode: time 4.41e-07/0.2147, allocations: 0 / 0.7066 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of Templates: time 0.01019/0.2249, allocations: 5.208 MB / 0.7117 GB, free: 0.9414 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)