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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin924
RA = 204.756, Dec = -24.0085
tmin = 478828801, tmax = 479088001
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='855129', job_status='RUN', time_executed='2021-09-08 07:33:28.013748', time_epoch_executed='1631111608.01' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/855129

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/855129/ft1_4FGL_J1339.0-2400_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/855129/ft2_4FGL_J1339.0-2400_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/855129/ft1_4FGL_J1339.0-2400_daily_bin924.fits outfile=/scratch/kocevski/855129/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin924.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=478828801.0 tmax=479088001.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 2.88
user 2.65
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/855129/ft2_4FGL_J1339.0-2400_daily_bin924.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/855129/ft2_4FGL_J1339.0-2400_daily_bin924.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/855129/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin924.fits evtable="EVENTS" outfile="/scratch/kocevski/855129/ft1_filtered_4FGL_J1339.0-2400_daily_bin924.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.45
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/855129/ft1_filtered_4FGL_J1339.0-2400_daily_bin924.fits" evtable="EVENTS" scfile=/scratch/kocevski/855129/ft2_4FGL_J1339.0-2400_daily_bin924.fits sctable="SC_DATA" outfile=/scratch/kocevski/855129/ltcube_478828801_479088001_4FGL_J1339.0-2400_daily_bin924.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/855129/ft2_4FGL_J1339.0-2400_daily_bin924.fits
.....................!
real 14.55
user 14.19
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/855129/ft1_filtered_4FGL_J1339.0-2400_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/855129/ft2_4FGL_J1339.0-2400_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/855129/ltcube_478828801_479088001_4FGL_J1339.0-2400_daily_bin924.fits outfile=/scratch/kocevski/855129/expmap_478828801_479088001_4FGL_J1339.0-2400_daily_bin924.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/855129/ltcube_478828801_479088001_4FGL_J1339.0-2400_daily_bin924.fits
.....................!
real 157.46
user 152.50
sys 4.59

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 192 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.0-2400 @ 204.756 -24.0085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/855129/ft1_filtered_4FGL_J1339.0-2400_daily_bin924.fits scfile=/scratch/kocevski/855129/ft2_4FGL_J1339.0-2400_daily_bin924.fits outfile=/scratch/kocevski/855129/cmap_478828801_479088001_4FGL_J1339.0-2400_daily_bin924.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.756 yref=-24.0085 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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/855129/ft1_filtered_4FGL_J1339.0-2400_daily_bin924.fits scfile=/scratch/kocevski/855129/ft2_4FGL_J1339.0-2400_daily_bin924.fits outfile=/scratch/kocevski/855129/cmap_HighResolution_478828801_479088001_4FGL_J1339.0-2400_daily_bin924.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.756 yref=-24.0085 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.49
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/855129/ft1_filtered_4FGL_J1339.0-2400_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/855129/ft2_4FGL_J1339.0-2400_daily_bin924.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/855129/Model_4FGL_J1339.0-2400_daily_bin924.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/855129/ft1_filtered_4FGL_J1339.0-2400_daily_bin924.fits.....................!
real 94.23
user 92.82
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/855129/ft1_filtered_4FGL_J1339.0-2400_daily_bin924.fits', '/scratch/kocevski/855129/ft2_4FGL_J1339.0-2400_daily_bin924.fits', expMap='/scratch/kocevski/855129/expmap_478828801_479088001_4FGL_J1339.0-2400_daily_bin924.fits', expCube='/scratch/kocevski/855129/ltcube_478828801_479088001_4FGL_J1339.0-2400_daily_bin924.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/855129/Model_4FGL_J1339.0-2400_daily_bin924.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.0-2400'

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  8.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/855129/ft1_filtered_4FGL_J1339.0-2400_daily_bin924.fits
Spacecraft file(s): /scratch/kocevski/855129/ft2_4FGL_J1339.0-2400_daily_bin924.fits
Exposure map: /scratch/kocevski/855129/expmap_478828801_479088001_4FGL_J1339.0-2400_daily_bin924.fits
Exposure cube: /scratch/kocevski/855129/ltcube_478828801_479088001_4FGL_J1339.0-2400_daily_bin924.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/855129/Model_4FGL_J1339.0-2400_daily_bin924.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) = 6765.13145793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2399       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21964E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.285       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12444E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .18100E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.968       1.0000         .10000E-03   10000.    
     9 'norm      '    9.7439       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.886       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.870       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8207       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4862       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.101       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.561       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.842       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.804       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1515       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6765.125     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2905 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2398        1.7912        .38164E-07   -.26721E-04
   2  Prefactor     .10000E-03    339.92        .14391E-05** at limit **
   3  norm          .10000E-03    20.955       -.83388E-06** at limit **
   4  norm          16.291        7.9199        .14946E-06    .33542E-04
   5  Prefactor     .10000E-03    7.4928       -.36189E-06** at limit **
   6  norm          .10000E-03    1.4302       -.32285E-07** at limit **
   7  norm          .10000E-03    2.6254        .45763E-07** at limit **
   8  Prefactor     20.977        29.494        .28681E-06    .31802E-04
   9  norm          9.7433        6.5675        .25316E-07    .11003E-03
  10  norm          .10000E-03    3.0988       -.16374E-06** at limit **
  11  Prefactor     11.884        16.292       -.10189E-05   -.24517E-04
  12  Prefactor     10.869        37.477       -.10156E-05   -.68171E-04
  13  Prefactor     .10000E-03    20.380        .10661E-05** at limit **
  14  Prefactor     8.8219        14.044        .13497E-06    .11513E-04
  15  norm          2.4854        5.8276        .64920E-05   -.73647E-04
  16  Prefactor     36.156        93.879       -.79948E-05   -.33456E-04
  17  norm          .10000E-03    11.764        .48731E-07** at limit **
  18  Prefactor     .10000E-03    16.781       -.34048E-06** at limit **
  19  norm          .10000E-03    5.2571        .88652E-07** at limit **
  20  Prefactor     .10000E-03    1.8298       -.45967E-07** at limit **
  21  Prefactor     41.561        55.549        .43913E-06    .16456E-05
  22  Prefactor     23.829        63.071        .23744E-05    .48579E-05
  23  Prefactor     10.816        24.280        .22835E-05    .25791E-04
  24  Normalizat    1.1514        .27539       -.11712E-06   -.32531E-04
  25  Prefactor     .95230        .11555       -.59280E-06    .37308E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2398
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 16.2906
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 20.9773
  norm       = 9.74334
  norm       = 0.0001
  Prefactor  = 11.8845
  Prefactor  = 10.8694
  Prefactor  = 0.0001
  Prefactor  = 8.82192
  norm       = 2.48543
  Prefactor  = 36.1564
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.561
  Prefactor  = 23.829
  Prefactor  = 10.8162
  Normalizat = 1.15141
  Prefactor  = 0.952299
 **********
 **   18 **HESSE 
 **********

 FCN=   6765.125     FROM HESSE     STATUS=OK           425 CALLS     3330 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2398        1.7865        .94793E-04   -1.5409    
   2  Prefactor     .10000E-03    341.65        .20143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    21.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.291        7.8517        .99250E-04   -1.4901    
   5  Prefactor     .10000E-03    7.6058        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.7322        .19025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.6382        .13014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.977        29.839        .87470E-04   -1.4792    
   9  norm          9.7433        6.6268        .12838E-03   -1.5084    
  10  norm          .10000E-03    3.1110        .14138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.884        16.231        .11620E-03   -1.5018    
  12  Prefactor     10.869        37.453        .12152E-03   -1.5048    
  13  Prefactor     .10000E-03    20.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.8219        13.969        .13496E-03   -1.5114    
  15  norm          2.4854        5.8342        .12963E-02   -1.5393    
  16  Prefactor     36.156        93.996        .66700E-04   -1.4505    
  17  norm          .10000E-03    11.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.2747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8607        .10860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     41.561        55.552        .62181E-04   -1.4418    
  22  Prefactor     23.829        63.068        .82036E-04   -1.4731    
  23  Prefactor     10.816        24.288        .12189E-03   -1.5050    
  24  Normalizat    1.1514        .33079        .37914E-03   -.88118    
  25  Prefactor     .95230        .13928        .17762E-03   -.94337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5475e-10
