/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 66 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 = 7461
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1339.0-2400_daily_bin640
RA = 204.756, Dec = -24.0085
tmin = 405216001, tmax = 405475201
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='853782', job_status='RUN', time_executed='2021-09-08 07:27:01.092922', time_epoch_executed='1631111221.09' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853782/ft1_4FGL_J1339.0-2400_daily_bin640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853782/ft2_4FGL_J1339.0-2400_daily_bin640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853782/ft1_4FGL_J1339.0-2400_daily_bin640.fits outfile=/scratch/kocevski/853782/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin640.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=405216001.0 tmax=405475201.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.41
user 3.15
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/853782/ft1_filtered_4FGL_J1339.0-2400_daily_bin640.fits" evtable="EVENTS" scfile=/scratch/kocevski/853782/ft2_4FGL_J1339.0-2400_daily_bin640.fits sctable="SC_DATA" outfile=/scratch/kocevski/853782/ltcube_405216001_405475201_4FGL_J1339.0-2400_daily_bin640.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/853782/ft2_4FGL_J1339.0-2400_daily_bin640.fits
.....................!
real 12.75
user 12.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853782/ft1_filtered_4FGL_J1339.0-2400_daily_bin640.fits evtable="EVENTS" scfile=/scratch/kocevski/853782/ft2_4FGL_J1339.0-2400_daily_bin640.fits sctable="SC_DATA" expcube=/scratch/kocevski/853782/ltcube_405216001_405475201_4FGL_J1339.0-2400_daily_bin640.fits outfile=/scratch/kocevski/853782/expmap_405216001_405475201_4FGL_J1339.0-2400_daily_bin640.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/853782/ltcube_405216001_405475201_4FGL_J1339.0-2400_daily_bin640.fits
.....................!
real 191.28
user 186.09
sys 4.84

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_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/853782/ft1_filtered_4FGL_J1339.0-2400_daily_bin640.fits scfile=/scratch/kocevski/853782/ft2_4FGL_J1339.0-2400_daily_bin640.fits outfile=/scratch/kocevski/853782/cmap_405216001_405475201_4FGL_J1339.0-2400_daily_bin640.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853782/ft1_filtered_4FGL_J1339.0-2400_daily_bin640.fits scfile=/scratch/kocevski/853782/ft2_4FGL_J1339.0-2400_daily_bin640.fits outfile=/scratch/kocevski/853782/cmap_HighResolution_405216001_405475201_4FGL_J1339.0-2400_daily_bin640.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6402       1.0000         .10000E-03   10000.    
     2 'Prefactor '    135.38       1.0000         .10000E-03   10000.    
     3 'norm      '    11.841       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0266       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.9576       1.0000         .10000E-03   10000.    
     8 'Prefactor '    52.398       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.4017       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10881E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.420       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.774       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2455       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.009       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    19.231       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    47.408       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5543       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96781       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=   7309.642     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2877 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6401        2.0653        .23875E-06    .28290E-05
   2  Prefactor     135.17        137.60       -.71628E-06   -.84799E-04
   3  norm          11.841        8.0337        .16128E-06    .43695E-05
   4  norm          3.0434        9.9755       -.18544E-05   -.41025E-04
   5  Prefactor     .10000E-03    4.7246        .10815E-05** at limit **
   6  norm          .10000E-03    1.2799        .24821E-06** at limit **
   7  norm          6.9579        5.6937        .11238E-06    .15233E-04
   8  Prefactor     52.390        30.628       -.59124E-06    .26792E-05
   9  norm          .10000E-03    3.1402       -.24644E-06** at limit **
  10  norm          3.4021        6.3827        .14286E-06   -.87955E-06
  11  Prefactor     .10000E-03    41.492       -.17388E-05** at limit **
  12  Prefactor     10.422        28.853        .10094E-06    .29401E-05
  13  Prefactor     .10000E-03    14.391        .19969E-07** at limit **
  14  Prefactor     10.788        15.371       -.99650E-06    .17472E-04
  15  norm          3.2450        4.3814        .27386E-05   -.38551E-04
  16  Prefactor     36.008        48.548       -.11958E-06   -.16246E-05
  17  norm          .10000E-03    9.8133        .42472E-08** at limit **
  18  Prefactor     .10000E-03    93.137       -.50774E-05** at limit **
  19  norm          19.232        12.311       -.21600E-07   -.32931E-05
  20  Prefactor     .10000E-03    1.2340        .53019E-08** at limit **
  21  Prefactor     .10000E-03    69.584        .46983E-05** at limit **
  22  Prefactor     47.410        47.691        .13792E-06    .41049E-05
  23  Prefactor     .10000E-03    18.007        .12912E-06** at limit **
  24  Normalizat    1.5544        .29827        .24106E-06   -.27647E-05
  25  Prefactor     .96774        .12310        .13865E-06   -.38129E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.64011
  Prefactor  = 135.174
  norm       = 11.841
  norm       = 3.04337
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.95791
  Prefactor  = 52.3898
  norm       = 0.0001
  norm       = 3.40212
  Prefactor  = 0.0001
  Prefactor  = 10.4225
  Prefactor  = 0.0001
  Prefactor  = 10.7878
  norm       = 3.24496
  Prefactor  = 36.0079
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 19.2317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.4105
  Prefactor  = 0.0001
  Normalizat = 1.55436
  Prefactor  = 0.967741
 **********
 **   18 **HESSE 
 **********

 FCN=   7309.642     FROM HESSE     STATUS=OK           425 CALLS     3302 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6401        2.0592        .10369E-03   -1.5383    
   2  Prefactor     135.17        137.23        .17307E-03   -1.3377    
   3  norm          11.841        8.0335        .11641E-03   -1.5020    
   4  norm          3.0434        9.7767        .23326E-03   -1.5359    
   5  Prefactor     .10000E-03    4.7901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2998        .94445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.9579        5.6923        .15209E-03   -1.5180    
   8  Prefactor     52.390        30.636        .55407E-04   -1.4259    
   9  norm          .10000E-03    3.1425        .14718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4021        6.3476        .21935E-03   -1.5339    
  11  Prefactor     .10000E-03    42.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.422        28.824        .12412E-03   -1.5062    
  13  Prefactor     .10000E-03    14.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.788        15.266        .12206E-03   -1.5051    
  15  norm          3.2450        4.3698        .10044E-02   -1.5348    
  16  Prefactor     36.008        48.558        .66785E-04   -1.4507    
  17  norm          .10000E-03    9.8160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    93.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          19.232        12.311        .91332E-04   -1.4831    
  20  Prefactor     .10000E-03    1.2372        .92727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    69.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     47.410        47.709        .58236E-04   -1.4330    
  23  Prefactor     .10000E-03    18.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5544        .36248        .37994E-03   -.76262    
  25  Prefactor     .96774        .14972        .19773E-03   -.93813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05798e-10
