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


Performing analysis on: 4FGL_J1339.1-2620_daily_bin1565
RA = 204.799, Dec = -26.3351
tmin = 644976001, tmax = 645235201
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='868830', job_status='RUN', time_executed='2021-09-08 08:19:49.742210', time_epoch_executed='1631114389.74' WHERE source_name='4FGL J1339.1-2620' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/868830

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/868830/ft1_4FGL_J1339.1-2620_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/868830/ft2_4FGL_J1339.1-2620_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/868830/ft1_4FGL_J1339.1-2620_daily_bin1565.fits outfile=/scratch/kocevski/868830/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1565.fits ra=204.799 dec=-26.3351 rad=12.0 tmin=644976001.0 tmax=645235201.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.00
user 2.77
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/868830/ft2_4FGL_J1339.1-2620_daily_bin1565.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/868830/ft1_filteredMKT_4FGL_J1339.1-2620_daily_bin1565.fits evtable="EVENTS" outfile="/scratch/kocevski/868830/ft1_filtered_4FGL_J1339.1-2620_daily_bin1565.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/868830/ft1_filtered_4FGL_J1339.1-2620_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/868830/ft2_4FGL_J1339.1-2620_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/868830/ltcube_644976001_645235201_4FGL_J1339.1-2620_daily_bin1565.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/868830/ft2_4FGL_J1339.1-2620_daily_bin1565.fits
.....................!
real 14.84
user 14.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/868830/ft1_filtered_4FGL_J1339.1-2620_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/868830/ft2_4FGL_J1339.1-2620_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/868830/ltcube_644976001_645235201_4FGL_J1339.1-2620_daily_bin1565.fits outfile=/scratch/kocevski/868830/expmap_644976001_645235201_4FGL_J1339.1-2620_daily_bin1565.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/868830/ltcube_644976001_645235201_4FGL_J1339.1-2620_daily_bin1565.fits
.....................!
real 191.85
user 185.84
sys 5.22

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/868830/ft1_filtered_4FGL_J1339.1-2620_daily_bin1565.fits scfile=/scratch/kocevski/868830/ft2_4FGL_J1339.1-2620_daily_bin1565.fits outfile=/scratch/kocevski/868830/cmap_644976001_645235201_4FGL_J1339.1-2620_daily_bin1565.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/868830/ft1_filtered_4FGL_J1339.1-2620_daily_bin1565.fits scfile=/scratch/kocevski/868830/ft2_4FGL_J1339.1-2620_daily_bin1565.fits outfile=/scratch/kocevski/868830/cmap_HighResolution_644976001_645235201_4FGL_J1339.1-2620_daily_bin1565.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.61
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/868830/ft1_filtered_4FGL_J1339.1-2620_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/868830/ft2_4FGL_J1339.1-2620_daily_bin1565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/868830/Model_4FGL_J1339.1-2620_daily_bin1565.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/868830/ft1_filtered_4FGL_J1339.1-2620_daily_bin1565.fits.....................!
real 98.94
user 97.23
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3486       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12880E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10962E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4383       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.750       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.358       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22117E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8480       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.750       1.0000         .10000E-03   10000.    
    14 'norm      '    .18207E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .25401E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82079       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22911E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.374       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6408       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91302       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=   5706.166     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     2943 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3486        1.3363        .63744E-04   -.26592E-03
   2  Prefactor     .10000E-03    95.305        .18142E-02** at limit **
   3  norm          .10000E-03    6.8736        .36285E-03** at limit **
   4  Prefactor     8.4333        5.8238        .13800E-03   -.19557E-03
   5  norm          .10000E-03    5.7858        .17545E-02** at limit **
   6  norm          .10000E-03    .82234        .66797E-03** at limit **
   7  norm          16.751        8.8934        .97862E-04   -.16334E-03
   8  Prefactor     .10000E-03    5.9210        .17943E-02** at limit **
   9  Prefactor     .10000E-03    25.938        .18142E-02** at limit **
  10  Prefactor     32.384        20.584        .70441E-04   -.53586E-03
  11  Prefactor     .10013E-03    30.506        .40314E-02** at limit **
  12  norm          1.8479        3.6352        .19851E-03   -.28497E-03
  13  Prefactor     34.908        110.85        .33990E-03   -.20001E-04
  14  norm          .10007E-03    45.610        .14708    ** at limit **
  15  norm          .10000E-03    23.974        .18142E-02** at limit **
  16  Prefactor     .10000E-03    26.902        .18142E-02** at limit **
  17  norm          .10010E-03    128.25        .57600E-02** at limit **
  18  Prefactor     .81776        10.561        .31834E-02    .19402E-03
  19  Prefactor     .10016E-03    679.53        .20103E-02** at limit **
  20  Prefactor     63.379        63.846        .50408E-04   -.41092E-04
  21  Prefactor     .10000E-03    10.555        .18142E-02** at limit **
  22  Normalizat    1.6400        .40620        .36446E-03   -.36563E-03
  23  Prefactor     .91333        .16651        .19656E-03   -.74399E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.34865
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.43333
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 16.7506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3835
  Prefactor  = 0.000100133
  norm       = 1.84793
  Prefactor  = 34.9082
  norm       = 0.000100072
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100105
  Prefactor  = 0.817758
  Prefactor  = 0.000100162
  Prefactor  = 63.379
  Prefactor  = 0.0001
  Normalizat = 1.64002
  Prefactor  = 0.913333
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.166     FROM HESSE     STATUS=OK           358 CALLS     3301 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3486        1.3362        .25498E-05   -1.5401    
   2  Prefactor     .10000E-03    95.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.8739        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4333        5.8233        .55201E-05   -1.5127    
   5  norm          .10000E-03    5.7904        .35090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .82235        .13359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.751        8.8922        .39145E-05   -1.4889    
   8  Prefactor     .10000E-03    5.9212        .35885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.384        20.563        .14088E-04   -1.4569    
  11  Prefactor     .10013E-03    30.811        .80629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8479        3.6351        .79405E-05   -1.5436    
  13  Prefactor     34.908        110.84        .13596E-04   -1.4526    
  14  norm          .10007E-03    45.299        .14772       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    23.975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.903        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10010E-03    131.43        .23040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .81776        10.368        .12734E-03   -1.5527    
  19  Prefactor     .10016E-03    679.82        .40206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     63.379        63.832        .10082E-04   -1.4114    
  21  Prefactor     .10000E-03    10.555        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6400        .40580        .72892E-04   -.73916    
  23  Prefactor     .91333        .16662        .39312E-04   -.95677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36738e-09
