aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 58 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1339.1-2620_daily_bin1771
RA = 204.799, Dec = -26.3351
tmin = 698371201, tmax = 698630401
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='548886', job_status='RUN', time_executed='2023-02-21 00:56:30.861665', time_epoch_executed='1676969790.86' WHERE source_name='4FGL J1339.1-2620' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548886

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548886/ft1_4FGL_J1339.1-2620_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548886/ft2_4FGL_J1339.1-2620_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548886/ft1_4FGL_J1339.1-2620_daily_bin1771.fits outfile=/scratch/kocevski/548886/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1771.fits ra=204.799 dec=-26.3351 rad=12.0 tmin=698371201.0 tmax=698630401.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.12
user 2.84
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/548886/ft2_4FGL_J1339.1-2620_daily_bin1771.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548886/ft2_4FGL_J1339.1-2620_daily_bin1771.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/548886/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/548886/ft1_filtered_4FGL_J1339.1-2620_daily_bin1771.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.33
sys 0.14

Number of photons that the gtmktime cut: 824

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548886/ft1_filtered_4FGL_J1339.1-2620_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/548886/ft2_4FGL_J1339.1-2620_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/548886/ltcube_698371201_698630401_4FGL_J1339.1-2620_daily_bin1771.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/548886/ft2_4FGL_J1339.1-2620_daily_bin1771.fits
.....................!
real 12.63
user 12.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548886/ft1_filtered_4FGL_J1339.1-2620_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/548886/ft2_4FGL_J1339.1-2620_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/548886/ltcube_698371201_698630401_4FGL_J1339.1-2620_daily_bin1771.fits outfile=/scratch/kocevski/548886/expmap_698371201_698630401_4FGL_J1339.1-2620_daily_bin1771.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/548886/ltcube_698371201_698630401_4FGL_J1339.1-2620_daily_bin1771.fits
.....................!
real 190.09
user 184.92
sys 4.84

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_8years/Templates/CenALobes.fits is the correct path to the extended template.
Added 198 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 J1339.1-2620 @ 204.799 -26.3351

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/548886/ft1_filtered_4FGL_J1339.1-2620_daily_bin1771.fits scfile=/scratch/kocevski/548886/ft2_4FGL_J1339.1-2620_daily_bin1771.fits outfile=/scratch/kocevski/548886/cmap_698371201_698630401_4FGL_J1339.1-2620_daily_bin1771.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=204.799 yref=-26.3351 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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548886/ft1_filtered_4FGL_J1339.1-2620_daily_bin1771.fits scfile=/scratch/kocevski/548886/ft2_4FGL_J1339.1-2620_daily_bin1771.fits outfile=/scratch/kocevski/548886/cmap_HighResolution_698371201_698630401_4FGL_J1339.1-2620_daily_bin1771.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=204.799 yref=-26.3351 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548886/ft1_filtered_4FGL_J1339.1-2620_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/548886/ft2_4FGL_J1339.1-2620_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548886/Model_4FGL_J1339.1-2620_daily_bin1771.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/548886/ft1_filtered_4FGL_J1339.1-2620_daily_bin1771.fits.....................!
real 144.41
user 142.92
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/548886/ft1_filtered_4FGL_J1339.1-2620_daily_bin1771.fits', '/scratch/kocevski/548886/ft2_4FGL_J1339.1-2620_daily_bin1771.fits', expMap='/scratch/kocevski/548886/expmap_698371201_698630401_4FGL_J1339.1-2620_daily_bin1771.fits', expCube='/scratch/kocevski/548886/ltcube_698371201_698630401_4FGL_J1339.1-2620_daily_bin1771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/548886/Model_4FGL_J1339.1-2620_daily_bin1771.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.1-2620'

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.296e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
316        Index:  2.243e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/548886/ft1_filtered_4FGL_J1339.1-2620_daily_bin1771.fits
Spacecraft file(s): /scratch/kocevski/548886/ft2_4FGL_J1339.1-2620_daily_bin1771.fits
Exposure map: /scratch/kocevski/548886/expmap_698371201_698630401_4FGL_J1339.1-2620_daily_bin1771.fits
Exposure cube: /scratch/kocevski/548886/ltcube_698371201_698630401_4FGL_J1339.1-2620_daily_bin1771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/548886/Model_4FGL_J1339.1-2620_daily_bin1771.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) = 8876.17628722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3778       1.0000          .0000       .10000E+07
     2 'Prefactor '    .41495E-04   1.0000          .0000       .10000E+07
     3 'norm      '    8.4035       1.0000          .0000       .10000E+07
     4 'Prefactor '    .61162E-06   1.0000          .0000       .10000E+07
     5 'norm      '    2.0051       1.0000          .0000       .10000E+07
     6 'norm      '    .60336       1.0000          .0000       .10000E+07
     7 'norm      '    11.093       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.765       1.0000          .0000       .10000E+07
     9 'Prefactor '    15.806       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.7746       1.0000          .0000       .10000E+07
    11 'Prefactor '    .47377E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .72231E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .22391       1.0000          .0000       .10000E+07
    14 'norm      '    .10999E-04   1.0000          .0000       .10000E+07
    15 'norm      '    27.634       1.0000          .0000       .10000E+07
    16 'norm      '    7.6392       1.0000          .0000       .10000E+07
    17 'Prefactor '    7.0364       1.0000          .0000       .10000E+07
    18 'Prefactor '    .29698E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    7.8776       1.0000          .0000       .10000E+07
    20 'Prefactor '    .12553E-02   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.4709       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88566       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8876.159     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     1767 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3801        1.3087        .21991E-07    .70649E-02
   2  Prefactor     .23387E-06    42.136       -.25851E-05** at limit **
   3  norm          8.3828        6.6858       -.10738E-06   -.27684E-02
   4  Prefactor      .0000        2.6494        .31399E-07** at limit **
   5  norm          1.9991        5.2411       -.27014E-08    .90707E-03
   6  norm          .60933        2.3550        .49118E-07   -.11580E-02
   7  norm          11.122        6.6848        .64499E-07    .21260E-03
   8  Prefactor     10.780        12.833        .15922E-05    .14887E-02
   9  Prefactor     15.915        2.9320       -.57402E-06   -.22215E-01
  10  Prefactor     5.7813        5.5920        .31290E-07    .74505E-03
  11  Prefactor     .55511E-10    4.3086       -.44842E-07** at limit **
  12  norm          .55511E-10    1.5984       -.25205E-07** at limit **
  13  Prefactor     .10674E-04    158.04       -.26237E-04** at limit **
  14  norm           .0000        11.528       -.73181E-06** at limit **
  15  norm          28.783        24.994       -.37931E-05    .34770E-01
  16  norm          7.6830        1.5769       -.92724E-07   -.48752E-02
  17  Prefactor     7.0205        4.1674       -.20950E-07   -.10030E-02
  18  Prefactor      .0000        21.482        .10971E-05** at limit **
  19  Prefactor     11.160        84.986        .19356E-04   -.89387E-03
  20  Prefactor     .55511E-10    9.8391        .59405E-06** at limit **
  21  Normalizat    1.4700        .31121       -.28653E-05    .17846E-03
  22  Prefactor     .88511        .12699       -.26756E-06    .22501E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.38012
  Prefactor  = 2.33868e-07
  norm       = 8.38279
  Prefactor  = 0
  norm       = 1.99908
  norm       = 0.609331
  norm       = 11.1217
  Prefactor  = 10.7797
  Prefactor  = 15.9154
  Prefactor  = 5.78131
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 1.06741e-05
  norm       = 0
  norm       = 28.7832
  norm       = 7.68301
  Prefactor  = 7.02049
  Prefactor  = 0
  Prefactor  = 11.1601
  Prefactor  = 5.55112e-11
  Normalizat = 1.46997
  Prefactor  = 0.885107
 **********
 **   18 **HESSE 
 **********

 FCN=   8876.159     FROM HESSE     STATUS=OK           392 CALLS     2159 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3801        1.3065        .66409E-03   -1.5677    
   2  Prefactor     .23387E-06    44.692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.3828        6.6972        .34558E-03   -1.5650    
   4  Prefactor      .0000        2.6444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9991        5.2794        .73098E-03   -1.5680    
   6  norm          .60933        2.3634        .68927E-03   -1.5692    
   7  norm          11.122        6.6868        .30056E-03   -1.5641    
   8  Prefactor     10.780        12.870        .30511E-03   -1.5642    
   9  Prefactor     15.915        21.325        .25165E-03   -1.5628    
  10  Prefactor     5.7813        5.5913        .41772E-03   -1.5660    
  11  Prefactor     .55511E-10    4.3146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    1.5994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10674E-04    275.37        .11365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        11.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          28.783        35.261        .19026E-03   -1.5601    
  16  norm          7.6830        15.413        .36259E-03   -1.5653    
  17  Prefactor     7.0205        4.6286        .37795E-03   -1.5655    
  18  Prefactor      .0000        21.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.160        84.690        .35701E-03   -1.5641    
  20  Prefactor     .55511E-10    9.8034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4700        .25415        .81422E-01   -.78626    
  22  Prefactor     .88511        .10390        .44822E-01   -.96663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55818e-06