Minuit parameter uncertainties:
  1  1.78658
  2  0.0011925
  3  3.5047e-06
  4  7.85218
  5  5.25508e-05
  6  3.6449e-05
  7  5.0406e-06
  8  29.8606
  9  6.6273
  10  1.73814e-05
  11  16.2371
  12  37.5341
  13  3.08197e-05
  14  13.9744
  15  5.83555
  16  94.3849
  17  8.19027e-07
  18  2.4078e-05
  19  1.23355e-05
  20  2.99327e-06
  21  55.6215
  22  63.2452
  23  24.3103
  24  0.331389
  25  0.139335
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  1.087e+01  3.753e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  9.523e-01  1.393e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.151e+00  3.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 204.756 -24.009
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/855129/likelihoodResults_478828801_479088001_4FGL_J1339.0-2400_daily_bin924.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): 102
logL (Free Index) = 6764.19105926
delta logL = 0.934255493199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6764.15881173
delta logL = 0.966503028048

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9201       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7581       1.0000          .0000       10.000    
     3 'Normalizat'    1.0261       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98335       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6764.159     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      264 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9309        68.592        .45332E-02    .44475E-03
   2  Index         3.7574        2.6972        .13698        .15264E-03
   3  Normalizat    1.0259        .79995E-01    .90015E-01    .22610E-04
   4  Prefactor     .98342        .34103E-01    .46059E-01   -.39761E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.93087
  Index      = 3.75736
  Normalizat = 1.0259
  Prefactor  = 0.983416
 **********
 **   18 **HESSE 
 **********

 FCN=   6764.159     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      295 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9309        135.90        .13190E-03   -1.5264    
   2  Index         3.7574        6.8068        .46927E-02   -.25116    
   3  Normalizat    1.0259        .30914        .39865E-03   -.92168    
   4  Prefactor     .98342        .13494        .17499E-03   -.93284    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.57526e-10
