/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 44 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7439
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1105
RA = 191.689, Dec = -25.8018
tmin = 525744001, tmax = 526003201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='903919', job_status='RUN', time_executed='2021-09-06 04:53:58.367000', time_epoch_executed='1630929238.37' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/903919

Creating custom pfile directory:
/scratch/kocevski/903919/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=525744001.0 && nMetStart<526003201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=525744001.0 && nMetStart<526003201.0' /Data/Flight/Level1/LPA

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/903919/ft1_4FGL_J1246.7-2548_daily_bin1105.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=525744001.0 && nMetStart<526003201.0' /Data/Flight/Level1/LPA

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/903919/ft2_4FGL_J1246.7-2548_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/903919/ft1_4FGL_J1246.7-2548_daily_bin1105.fits outfile=/scratch/kocevski/903919/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1105.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=525744001.0 tmax=526003201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.88
user 4.12
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/903919/ft2_4FGL_J1246.7-2548_daily_bin1105.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/903919/ft2_4FGL_J1246.7-2548_daily_bin1105.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/903919/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1105.fits evtable="EVENTS" outfile="/scratch/kocevski/903919/ft1_filtered_4FGL_J1246.7-2548_daily_bin1105.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.68
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/903919/ft1_filtered_4FGL_J1246.7-2548_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/903919/ft2_4FGL_J1246.7-2548_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/903919/ltcube_525744001_526003201_4FGL_J1246.7-2548_daily_bin1105.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/903919/ft2_4FGL_J1246.7-2548_daily_bin1105.fits
.....................!
real 13.42
user 12.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/903919/ft1_filtered_4FGL_J1246.7-2548_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/903919/ft2_4FGL_J1246.7-2548_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/903919/ltcube_525744001_526003201_4FGL_J1246.7-2548_daily_bin1105.fits outfile=/scratch/kocevski/903919/expmap_525744001_526003201_4FGL_J1246.7-2548_daily_bin1105.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/903919/ltcube_525744001_526003201_4FGL_J1246.7-2548_daily_bin1105.fits
.....................!
real 190.35
user 185.66
sys 4.10

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 184 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1246.7-2548 @ 191.689 -25.8018

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/903919/ft1_filtered_4FGL_J1246.7-2548_daily_bin1105.fits scfile=/scratch/kocevski/903919/ft2_4FGL_J1246.7-2548_daily_bin1105.fits outfile=/scratch/kocevski/903919/cmap_525744001_526003201_4FGL_J1246.7-2548_daily_bin1105.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=191.689 yref=-25.8018 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.63
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/903919/ft1_filtered_4FGL_J1246.7-2548_daily_bin1105.fits scfile=/scratch/kocevski/903919/ft2_4FGL_J1246.7-2548_daily_bin1105.fits outfile=/scratch/kocevski/903919/cmap_HighResolution_525744001_526003201_4FGL_J1246.7-2548_daily_bin1105.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=191.689 yref=-25.8018 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.64
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/903919/ft1_filtered_4FGL_J1246.7-2548_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/903919/ft2_4FGL_J1246.7-2548_daily_bin1105.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/903919/Model_4FGL_J1246.7-2548_daily_bin1105.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/903919/ft1_filtered_4FGL_J1246.7-2548_daily_bin1105.fits.....................!
real 119.50
user 116.84
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/903919/ft1_filtered_4FGL_J1246.7-2548_daily_bin1105.fits', '/scratch/kocevski/903919/ft2_4FGL_J1246.7-2548_daily_bin1105.fits', expMap='/scratch/kocevski/903919/expmap_525744001_526003201_4FGL_J1246.7-2548_daily_bin1105.fits', expCube='/scratch/kocevski/903919/ltcube_525744001_526003201_4FGL_J1246.7-2548_daily_bin1105.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/903919/Model_4FGL_J1246.7-2548_daily_bin1105.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1246.7-2548'

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  2.651e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.214e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/903919/ft1_filtered_4FGL_J1246.7-2548_daily_bin1105.fits
Spacecraft file(s): /scratch/kocevski/903919/ft2_4FGL_J1246.7-2548_daily_bin1105.fits
Exposure map: /scratch/kocevski/903919/expmap_525744001_526003201_4FGL_J1246.7-2548_daily_bin1105.fits
Exposure cube: /scratch/kocevski/903919/ltcube_525744001_526003201_4FGL_J1246.7-2548_daily_bin1105.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/903919/Model_4FGL_J1246.7-2548_daily_bin1105.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7114.42244847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7114.38998121

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.400       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .50603       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8524       1.0000         .10000E-03   10000.    
     5 'Prefactor '    87.749       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.972       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9036       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .73344       1.0000         .10000E-03   10000.    
    12 'Prefactor '    143.77       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3194       1.0000         .10000E-03   10000.    
    16 'norm      '    6.7748       1.0000         .10000E-03   10000.    
    17 'norm      '    3.8351       1.0000         .10000E-03   10000.    
    18 'norm      '    14.836       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34315E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2831       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87980       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7114.390     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2461 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.376        60.803        .51070E-05   -.57866E-04
   2  Prefactor     .49962        58.533        .22449E-04   -.33861E-04
   3  norm          .10000E-03    2.1931        .16208E-06** at limit **
   4  Prefactor     1.8541        6.0413       -.13832E-05    .42836E-03
   5  Prefactor     87.750        56.447       -.68852E-06    .60647E-04
   6  Prefactor     20.961        31.790       -.94135E-06    .67557E-04
   7  Prefactor     .10000E-03    14.218       -.31988E-05** at limit **
   8  Prefactor     .10000E-03    19.182        .26980E-07** at limit **
   9  Prefactor     4.9025        35.597        .24701E-08    .55314E-04
  10  Prefactor     .10000E-03    12.745        .12633E-05** at limit **
  11  norm          .73303        .98599       -.93583E-06   -.20277E-02
  12  Prefactor     143.80        107.11       -.41567E-05    .13801E-03
  13  norm          .10000E-03    5.6177       -.18549E-06** at limit **
  14  norm          .10000E-03    8.1064       -.35288E-06** at limit **
  15  Prefactor     4.3227        6.1193        .72050E-06    .50936E-03
  16  norm          6.7745        6.3973       -.35144E-06    .20872E-03
  17  norm          3.8353        2.6252       -.37891E-07    .10892E-03
  18  norm          14.836        7.4202       -.22402E-06    .10650E-03
  19  Prefactor     .10000E-03    15.874        .19766E-05** at limit **
  20  Prefactor     .10038E-03    6.3905       -.91018E-06** at limit **
  21  Normalizat    1.2833        .25639        .19834E-05    .17059E-03
  22  Prefactor     .87976        .11051        .35253E-06    .56830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.376
  Prefactor  = 0.499618
  norm       = 0.0001
  Prefactor  = 1.85411
  Prefactor  = 87.7502
  Prefactor  = 20.9606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.90251
  Prefactor  = 0.0001
  norm       = 0.733033
  Prefactor  = 143.796
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.32271
  norm       = 6.77454
  norm       = 3.83526
  norm       = 14.8358
  Prefactor  = 0.0001
  Prefactor  = 0.000100379
  Normalizat = 1.28331
  Prefactor  = 0.879758
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.390     FROM HESSE     STATUS=OK           354 CALLS     2815 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.376        60.159        .45644E-04   -1.3946    
   2  Prefactor     .49962        57.758        .46898E-02   -1.5567    
   3  norm          .10000E-03    2.1981        .12188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8541        6.1516        .30630E-03   -1.5436    
   5  Prefactor     87.750        56.199        .42890E-04   -1.3832    
   6  Prefactor     20.961        31.790        .87462E-04   -1.4792    
   7  Prefactor     .10000E-03    14.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9025        35.505        .18164E-03   -1.5265    
  10  Prefactor     .10000E-03    12.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .73303        .92479        .97774E-03   -1.5537    
  12  Prefactor     143.80        106.03        .16801E-03   -1.3304    
  13  norm          .10000E-03    5.6531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.1859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.3227        6.0989        .19383E-03   -1.5292    
  16  norm          6.7745        6.3903        .15415E-03   -1.5187    
  17  norm          3.8353        2.6263        .10950E-03   -1.5316    
  18  norm          14.836        7.4185        .10398E-03   -1.4937    
  19  Prefactor     .10000E-03    15.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10038E-03    7.6242        .76587E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2833        .30320        .35307E-03   -.84066    
  22  Prefactor     .87976        .13212        .18549E-03   -.96852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74439e-08
