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


Performing analysis on: 4FGL_J1340.4+6926_daily_bin485
RA = 205.11, Dec = 69.4446
tmin = 365040001, tmax = 365299201
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='881072', job_status='RUN', time_executed='2021-09-08 08:51:29.724138', time_epoch_executed='1631116289.72' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/881072

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/881072/ft1_4FGL_J1340.4+6926_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/881072/ft2_4FGL_J1340.4+6926_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/881072/ft1_4FGL_J1340.4+6926_daily_bin485.fits outfile=/scratch/kocevski/881072/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin485.fits ra=205.11 dec=69.4446 rad=12.0 tmin=365040001.0 tmax=365299201.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.72
user 3.44
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/881072/ft2_4FGL_J1340.4+6926_daily_bin485.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/881072/ft2_4FGL_J1340.4+6926_daily_bin485.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/881072/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin485.fits evtable="EVENTS" outfile="/scratch/kocevski/881072/ft1_filtered_4FGL_J1340.4+6926_daily_bin485.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/881072/ft1_filtered_4FGL_J1340.4+6926_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/881072/ft2_4FGL_J1340.4+6926_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/881072/ltcube_365040001_365299201_4FGL_J1340.4+6926_daily_bin485.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/881072/ft2_4FGL_J1340.4+6926_daily_bin485.fits
.....................!
real 14.06
user 13.43
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/881072/ft1_filtered_4FGL_J1340.4+6926_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/881072/ft2_4FGL_J1340.4+6926_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/881072/ltcube_365040001_365299201_4FGL_J1340.4+6926_daily_bin485.fits outfile=/scratch/kocevski/881072/expmap_365040001_365299201_4FGL_J1340.4+6926_daily_bin485.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/881072/ltcube_365040001_365299201_4FGL_J1340.4+6926_daily_bin485.fits
.....................!
real 191.85
user 186.03
sys 5.36

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
Added 227 point sources and 0 extended sources

