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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin439
RA = 197.363, Dec = 43.085
tmin = 353116801, tmax = 353376001
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='276941', job_status='RUN', time_executed='2021-09-07 00:54:09.110067', time_epoch_executed='1631001249.11' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276941/ft1_4FGL_J1309.4+4305_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276941/ft2_4FGL_J1309.4+4305_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276941/ft1_4FGL_J1309.4+4305_daily_bin439.fits outfile=/scratch/kocevski/276941/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin439.fits ra=197.363 dec=43.085 rad=12.0 tmin=353116801.0 tmax=353376001.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.44
user 3.22
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/276941/ft2_4FGL_J1309.4+4305_daily_bin439.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276941/ft2_4FGL_J1309.4+4305_daily_bin439.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/276941/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin439.fits evtable="EVENTS" outfile="/scratch/kocevski/276941/ft1_filtered_4FGL_J1309.4+4305_daily_bin439.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276941/ft1_filtered_4FGL_J1309.4+4305_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/276941/ft2_4FGL_J1309.4+4305_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/276941/ltcube_353116801_353376001_4FGL_J1309.4+4305_daily_bin439.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/276941/ft2_4FGL_J1309.4+4305_daily_bin439.fits
.....................!
real 14.88
user 14.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276941/ft1_filtered_4FGL_J1309.4+4305_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/276941/ft2_4FGL_J1309.4+4305_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/276941/ltcube_353116801_353376001_4FGL_J1309.4+4305_daily_bin439.fits outfile=/scratch/kocevski/276941/expmap_353116801_353376001_4FGL_J1309.4+4305_daily_bin439.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/276941/ltcube_353116801_353376001_4FGL_J1309.4+4305_daily_bin439.fits
.....................!
real 191.82
user 186.37
sys 4.43

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

