/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 159 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1340.4+6926_daily_bin215
RA = 205.11, Dec = 69.4446
tmin = 295056001, tmax = 295315201
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='879478', job_status='RUN', time_executed='2021-09-08 08:48:28.001240', time_epoch_executed='1631116108.0' WHERE source_name='4FGL J1340.4+6926' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/879478

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/879478/ft1_4FGL_J1340.4+6926_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/879478/ft2_4FGL_J1340.4+6926_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/879478/ft1_4FGL_J1340.4+6926_daily_bin215.fits outfile=/scratch/kocevski/879478/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin215.fits ra=205.11 dec=69.4446 rad=12.0 tmin=295056001.0 tmax=295315201.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.63
user 2.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/879478/ft2_4FGL_J1340.4+6926_daily_bin215.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/879478/ft1_filteredMKT_4FGL_J1340.4+6926_daily_bin215.fits evtable="EVENTS" outfile="/scratch/kocevski/879478/ft1_filtered_4FGL_J1340.4+6926_daily_bin215.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/879478/ft1_filtered_4FGL_J1340.4+6926_daily_bin215.fits" evtable="EVENTS" scfile=/scratch/kocevski/879478/ft2_4FGL_J1340.4+6926_daily_bin215.fits sctable="SC_DATA" outfile=/scratch/kocevski/879478/ltcube_295056001_295315201_4FGL_J1340.4+6926_daily_bin215.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/879478/ft2_4FGL_J1340.4+6926_daily_bin215.fits
.....................!
real 16.74
user 16.30
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/879478/ft1_filtered_4FGL_J1340.4+6926_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/879478/ft2_4FGL_J1340.4+6926_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/879478/ltcube_295056001_295315201_4FGL_J1340.4+6926_daily_bin215.fits outfile=/scratch/kocevski/879478/expmap_295056001_295315201_4FGL_J1340.4+6926_daily_bin215.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/879478/ltcube_295056001_295315201_4FGL_J1340.4+6926_daily_bin215.fits
.....................!
real 191.96
user 186.32
sys 4.85

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/879478/ft1_filtered_4FGL_J1340.4+6926_daily_bin215.fits scfile=/scratch/kocevski/879478/ft2_4FGL_J1340.4+6926_daily_bin215.fits outfile=/scratch/kocevski/879478/cmap_295056001_295315201_4FGL_J1340.4+6926_daily_bin215.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/879478/ft1_filtered_4FGL_J1340.4+6926_daily_bin215.fits scfile=/scratch/kocevski/879478/ft2_4FGL_J1340.4+6926_daily_bin215.fits outfile=/scratch/kocevski/879478/cmap_HighResolution_295056001_295315201_4FGL_J1340.4+6926_daily_bin215.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/879478/ft1_filtered_4FGL_J1340.4+6926_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/879478/ft2_4FGL_J1340.4+6926_daily_bin215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/879478/Model_4FGL_J1340.4+6926_daily_bin215.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/879478/ft1_filtered_4FGL_J1340.4+6926_daily_bin215.fits.....................!
real 60.83
user 59.50
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/879478/ft1_filtered_4FGL_J1340.4+6926_daily_bin215.fits', '/scratch/kocevski/879478/ft2_4FGL_J1340.4+6926_daily_bin215.fits', expMap='/scratch/kocevski/879478/expmap_295056001_295315201_4FGL_J1340.4+6926_daily_bin215.fits', expCube='/scratch/kocevski/879478/ltcube_295056001_295315201_4FGL_J1340.4+6926_daily_bin215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/879478/Model_4FGL_J1340.4+6926_daily_bin215.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/879478/ft1_filtered_4FGL_J1340.4+6926_daily_bin215.fits
Spacecraft file(s): /scratch/kocevski/879478/ft2_4FGL_J1340.4+6926_daily_bin215.fits
Exposure map: /scratch/kocevski/879478/expmap_295056001_295315201_4FGL_J1340.4+6926_daily_bin215.fits
Exposure cube: /scratch/kocevski/879478/ltcube_295056001_295315201_4FGL_J1340.4+6926_daily_bin215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/879478/Model_4FGL_J1340.4+6926_daily_bin215.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) = 5882.72253064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    71.431       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10936E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6427       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.454       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7274       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.376       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13307E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9239       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5045       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .64432       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=   5882.706     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3353 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5141        .20468E-09** at limit **
   2  Prefactor     .10000E-03    1.2258       -.31279E-08** at limit **
   3  Prefactor     71.411        77.886        .12370E-05    .18704E-06
   4  Prefactor     .10000E-03    6.3980       -.27808E-08** at limit **
   5  Prefactor     .10000E-03    93.286       -.67799E-06** at limit **
   6  norm          .10000E-03    4.8352        .12063E-07** at limit **
   7  Prefactor     .10000E-03    28.300       -.11349E-05** at limit **
   8  Prefactor     .10000E-03    55.695       -.84470E-06** at limit **
   9  Prefactor     6.6461        22.730       -.22372E-07   -.49469E-05
  10  Prefactor     .10000E-03    15.022        .21261E-07** at limit **
  11  Prefactor     .10000E-03    2.5162        .35604E-07** at limit **
  12  Prefactor     50.454        24.174       -.25862E-06    .10378E-04
  13  Prefactor     .10528E-03    53.901       -.48752E-05** at limit **
  14  Prefactor     .10000E-03    9.1079        .11985E-06** at limit **
  15  Prefactor     2.7270        9.6837        .63870E-05    .13058E-03
  16  Prefactor     .10000E-03    30.459        .64816E-06** at limit **
  17  Prefactor     48.359        39.331       -.77086E-06   -.71151E-05
  18  Prefactor     .10000E-03    6278.3        .53300E-04** at limit **
  19  Prefactor     .10000E-03    38.359        .96506E-06** at limit **
  20  Prefactor     .10000E-03    17.379       -.18409E-07** at limit **
  21  Prefactor     .10000E-03    51.740       -.18243E-05** at limit **
  22  Prefactor     .10000E-03    24.746        .27303E-06** at limit **
  23  Prefactor     2.0758        305.25        .15525E-04   -.67344E-05
  24  Prefactor     .10000E-03    9.9613       -.44720E-07** at limit **
  25  Prefactor     .10000E-03    62.627        .25378E-05** at limit **
  26  Normalizat    1.5046        .17804       -.13205E-05    .20391E-05
  27  Prefactor     .64425        .17434        .39012E-06   -.34300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.64605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.4537
  Prefactor  = 0.000105277
  Prefactor  = 0.0001
  Prefactor  = 2.72702
  Prefactor  = 0.0001
  Prefactor  = 48.3593
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.0758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.50458
  Prefactor  = 0.644252
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.706     FROM HESSE     STATUS=OK           482 CALLS     3835 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5143        .17591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.2291        .82928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     71.411        77.974        .47499E-04   -1.4016    
   4  Prefactor     .10000E-03    6.4067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    93.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.0546        .32927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6461        22.739        .15570E-03   -1.5192    
  10  Prefactor     .10000E-03    15.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5337        .11876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     50.454        24.311        .56459E-04   -1.4286    
  13  Prefactor     .10528E-03    46.851        .15887       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7270        9.7261        .12329E-02   -1.5378    
  16  Prefactor     .10000E-03    30.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     48.359        39.335        .57653E-04   -1.4316    
  18  Prefactor     .10000E-03    6285.5        .20563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    52.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0758        310.01        .29953E-03   -1.5420    
  24  Prefactor     .10000E-03    10.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    63.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.5046        .20668        .20812E-03   -.77650    
  27  Prefactor     .64425        .20200        .30029E-03   -1.0575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49792e-10