Setting source of interest to:
4FGL J1340.4+6926 @ 205.11 69.4446

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/881072/ft1_filtered_4FGL_J1340.4+6926_daily_bin485.fits scfile=/scratch/kocevski/881072/ft2_4FGL_J1340.4+6926_daily_bin485.fits outfile=/scratch/kocevski/881072/cmap_365040001_365299201_4FGL_J1340.4+6926_daily_bin485.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=205.11 yref=69.4446 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/881072/ft1_filtered_4FGL_J1340.4+6926_daily_bin485.fits scfile=/scratch/kocevski/881072/ft2_4FGL_J1340.4+6926_daily_bin485.fits outfile=/scratch/kocevski/881072/cmap_HighResolution_365040001_365299201_4FGL_J1340.4+6926_daily_bin485.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=205.11 yref=69.4446 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/881072/ft1_filtered_4FGL_J1340.4+6926_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/881072/ft2_4FGL_J1340.4+6926_daily_bin485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/881072/Model_4FGL_J1340.4+6926_daily_bin485.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/881072/ft1_filtered_4FGL_J1340.4+6926_daily_bin485.fits....................!
real 63.87
user 62.13
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/881072/ft1_filtered_4FGL_J1340.4+6926_daily_bin485.fits', '/scratch/kocevski/881072/ft2_4FGL_J1340.4+6926_daily_bin485.fits', expMap='/scratch/kocevski/881072/expmap_365040001_365299201_4FGL_J1340.4+6926_daily_bin485.fits', expCube='/scratch/kocevski/881072/ltcube_365040001_365299201_4FGL_J1340.4+6926_daily_bin485.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/881072/Model_4FGL_J1340.4+6926_daily_bin485.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1340.4+6926'

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.968e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
378        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/881072/ft1_filtered_4FGL_J1340.4+6926_daily_bin485.fits
Spacecraft file(s): /scratch/kocevski/881072/ft2_4FGL_J1340.4+6926_daily_bin485.fits
Exposure map: /scratch/kocevski/881072/expmap_365040001_365299201_4FGL_J1340.4+6926_daily_bin485.fits
Exposure cube: /scratch/kocevski/881072/ltcube_365040001_365299201_4FGL_J1340.4+6926_daily_bin485.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/881072/Model_4FGL_J1340.4+6926_daily_bin485.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) = 6709.64921789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3076       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1182       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.6246       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.422       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.131       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0606       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12148E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.038       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.308       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0951       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81529       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6709.555     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     2819 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3107        12.247        .63557E-06   -.14543E-04
   2  Prefactor     2.1193        2.5260        .11568E-06   -.11060E-03
   3  Prefactor     34.007        39.950        .80936E-05   -.78522E-05
   4  Prefactor     .10000E-03    12.175       -.68608E-05** at limit **
   5  Prefactor     .10000E-03    32.084        .16817E-04** at limit **
   6  norm          3.6254        2.7262        .13660E-06    .10383E-03
   7  Prefactor     17.430        22.431       -.28161E-05   -.49486E-05
   8  Prefactor     .10000E-03    28.330       -.93534E-05** at limit **
   9  Prefactor     48.149        38.766        .11078E-04    .32748E-05
  10  Prefactor     1.6044        98.588       -.37356E-04   -.88834E-04
  11  Prefactor     .10000E-03    .66594        .40074E-07** at limit **
  12  Prefactor     .60737        8.8376        .28890E-05   -.44764E-04
  13  Prefactor     .10000E-03    19.571        .91237E-06** at limit **
  14  Prefactor     .10000E-03    1.4227        .21316E-08** at limit **
  15  Prefactor     .10000E-03    1.7345        .20554E-07** at limit **
  16  Prefactor     .10000E-03    4.9607       -.80923E-07** at limit **
  17  Prefactor     .10000E-03    8.4491        .99145E-06** at limit **
  18  Prefactor     39.362        1134.5        .51655E-03    .41800E-05
  19  Prefactor     .10000E-03    15.642        .24917E-05** at limit **
  20  Prefactor     .10000E-03    10.958        .10906E-04** at limit **
  21  Prefactor     .10000E-03    7.7024        .10960E-05** at limit **
  22  Prefactor     16.335        34.132        .11275E-04    .54937E-04
  23  Prefactor     .10000E-03    102.35       -.99572E-04** at limit **
  24  Prefactor     .10000E-03    7.7704       -.15255E-05** at limit **
  25  Prefactor     .10000E-03    10.324       -.66840E-05** at limit **
  26  Normalizat    1.0945        .14120       -.15847E-05    .19681E-04
  27  Prefactor     .81540        .14965       -.23100E-05    .42041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.31068
  Prefactor  = 2.11927
  Prefactor  = 34.0067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.62538
  Prefactor  = 17.4297
  Prefactor  = 0.0001
  Prefactor  = 48.1493
  Prefactor  = 1.6044
  Prefactor  = 0.0001
  Prefactor  = 0.607374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.3624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09445
  Prefactor  = 0.815401
 **********
 **   18 **HESSE 
 **********

 FCN=   6709.555     FROM HESSE     STATUS=OK           484 CALLS     3303 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3107        12.242        .13909E-03   -1.5131    
   2  Prefactor     2.1193        2.5177        .13842E-03   -1.5417    
   3  Prefactor     34.007        39.975        .68708E-04   -1.4541    
   4  Prefactor     .10000E-03    12.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.6254        2.7282        .11420E-03   -1.5327    
   7  Prefactor     17.430        22.434        .95956E-04   -1.4873    
   8  Prefactor     .10000E-03    28.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.149        38.767        .57799E-04   -1.4319    
  10  Prefactor     1.6044        101.27        .28787E-03   -1.5455    
  11  Prefactor     .10000E-03    .66721        .65270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .60737        45.001        .43022E-02   -1.5552    
  13  Prefactor     .10000E-03    19.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4233        .95412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7383        .10534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.9679        .17817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.4511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     39.362        1124.1        .32076E-03   -1.4452    
  19  Prefactor     .10000E-03    15.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.7093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.335        34.162        .99178E-04   -1.4899    
  23  Prefactor     .10000E-03    102.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.8220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0945        .16268        .20343E-03   -.89930    
  27  Prefactor     .81540        .17282        .24441E-03   -.99163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16558e-08