Minuit parameter uncertainties:
  1  51.903
  2  5.22683
  3  0.309683
  4  0.134984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/855129': 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): 102
logL (Free Index) = 6764.15881098
delta logL = 0.966503779978

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  4.931e+00  5.190e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  3.757e+00  5.227e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  9.834e-01  1.350e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.026e+00  3.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.19
Ra Dec: 204.756 -24.009
Photon Index (Free Index): 3.76 +/- 5.23
Photon Flux (Free Index): 1.22e-07 +/- 9.55e-08
Energy Flux (Free Index): 1.91e-05 +/- 2.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/855129/cmap_HighResolution_478828801_479088001_4FGL_J1339.0-2400_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', energy_flux2='1.91e-05', dlogl='9.67e-01', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-08 07:45:19.910683', photon_index_error2='5.23', photon_index2='3.76', ts='0.10', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='2.72e-05', EG='1.15', time_epoch_completed='1631112319.91', return_code='0', job_id='855129', GAL2='0.98', EG2='1.03', return_code2='102', photon_flux_error2='9.55e-08', ts2='2.19', photon_index='2.30' WHERE bin_id='924' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:45:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 855129: <4FGL_J1339.0-2400_daily_bin924> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin924> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 07:30:24 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:30:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 07:30:34 2021
Terminated at Wed Sep  8 07:45:20 2021
Results reported at Wed Sep  8 07:45:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin924 204.756 -24.0085 478828801 479088001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1339.0-2400 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            896 sec.

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

