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


Performing analysis on: 4FGL_J1339.1-2620_daily_bin1019
RA = 204.799, Dec = -26.3351
tmin = 503452801, tmax = 503712001
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='865585', job_status='RUN', time_executed='2021-09-08 08:07:41.387777', time_epoch_executed='1631113661.39' WHERE source_name='4FGL J1339.1-2620' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865585/ft1_4FGL_J1339.1-2620_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865585/ft2_4FGL_J1339.1-2620_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865585/ft1_4FGL_J1339.1-2620_daily_bin1019.fits outfile=/scratch/kocevski/865585/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1019.fits ra=204.799 dec=-26.3351 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.96
user 7.62
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/865585/ft2_4FGL_J1339.1-2620_daily_bin1019.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865585/ft2_4FGL_J1339.1-2620_daily_bin1019.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/865585/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/865585/ft1_filtered_4FGL_J1339.1-2620_daily_bin1019.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.54
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865585/ft1_filtered_4FGL_J1339.1-2620_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/865585/ft2_4FGL_J1339.1-2620_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/865585/ltcube_503452801_503712001_4FGL_J1339.1-2620_daily_bin1019.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/865585/ft2_4FGL_J1339.1-2620_daily_bin1019.fits
.....................!
real 19.33
user 15.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865585/ft1_filtered_4FGL_J1339.1-2620_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/865585/ft2_4FGL_J1339.1-2620_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/865585/ltcube_503452801_503712001_4FGL_J1339.1-2620_daily_bin1019.fits outfile=/scratch/kocevski/865585/expmap_503452801_503712001_4FGL_J1339.1-2620_daily_bin1019.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/865585/ltcube_503452801_503712001_4FGL_J1339.1-2620_daily_bin1019.fits
.....................!
real 192.52
user 187.24
sys 4.70

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 198 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.1-2620 @ 204.799 -26.3351

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/865585/ft1_filtered_4FGL_J1339.1-2620_daily_bin1019.fits scfile=/scratch/kocevski/865585/ft2_4FGL_J1339.1-2620_daily_bin1019.fits outfile=/scratch/kocevski/865585/cmap_503452801_503712001_4FGL_J1339.1-2620_daily_bin1019.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.799 yref=-26.3351 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.63
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865585/ft1_filtered_4FGL_J1339.1-2620_daily_bin1019.fits scfile=/scratch/kocevski/865585/ft2_4FGL_J1339.1-2620_daily_bin1019.fits outfile=/scratch/kocevski/865585/cmap_HighResolution_503452801_503712001_4FGL_J1339.1-2620_daily_bin1019.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.799 yref=-26.3351 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865585/ft1_filtered_4FGL_J1339.1-2620_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/865585/ft2_4FGL_J1339.1-2620_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865585/Model_4FGL_J1339.1-2620_daily_bin1019.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/865585/ft1_filtered_4FGL_J1339.1-2620_daily_bin1019.fits....................!
real 118.28
user 116.56
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/865585/ft1_filtered_4FGL_J1339.1-2620_daily_bin1019.fits', '/scratch/kocevski/865585/ft2_4FGL_J1339.1-2620_daily_bin1019.fits', expMap='/scratch/kocevski/865585/expmap_503452801_503712001_4FGL_J1339.1-2620_daily_bin1019.fits', expCube='/scratch/kocevski/865585/ltcube_503452801_503712001_4FGL_J1339.1-2620_daily_bin1019.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/865585/Model_4FGL_J1339.1-2620_daily_bin1019.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.1-2620'

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.296e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.243e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/865585/ft1_filtered_4FGL_J1339.1-2620_daily_bin1019.fits
Spacecraft file(s): /scratch/kocevski/865585/ft2_4FGL_J1339.1-2620_daily_bin1019.fits
Exposure map: /scratch/kocevski/865585/expmap_503452801_503712001_4FGL_J1339.1-2620_daily_bin1019.fits
Exposure cube: /scratch/kocevski/865585/ltcube_503452801_503712001_4FGL_J1339.1-2620_daily_bin1019.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/865585/Model_4FGL_J1339.1-2620_daily_bin1019.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) = 6605.91259026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5275       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9425       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45567E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .89227       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .14574E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .87849       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    28.115       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.765       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2572       1.0000         .10000E-03   10000.    
    19 'Prefactor '    75.103       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5283       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7206       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .63692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6605.905     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2561 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5275        1.3229        .84338E-07   -.46921E-04
   2  Prefactor     .10000E-03    42.620       -.22991E-06** at limit **
   3  norm          9.9448        7.6273        .11761E-05    .46692E-04
   4  Prefactor     .10031E-03    6.4277       -.97772E-07** at limit **
   5  norm          .89237        5.5876        .26342E-05   -.69129E-04
   6  norm          .10000E-03    1.4195       -.23123E-06** at limit **
   7  norm          .10001E-03    4.3482        .21940E-06** at limit **
   8  Prefactor     .87327        8.7427        .69147E-06   -.13610E-03
   9  Prefactor     .10000E-03    12.063       -.96927E-07** at limit **
  10  Prefactor     .10000E-03    6.4725       -.45463E-07** at limit **
  11  Prefactor     .10000E-03    4.9380       -.67565E-07** at limit **
  12  norm          .10000E-03    2.0716        .49712E-06** at limit **
  13  Prefactor     .10000E-03    19.649       -.78064E-07** at limit **
  14  norm          .10000E-03    7.1211       -.22093E-07** at limit **
  15  norm          28.120        29.637        .79676E-07    .87744E-05
  16  Prefactor     17.827        54.717        .71029E-06    .46511E-04
  17  norm          .10000E-03    5.5964        .94177E-07** at limit **
  18  Prefactor     7.2568        4.3956        .14114E-06    .92549E-05
  19  Prefactor     75.108        67.113        .24023E-06    .16927E-05
  20  Prefactor     7.5249        42.984        .23225E-06   -.49335E-05
  21  Prefactor     .10000E-03    10.056       -.85854E-07** at limit **
  22  Normalizat    1.7206        .25231       -.10443E-05   -.52911E-04
  23  Prefactor     .63692        .10326        .41707E-06   -.17243E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52748
  Prefactor  = 0.0001
  norm       = 9.94483
  Prefactor  = 0.000100312
  norm       = 0.892368
  norm       = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.873275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 28.1199
  Prefactor  = 17.827
  norm       = 0.0001
  Prefactor  = 7.25678
  Prefactor  = 75.1081
  Prefactor  = 7.52491
  Prefactor  = 0.0001
  Normalizat = 1.72059
  Prefactor  = 0.636918
 **********
 **   18 **HESSE 
 **********

 FCN=   6605.905     FROM HESSE     STATUS=OK           376 CALLS     2937 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5275        1.3082        .84036E-04   -1.5461    
   2  Prefactor     .10000E-03    42.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9448        7.2463        .12708E-03   -1.5077    
   4  Prefactor     .10031E-03    42.452        .35578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .89237        5.0910        .34900E-03   -1.5519    
   6  norm          .10000E-03    2.5723        .18755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    21.261        .32470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .87327        26.833        .45232E-02   -1.5521    
   9  Prefactor     .10000E-03    12.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9520        .17624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0681        .11370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.1214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          28.120        29.639        .75556E-04   -1.4647    
  16  Prefactor     17.827        54.679        .95024E-04   -1.4863    
  17  norm          .10000E-03    5.6128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.2568        4.3995        .12500E-03   -1.5169    
  19  Prefactor     75.108        67.109        .46332E-04   -1.3972    
  20  Prefactor     7.5249        42.991        .14616E-03   -1.5159    
  21  Prefactor     .10000E-03    10.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7206        .29563        .29151E-03   -.71755    
  23  Prefactor     .63692        .12264        .19107E-03   -1.0605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25024e-08