Minuit parameter uncertainties:
  1  2.12773e-07
  2  2.20287e-07
  3  78.0854
  4  1.43772e-06
  5  4.2069e-06
  6  3.54579e-06
  7  7.85991e-06
  8  6.0312e-06
  9  22.7681
  10  1.70457e-06
  11  4.67673e-06
  12  24.3157
  13  0.0314711
  14  2.07456e-05
  15  9.73177
  16  3.69818e-05
  17  39.3559
  18  0.0066089
  19  1.7385e-05
  20  8.86604e-06
  21  3.70945e-05
  22  2.16299e-05
  23  51.0055
  24  1.42475e-06
  25  3.61813e-05
  26  0.206797
  27  0.202232
Done.

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

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  5.045e+01  2.432e+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:  6.443e-01  2.022e-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.505e+00  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.07
Ra Dec: 205.110 69.445
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 9.69e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.31e-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) = 5882.65372981
delta logL = 0.0522142102482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5882.65051501
delta logL = 0.0554290089685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.058       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6978       1.0000          .0000       10.000    
     3 'Normalizat'    1.4908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65343       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=   5882.651     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      287 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.054        32.994        .61094E-04    .65621E-03
   2  Index         2.6976        .53446        .44702E-02    .28944E-03
   3  Normalizat    1.4907        .20665        .20884E-03   -.45040E-03
   4  Prefactor     .65350        .19956        .29834E-03   -.38944E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.0536
  Index      = 2.69759
  Normalizat = 1.49074
  Prefactor  = 0.653501
 **********
 **   18 **HESSE 
 **********

 FCN=   5882.651     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.054        30.770        .12219E-04   -1.4395    
   2  Index         2.6976        .49798        .17881E-03   -.47854    
   3  Normalizat    1.4907        .20647        .41768E-04   -.78039    
   4  Prefactor     .65350        .19947        .11934E-04   -1.0538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96265e-10
Minuit parameter uncertainties:
  1  30.7815
  2  0.49903
  3  0.206583
  4  0.199688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/879478': 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) = 5882.65051452
delta logL = 0.0554295062639

Extracting fit parameters...

4FGL J1340.4+6926
   Spectrum: PowerLaw
377    Prefactor:  4.305e+01  3.078e+01  1.000e-04  1.000e+04 ( 1.000e-13)
378        Index:  2.698e+00  4.990e-01  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:  6.535e-01  1.997e-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.491e+00  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.21
Ra Dec: 205.110 69.445
Photon Index (Free Index): 2.70 +/- 0.50
Photon Flux (Free Index): 1.08e-07 +/- 5.80e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.23e-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/879478/cmap_HighResolution_295056001_295315201_4FGL_J1340.4+6926_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.69e-08', energy_flux2='2.60e-05', photon_flux_error='4.67e-08', dlogl='5.54e-02', energy_flux='2.71e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-08 09:01:48.552489', photon_index_error2='0.50', photon_index2='2.70', ts='9.07', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.50', time_epoch_completed='1631116908.55', return_code='0', job_id='879478', GAL2='0.65', EG2='1.49', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.80e-08', ts2='9.21', photon_index='2.53' WHERE bin_id='215' AND source_name='4FGL J1340.4+6926' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 09:01:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 879478: <4FGL_J1340.4+6926_daily_bin215> in cluster <slac> Done

Job <4FGL_J1340.4+6926_daily_bin215> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 08:45:25 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:45:34 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:45:34 2021
Terminated at Wed Sep  8 09:01:49 2021
Results reported at Wed Sep  8 09:01:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1340.4+6926_daily_bin215 205.11 69.4446 295056001 295315201 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 :                                   792.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             284.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            984 sec.

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

