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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1439
RA = 204.756, Dec = -24.0085
tmin = 612316801, tmax = 612576001
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='858332', job_status='RUN', time_executed='2021-09-08 07:42:57.673013', time_epoch_executed='1631112177.67' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/858332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/858332/ft1_4FGL_J1339.0-2400_daily_bin1439.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/858332/ft2_4FGL_J1339.0-2400_daily_bin1439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/858332/ft1_4FGL_J1339.0-2400_daily_bin1439.fits outfile=/scratch/kocevski/858332/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1439.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=612316801.0 tmax=612576001.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.34
user 3.11
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/858332/ft1_filtered_4FGL_J1339.0-2400_daily_bin1439.fits" evtable="EVENTS" scfile=/scratch/kocevski/858332/ft2_4FGL_J1339.0-2400_daily_bin1439.fits sctable="SC_DATA" outfile=/scratch/kocevski/858332/ltcube_612316801_612576001_4FGL_J1339.0-2400_daily_bin1439.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/858332/ft2_4FGL_J1339.0-2400_daily_bin1439.fits
.....................!
real 17.60
user 17.17
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/858332/ft1_filtered_4FGL_J1339.0-2400_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/858332/ft2_4FGL_J1339.0-2400_daily_bin1439.fits sctable="SC_DATA" expcube=/scratch/kocevski/858332/ltcube_612316801_612576001_4FGL_J1339.0-2400_daily_bin1439.fits outfile=/scratch/kocevski/858332/expmap_612316801_612576001_4FGL_J1339.0-2400_daily_bin1439.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/858332/ltcube_612316801_612576001_4FGL_J1339.0-2400_daily_bin1439.fits
.....................!
real 192.65
user 186.61
sys 5.56

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/858332/ft1_filtered_4FGL_J1339.0-2400_daily_bin1439.fits scfile=/scratch/kocevski/858332/ft2_4FGL_J1339.0-2400_daily_bin1439.fits outfile=/scratch/kocevski/858332/cmap_612316801_612576001_4FGL_J1339.0-2400_daily_bin1439.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.59
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/858332/ft1_filtered_4FGL_J1339.0-2400_daily_bin1439.fits scfile=/scratch/kocevski/858332/ft2_4FGL_J1339.0-2400_daily_bin1439.fits outfile=/scratch/kocevski/858332/cmap_HighResolution_612316801_612576001_4FGL_J1339.0-2400_daily_bin1439.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.59
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7980       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.8077       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4326       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2067       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .17374E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    25.371       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7301       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.1311       1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.548       1.0000         .10000E-03   10000.    
    17 'norm      '    .10711E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10754E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11705E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5311       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76748       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=   4734.433     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2885 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7983        2.3923       -.75341E-06   -.56937E-03
   2  Prefactor     .10000E-03    32.451        .15525E-05** at limit **
   3  norm          .10000E-03    2.7986       -.64676E-07** at limit **
   4  norm          7.8083        5.7954       -.24433E-06    .44015E-04
   5  Prefactor     2.4332        4.6867       -.63881E-06   -.27373E-03
   6  norm          3.2060        3.0706       -.32853E-06   -.91113E-04
   7  norm          .10000E-03    2.2636       -.80766E-07** at limit **
   8  Prefactor     .10000E-03    7.0574       -.20475E-06** at limit **
   9  norm          .10000E-03    4.4417       -.13276E-06** at limit **
  10  norm          25.358        10.270        .14024E-06    .12007E-03
  11  Prefactor     .10000E-03    12.578        .31287E-05** at limit **
  12  Prefactor     2.6448        75.910       -.65153E-04    .31114E-05
  13  Prefactor     .10000E-03    15.178       -.26253E-05** at limit **
  14  Prefactor     .10001E-03    49.999       -.10076E-04** at limit **
  15  norm          6.1304        5.1372       -.33559E-05    .19052E-03
  16  Prefactor     48.508        121.91       -.54468E-04    .94153E-05
  17  norm          .10000E-03    77.025        .39948E-04** at limit **
  18  Prefactor     .10000E-03    37.404       -.23336E-04** at limit **
  19  norm          .10000E-03    6.5188        .37820E-06** at limit **
  20  Prefactor     .10000E-03    4.5653       -.71112E-07** at limit **
  21  Prefactor     .10000E-03    99.552        .12796E-04** at limit **
  22  Prefactor     .10000E-03    296.38       -.16982E-03** at limit **
  23  Prefactor     .10000E-03    30.444        .15567E-04** at limit **
  24  Normalizat    1.5313        .31027        .57164E-05    .35558E-03
  25  Prefactor     .76736        .13067        .21647E-05    .58503E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.7983
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.80829
  Prefactor  = 2.43321
  norm       = 3.206
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.3582
  Prefactor  = 0.0001
  Prefactor  = 2.64477
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 6.13036
  Prefactor  = 48.5078
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.53129
  Prefactor  = 0.767356
 **********
 **   18 **HESSE 
 **********

 FCN=   4734.433     FROM HESSE     STATUS=OK           417 CALLS     3302 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7983        2.3760        .11617E-03   -1.5440    
   2  Prefactor     .10000E-03    32.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8044        .11242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.8083        5.7803        .13495E-03   -1.5149    
   5  Prefactor     2.4332        4.6523        .19556E-03   -1.5396    
   6  norm          3.2060        3.0668        .11385E-03   -1.5350    
   7  norm          .10000E-03    2.2656        .10110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.0645        .17850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.6062        .28205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          25.358        10.240        .79529E-04   -1.4700    
  11  Prefactor     .10000E-03    12.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6448        76.695        .24644E-03   -1.5383    
  13  Prefactor     .10000E-03    15.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    52.124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.1304        5.1352        .13801E-03   -1.5213    
  16  Prefactor     48.508        122.15        .57551E-04   -1.4314    
  17  norm          .10000E-03    78.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    37.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.5224        .17158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.253        .28312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    99.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    297.98        .20655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5313        .37067        .33280E-03   -.76903    
  25  Prefactor     .76736        .15704        .19037E-03   -1.0094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0422e-09
