/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 7 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 = 7357
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1357
RA = 191.689, Dec = -25.8018
tmin = 591062401, tmax = 591321601
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='905415', job_status='RUN', time_executed='2021-09-06 04:56:13.875964', time_epoch_executed='1630929373.88' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905415/ft1_4FGL_J1246.7-2548_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905415/ft2_4FGL_J1246.7-2548_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905415/ft1_4FGL_J1246.7-2548_daily_bin1357.fits outfile=/scratch/kocevski/905415/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1357.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=591062401.0 tmax=591321601.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 3.03
user 2.82
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905415/ft2_4FGL_J1246.7-2548_daily_bin1357.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/905415/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1357.fits evtable="EVENTS" outfile="/scratch/kocevski/905415/ft1_filtered_4FGL_J1246.7-2548_daily_bin1357.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905415/ft1_filtered_4FGL_J1246.7-2548_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/905415/ft2_4FGL_J1246.7-2548_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/905415/ltcube_591062401_591321601_4FGL_J1246.7-2548_daily_bin1357.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/905415/ft2_4FGL_J1246.7-2548_daily_bin1357.fits
.....................!
real 12.54
user 12.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905415/ft1_filtered_4FGL_J1246.7-2548_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/905415/ft2_4FGL_J1246.7-2548_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/905415/ltcube_591062401_591321601_4FGL_J1246.7-2548_daily_bin1357.fits outfile=/scratch/kocevski/905415/expmap_591062401_591321601_4FGL_J1246.7-2548_daily_bin1357.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/905415/ltcube_591062401_591321601_4FGL_J1246.7-2548_daily_bin1357.fits
.....................!
real 190.61
user 185.12
sys 5.07

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/905415/ft1_filtered_4FGL_J1246.7-2548_daily_bin1357.fits scfile=/scratch/kocevski/905415/ft2_4FGL_J1246.7-2548_daily_bin1357.fits outfile=/scratch/kocevski/905415/cmap_591062401_591321601_4FGL_J1246.7-2548_daily_bin1357.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 1.48
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905415/ft1_filtered_4FGL_J1246.7-2548_daily_bin1357.fits scfile=/scratch/kocevski/905415/ft2_4FGL_J1246.7-2548_daily_bin1357.fits outfile=/scratch/kocevski/905415/cmap_HighResolution_591062401_591321601_4FGL_J1246.7-2548_daily_bin1357.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.99
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905415/ft1_filtered_4FGL_J1246.7-2548_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/905415/ft2_4FGL_J1246.7-2548_daily_bin1357.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905415/Model_4FGL_J1246.7-2548_daily_bin1357.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/905415/ft1_filtered_4FGL_J1246.7-2548_daily_bin1357.fits.........................!
real 23.18
user 20.15
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/905415/ft1_filtered_4FGL_J1246.7-2548_daily_bin1357.fits', '/scratch/kocevski/905415/ft2_4FGL_J1246.7-2548_daily_bin1357.fits', expMap='/scratch/kocevski/905415/expmap_591062401_591321601_4FGL_J1246.7-2548_daily_bin1357.fits', expCube='/scratch/kocevski/905415/ltcube_591062401_591321601_4FGL_J1246.7-2548_daily_bin1357.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/905415/Model_4FGL_J1246.7-2548_daily_bin1357.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/905415/ft1_filtered_4FGL_J1246.7-2548_daily_bin1357.fits
Spacecraft file(s): /scratch/kocevski/905415/ft2_4FGL_J1246.7-2548_daily_bin1357.fits
Exposure map: /scratch/kocevski/905415/expmap_591062401_591321601_4FGL_J1246.7-2548_daily_bin1357.fits
Exposure cube: /scratch/kocevski/905415/ltcube_591062401_591321601_4FGL_J1246.7-2548_daily_bin1357.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/905415/Model_4FGL_J1246.7-2548_daily_bin1357.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) = 561.492474933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10833E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .34217       1.0000         .10000E-03   10000.    
     3 'norm      '    .34208E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .86860E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9999.7       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9999.6       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.893       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    29.360       1.0000         .10000E-03   10000.    
    14 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.3474       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .18075       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0810       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=   551.6619     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2484 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    863.87        .19874E-03** at limit **
   2  Prefactor     .10000E-03    6581.3        .20500E-02** at limit **
   3  norm          .10000E-03    2166.2        .37980E-03** at limit **
   4  Prefactor     .10002E-03    7925.3       -.84663E-03** at limit **
   5  Prefactor    10000.0        9942.3        .12386E-02** at limit **
   6  Prefactor    10000.0        7166.4        .28454E-03** at limit **
   7  Prefactor    10000.0        7844.6        .33197E-02** at limit **
   8  Prefactor    10000.0        8086.8        .40180E-02** at limit **
   9  Prefactor    10000.0        1153.3       -.24859E-03** at limit **
  10  Prefactor     57.666        1559.8        .96555E-03    .29342E-04
  11  norm          .10000E-03    7.9841       -.77632E-06** at limit **
  12  Prefactor     .10015E-03    739.86       -.35420E-03** at limit **
  13  norm          29.284        55.923       -.82038E-04    .63202E-04
  14  norm          .10000E-03    18.239       -.71424E-06** at limit **
  15  Prefactor     .10000E-03    16.189       -.90684E-06** at limit **
  16  norm          5.5180        71.571       -.13104E-04    .21261E-04
  17  norm          .10000E-03    3.9008        .24164E-07** at limit **
  18  norm          .10000E-03    10.648        .10849E-06** at limit **
  19  Prefactor     .10000E-03    29.806       -.91903E-07** at limit **
  20  Prefactor     .10000E-03    8.0209        .18036E-06** at limit **
  21  Normalizat    .18678        1.3311       -.61553E-04    .96192E-05
  22  Prefactor     1.0785        .44800        .12458E-04   -.32513E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 57.6664
  norm       = 0.000100002
  Prefactor  = 0.000100148
  norm       = 29.2841
  norm       = 0.000100003
  Prefactor  = 0.000100001
  norm       = 5.51798
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.186784
  Prefactor  = 1.07854
 **********
 **   18 **HESSE 
 **********

 FCN=   551.6619     FROM HESSE     STATUS=OK           324 CALLS     2808 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    863.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6580.5        .21217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2165.9        .19682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    7924.2        .18333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        9942.4        .18833E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        7166.6        .19153E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        7843.8        .20924E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        8085.6        .22071E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        1153.3        .19925E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     57.666        1533.9        .26592E-03   -1.4188    
  11  norm          .10000E-03    7.9936        .64839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10015E-03    739.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          29.284        55.779        .73940E-04   -1.4625    
  14  norm          .10000E-03    18.243        .98018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.194        .92350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5180        71.957        .17379E-03   -1.5238    
  17  norm          .10000E-03    3.9035        .45322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.682        .74867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.811        .12534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.0213        .64997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .18678        1.4866        .79653E-03   -1.3040    
  22  Prefactor     1.0785        .48157        .15316E-03   -.90155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30677e-09
