Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime") translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.001105/0.001105, 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.00115/0.00115, allocations: 196 kB / 16.14 MB, free: 6.711 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.352/1.352, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9708/0.9708, allocations: 135.1 MB / 425.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 65 kB / 0.5047 GB, free: 5.738 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.1923, allocations: 80.91 MB / 0.5837 GB, free: 4.992 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002666/0.195, allocations: 1.53 MB / 0.5852 GB, free: 3.445 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.196, allocations: 447.3 kB / 0.5856 GB, free: 3.004 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.113e-05/0.1961, allocations: 0 / 0.5856 GB, free: 3.004 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.1962, allocations: 3.938 kB / 0.5856 GB, free: 3 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001058/0.1963, allocations: 28.22 kB / 0.5856 GB, free: 2.973 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007059/0.197, allocations: 227.4 kB / 0.5859 GB, free: 2.758 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002954/0.1973, allocations: 283.9 kB / 0.5861 GB, free: 2.48 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.264e-05/0.1974, allocations: 8 kB / 0.5861 GB, free: 2.473 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002821/0.1976, allocations: 210.3 kB / 0.5863 GB, free: 2.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002006/0.1979, allocations: 119.6 kB / 0.5865 GB, free: 2.152 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.846e-05/0.1979, allocations: 8 kB / 0.5865 GB, free: 2.145 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.751e-05/0.198, allocations: 12 kB / 0.5865 GB, free: 2.133 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.1981, allocations: 75.77 kB / 0.5865 GB, free: 2.059 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.1983, allocations: 123.3 kB / 0.5867 GB, free: 1.938 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003389/0.1986, allocations: 275.3 kB / 0.5869 GB, free: 1.668 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1987, allocations: 4 kB / 0.5869 GB, free: 1.664 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1987, allocations: 0 / 0.5869 GB, free: 1.664 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.1987, allocations: 4 kB / 0.5869 GB, free: 1.66 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.001309/0.2, allocations: 0.6997 MB / 0.5876 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.2, allocations: 8.031 kB / 0.5876 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/0.2001, allocations: 35.66 kB / 0.5877 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003235/0.2005, allocations: 262.3 kB / 0.5879 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.146e-05/0.2005, allocations: 8 kB / 0.5879 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.231e-05/0.2006, allocations: 23.98 kB / 0.5879 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.2009, allocations: 149.5 kB / 0.5881 GB, free: 372 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.2009, allocations: 7.922 kB / 0.5881 GB, free: 364 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.201, allocations: 4 kB / 0.5881 GB, free: 360 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.201, allocations: 4 kB / 0.5881 GB, free: 356 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001391/0.2011, allocations: 47.91 kB / 0.5881 GB, free: 308 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003935/0.2015, allocations: 309.4 kB / 0.5884 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.2018, allocations: 126.8 kB / 0.5886 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.202, allocations: 61.08 kB / 0.5886 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.202, allocations: 4 kB / 0.5886 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005075/0.2025, allocations: 224 kB / 0.5888 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.603e-06/0.2025, allocations: 0 / 0.5888 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006178/0.2032, allocations: 275.6 kB / 0.5891 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.2032, allocations: 59.41 kB / 0.5892 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002829/0.2035, allocations: 290.9 kB / 0.5894 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.165e-05/0.2036, allocations: 41.69 kB / 0.5895 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.046e-05/0.2036, allocations: 89.14 kB / 0.5896 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.816e-05/0.2037, allocations: 51.38 kB / 0.5896 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.2039, allocations: 113.6 kB / 0.5897 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.204, allocations: 322.8 kB / 0.59 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/0.2043, allocations: 92.17 kB / 0.5901 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002526/0.2045, allocations: 150.4 kB / 0.5903 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003383/0.2049, allocations: 242.8 kB / 0.5905 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.2049, allocations: 4 kB / 0.5905 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006925/0.2056, allocations: 414 kB / 0.5909 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.019e-05/0.2057, allocations: 79.38 kB / 0.591 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.2057, allocations: 4 kB / 0.591 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.2057, allocations: 3.938 kB / 0.591 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.2059, allocations: 27.92 kB / 0.591 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.2059, allocations: 0 / 0.591 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005336/0.2064, allocations: 67.88 kB / 0.5911 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.425e-05/0.2065, allocations: 55.98 kB / 0.5911 GB, free: 13.05 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: 26 (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,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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.0001731/0.2067, allocations: 165.8 kB / 0.5913 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.896e-05/0.2068, allocations: 23.72 kB / 0.5913 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.308e-05/0.2068, allocations: 30.25 kB / 0.5913 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2068, allocations: 3.938 kB / 0.5913 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2068, allocations: 3.938 kB / 0.5913 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.2068, allocations: 3.984 kB / 0.5913 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000784/0.2076, allocations: 0.5707 MB / 0.5919 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2076, allocations: 0 / 0.5919 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.521e-05/0.2077, allocations: 8 kB / 0.5919 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.2077, allocations: 4 kB / 0.5919 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.839e-05/0.2077, allocations: 11.97 kB / 0.5919 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2077, allocations: 4 kB / 0.5919 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2078, allocations: 0 / 0.5919 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004228/0.2082, allocations: 322.9 kB / 0.5922 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.2084, allocations: 168.6 kB / 0.5924 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.543e-05/0.2084, allocations: 8 kB / 0.5924 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.2086, allocations: 11.98 kB / 0.5924 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.015e-05/0.2087, allocations: 19.97 kB / 0.5924 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.96e-05/0.2088, allocations: 23.98 kB / 0.5924 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000189/0.209, allocations: 209.9 kB / 0.5926 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.209, allocations: 0 / 0.5926 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003149/0.2093, allocations: 48 kB / 0.5927 GB, free: 11.34 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: 16 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$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.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.year) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * 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.0001308/0.2094, allocations: 118.6 kB / 0.5928 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005332/0.21, allocations: 344.1 kB / 0.5931 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.21, allocations: 0 / 0.5931 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.2101, allocations: 79.89 kB / 0.5932 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.2105, allocations: 28.75 kB / 0.5932 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006768/0.2111, allocations: 469.4 kB / 0.5937 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.2115, allocations: 0.7438 MB / 0.5944 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001476/0.2116, allocations: 37.42 kB / 0.5944 GB, free: 9.449 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.2117, allocations: 39.42 kB / 0.5945 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.2118, allocations: 0 / 0.5945 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of Templates: time 0.00683/0.2186, allocations: 4.022 MB / 0.5984 GB, free: 5.434 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.sim & ./IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)