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


Performing analysis on: 4FGL_J1339.1-2620_daily_bin1209
RA = 204.799, Dec = -26.3351
tmin = 552700801, tmax = 552960001
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='866999', job_status='RUN', time_executed='2021-09-08 08:12:07.065271', time_epoch_executed='1631113927.07' WHERE source_name='4FGL J1339.1-2620' and cadence='daily' and bin_id='1209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866999

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866999/ft1_4FGL_J1339.1-2620_daily_bin1209.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866999/ft2_4FGL_J1339.1-2620_daily_bin1209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866999/ft1_4FGL_J1339.1-2620_daily_bin1209.fits outfile=/scratch/kocevski/866999/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1209.fits ra=204.799 dec=-26.3351 rad=12.0 tmin=552700801.0 tmax=552960001.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 2.95
user 2.72
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/866999/ft2_4FGL_J1339.1-2620_daily_bin1209.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/866999/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1209.fits evtable="EVENTS" outfile="/scratch/kocevski/866999/ft1_filtered_4FGL_J1339.1-2620_daily_bin1209.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866999/ft1_filtered_4FGL_J1339.1-2620_daily_bin1209.fits" evtable="EVENTS" scfile=/scratch/kocevski/866999/ft2_4FGL_J1339.1-2620_daily_bin1209.fits sctable="SC_DATA" outfile=/scratch/kocevski/866999/ltcube_552700801_552960001_4FGL_J1339.1-2620_daily_bin1209.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/866999/ft2_4FGL_J1339.1-2620_daily_bin1209.fits
.....................!
real 15.39
user 15.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866999/ft1_filtered_4FGL_J1339.1-2620_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/866999/ft2_4FGL_J1339.1-2620_daily_bin1209.fits sctable="SC_DATA" expcube=/scratch/kocevski/866999/ltcube_552700801_552960001_4FGL_J1339.1-2620_daily_bin1209.fits outfile=/scratch/kocevski/866999/expmap_552700801_552960001_4FGL_J1339.1-2620_daily_bin1209.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/866999/ltcube_552700801_552960001_4FGL_J1339.1-2620_daily_bin1209.fits
.....................!
real 192.45
user 186.36
sys 5.63

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/866999/ft1_filtered_4FGL_J1339.1-2620_daily_bin1209.fits scfile=/scratch/kocevski/866999/ft2_4FGL_J1339.1-2620_daily_bin1209.fits outfile=/scratch/kocevski/866999/cmap_552700801_552960001_4FGL_J1339.1-2620_daily_bin1209.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866999/ft1_filtered_4FGL_J1339.1-2620_daily_bin1209.fits scfile=/scratch/kocevski/866999/ft2_4FGL_J1339.1-2620_daily_bin1209.fits outfile=/scratch/kocevski/866999/cmap_HighResolution_552700801_552960001_4FGL_J1339.1-2620_daily_bin1209.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.59
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/866999/ft1_filtered_4FGL_J1339.1-2620_daily_bin1209.fits evtable="EVENTS" scfile=/scratch/kocevski/866999/ft2_4FGL_J1339.1-2620_daily_bin1209.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/866999/Model_4FGL_J1339.1-2620_daily_bin1209.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/866999/ft1_filtered_4FGL_J1339.1-2620_daily_bin1209.fits.....................!
real 132.51
user 130.22
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/866999/ft1_filtered_4FGL_J1339.1-2620_daily_bin1209.fits', '/scratch/kocevski/866999/ft2_4FGL_J1339.1-2620_daily_bin1209.fits', expMap='/scratch/kocevski/866999/expmap_552700801_552960001_4FGL_J1339.1-2620_daily_bin1209.fits', expCube='/scratch/kocevski/866999/ltcube_552700801_552960001_4FGL_J1339.1-2620_daily_bin1209.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/866999/Model_4FGL_J1339.1-2620_daily_bin1209.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/866999/ft1_filtered_4FGL_J1339.1-2620_daily_bin1209.fits
Spacecraft file(s): /scratch/kocevski/866999/ft2_4FGL_J1339.1-2620_daily_bin1209.fits
Exposure map: /scratch/kocevski/866999/expmap_552700801_552960001_4FGL_J1339.1-2620_daily_bin1209.fits
Exposure cube: /scratch/kocevski/866999/ltcube_552700801_552960001_4FGL_J1339.1-2620_daily_bin1209.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/866999/Model_4FGL_J1339.1-2620_daily_bin1209.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8312.92048175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81475       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10523E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .16361E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0084       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2830       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7868       1.0000         .10000E-03   10000.    
     7 'norm      '    6.5824       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9279       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.924       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.618       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8888       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0347       1.0000         .10000E-03   10000.    
    13 'Prefactor '    161.78       1.0000         .10000E-03   10000.    
    14 'norm      '    .68570E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2996       1.0000         .10000E-03   10000.    
    17 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8342       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12213E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67101       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1499       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=   8312.712     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2269 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81472        1.0456       -.82868E-07   -.21643E-03
   2  Prefactor     .10000E-03    70.101       -.57776E-06** at limit **
   3  norm          .10000E-03    4.4871       -.61987E-07** at limit **
   4  Prefactor     4.0004        6.1434       -.55051E-07    .83120E-04
   5  norm          3.2838        4.5815        .21268E-06    .44578E-03
   6  norm          1.7868        2.7706       -.35026E-07    .22720E-04
   7  norm          6.5826        4.6929       -.50456E-07   -.80000E-06
   8  Prefactor     1.9479        19.536       -.31854E-05   -.10380E-04
   9  Prefactor     18.927        20.849       -.11326E-06   -.84125E-05
  10  Prefactor     20.618        11.944       -.91010E-07   -.32452E-04
  11  Prefactor     5.8604        11.493        .24581E-05   -.11895E-04
  12  norm          3.0328        3.8490        .50834E-06    .48045E-03
  13  Prefactor     161.76        85.659        .17462E-05    .95537E-05
  14  norm          .10002E-03    78.267        .65883E-05** at limit **
  15  norm          .10000E-03    51.440        .94250E-06** at limit **
  16  Prefactor     7.3070        59.979       -.24203E-05   -.63907E-05
  17  norm          .10000E-03    9.1346       -.21876E-06** at limit **
  18  Prefactor     8.8348        5.5454       -.46002E-07   -.40349E-04
  19  Prefactor     .10000E-03    158.90        .92349E-05** at limit **
  20  Prefactor     .10000E-03    62.798        .31960E-05** at limit **
  21  Prefactor     .10000E-03    9.1214        .16647E-06** at limit **
  22  Normalizat    .67082        .27698        .12990E-05   -.14296E-04
  23  Prefactor     1.1499        .11722       -.33658E-07    .43484E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.814723
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.00035
  norm       = 3.28379
  norm       = 1.78678
  norm       = 6.58264
  Prefactor  = 1.94789
  Prefactor  = 18.9274
  Prefactor  = 20.6182
  Prefactor  = 5.86037
  norm       = 3.03282
  Prefactor  = 161.764
  norm       = 0.000100017
  norm       = 0.0001
  Prefactor  = 7.30702
  norm       = 0.0001
  Prefactor  = 8.8348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.670819
  Prefactor  = 1.14986
 **********
 **   18 **HESSE 
 **********

 FCN=   8312.712     FROM HESSE     STATUS=OK           384 CALLS     2653 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81472        .91525        .10179E-02   -1.5527    
   2  Prefactor     .10000E-03    70.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.4946        .31312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0004        5.1722        .20143E-03   -1.5308    
   5  norm          3.2838        5.5353        .11174E-02   -1.5346    
   6  norm          1.7868        2.7612        .18106E-03   -1.5441    
   7  norm          6.5826        4.6906        .15641E-03   -1.5195    
   8  Prefactor     1.9479        19.836        .29917E-03   -1.5429    
   9  Prefactor     18.927        20.841        .92070E-04   -1.4838    
  10  Prefactor     20.618        11.887        .88209E-04   -1.4800    
  11  Prefactor     5.8604        11.487        .16549E-03   -1.5224    
  12  norm          3.0328        4.4537        .11078E-02   -1.5360    
  13  Prefactor     161.76        85.643        .15853E-03   -1.3157    
  14  norm          .10002E-03    100.73        .68596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    51.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3070        60.094        .14846E-03   -1.5167    
  17  norm          .10000E-03    9.2486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.8348        5.5330        .13486E-03   -1.5113    
  19  Prefactor     .10000E-03    158.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    62.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.1404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .67082        .29963        .47941E-03   -1.0506    
  23  Prefactor     1.1499        .13027        .16568E-03   -.87888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09991e-09