Minuit parameter uncertainties:
  1  1.80379e-05
  2  0.000879563
  3  0.00163468
  4  0.0254604
  5  0.00800503
  6  0.00350534
  7  0.00292922
  8  0.00286491
  9  0.00129643
  10  613.169
  11  0.000233314
  12  0.0211754
  13  55.8787
  14  0.000462225
  15  0.000285542
  16  39.9113
  17  1.2587e-06
  18  2.58712e-05
  19  7.43564e-06
  20  8.60823e-07
  21  1.06331
  22  0.483528
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.000e-04  2.333e-04  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:  1.079e+00  4.835e-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.868e-01  1.063e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 1.58e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.05e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905415/likelihoodResults_591062401_591321601_4FGL_J1246.7-2548_daily_bin1357.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) = 551.662495418
delta logL = -0.000554678592152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 551.661940747
delta logL = -7.0448322731e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2168       1.0000          .0000       5.0000    
     3 'Normalizat'    .18672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0786       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   551.6527     FROM MIGRAD    STATUS=FAILED       165 CALLS      307 TOTAL
                     EDM=   .56E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10834        96.212        .11334E-01    .84731E-03
   2  alpha         4.9938        2.7207        .50000       -.11132E-03
   3  Normalizat    .14351        .33284        .79672E-02    .18967E-04
   4  Prefactor     1.0901        .12026        .15316E-03    .80704E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   551.6527     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      393 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10834        96.212        .17124E-03    .84731E-03
   2  alpha         4.9938        2.7207        .32734E-01   -.11132E-03
   3  Normalizat    .14351        .33284        .78887E-03    .18967E-04
   4  Prefactor     1.0901        .12026        .32389E-04    .80704E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   551.6527     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      440 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10834        1.5421        .45279E-07    .43078E-03
   2  alpha         4.9938        .38330        .35050E-04   -.59798E-06
   3  Normalizat    .14351        2.0412        .20825E-06    .16520E-04
   4  Prefactor     1.0901        .47811       -.23341E-07    .78017E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.108338
  alpha      = 4.99375
  Normalizat = 0.143513
  Prefactor  = 1.09007
 **********
 **   18 **HESSE 
 **********

 FCN=   551.6527     FROM HESSE     STATUS=OK            29 CALLS      469 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10834        1.6742        .18043E-04   -1.5642    
   2  alpha         4.9938        3.2010        .50000        7.7833    
   3  Normalizat    .14351        2.0303        .12748E-04   -1.3391    
   4  Prefactor     1.0901        .47679        .61264E-05   -.89785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61683e-07
Minuit parameter uncertainties:
  1  0.851416
  2  1.2952
  3  1.08882
  4  0.478672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905415': 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) = 551.652725914
delta logL = 0.00921482525473

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.083e-01  8.514e-01  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  4.994e+00  1.295e+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:  1.090e+00  4.787e-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.435e-01  1.089e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 191.689 -25.802

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/905415/cmap_HighResolution_591062401_591321601_4FGL_J1246.7-2548_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.05e-04', job_status='DONE', photon_flux_upper_limit='1.58e-06', time_completed='2021-09-06 05:02:21.468675', job_id='905415', GAL2='1.09', fit_tolerance='1e-08', EG2='0.14', EG='0.19', time_epoch_completed='1630929741.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='9.21e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1357' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:02:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 905415: <4FGL_J1246.7-2548_daily_bin1357> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1357> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 04:55:56 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:55:58 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:55:58 2021
Terminated at Mon Sep  6 05:02:22 2021
Results reported at Mon Sep  6 05:02:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1357 191.689 -25.8018 591062401 591321601 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 :                                   355.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   383 sec.
    Turnaround time :                            386 sec.

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

