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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1441
RA = 204.756, Dec = -24.0085
tmin = 612835201, tmax = 613094401
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='858334', job_status='RUN', time_executed='2021-09-08 07:46:34.475284', time_epoch_executed='1631112394.48' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/858334

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/858334/ft1_4FGL_J1339.0-2400_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/858334/ft2_4FGL_J1339.0-2400_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/858334/ft1_4FGL_J1339.0-2400_daily_bin1441.fits outfile=/scratch/kocevski/858334/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1441.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=612835201.0 tmax=613094401.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.98
user 2.72
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/858334/ft2_4FGL_J1339.0-2400_daily_bin1441.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/858334/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1441.fits evtable="EVENTS" outfile="/scratch/kocevski/858334/ft1_filtered_4FGL_J1339.0-2400_daily_bin1441.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/858334/ft1_filtered_4FGL_J1339.0-2400_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/858334/ft2_4FGL_J1339.0-2400_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/858334/ltcube_612835201_613094401_4FGL_J1339.0-2400_daily_bin1441.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/858334/ft2_4FGL_J1339.0-2400_daily_bin1441.fits
.....................!
real 17.88
user 17.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/858334/ft1_filtered_4FGL_J1339.0-2400_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/858334/ft2_4FGL_J1339.0-2400_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/858334/ltcube_612835201_613094401_4FGL_J1339.0-2400_daily_bin1441.fits outfile=/scratch/kocevski/858334/expmap_612835201_613094401_4FGL_J1339.0-2400_daily_bin1441.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/858334/ltcube_612835201_613094401_4FGL_J1339.0-2400_daily_bin1441.fits
.....................!
real 192.36
user 187.16
sys 4.64

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/858334/ft1_filtered_4FGL_J1339.0-2400_daily_bin1441.fits scfile=/scratch/kocevski/858334/ft2_4FGL_J1339.0-2400_daily_bin1441.fits outfile=/scratch/kocevski/858334/cmap_612835201_613094401_4FGL_J1339.0-2400_daily_bin1441.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/858334/ft1_filtered_4FGL_J1339.0-2400_daily_bin1441.fits scfile=/scratch/kocevski/858334/ft2_4FGL_J1339.0-2400_daily_bin1441.fits outfile=/scratch/kocevski/858334/cmap_HighResolution_612835201_613094401_4FGL_J1339.0-2400_daily_bin1441.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/858334/ft1_filtered_4FGL_J1339.0-2400_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/858334/ft2_4FGL_J1339.0-2400_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/858334/Model_4FGL_J1339.0-2400_daily_bin1441.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/858334/ft1_filtered_4FGL_J1339.0-2400_daily_bin1441.fits.....................!
real 71.00
user 69.48
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/858334/ft1_filtered_4FGL_J1339.0-2400_daily_bin1441.fits', '/scratch/kocevski/858334/ft2_4FGL_J1339.0-2400_daily_bin1441.fits', expMap='/scratch/kocevski/858334/expmap_612835201_613094401_4FGL_J1339.0-2400_daily_bin1441.fits', expCube='/scratch/kocevski/858334/ltcube_612835201_613094401_4FGL_J1339.0-2400_daily_bin1441.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/858334/Model_4FGL_J1339.0-2400_daily_bin1441.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/858334/ft1_filtered_4FGL_J1339.0-2400_daily_bin1441.fits
Spacecraft file(s): /scratch/kocevski/858334/ft2_4FGL_J1339.0-2400_daily_bin1441.fits
Exposure map: /scratch/kocevski/858334/expmap_612835201_613094401_4FGL_J1339.0-2400_daily_bin1441.fits
Exposure cube: /scratch/kocevski/858334/ltcube_612835201_613094401_4FGL_J1339.0-2400_daily_bin1441.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/858334/Model_4FGL_J1339.0-2400_daily_bin1441.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) = 3690.83930651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1473       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11771E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2399       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12428E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7076       1.0000         .10000E-03   10000.    
    10 'norm      '    19.233       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8151       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.724       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8144       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.719       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6827       1.0000         .10000E-03   10000.    
    21 'Prefactor '    221.32       1.0000         .10000E-03   10000.    
    22 'Prefactor '    218.97       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11796E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3165       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75971       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=   3690.830     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2856 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1473        1.6027        .31600E-06   -.38950E-04
   2  Prefactor     .10000E-03    116.94       -.51822E-06** at limit **
   3  norm          .10000E-03    4.5532        .91186E-07** at limit **
   4  norm          2.2346        5.2414        .19898E-06   -.61335E-05
   5  Prefactor     .10000E-03    2.1406       -.33307E-08** at limit **
   6  norm          .10000E-03    .99596        .44107E-07** at limit **
   7  norm          .10000E-03    6.0830        .77443E-07** at limit **
   8  Prefactor     .10000E-03    50.277        .11686E-06** at limit **
   9  norm          1.7078        4.0278       -.68087E-07   -.20701E-05
  10  norm          19.232        11.470       -.53420E-07   -.43395E-05
  11  Prefactor     9.8107        19.372        .10782E-06   -.80498E-05
  12  Prefactor     45.732        41.862       -.18662E-06    .44128E-05
  13  Prefactor     .10000E-03    15.120        .16194E-06** at limit **
  14  Prefactor     .10000E-03    10.260        .95170E-07** at limit **
  15  norm          1.8140        5.5773        .92410E-06    .28727E-05
  16  Prefactor     31.628        93.751       -.85201E-06   -.33052E-04
  17  norm          .10000E-03    23.577       -.71950E-08** at limit **
  18  Prefactor     .10000E-03    88.874        .73438E-06** at limit **
  19  norm          .10000E-03    10.806       -.23680E-06** at limit **
  20  Prefactor     8.6845        7.7286        .17439E-05   -.44974E-04
  21  Prefactor     221.33        163.80       -.33995E-06   -.29877E-05
  22  Prefactor     218.95        161.30       -.59190E-06   -.10609E-04
  23  Prefactor     .10000E-03    57.139       -.99150E-08** at limit **
  24  Normalizat    1.3169        .35102       -.92423E-06   -.11685E-04
  25  Prefactor     .75952        .14716       -.28322E-06   -.30176E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.14728
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.23462
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.70777
  norm       = 19.2319
  Prefactor  = 9.81072
  Prefactor  = 45.7325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.81401
  Prefactor  = 31.6282
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.68447
  Prefactor  = 221.331
  Prefactor  = 218.949
  Prefactor  = 0.0001
  Normalizat = 1.31695
  Prefactor  = 0.759522
 **********
 **   18 **HESSE 
 **********

 FCN=   3690.830     FROM HESSE     STATUS=OK           421 CALLS     3277 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1473        1.5973        .32135E-03   -1.5415    
   2  Prefactor     .10000E-03    117.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.5668        .12661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2346        5.2131        .20326E-03   -1.5409    
   5  Prefactor     .10000E-03    2.1442        .86725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .99879        .59211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.2053        .14631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    50.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7078        3.9569        .17577E-03   -1.5447    
  10  norm          19.232        11.430        .91329E-04   -1.4831    
  11  Prefactor     9.8107        19.369        .12791E-03   -1.5081    
  12  Prefactor     45.732        41.887        .59294E-04   -1.4354    
  13  Prefactor     .10000E-03    15.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8140        5.5537        .24256E-03   -1.5439    
  16  Prefactor     31.628        94.177        .71145E-04   -1.4583    
  17  norm          .10000E-03    23.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    89.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6845        7.7274        .68017E-03   -1.5118    
  21  Prefactor     221.33        163.82        .27190E-04   -1.2721    
  22  Prefactor     218.95        161.50        .13666E-03   -1.2738    
  23  Prefactor     .10000E-03    57.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3169        .42288        .34113E-03   -.83062    
  25  Prefactor     .75952        .17782        .18582E-03   -1.0124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15623e-11
