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


Performing analysis on: 4FGL_J1339.1-2620_daily_bin1032
RA = 204.799, Dec = -26.3351
tmin = 506822401, tmax = 507081601
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='865605', job_status='RUN', time_executed='2021-09-08 08:07:21.825744', time_epoch_executed='1631113641.83' WHERE source_name='4FGL J1339.1-2620' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865605

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865605/ft1_4FGL_J1339.1-2620_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865605/ft2_4FGL_J1339.1-2620_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865605/ft1_4FGL_J1339.1-2620_daily_bin1032.fits outfile=/scratch/kocevski/865605/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1032.fits ra=204.799 dec=-26.3351 rad=12.0 tmin=506822401.0 tmax=507081601.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.53
user 3.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/865605/ft2_4FGL_J1339.1-2620_daily_bin1032.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/865605/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1032.fits evtable="EVENTS" outfile="/scratch/kocevski/865605/ft1_filtered_4FGL_J1339.1-2620_daily_bin1032.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/865605/ft1_filtered_4FGL_J1339.1-2620_daily_bin1032.fits" evtable="EVENTS" scfile=/scratch/kocevski/865605/ft2_4FGL_J1339.1-2620_daily_bin1032.fits sctable="SC_DATA" outfile=/scratch/kocevski/865605/ltcube_506822401_507081601_4FGL_J1339.1-2620_daily_bin1032.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/865605/ft2_4FGL_J1339.1-2620_daily_bin1032.fits
.....................!
real 16.16
user 15.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865605/ft1_filtered_4FGL_J1339.1-2620_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/865605/ft2_4FGL_J1339.1-2620_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/865605/ltcube_506822401_507081601_4FGL_J1339.1-2620_daily_bin1032.fits outfile=/scratch/kocevski/865605/expmap_506822401_507081601_4FGL_J1339.1-2620_daily_bin1032.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/865605/ltcube_506822401_507081601_4FGL_J1339.1-2620_daily_bin1032.fits
.....................!
real 191.97
user 185.59
sys 5.62

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/865605/ft1_filtered_4FGL_J1339.1-2620_daily_bin1032.fits scfile=/scratch/kocevski/865605/ft2_4FGL_J1339.1-2620_daily_bin1032.fits outfile=/scratch/kocevski/865605/cmap_506822401_507081601_4FGL_J1339.1-2620_daily_bin1032.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865605/ft1_filtered_4FGL_J1339.1-2620_daily_bin1032.fits scfile=/scratch/kocevski/865605/ft2_4FGL_J1339.1-2620_daily_bin1032.fits outfile=/scratch/kocevski/865605/cmap_HighResolution_506822401_507081601_4FGL_J1339.1-2620_daily_bin1032.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865605/ft1_filtered_4FGL_J1339.1-2620_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/865605/ft2_4FGL_J1339.1-2620_daily_bin1032.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865605/Model_4FGL_J1339.1-2620_daily_bin1032.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/865605/ft1_filtered_4FGL_J1339.1-2620_daily_bin1032.fits.....................!
real 107.01
user 105.47
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/865605/ft1_filtered_4FGL_J1339.1-2620_daily_bin1032.fits', '/scratch/kocevski/865605/ft2_4FGL_J1339.1-2620_daily_bin1032.fits', expMap='/scratch/kocevski/865605/expmap_506822401_507081601_4FGL_J1339.1-2620_daily_bin1032.fits', expCube='/scratch/kocevski/865605/ltcube_506822401_507081601_4FGL_J1339.1-2620_daily_bin1032.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/865605/Model_4FGL_J1339.1-2620_daily_bin1032.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/865605/ft1_filtered_4FGL_J1339.1-2620_daily_bin1032.fits
Spacecraft file(s): /scratch/kocevski/865605/ft2_4FGL_J1339.1-2620_daily_bin1032.fits
Exposure map: /scratch/kocevski/865605/expmap_506822401_507081601_4FGL_J1339.1-2620_daily_bin1032.fits
Exposure cube: /scratch/kocevski/865605/ltcube_506822401_507081601_4FGL_J1339.1-2620_daily_bin1032.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/865605/Model_4FGL_J1339.1-2620_daily_bin1032.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) = 6111.1091701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8106       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11241E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.0781       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.667       1.0000         .10000E-03   10000.    
     5 'norm      '    2.9133       1.0000         .10000E-03   10000.    
     6 'norm      '    4.1190       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1976       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.717       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2780       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5314       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11464E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3638       1.0000         .10000E-03   10000.    
    19 'Prefactor '    63.775       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.406       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4460       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80280       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=   6111.102     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2555 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8106        1.4082        .10238E-08   -.53371E-05
   2  Prefactor     .10000E-03    118.48       -.68849E-06** at limit **
   3  norm          7.0650        14.180        .66784E-06   -.25664E-05
   4  Prefactor     10.669        13.850       -.15465E-06   -.16898E-04
   5  norm          2.9130        5.9875        .69179E-06    .55252E-05
   6  norm          4.1189        3.2375        .12036E-07   -.42127E-05
   7  norm          .10000E-03    2.8565        .18253E-06** at limit **
   8  Prefactor     .10000E-03    8.2842        .10894E-06** at limit **
   9  Prefactor     .10000E-03    13.029        .10886E-06** at limit **
  10  Prefactor     6.2017        16.509        .59208E-06   -.57327E-05
  11  Prefactor     11.716        14.970        .92070E-07   -.34345E-04
  12  norm          1.2780        4.0424        .15144E-05    .40550E-04
  13  Prefactor     .10000E-03    32.304       -.40531E-06** at limit **
  14  norm          .10000E-03    12.041        .23398E-07** at limit **
  15  norm          2.4249        218.38       -.61730E-05   -.34332E-05
  16  Prefactor     .10000E-03    23.426        .18503E-06** at limit **
  17  norm          .10000E-03    19.102       -.49857E-06** at limit **
  18  Prefactor     6.3627        5.6181        .60684E-09   -.11525E-04
  19  Prefactor     63.674        94.805       -.35105E-06   -.14283E-04
  20  Prefactor     .10000E-03    31.077        .18537E-06** at limit **
  21  Prefactor     22.404        22.120        .25388E-07   -.20895E-05
  22  Normalizat    1.4458        .32481       -.31281E-05    .29287E-04
  23  Prefactor     .80290        .12512        .83663E-06   -.18476E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81055
  Prefactor  = 0.0001
  norm       = 7.06499
  Prefactor  = 10.6686
  norm       = 2.91301
  norm       = 4.1189
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.20167
  Prefactor  = 11.7161
  norm       = 1.27803
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.42489
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.36273
  Prefactor  = 63.6739
  Prefactor  = 0.0001
  Prefactor  = 22.4039
  Normalizat = 1.44581
  Prefactor  = 0.802895
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.102     FROM HESSE     STATUS=OK           372 CALLS     2927 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8106        1.4110        .79029E-04   -1.5439    
   2  Prefactor     .10000E-03    118.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.0650        13.959        .15078E-03   -1.5176    
   4  Prefactor     10.669        13.630        .12268E-03   -1.5055    
   5  norm          2.9130        6.0013        .23803E-03   -1.5367    
   6  norm          4.1189        3.2348        .12024E-03   -1.5302    
   7  norm          .10000E-03    2.8771        .12910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.2947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2017        16.488        .16125E-03   -1.5210    
  11  Prefactor     11.716        15.030        .11703E-03   -1.5023    
  12  norm          1.2780        4.1061        .27628E-03   -1.5482    
  13  Prefactor     .10000E-03    32.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4249        223.81        .25672E-03   -1.5397    
  16  Prefactor     .10000E-03    23.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3627        5.6073        .15911E-03   -1.5203    
  19  Prefactor     63.674        95.093        .25125E-03   -1.4110    
  20  Prefactor     .10000E-03    31.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.404        22.125        .84620E-04   -1.4761    
  22  Normalizat    1.4458        .36970        .35210E-03   -.79313    
  23  Prefactor     .80290        .14629        .18675E-03   -.99622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75506e-10