Minuit parameter uncertainties:
  1  1.30827
  2  0.000118624
  3  7.24691
  4  0.00728516
  5  4.26319
  6  5.35479e-06
  7  0.000815805
  8  9.6857
  9  2.87223e-07
  10  4.39256e-06
  11  2.83798e-06
  12  2.22513e-06
  13  1.77131e-05
  14  6.34055e-06
  15  29.6545
  16  54.8333
  17  1.93287e-06
  18  4.39967
  19  67.177
  20  36.0117
  21  5.40314e-06
  22  0.295939
  23  0.122694
Done.

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

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.000e-04  4.393e-06  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.243e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  6.369e-01  1.227e-01  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  1.721e+00  2.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.799 -26.335
Photon Flux Upper Limit: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/865585/likelihoodResults_503452801_503712001_4FGL_J1339.1-2620_daily_bin1019.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6605.90533746
delta logL = -0.000729421981305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6605.90460724
delta logL = 7.9326582636e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1821       1.0000          .0000       10.000    
     3 'Normalizat'    1.7205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63697       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6550E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6605.888     FROM MIGRAD    STATUS=FAILED       228 CALLS      381 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5196        647.02        .18142E-01    .10181E-02
   2  Index         1.2706        6.1145        .50000       -.27840E-04
   3  Normalizat    1.7216        .47639E-01    .29151E-03    .12480E-05
   4  Prefactor     .63570        .20130E-01    .19107E-03    .77349E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6605.888     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      470 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5196        647.02        .51264E-03    .10181E-02
   2  Index         1.2706        6.1145        .15014E-02   -.27840E-04
   3  Normalizat    1.7216        .47639E-01    .29200E-04    .12480E-05
   4  Prefactor     .63570        .20130E-01    .17956E-04    .77349E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6605.888     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      504 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5196        13.004        .56612E-03    .38734E-04
   2  Index         1.2706        1.3978        .21952E-01   -.11749E-03
   3  Normalizat    1.7216        .28585        .11661E-04    .11700E-05
   4  Prefactor     .63570        .12181        .76429E-05    .89249E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51963
  Index      = 1.27061
  Normalizat = 1.72161
  Prefactor  = 0.635697
 **********
 **   18 **HESSE 
 **********

 FCN=   6605.888     FROM HESSE     STATUS=OK            27 CALLS      531 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5196        13.550        .11322E-03   -1.5461    
   2  Index         1.2706        1.4267        .43904E-02   -.84185    
   3  Normalizat    1.7216        .28569        .23321E-05   -.71728    
   4  Prefactor     .63570        .12172        .15286E-05   -1.0610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39844e-13