Minuit parameter uncertainties:
  1  12.2461
  2  2.51787
  3  40.006
  4  6.8145e-05
  5  2.95284e-05
  6  2.72831
  7  22.4445
  8  0.000101958
  9  38.787
  10  25.538
  11  1.04752e-06
  12  10.4634
  13  1.72501e-05
  14  1.28263e-06
  15  3.85345e-06
  16  1.24384e-05
  17  5.27132e-07
  18  429.931
  19  2.18518e-06
  20  7.22372e-06
  21  1.19586e-05
  22  34.2031
  23  0.000159857
  24  3.41981e-05
  25  1.60821e-05
  26  0.162756
  27  0.172934
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  6.074e-01  1.046e+01  1.000e-04  1.000e+04 ( 1.000e-13)
378        Index:  2.535e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  8.154e-01  1.729e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.094e+00  1.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 205.110 69.445
Photon Flux Upper Limit: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/881072/likelihoodResults_365040001_365299201_4FGL_J1340.4+6926_daily_bin485.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) = 6709.55125271
delta logL = 0.00420554794255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6709.54690671
delta logL = 0.0085515506853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7285       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1336       1.0000          .0000       10.000    
     3 'Normalizat'    1.0947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81457       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7280E+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=   6709.547     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      266 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7255        24.205        .31935E-03    .55058E-03
   2  Index         2.1313        2.3759        .27120E-01    .16853E-03
   3  Normalizat    1.0946        .16147        .20342E-03   -.14930E-02
   4  Prefactor     .81455        .17066        .24452E-03   -.12907E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72551
  Index      = 2.13132
  Normalizat = 1.09462
  Prefactor  = 0.814552
 **********
 **   18 **HESSE 
 **********

 FCN=   6709.547     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7255        22.345        .12774E-04   -1.5445    
   2  Index         2.1313        2.2996        .10848E-02   -.61106    
   3  Normalizat    1.0946        .16159        .40684E-04   -.89925    
   4  Prefactor     .81455        .17075        .48904E-04   -.99194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38093e-08
Minuit parameter uncertainties:
  1  12.424
  2  2.44172
  3  0.161665
  4  0.170857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/881072': 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) = 6709.54690593
delta logL = 0.00855233736547

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  1.726e+00  1.242e+01  1.000e-04  1.000e+04 ( 1.000e-13)
378        Index:  2.131e+00  2.442e+00  0.000e+00  1.000e+01 (-1.000e+00)
379        Scale:  9.421e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
725    Prefactor:  8.146e-01  1.709e-01  0.000e+00  1.000e+01 ( 1.000e+00)
726        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
727        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
724   Normalization:  1.095e+00  1.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 205.110 69.445

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/881072/cmap_HighResolution_365040001_365299201_4FGL_J1340.4+6926_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-09-08 09:06:50.070707', job_id='881072', GAL2='0.81', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631117210.07', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='8.55e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='485' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:06:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 881072: <4FGL_J1340.4+6926_daily_bin485> in cluster <slac> Done

Job <4FGL_J1340.4+6926_daily_bin485> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 08:50:26 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:51:20 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:51:20 2021
Terminated at Wed Sep  8 09:06:50 2021
Results reported at Wed Sep  8 09:06:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1340.4+6926_daily_bin485 205.11 69.4446 365040001 365299201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1340.4+6926 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   906.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            984 sec.

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