Minuit parameter uncertainties:
  1  1.41101
  2  5.49465e-06
  3  13.9659
  4  13.6337
  5  6.00258
  6  3.23497
  7  2.76232e-06
  8  3.54858e-06
  9  7.04092e-06
  10  16.5004
  11  15.035
  12  4.10705
  13  3.04739e-06
  14  1.3005e-06
  15  46.7725
  16  1.19281e-05
  17  2.12254e-05
  18  5.60775
  19  95.3208
  20  5.42907e-06
  21  22.1332
  22  0.370392
  23  0.146363
Done.

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

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  6.202e+00  1.650e+01  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:  8.029e-01  1.464e-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.446e+00  3.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 204.799 -26.335
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/865605/likelihoodResults_506822401_507081601_4FGL_J1339.1-2620_daily_bin1032.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) = 6108.64629303
delta logL = 2.4556820444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6108.60760108
delta logL = 2.49437399488

Fit tolerance = 1e-08

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

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

 FCN=   6108.608     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      270 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48862        3.4677        .59865E-02    .87556E-03
   2  Index         4.3701        1.9246        .70777E-01    .20790E-03
   3  Normalizat    1.1783        .91877E-01    .86499E-01    .93209E-05
   4  Prefactor     .87466        .37406E-01    .44682E-01   -.18175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.488623
  Index      = 4.37005
  Normalizat = 1.17834
  Prefactor  = 0.874664
 **********
 **   18 **HESSE 
 **********

 FCN=   6108.608     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48862        6.1228        .26857E-04   -1.5568    
   2  Index         4.3701        2.7601        .28712E-02   -.12632    
   3  Normalizat    1.1783        .33324        .38304E-03   -.87275    
   4  Prefactor     .87466        .13433        .17943E-03   -.97032    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46507e-07