Minuit parameter uncertainties:
  1  9.07787
  2  1.47442
  3  0.285962
  4  0.121772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865585': 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) = 6605.88817628
delta logL = 0.0164317574354

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.520e+00  9.078e+00  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  1.271e+00  1.474e+00  0.000e+00  1.000e+01 (-1.000e+00)
317        Scale:  1.546e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
652    Prefactor:  6.357e-01  1.218e-01  0.000e+00  1.000e+01 ( 1.000e+00)
653        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
654        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  1.722e+00  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.799 -26.335

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/865585/cmap_HighResolution_503452801_503712001_4FGL_J1339.1-2620_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-08 08:22:17.757006', job_id='865585', GAL2='0.64', fit_tolerance='1e-08', EG2='1.72', EG='1.72', time_epoch_completed='1631114537.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.64e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1019' AND source_name='4FGL J1339.1-2620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:22:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 865585: <4FGL_J1339.1-2620_daily_bin1019> in cluster <slac> Done

Job <4FGL_J1339.1-2620_daily_bin1019> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 08:05:45 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:05:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 08:05:54 2021
Terminated at Wed Sep  8 08:22:18 2021
Results reported at Wed Sep  8 08:22:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.1-2620_daily_bin1019 204.799 -26.3351 503452801 503712001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1339.1-2620 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   870.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            993 sec.

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