Minuit parameter uncertainties:
  1  1.30655
  2  0.0064659
  3  6.69722
  4  1.4831e-05
  5  5.27942
  6  2.36343
  7  6.68681
  8  12.8698
  9  21.3254
  10  5.59134
  11  3.32136e-05
  12  1.34553e-05
  13  0.108437
  14  2.07715e-05
  15  35.2614
  16  15.4127
  17  4.62856
  18  4.15024e-05
  19  61.4881
  20  4.33943e-05
  21  0.254368
  22  0.103923
Done.

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

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  5.781e+00  5.591e+00  0.000e+00  1.000e+06 ( 1.000e-13)
316        Index:  2.243e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  8.851e-01  1.039e-01  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  1.470e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.93
Ra Dec: 204.799 -26.335
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 8.99e-06 +/- 8.70e-06

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) = 8873.842971
delta logL = 2.31629385754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8873.79862918
delta logL = 2.36063568021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0593       1.0000          .0000       .10000E+07
     2 'Index     '    .83507       1.0000          .0000       10.000    
     3 'Normalizat'    1.4850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8873.799     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0616        3.9856        .50020E-03   -.27036E-02
   2  Index         .83507        .38186        .28271       -.69194E-04
   3  Normalizat    1.4849        .24451        .81071E-01   -.22057E-04
   4  Prefactor     .88244        .10232        .44780E-01   -.52434E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.06156
  Index      = 0.835074
  Normalizat = 1.48493
  Prefactor  = 0.882438
 **********
 **   18 **HESSE 
 **********

 FCN=   8873.799     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0616        5.9969        .17659E-04   -1.5668    
   2  Index         .83507        .57768        .12366E-02   -.98448    
   3  Normalizat    1.4849        .29878        .35885E-03   -.78203    
   4  Prefactor     .88244        .12521        .18752E-03   -.96758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12758e-12