Minuit parameter uncertainties:
  1  2.05928
  2  137.552
  3  8.03423
  4  9.78187
  5  3.38301e-05
  6  8.15938e-07
  7  5.69277
  8  30.6449
  9  5.48442e-06
  10  6.34889
  11  5.20096e-06
  12  28.8629
  13  4.74632e-06
  14  15.2719
  15  4.3702
  16  48.6116
  17  3.22653e-07
  18  0.000563527
  19  12.3128
  20  3.33583e-07
  21  0.000322195
  22  47.7477
  23  7.22076e-07
  24  0.363089
  25  0.149784
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  1.042e+01  2.886e+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.677e-01  1.498e-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.554e+00  3.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/853782/likelihoodResults_405216001_405475201_4FGL_J1339.0-2400_daily_bin640.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) = 7309.62918742
delta logL = 0.0130709417481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7309.6276783
delta logL = 0.0145800601158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1191       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6042       1.0000          .0000       10.000    
     3 'Normalizat'    1.5450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96998       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=   7309.628     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1191        384.61        .33180E-02   -.76661E-04
   2  Index         2.6044        2.0251        .38407        .14508E-04
   3  Normalizat    1.5443        .41627E-01    .86048E-01    .32477E-04
   4  Prefactor     .97023        .17577E-01    .45891E-01   -.12387E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.11906
  Index      = 2.60442
  Normalizat = 1.54435
  Prefactor  = 0.970232
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1191        29.304        .13272E-03   -1.5104    
   2  Index         2.6044        1.8933        .73621E-02   -.49965    
   3  Normalizat    1.5443        .35412        .38096E-03   -.76540    
   4  Prefactor     .97023        .14905        .19750E-03   -.93728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17039e-10
Minuit parameter uncertainties:
  1  29.3502
  2  1.95757
  3  0.35469
  4  0.149117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853782': 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) = 7309.62767672
delta logL = 0.0145816372051

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  9.119e+00  2.935e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.604e+00  1.958e+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.702e-01  1.491e-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.544e+00  3.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/853782/cmap_HighResolution_405216001_405475201_4FGL_J1339.0-2400_daily_bin640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-09-08 07:41:33.314277', job_id='853782', GAL2='0.97', fit_tolerance='1e-08', EG2='1.54', EG='1.55', time_epoch_completed='1631112093.31', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.46e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='640' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:41:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 853782: <4FGL_J1339.0-2400_daily_bin640> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin640> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 07:25:26 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:25:35 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:25:35 2021
Terminated at Wed Sep  8 07:41:34 2021
Results reported at Wed Sep  8 07:41:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin640 204.756 -24.0085 405216001 405475201 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 :                                   862.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            968 sec.

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