Minuit parameter uncertainties:
  1  0.915262
  2  2.76066e-05
  3  5.37014e-06
  4  5.17282
  5  5.53615
  6  2.76143
  7  4.69084
  8  12.437
  9  20.849
  10  11.8888
  11  11.4914
  12  4.45419
  13  85.7085
  14  0.00258383
  15  2.29189e-05
  16  41.9669
  17  1.14361e-05
  18  5.53336
  19  0.000175628
  20  7.50466e-05
  21  1.10668e-06
  22  0.300366
  23  0.130303
Done.

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

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  2.062e+01  1.189e+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:  1.150e+00  1.303e-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:  6.708e-01  3.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.68
Ra Dec: 204.799 -26.335
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 7.72e-08 +/- 4.45e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 1.85e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8312.63181659
delta logL = 0.0797333754363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8312.62390174
delta logL = 0.0876482247277

Fit tolerance = 1e-08

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

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

 FCN=   8312.624     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      297 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.828        17.192        .10066E-03    .19607E-03
   2  Index         2.4725        .65668        .54549E-02    .50173E-04
   3  Normalizat    .64756        .29548        .48724E-03   -.51178E-03
   4  Prefactor     1.1566        .12946        .16524E-03   -.20819E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8284
  Index      = 2.47251
  Normalizat = 0.647557
  Prefactor  = 1.15658
 **********
 **   18 **HESSE 
 **********

 FCN=   8312.624     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.828        14.922        .40263E-05   -1.4912    
   2  Index         2.4725        .56981        .21820E-03   -.52996    
   3  Normalizat    .64756        .29390        .19490E-04   -1.0600    
   4  Prefactor     1.1566        .12906        .33048E-04   -.87678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75866e-09
