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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1086
RA = 204.756, Dec = -24.0085
tmin = 520819201, tmax = 521078401
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='855388', job_status='RUN', time_executed='2021-09-08 07:32:43.723847', time_epoch_executed='1631111563.72' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/855388

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/855388/ft1_4FGL_J1339.0-2400_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/855388/ft2_4FGL_J1339.0-2400_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/855388/ft1_4FGL_J1339.0-2400_daily_bin1086.fits outfile=/scratch/kocevski/855388/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1086.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=520819201.0 tmax=521078401.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.52
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/855388/ft1_filtered_4FGL_J1339.0-2400_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/855388/ft2_4FGL_J1339.0-2400_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/855388/ltcube_520819201_521078401_4FGL_J1339.0-2400_daily_bin1086.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/855388/ft2_4FGL_J1339.0-2400_daily_bin1086.fits
.....................!
real 12.90
user 12.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/855388/ft1_filtered_4FGL_J1339.0-2400_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/855388/ft2_4FGL_J1339.0-2400_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/855388/ltcube_520819201_521078401_4FGL_J1339.0-2400_daily_bin1086.fits outfile=/scratch/kocevski/855388/expmap_520819201_521078401_4FGL_J1339.0-2400_daily_bin1086.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/855388/ltcube_520819201_521078401_4FGL_J1339.0-2400_daily_bin1086.fits
.....................!
real 190.52
user 185.46
sys 4.30

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/855388/ft1_filtered_4FGL_J1339.0-2400_daily_bin1086.fits scfile=/scratch/kocevski/855388/ft2_4FGL_J1339.0-2400_daily_bin1086.fits outfile=/scratch/kocevski/855388/cmap_520819201_521078401_4FGL_J1339.0-2400_daily_bin1086.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/855388/ft1_filtered_4FGL_J1339.0-2400_daily_bin1086.fits scfile=/scratch/kocevski/855388/ft2_4FGL_J1339.0-2400_daily_bin1086.fits outfile=/scratch/kocevski/855388/cmap_HighResolution_520819201_521078401_4FGL_J1339.0-2400_daily_bin1086.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/855388/ft1_filtered_4FGL_J1339.0-2400_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/855388/ft2_4FGL_J1339.0-2400_daily_bin1086.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/855388/Model_4FGL_J1339.0-2400_daily_bin1086.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/855388/ft1_filtered_4FGL_J1339.0-2400_daily_bin1086.fits.....................!
real 115.35
user 113.85
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3617       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .70810E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    13.827       1.0000         .10000E-03   10000.    
     4 'norm      '    6.9023       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5708       1.0000         .10000E-03   10000.    
     6 'norm      '    9.6935       1.0000         .10000E-03   10000.    
     7 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3697       1.0000         .10000E-03   10000.    
     9 'norm      '    .26519E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10598E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.237       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4400       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7200       1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7104       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42084E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0416       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3288       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95804       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=   6999.382     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2543 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3606        2.1517       -.14606E-06    .68408E-04
   2  Prefactor     .10001E-03    586.14       -.91899E-05** at limit **
   3  norm          13.822        12.358        .58046E-06    .91137E-05
   4  norm          6.8948        6.8531       -.99832E-06    .45133E-04
   5  Prefactor     3.5694        4.4939       -.43116E-06    .34379E-04
   6  norm          9.6918        4.2661        .43489E-07    .24351E-05
   7  norm          .10000E-03    7.5052       -.50117E-06** at limit **
   8  Prefactor     8.4286        16.516        .41463E-05    .16962E-03
   9  norm          .10003E-03    2.2331       -.57105E-06** at limit **
  10  norm          .10000E-03    5.6681        .92914E-07** at limit **
  11  Prefactor     .10000E-03    53.251        .27700E-05** at limit **
  12  Prefactor     25.230        22.543        .33157E-05   -.45748E-04
  13  Prefactor     .10000E-03    16.356        .35088E-06** at limit **
  14  Prefactor     .10000E-03    24.434        .60911E-05** at limit **
  15  norm          1.4403        .43696        .12242E-07   -.46850E-03
  16  Prefactor     4.7253        214.25        .68549E-05    .21605E-05
  17  norm          .10000E-03    13.453        .70061E-06** at limit **
  18  Prefactor     .10000E-03    23.755       -.58791E-05** at limit **
  19  norm          3.7166        12.672       -.11795E-06    .13086E-05
  20  Prefactor     .10000E-03    2.2276        .12958E-07** at limit **
  21  Prefactor     2.0340        646.64       -.20902E-04    .10724E-05
  22  Prefactor     .10000E-03    39.687       -.33478E-06** at limit **
  23  Prefactor     .10000E-03    12.136       -.62562E-06** at limit **
  24  Normalizat    1.3289        .27318       -.15083E-05    .18897E-04
  25  Prefactor     .95807        .11602        .24913E-06   -.66731E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36058
  Prefactor  = 0.000100008
  norm       = 13.8218
  norm       = 6.89484
  Prefactor  = 3.56939
  norm       = 9.69181
  norm       = 0.0001
  Prefactor  = 8.4286
  norm       = 0.000100031
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.2304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.44033
  Prefactor  = 4.72527
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.71664
  Prefactor  = 0.000100001
  Prefactor  = 2.03396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32892
  Prefactor  = 0.95807
 **********
 **   18 **HESSE 
 **********

 FCN=   6999.382     FROM HESSE     STATUS=OK           427 CALLS     2970 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3606        2.1213        .14634E-03   -1.5475    
   2  Prefactor     .10001E-03    592.42        .18681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.822        12.355        .10772E-03   -1.4964    
   4  norm          6.8948        6.8140        .15271E-03   -1.5183    
   5  Prefactor     3.5694        4.4763        .18814E-03   -1.5330    
   6  norm          9.6918        4.2683        .11033E-03   -1.5085    
   7  norm          .10000E-03    7.7025        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4286        15.649        .13857E-03   -1.5127    
   9  norm          .10003E-03    15.398        .22282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.7908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    54.822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.230        22.317        .79740E-04   -1.4703    
  13  Prefactor     .10000E-03    16.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4403        5.3743        .17857E-02   -1.5468    
  16  Prefactor     4.7253        214.35        .18521E-03   -1.5273    
  17  norm          .10000E-03    13.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7166        12.234        .20965E-03   -1.5322    
  20  Prefactor     .10000E-03    17.591        .22880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.0340        648.94        .28941E-03   -1.5423    
  22  Prefactor     .10000E-03    39.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3289        .32769        .36667E-03   -.82707    
  25  Prefactor     .95807        .14173        .18263E-03   -.94141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5816e-09