Setting source of interest to:
4FGL J1309.4+4305 @ 197.363 43.085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/276941/ft1_filtered_4FGL_J1309.4+4305_daily_bin439.fits scfile=/scratch/kocevski/276941/ft2_4FGL_J1309.4+4305_daily_bin439.fits outfile=/scratch/kocevski/276941/cmap_353116801_353376001_4FGL_J1309.4+4305_daily_bin439.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=197.363 yref=43.085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276941/ft1_filtered_4FGL_J1309.4+4305_daily_bin439.fits scfile=/scratch/kocevski/276941/ft2_4FGL_J1309.4+4305_daily_bin439.fits outfile=/scratch/kocevski/276941/cmap_HighResolution_353116801_353376001_4FGL_J1309.4+4305_daily_bin439.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=197.363 yref=43.085 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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/276941/ft1_filtered_4FGL_J1309.4+4305_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/276941/ft2_4FGL_J1309.4+4305_daily_bin439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/276941/Model_4FGL_J1309.4+4305_daily_bin439.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/276941/ft1_filtered_4FGL_J1309.4+4305_daily_bin439.fits.....................!
real 53.25
user 51.63
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/276941/ft1_filtered_4FGL_J1309.4+4305_daily_bin439.fits', '/scratch/kocevski/276941/ft2_4FGL_J1309.4+4305_daily_bin439.fits', expMap='/scratch/kocevski/276941/expmap_353116801_353376001_4FGL_J1309.4+4305_daily_bin439.fits', expCube='/scratch/kocevski/276941/ltcube_353116801_353376001_4FGL_J1309.4+4305_daily_bin439.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/276941/Model_4FGL_J1309.4+4305_daily_bin439.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1309.4+4305'

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.179e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/276941/ft1_filtered_4FGL_J1309.4+4305_daily_bin439.fits
Spacecraft file(s): /scratch/kocevski/276941/ft2_4FGL_J1309.4+4305_daily_bin439.fits
Exposure map: /scratch/kocevski/276941/expmap_353116801_353376001_4FGL_J1309.4+4305_daily_bin439.fits
Exposure cube: /scratch/kocevski/276941/ltcube_353116801_353376001_4FGL_J1309.4+4305_daily_bin439.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/276941/Model_4FGL_J1309.4+4305_daily_bin439.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) = 6202.50044074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8113       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0664       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5924       1.0000         .10000E-03   10000.    
     7 'norm      '    2.5864       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3060       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.152       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.439       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3975       1.0000         .10000E-03   10000.    
    14 'norm      '    .28841E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.658       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.688       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8652       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10857E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10698E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25850E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.048       1.0000         .10000E-03   10000.    
    25 'norm      '    20.135       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2685       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .72054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6202.477     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3293 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8126        5.6047        .14777E-05    .49517E-04
   2  Prefactor     .10000E-03    12.563       -.35559E-06** at limit **
   3  Prefactor     .10000E-03    15.906       -.60076E-06** at limit **
   4  Prefactor     .10000E-03    9.9937       -.14134E-06** at limit **
   5  norm          4.0660        2.2913        .92555E-08   -.12068E-04
   6  Prefactor     7.5912        7.5126        .13056E-06   -.44405E-04
   7  norm          2.5869        3.8500        .20219E-06   -.52809E-04
   8  Prefactor     2.3272        154.05        .61394E-06    .29028E-05
   9  Prefactor     26.166        27.050       -.54454E-07   -.64676E-04
  10  Prefactor     .10000E-03    7.6584        .18218E-06** at limit **
  11  norm          .10000E-03    1.2742        .17898E-06** at limit **
  12  norm          20.442        16.060        .22538E-06    .11730E-05
  13  norm          5.4043        4.5025        .30672E-06   -.56180E-03
  14  norm          .10009E-03    7.2663        .64518E-06** at limit **
  15  norm          .10000E-03    1.9954       -.52023E-07** at limit **
  16  Prefactor     .10000E-03    1.1847        .14987E-05** at limit **
  17  Prefactor     .10000E-03    5.6563        .12958E-05** at limit **
  18  Prefactor     39.664        41.148        .95425E-06    .15001E-04
  19  Prefactor     14.809        57.387       -.87029E-06    .19582E-05
  20  Prefactor     1.8641        20.738        .35687E-05    .74329E-04
  21  Prefactor     .10000E-03    79.611        .51252E-06** at limit **
  22  norm          .10001E-03    1.8880       -.28903E-06** at limit **
  23  Prefactor     .10000E-03    130.88        .65649E-06** at limit **
  24  norm          12.049        2.5576        .44667E-07   -.19191E-04
  25  norm          20.141        15.772        .98001E-07   -.11438E-04
  26  Normalizat    1.2685        .18077       -.12961E-05    .10055E-04
  27  Prefactor     .72057        .21251        .15414E-05   -.85705E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.06599
  Prefactor  = 7.59119
  norm       = 2.58686
  Prefactor  = 2.32716
  Prefactor  = 26.1665
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.4423
  norm       = 5.40427
  norm       = 0.000100089
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.6643
  Prefactor  = 14.8086
  Prefactor  = 1.8641
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.0001
  norm       = 12.0489
  norm       = 20.1412
  Normalizat = 1.26847
  Prefactor  = 0.720568
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.477     FROM HESSE     STATUS=OK           494 CALLS     3787 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8126        5.5754        .31042E-03   -1.5439    
   2  Prefactor     .10000E-03    12.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0660        2.2914        .86681E-04   -1.5305    
   6  Prefactor     7.5912        7.5001        .14554E-03   -1.5157    
   7  norm          2.5869        3.8224        .17735E-03   -1.5386    
   8  Prefactor     2.3272        152.89        .27021E-03   -1.5403    
   9  Prefactor     26.166        26.970        .78334E-04   -1.4684    
  10  Prefactor     .10000E-03    7.6683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2744        .86792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.442        16.032        .88593E-04   -1.4803    
  13  norm          5.4043        3.8393        .12204E-03   -1.5243    
  14  norm          .10009E-03    28.487        .34351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0388        .10852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.1631        .82632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     39.664        41.255        .63649E-04   -1.4448    
  19  Prefactor     14.809        57.141        .10451E-03   -1.4938    
  20  Prefactor     1.8641        18.434        .30505E-03   -1.5435    
  21  Prefactor     .10000E-03    79.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    14.061        .19260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    131.75        .21451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.049        2.5612        .54786E-04   -1.5014    
  25  norm          20.141        15.784        .89260E-04   -1.4810    
  26  Normalizat    1.2685        .21271        .22041E-03   -.84513    
  27  Prefactor     .72057        .24735        .34047E-03   -1.0273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84208e-09