Minuit parameter uncertainties:
  1  1.33622
  2  9.89634e-05
  3  0.000103205
  4  5.8237
  5  0.000132844
  6  7.35321e-06
  7  8.89288
  8  2.32215e-05
  9  0.000218926
  10  20.5677
  11  0.00404396
  12  3.63553
  13  111.5
  14  0.00360581
  15  7.09918e-05
  16  8.92237e-05
  17  0.00743396
  18  5.8245
  19  0.0212509
  20  63.901
  21  2.20898e-05
  22  0.406619
  23  0.166708
Done.

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

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  3.238e+01  2.057e+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:  9.133e-01  1.667e-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.640e+00  4.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.93
Ra Dec: 204.799 -26.335
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 7.69e-08
Energy Flux (Fixed Index): 5.04e-05 +/- 3.20e-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) = 5705.75196078
delta logL = 0.413942029291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5705.74409783
delta logL = 0.421804977379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.369       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7704       1.0000          .0000       10.000    
     3 'Normalizat'    1.5215       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94443       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=   5705.744     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      301 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.358        23.842        .93450E-04   -.18613E-03
   2  Index         2.7712        .72770        .36388E-02   -.39348E-04
   3  Normalizat    1.5206        .42464        .37549E-03    .52978E-03
   4  Prefactor     .94489        .17131        .19354E-03    .16542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3578
  Index      = 2.77121
  Normalizat = 1.52056
  Prefactor  = 0.94489
 **********
 **   18 **HESSE 
 **********

 FCN=   5705.744     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.358        19.349        .37380E-05   -1.4851    
   2  Index         2.7712        .59020        .14555E-03   -.46202    
   3  Normalizat    1.5206        .41898        .75098E-04   -.77202    
   4  Prefactor     .94489        .16988        .38709E-04   -.94590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05886e-09
Minuit parameter uncertainties:
  1  19.3555
  2  0.59192
  3  0.419945
  4  0.169978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/868830': 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) = 5705.74409308
delta logL = 0.421809721583

Extracting fit parameters...

4FGL J1339.1-2620
   Spectrum: PowerLaw
315    Prefactor:  1.836e+01  1.936e+01  1.000e-04  1.000e+04 ( 1.000e-13)
316        Index:  2.771e+00  5.919e-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:  9.449e-01  1.700e-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.521e+00  4.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.92
Ra Dec: 204.799 -26.335
Photon Index (Free Index): 2.77 +/- 0.59
Photon Flux (Free Index): 2.05e-07 +/- 1.27e-07
Energy Flux (Free Index): 4.68e-05 +/- 2.37e-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/868830/cmap_HighResolution_644976001_645235201_4FGL_J1339.1-2620_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='4.68e-05', photon_flux_error='7.69e-08', dlogl='4.22e-01', energy_flux='5.04e-05', photon_flux2='2.05e-07', job_status='DONE', time_completed='2021-09-08 08:31:37.091660', photon_index_error2='0.59', photon_index2='2.77', ts='5.93', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.37e-05', EG='1.64', time_epoch_completed='1631115097.09', return_code='0', job_id='868830', GAL2='0.94', EG2='1.52', return_code2='0', energy_flux_error='3.20e-05', photon_flux_error2='1.27e-07', ts2='6.92', photon_index='2.24' WHERE bin_id='1565' AND source_name='4FGL J1339.1-2620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:31:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 868830: <4FGL_J1339.1-2620_daily_bin1565> in cluster <slac> Done

Job <4FGL_J1339.1-2620_daily_bin1565> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 08:15:31 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:16:07 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:16:07 2021
Terminated at Wed Sep  8 08:31:37 2021
Results reported at Wed Sep  8 08:31:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.1-2620_daily_bin1565 204.799 -26.3351 644976001 645235201 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 :                                   701.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            966 sec.

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