Minuit parameter uncertainties:
  1  2.12146
  2  0.00445927
  3  12.3577
  4  6.81476
  5  4.4767
  6  4.26839
  7  1.47756e-05
  8  15.6566
  9  0.00137131
  10  2.55354e-05
  11  0.0002745
  12  22.3241
  13  4.90969e-05
  14  0.000135592
  15  5.37615
  16  63.8947
  17  3.11434e-06
  18  3.55789e-06
  19  12.2422
  20  0.000272631
  21  73.4771
  22  8.34171e-06
  23  3.77908e-06
  24  0.328207
  25  0.141783
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  2.523e+01  2.232e+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.581e-01  1.418e-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.329e+00  3.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.37
Ra Dec: 204.756 -24.009
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.44e-05

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) = 6998.47040941
delta logL = 0.911204233588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6998.38513503
delta logL = 0.996478612356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.394       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2851       1.0000          .0000       10.000    
     3 'Normalizat'    1.3584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95486       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=   6998.385     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      222 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.406        22.296        .13158E-04   -.37562E-04
   2  Index         1.2848        .71122        .72653E-04    .35127E-05
   3  Normalizat    1.3582        .26377       -.32053E-06   -.26988E-03
   4  Prefactor     .95490        .11448       -.35010E-06   -.45970E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4061
  Index      = 1.2848
  Normalizat = 1.35817
  Prefactor  = 0.954896
 **********
 **   18 **HESSE 
 **********

 FCN=   6998.385     FROM HESSE     STATUS=OK            29 CALLS      251 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.406        21.176        .10557E-03   -1.4949    
   2  Index         1.2848        .67444        .99456E-02   -.83760    
   3  Normalizat    1.3582        .32111        .36321E-03   -.81846    
   4  Prefactor     .95490        .13960        .18289E-03   -.94248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75744e-09
Minuit parameter uncertainties:
  1  21.1869
  2  0.679095
  3  0.321589
  4  0.139654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/855388': 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) = 6998.3851335
delta logL = 0.996480141001

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  1.441e+01  2.119e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.285e+00  6.791e-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:  9.549e-01  1.397e-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.358e+00  3.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.36
Ra Dec: 204.756 -24.009
Photon Index (Free Index): 1.28 +/- 0.68
Photon Flux (Free Index): 8.89e-09 +/- 1.29e-08
Energy Flux (Free Index): 5.72e-05 +/- 8.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/855388/cmap_HighResolution_520819201_521078401_4FGL_J1339.0-2400_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='5.72e-05', photon_flux_error='3.82e-08', dlogl='9.96e-01', energy_flux='1.63e-05', photon_flux2='8.89e-09', job_status='DONE', time_completed='2021-09-08 07:44:53.306213', photon_index_error2='0.68', photon_index2='1.28', ts='7.37', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='8.47e-05', EG='1.33', time_epoch_completed='1631112293.31', return_code='0', job_id='855388', GAL2='0.95', EG2='1.36', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='1.29e-08', ts2='9.36', photon_index='2.30' WHERE bin_id='1086' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:44:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 855388: <4FGL_J1339.0-2400_daily_bin1086> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin1086> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 07:30:43 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:31:41 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:31:41 2021
Terminated at Wed Sep  8 07:44:54 2021
Results reported at Wed Sep  8 07:44:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1086 204.756 -24.0085 520819201 521078401 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 :                                   721.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             378.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            851 sec.

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