Minuit parameter uncertainties:
  1  5.57696
  2  1.47211e-05
  3  3.06198e-05
  4  1.08766e-05
  5  2.29147
  6  7.50101
  7  3.82278
  8  37.8256
  9  26.9826
  10  1.60334e-06
  11  4.98591e-07
  12  16.0355
  13  3.83952
  14  0.00317801
  15  2.87152e-06
  16  5.93086e-06
  17  1.01318e-05
  18  41.2846
  19  57.3534
  20  11.7284
  21  8.84459e-05
  22  0.00072581
  23  4.03548e-05
  24  2.56119
  25  15.7873
  26  0.212854
  27  0.247729
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.044e+01  1.604e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  7.206e-01  2.477e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.268e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.18
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.14e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 2.35e-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) = 6202.14832331
delta logL = 0.328873032553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6202.14245386
delta logL = 0.334742478816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.385       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3103       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73200       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6202.142     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      269 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.372        289.43        .24014E-02    .12597E-04
   2  alpha         2.3093        3.4689        .24708        .64327E-04
   3  Normalizat    1.2461        .10150        .50220E-01    .82541E-06
   4  Prefactor     .73269        .88710E-01    .76294E-01    .22378E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.3721
  alpha      = 2.30928
  Normalizat = 1.24605
  Prefactor  = 0.732688
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.142     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.372        15.728        .96058E-04   -1.4874    
   2  alpha         2.3093        .67180        .12417E-01   -.76361E-01
   3  Normalizat    1.2461        .20532        .22203E-03   -.85191    
   4  Prefactor     .73269        .24439        .33773E-03   -1.0226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.04445e-12
Minuit parameter uncertainties:
  1  15.7315
  2  0.680212
  3  0.205458
  4  0.244753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276941': 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) = 6202.14244531
delta logL = 0.334751036309

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.737e+01  1.573e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.309e+00  6.802e-01  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  7.327e-01  2.448e-01  0.000e+00  1.000e+01 ( 1.000e+00)
664        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
665        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
662   Normalization:  1.246e+00  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.81
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.31 +/- 0.68
Photon Flux (Free Index): 4.16e-08 +/- 3.64e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.25e-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/276941/cmap_HighResolution_353116801_353376001_4FGL_J1309.4+4305_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-08', energy_flux2='1.69e-05', photon_flux_error='1.68e-08', dlogl='3.35e-01', energy_flux='2.35e-05', photon_flux2='4.16e-08', job_status='DONE', time_completed='2021-09-07 01:06:46.562805', photon_index_error2='0.68', photon_index2='2.31', ts='5.18', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='1.27', time_epoch_completed='1631002006.56', return_code='0', job_id='276941', GAL2='0.73', EG2='1.25', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='3.64e-08', ts2='5.81', photon_index='1.77' WHERE bin_id='439' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 276941: <4FGL_J1309.4+4305_daily_bin439> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin439> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:48 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:51:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 00:51:27 2021
Terminated at Tue Sep  7 01:06:47 2021
Results reported at Tue Sep  7 01:06:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin439 197.363 43.085 353116801 353376001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1309.4+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   744.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            959 sec.

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