Minuit parameter uncertainties:
  1  14.9258
  2  0.571475
  3  0.294614
  4  0.129096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866999': 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) = 8312.62389855
delta logL = 0.0876514147949

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.583e+01  1.493e+01  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.473e+00  5.715e-01  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:  1.157e+00  1.291e-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:  6.476e-01  2.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.89
Ra Dec: 204.799 -26.335
Photon Index (Free Index): 2.47 +/- 0.57
Photon Flux (Free Index): 9.37e-08 +/- 6.31e-08
Energy Flux (Free Index): 2.81e-05 +/- 1.68e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/866999/cmap_HighResolution_552700801_552960001_4FGL_J1339.1-2620_daily_bin1209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.72e-08', energy_flux2='2.81e-05', photon_flux_error='4.45e-08', dlogl='8.77e-02', energy_flux='3.21e-05', photon_flux2='9.37e-08', job_status='DONE', time_completed='2021-09-08 08:25:20.977369', photon_index_error2='0.57', photon_index2='2.47', ts='6.68', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='0.67', time_epoch_completed='1631114720.98', return_code='0', job_id='866999', GAL2='1.16', EG2='0.65', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='6.31e-08', ts2='6.89', photon_index='2.24' WHERE bin_id='1209' AND source_name='4FGL J1339.1-2620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:25:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 866999: <4FGL_J1339.1-2620_daily_bin1209> in cluster <slac> Done

Job <4FGL_J1339.1-2620_daily_bin1209> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 08:10:35 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:11:26 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:11:26 2021
Terminated at Wed Sep  8 08:25:21 2021
Results reported at Wed Sep  8 08:25:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.1-2620_daily_bin1209 204.799 -26.3351 552700801 552960001 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 :                                   788.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            886 sec.

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