Minuit parameter uncertainties:
  1  3.45942
  2  2.92699
  3  0.333846
  4  0.134379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865605': 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): 102
logL (Free Index) = 6108.60760066
delta logL = 2.49437441327

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  4.886e-01  3.459e+00  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  4.370e+00  2.927e+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:  8.747e-01  1.344e-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.178e+00  3.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.74
Ra Dec: 204.799 -26.335
Photon Index (Free Index): 4.37 +/- 2.93
Photon Flux (Free Index): 2.29e-07 +/- 1.20e-07
Energy Flux (Free Index): 3.25e-05 +/- 1.92e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/865605/cmap_HighResolution_506822401_507081601_4FGL_J1339.1-2620_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', energy_flux2='3.25e-05', dlogl='2.49e+00', photon_flux2='2.29e-07', job_status='DONE', time_completed='2021-09-08 08:20:09.554898', photon_index_error2='2.93', photon_index2='4.37', ts='0.17', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.92e-05', EG='1.45', time_epoch_completed='1631114409.55', return_code='0', job_id='865605', GAL2='0.87', EG2='1.18', return_code2='102', photon_flux_error2='1.20e-07', ts2='5.74', photon_index='2.24' WHERE bin_id='1032' AND source_name='4FGL J1339.1-2620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:20:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 865605: <4FGL_J1339.1-2620_daily_bin1032> in cluster <slac> Done

Job <4FGL_J1339.1-2620_daily_bin1032> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 08:05:47 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:05:56 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:56 2021
Terminated at Wed Sep  8 08:20:10 2021
Results reported at Wed Sep  8 08:20:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.1-2620_daily_bin1032 204.799 -26.3351 506822401 507081601 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 :                                   761.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            863 sec.

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