Minuit parameter uncertainties:
  1  60.206
  2  10.7533
  3  9.39308e-06
  4  6.15366
  5  56.2331
  6  31.816
  7  7.08957e-05
  8  1.40743e-05
  9  26.4084
  10  6.29877e-05
  11  0.924807
  12  106.171
  13  1.10259e-05
  14  0.000185022
  15  6.09975
  16  6.39092
  17  2.62637
  18  7.41896
  19  8.40348e-05
  20  0.00340131
  21  0.303619
  22  0.13217
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7114.38993769

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  7.330e-01  9.248e-01  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.214e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.798e-01  1.322e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.283e+00  3.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.21e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.55e-05

TS (Fixed Index): 1.08
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/903919/likelihoodResults_525744001_526003201_4FGL_J1246.7-2548_daily_bin1105.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7114.31905477
delta logL = 0.0708829185041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7114.31463527
delta logL = 0.0753024263513

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78529       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6633       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88424       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7114.315     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      210 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78537        15.249        .17931E-01    .19159E-02
   2  alpha         2.6633        3.4913        .41263        .10975E-03
   3  Normalizat    1.2592        .55389E-01    .80391E-01    .11590E-04
   4  Prefactor     .88429        .24417E-01    .44804E-01    .16646E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.785371
  alpha      = 2.66329
  Normalizat = 1.25915
  Prefactor  = 0.884286
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.315     FROM HESSE     STATUS=OK            35 CALLS      245 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78537        .93863        .81507E-03   -1.5531    
   2  alpha         2.6633        1.1136        .24947E-01    .65363E-01
   3  Normalizat    1.2592        .30280        .35587E-03   -.84794    
   4  Prefactor     .88429        .13236        .18502E-03   -.96692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29174e-09