Minuit parameter uncertainties:
  1  1.59737
  2  0.000382704
  3  2.17318e-06
  4  5.21416
  5  6.70371e-07
  6  3.66898e-07
  7  6.0761e-06
  8  2.57172e-05
  9  3.95749
  10  11.4318
  11  19.3811
  12  41.9138
  13  1.99911e-05
  14  1.48746e-06
  15  5.55531
  16  94.6242
  17  8.1318e-06
  18  0.000301132
  19  2.75354e-05
  20  7.72829
  21  164.161
  22  161.828
  23  8.64618e-05
  24  0.424002
  25  0.177954
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  4.573e+01  4.191e+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:  7.595e-01  1.780e-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.317e+00  4.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.70
Ra Dec: 204.756 -24.009
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 7.84e-08 +/- 7.18e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 2.71e-05

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

Saving results to:
/scratch/kocevski/858334/likelihoodResults_612835201_613094401_4FGL_J1339.0-2400_daily_bin1441.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) = 3690.77023996
delta logL = 0.0596061659153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3690.7676684
delta logL = 0.0621777246702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.387       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5972       1.0000          .0000       10.000    
     3 'Normalizat'    1.2870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76740       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3690.768     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      288 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.392        47.197        .65547E-04   -.20543E-03
   2  Index         2.5974        .91151        .65639E-02   -.11489E-03
   3  Normalizat    1.2873        .42320        .34435E-03    .13156E-03
   4  Prefactor     .76728        .17826        .18495E-03    .35906E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.3919
  Index      = 2.59739
  Normalizat = 1.28731
  Prefactor  = 0.767275
 **********
 **   18 **HESSE 
 **********

 FCN=   3690.768     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.392        43.905        .13109E-04   -1.4484    
   2  Index         2.5974        .84752        .26256E-03   -.50125    
   3  Normalizat    1.2873        .42250        .13774E-04   -.83946    
   4  Prefactor     .76728        .17813        .36990E-04   -1.0095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98015e-10
Minuit parameter uncertainties:
  1  43.9432
  2  0.852889
  3  0.423641
  4  0.178263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/858334': 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) = 3690.767668
delta logL = 0.0621781275745

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  3.739e+01  4.394e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.597e+00  8.529e-01  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:  7.673e-01  1.783e-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.287e+00  4.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 204.756 -24.009
Photon Index (Free Index): 2.60 +/- 0.85
Photon Flux (Free Index): 1.05e-07 +/- 1.12e-07
Energy Flux (Free Index): 2.75e-05 +/- 2.36e-05

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/858334/cmap_HighResolution_612835201_613094401_4FGL_J1339.0-2400_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-02', comment='SUCCESS', photon_flux='7.84e-08', energy_flux2='2.75e-05', photon_flux_error='7.18e-08', dlogl='6.22e-02', energy_flux='2.96e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-08 07:57:00.976435', photon_index_error2='0.85', photon_index2='2.60', ts='2.70', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='2.53e-07', energy_flux_error2='2.36e-05', EG='1.32', time_epoch_completed='1631113020.98', return_code='0', job_id='858334', GAL2='0.77', EG2='1.29', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='1.12e-07', ts2='2.83', photon_index='2.30' WHERE bin_id='1441' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:57:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 858334: <4FGL_J1339.0-2400_daily_bin1441> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin1441> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 07:40:57 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:42:46 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:42:46 2021
Terminated at Wed Sep  8 07:57:03 2021
Results reported at Wed Sep  8 07:57:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1441 204.756 -24.0085 612835201 613094401 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 :                                   607.61 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            966 sec.

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