Minuit parameter uncertainties:
  1  5.99691
  2  0.581963
  3  0.299131
  4  0.125253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548886': 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) = 8873.79862895
delta logL = 2.36063590984

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  4.062e+00  5.997e+00  0.000e+00  1.000e+06 ( 1.000e-13)
316        Index:  8.351e-01  5.820e-01  0.000e+00  1.000e+01 (-1.000e+00)
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  8.824e-01  1.253e-01  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  1.485e+00  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.64
Ra Dec: 204.799 -26.335
Photon Index (Free Index): 0.84 +/- 0.58
Photon Flux (Free Index): 5.15e-09 +/- 5.21e-09
Energy Flux (Free Index): 1.07e-04 +/- 1.34e-04

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/548886/cmap_HighResolution_698371201_698630401_4FGL_J1339.1-2620_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='1.07e-04', photon_flux_error='2.09e-08', dlogl='2.36e+00', energy_flux='8.99e-06', photon_flux2='5.15e-09', job_status='DONE', time_completed='2023-02-21 01:08:52.540011', photon_index_error2='0.58', photon_index2='0.84', ts='7.93', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.34e-04', EG='1.47', time_epoch_completed='1676970532.54', return_code='0', job_id='548886', GAL2='0.88', EG2='1.48', return_code2='0', energy_flux_error='8.70e-06', photon_flux_error2='5.21e-09', ts2='12.64', photon_index='2.24' WHERE bin_id='1771' AND source_name='4FGL J1339.1-2620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 01:08:52 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 548886: <4FGL_J1339.1-2620_daily_bin1771> in cluster <slac> Done

Job <4FGL_J1339.1-2620_daily_bin1771> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 00:55:21 2023
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:55:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:55:22 2023
Terminated at Tue Feb 21 01:08:53 2023
Results reported at Tue Feb 21 01:08:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.1-2620_daily_bin1771 204.799 -26.3351 698371201 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1339.1-2620 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   743.33 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             345.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