Minuit parameter uncertainties:
  1  0.938652
  2  1.15439
  3  0.303228
  4  0.132406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/903919': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7114.31463521
delta logL = 0.0753024841561

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  7.854e-01  9.387e-01  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.663e+00  1.154e+00  0.000e+00  5.000e+00 ( 1.000e+00)
277         beta:  1.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  8.843e-01  1.324e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.259e+00  3.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.66 +/- 1.15
Photon Flux (Free Index): 5.69e-08 +/- 8.18e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.61e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/903919/cmap_HighResolution_525744001_526003201_4FGL_J1246.7-2548_daily_bin1105.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/903919

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-05', comment='SUCCESS', photon_flux='3.21e-08', energy_flux2='1.46e-05', photon_flux_error='4.04e-08', dlogl='7.53e-02', energy_flux='1.23e-05', photon_flux2='5.69e-08', job_status='DONE', time_completed='2021-09-06 05:07:37.323245', photon_index_error2='1.15', photon_index2='2.66', ts='1.08', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.61e-05', EG='1.28', time_epoch_completed='1630930057.32', return_code='0', job_id='903919', GAL2='0.88', EG2='1.26', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='8.18e-08', ts2='1.23', photon_index='2.21' WHERE bin_id='1105' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:07:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 903919: <4FGL_J1246.7-2548_daily_bin1105> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1105> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 04:51:07 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:51:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 04:51:09 2021
Terminated at Mon Sep  6 05:07:38 2021
Results reported at Mon Sep  6 05:07:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1105 191.689 -25.8018 525744001 526003201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1246.7-2548 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   779.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

The output (if any) is above this job summary.

