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.001594/0.001594, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001832/0.001832, allocations: 191.5 kB / 16.14 MB, free: 6.723 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.465/1.465, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002599/0.002598, allocations: 285.6 kB / 290.2 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.1/1.1, allocations: 178.6 MB / 0.5068 GB, free: 4.766 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003777/0.003777, allocations: 98.19 kB / 0.6057 GB, free: 25.15 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1795, allocations: 89.15 MB / 0.6928 GB, free: 4.883 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002979/0.1825, allocations: 1.571 MB / 0.6943 GB, free: 3.309 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.184, allocations: 0.6046 MB / 0.6949 GB, free: 2.703 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.928e-05/0.1841, allocations: 4 kB / 0.6949 GB, free: 2.699 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.1842, allocations: 7.922 kB / 0.6949 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.1843, allocations: 19.88 kB / 0.6949 GB, free: 2.672 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007771/0.1851, allocations: 294.5 kB / 0.6952 GB, free: 2.387 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005029/0.1856, allocations: 443.5 kB / 0.6956 GB, free: 1.953 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.194e-05/0.1857, allocations: 8 kB / 0.6956 GB, free: 1.945 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004514/0.1862, allocations: 314.9 kB / 0.6959 GB, free: 1.637 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002777/0.1864, allocations: 163.2 kB / 0.6961 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.1866, allocations: 19.94 kB / 0.6961 GB, free: 1.457 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.353e-05/0.1867, allocations: 12 kB / 0.6961 GB, free: 1.445 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.1868, allocations: 111.7 kB / 0.6962 GB, free: 1.336 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002603/0.1871, allocations: 178.8 kB / 0.6964 GB, free: 1.16 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005171/0.1876, allocations: 422.7 kB / 0.6968 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1876, allocations: 0 / 0.6968 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1876, allocations: 0 / 0.6968 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.1877, allocations: 4 kB / 0.6968 GB, free: 0.7422 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.001423/0.1891, allocations: 0.8664 MB / 0.6977 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.1891, allocations: 8.031 kB / 0.6977 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.1893, allocations: 56.45 kB / 0.6977 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000422/0.1897, allocations: 306.3 kB / 0.698 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.656e-05/0.1898, allocations: 16.38 kB / 0.698 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.75e-05/0.1899, allocations: 28.36 kB / 0.6981 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.1909, allocations: 214 kB / 0.6983 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.191, allocations: 4.188 kB / 0.6983 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.682e-05/0.191, allocations: 7.938 kB / 0.6983 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.607e-06/0.191, allocations: 0 / 0.6983 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008219/0.1919, allocations: 103.8 kB / 0.6984 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005208/0.1924, allocations: 393.2 kB / 0.6987 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.1935, allocations: 178.5 kB / 0.6989 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008034/0.1943, allocations: 104.8 kB / 0.699 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.1944, allocations: 8 kB / 0.699 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.1954, allocations: 223.1 kB / 0.6992 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 1.894e-06/0.1954, allocations: 0 / 0.6992 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16): time 0.002684/0.1981, allocations: 490.8 kB / 0.6997 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/0.1982, allocations: 63.33 kB / 0.6998 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000578/0.1988, allocations: 409.9 kB / 0.7002 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.596e-05/0.1989, allocations: 45.69 kB / 0.7002 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.199, allocations: 101.3 kB / 0.7003 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.372e-05/0.199, allocations: 39.59 kB / 0.7003 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002478/0.1993, allocations: 129.3 kB / 0.7005 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001707/0.1995, allocations: 322.8 kB / 0.7008 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002948/0.1998, allocations: 115.9 kB / 0.7009 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003258/0.2001, allocations: 170.6 kB / 0.701 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004665/0.2006, allocations: 279.5 kB / 0.7013 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.2006, allocations: 0 / 0.7013 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001048/0.2017, allocations: 0.4888 MB / 0.7018 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000115/0.2018, allocations: 91.31 kB / 0.7019 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2018, allocations: 3.938 kB / 0.7019 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.2018, allocations: 4 kB / 0.7019 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.202, allocations: 19.98 kB / 0.7019 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.202, allocations: 4.172 kB / 0.7019 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005399/0.2026, allocations: 67.78 kB / 0.702 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.707e-05/0.2027, allocations: 59.98 kB / 0.702 GB, free: 11.07 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.0002812/0.203, allocations: 189.8 kB / 0.7022 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.694e-05/0.2031, allocations: 43.47 kB / 0.7022 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.079e-05/0.2031, allocations: 43.73 kB / 0.7023 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.2031, allocations: 8 kB / 0.7023 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.2032, allocations: 0 / 0.7023 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.2032, allocations: 0 / 0.7023 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002427/0.2056, allocations: 0.7518 MB / 0.703 GB, free: 9.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2056, allocations: 0 / 0.703 GB, free: 9.977 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.622e-05/0.2057, allocations: 4 kB / 0.703 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.2057, allocations: 4 kB / 0.703 GB, free: 9.969 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.435e-05/0.2057, allocations: 19.97 kB / 0.7031 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.2057, allocations: 3.938 kB / 0.7031 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.2057, allocations: 0 / 0.7031 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001925/0.2077, allocations: 472.8 kB / 0.7035 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004227/0.2081, allocations: 208.4 kB / 0.7037 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.412e-05/0.2082, allocations: 12 kB / 0.7037 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005254/0.2087, allocations: 27.97 kB / 0.7037 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.2088, allocations: 15.98 kB / 0.7038 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.166e-05/0.2089, allocations: 55.97 kB / 0.7038 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003407/0.2092, allocations: 299.1 kB / 0.7041 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2092, allocations: 0 / 0.7041 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003976/0.2096, allocations: 63.98 kB / 0.7042 GB, free: 8.777 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.000182/0.2098, allocations: 112.9 kB / 0.7043 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001351/0.2112, allocations: 438.5 kB / 0.7047 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.2112, allocations: 4 kB / 0.7047 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007855/0.212, allocations: 119.8 kB / 0.7048 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003941/0.2124, allocations: 29.48 kB / 0.7048 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.214, allocations: 0.6713 MB / 0.7055 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004504/0.2145, allocations: 0.7711 MB / 0.7062 GB, free: 6.559 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.447e-05/0.2145, allocations: 13.08 kB / 0.7063 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.691e-05/0.2146, allocations: 19.42 kB / 0.7063 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of SimCode: time 2.8e-07/0.2146, allocations: 4 kB / 0.7063 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of Templates: time 0.009995/0.2246, allocations: 5.05 MB / 0.7112 GB, free: 1.387 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)