Minuit parameter uncertainties:
  1  2.37612
  2  1.46919e-05
  3  6.50878e-06
  4  5.78068
  5  4.65301
  6  3.06697
  7  1.7493e-06
  8  1.66447e-05
  9  4.53773e-05
  10  10.2409
  11  5.08023e-05
  12  28.5242
  13  0.000164565
  14  0.00124191
  15  5.13559
  16  122.793
  17  0.000467737
  18  7.30004e-06
  19  5.8811e-06
  20  0.000332904
  21  7.0078e-05
  22  0.00127006
  23  6.69579e-05
  24  0.371331
  25  0.157135
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  2.645e+00  2.852e+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.674e-01  1.571e-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.531e+00  3.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/858332/likelihoodResults_612316801_612576001_4FGL_J1339.0-2400_daily_bin1439.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) = 4734.39875814
delta logL = 0.0344240286586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4734.39559849
delta logL = 0.0375836809126

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8197       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9891       1.0000          .0000       10.000    
     3 'Normalizat'    1.5160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76978       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=   4734.396     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      237 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8073        271.98        .51629E-02    .21214E-03
   2  Index         2.9960        2.2645        .38184        .37253E-04
   3  Normalizat    1.5164        .39483E-01    .75519E-01   -.44689E-04
   4  Prefactor     .76970        .16694E-01    .43323E-01    .72323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.80735
  Index      = 2.99597
  Normalizat = 1.51636
  Prefactor  = 0.769702
 **********
 **   18 **HESSE 
 **********

 FCN=   4734.396     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8073        29.583        .20652E-03   -1.5318    
   2  Index         2.9960        2.5961        .71911E-02   -.41240    
   3  Normalizat    1.5164        .37214        .33418E-03   -.77320    
   4  Prefactor     .76970        .15608        .19011E-03   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30163e-10
Minuit parameter uncertainties:
  1  21.2401
  2  2.76008
  3  0.372816
  4  0.156173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/858332': 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) = 4734.3955919
delta logL = 0.0375902727155

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  3.807e+00  2.124e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.996e+00  2.760e+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:  7.697e-01  1.562e-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.516e+00  3.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 204.756 -24.009

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/858332/cmap_HighResolution_612316801_612576001_4FGL_J1339.0-2400_daily_bin1439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-08 07:54:23.262544', job_id='858332', GAL2='0.77', fit_tolerance='1e-08', EG2='1.52', EG='1.53', time_epoch_completed='1631112863.26', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.76e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1439' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:54:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 858332: <4FGL_J1339.0-2400_daily_bin1439> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin1439> 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) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:42:45 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:45 2021
Terminated at Wed Sep  8 07:54:24 2021
Results reported at Wed Sep  8 07:54:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1439 204.756 -24.0085 612316801 612576001 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 :                                   677.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            807 sec.

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

