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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin511
RA = 197.363, Dec = 43.085
tmin = 371779201, tmax = 372038401
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='278212', job_status='RUN', time_executed='2021-09-07 00:58:20.008172', time_epoch_executed='1631001500.01' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278212/ft1_4FGL_J1309.4+4305_daily_bin511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278212/ft2_4FGL_J1309.4+4305_daily_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278212/ft1_4FGL_J1309.4+4305_daily_bin511.fits outfile=/scratch/kocevski/278212/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin511.fits ra=197.363 dec=43.085 rad=12.0 tmin=371779201.0 tmax=372038401.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.51
user 3.22
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278212/ft2_4FGL_J1309.4+4305_daily_bin511.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/278212/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin511.fits evtable="EVENTS" outfile="/scratch/kocevski/278212/ft1_filtered_4FGL_J1309.4+4305_daily_bin511.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278212/ft1_filtered_4FGL_J1309.4+4305_daily_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/278212/ft2_4FGL_J1309.4+4305_daily_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/278212/ltcube_371779201_372038401_4FGL_J1309.4+4305_daily_bin511.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/278212/ft2_4FGL_J1309.4+4305_daily_bin511.fits
.....................!
real 15.58
user 15.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278212/ft1_filtered_4FGL_J1309.4+4305_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/278212/ft2_4FGL_J1309.4+4305_daily_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/278212/ltcube_371779201_372038401_4FGL_J1309.4+4305_daily_bin511.fits outfile=/scratch/kocevski/278212/expmap_371779201_372038401_4FGL_J1309.4+4305_daily_bin511.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/278212/ltcube_371779201_372038401_4FGL_J1309.4+4305_daily_bin511.fits
.....................!
real 192.90
user 186.54
sys 4.33

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/278212/ft1_filtered_4FGL_J1309.4+4305_daily_bin511.fits scfile=/scratch/kocevski/278212/ft2_4FGL_J1309.4+4305_daily_bin511.fits outfile=/scratch/kocevski/278212/cmap_371779201_372038401_4FGL_J1309.4+4305_daily_bin511.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 1.19
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278212/ft1_filtered_4FGL_J1309.4+4305_daily_bin511.fits scfile=/scratch/kocevski/278212/ft2_4FGL_J1309.4+4305_daily_bin511.fits outfile=/scratch/kocevski/278212/cmap_HighResolution_371779201_372038401_4FGL_J1309.4+4305_daily_bin511.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.94
user 0.41
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/278212/ft1_filtered_4FGL_J1309.4+4305_daily_bin511.fits', '/scratch/kocevski/278212/ft2_4FGL_J1309.4+4305_daily_bin511.fits', expMap='/scratch/kocevski/278212/expmap_371779201_372038401_4FGL_J1309.4+4305_daily_bin511.fits', expCube='/scratch/kocevski/278212/ltcube_371779201_372038401_4FGL_J1309.4+4305_daily_bin511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/278212/Model_4FGL_J1309.4+4305_daily_bin511.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/278212/ft1_filtered_4FGL_J1309.4+4305_daily_bin511.fits
Spacecraft file(s): /scratch/kocevski/278212/ft2_4FGL_J1309.4+4305_daily_bin511.fits
Exposure map: /scratch/kocevski/278212/expmap_371779201_372038401_4FGL_J1309.4+4305_daily_bin511.fits
Exposure cube: /scratch/kocevski/278212/ltcube_371779201_372038401_4FGL_J1309.4+4305_daily_bin511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/278212/Model_4FGL_J1309.4+4305_daily_bin511.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) = 6116.2181905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11129E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.812       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.4820       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12156E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.205       1.0000         .10000E-03   10000.    
    11 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.618       1.0000         .10000E-03   10000.    
    13 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.4040       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6699       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5124       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12671E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.059       1.0000         .10000E-03   10000.    
    22 'norm      '    3.7641       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    11.977       1.0000         .10000E-03   10000.    
    25 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1255       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93864       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=   6116.199     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3219 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.5861        .20762E-06** at limit **
   2  Prefactor     30.804        23.004       -.74807E-06   -.20497E-03
   3  Prefactor     .10000E-03    7.2321       -.12735E-05** at limit **
   4  Prefactor     .10000E-03    28.575        .28004E-05** at limit **
   5  norm          6.4818        2.7291        .49956E-08   -.34712E-04
   6  Prefactor     .10000E-03    8.0067        .10978E-05** at limit **
   7  norm          .10000E-03    1.7776        .52845E-08** at limit **
   8  Prefactor     .10000E-03    23.884       -.18865E-05** at limit **
   9  Prefactor     .10000E-03    12.908       -.91597E-06** at limit **
  10  Prefactor     13.205        20.294        .67676E-06   -.20370E-04
  11  norm          .10000E-03    5.2809        .49689E-06** at limit **
  12  norm          20.617        15.438       -.12115E-07   -.60785E-05
  13  norm          .10000E-03    5.0564       -.49920E-06** at limit **
  14  norm          8.4008        5.7183       -.16151E-06    .14816E-03
  15  norm          .10000E-03    1.4631       -.31666E-07** at limit **
  16  Prefactor     3.6680        4.5952       -.11107E-05   -.74362E-04
  17  Prefactor     4.5147        11.740        .63293E-05   -.39509E-03
  18  Prefactor     .10001E-03    32.540        .33432E-05** at limit **
  19  Prefactor     .10001E-03    42.998       -.50929E-05** at limit **
  20  Prefactor     .10000E-03    12.080        .11015E-05** at limit **
  21  Prefactor     21.051        30.978       -.12464E-05   -.17701E-03
  22  norm          3.7657        3.6693        .28781E-06    .26922E-04
  23  Prefactor     .10000E-03    27.447        .16858E-05** at limit **
  24  norm          11.977        2.5674        .21286E-07    .31850E-05
  25  norm          .10000E-03    23.230       -.21892E-05** at limit **
  26  Normalizat    1.1255        .18314        .39321E-06   -.60556E-04
  27  Prefactor     .93870        .21890       -.58235E-06   -.11976E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 30.8038
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 6.48184
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 13.2049
  norm       = 0.0001
  norm       = 20.6174
  norm       = 0.0001
  norm       = 8.40078
  norm       = 0.0001
  Prefactor  = 3.66796
  Prefactor  = 4.51465
  Prefactor  = 0.000100007
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 21.0512
  norm       = 3.76569
  Prefactor  = 0.000100001
  norm       = 11.9768
  norm       = 0.000100002
  Normalizat = 1.12551
  Prefactor  = 0.938698
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.199     FROM HESSE     STATUS=OK           480 CALLS     3699 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6778        .18046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.804        23.152        .72182E-04   -1.4597    
   3  Prefactor     .10000E-03    7.3301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.4818        2.7294        .81152E-04   -1.5199    
   6  Prefactor     .10000E-03    8.1277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7827        .10182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.205        20.202        .11023E-03   -1.4981    
  11  norm          .10000E-03    5.3526        .17519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.617        15.440        .88209E-04   -1.4800    
  13  norm          .10000E-03    5.1795        .33960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.4008        5.6547        .13828E-03   -1.5128    
  15  norm          .10000E-03    1.4722        .92362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6680        4.6022        .15827E-03   -1.5325    
  17  Prefactor     4.5147        12.285        .94765E-03   -1.5283    
  18  Prefactor     .10001E-03    33.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    44.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.051        31.329        .87281E-04   -1.4790    
  22  norm          3.7657        3.6564        .14203E-03   -1.5320    
  23  Prefactor     .10000E-03    27.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.977        2.5705        .54786E-04   -1.5016    
  25  norm          .10000E-03    23.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1255        .21653        .23318E-03   -.88937    
  27  Prefactor     .93870        .25737        .31152E-03   -.94802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69096e-09
Minuit parameter uncertainties:
  1  5.44459e-05
  2  23.159
  3  0.000134766
  4  0.000571857
  5  2.72943
  6  9.25705e-05
  7  6.58268e-07
  8  0.000382538
  9  0.000145616
  10  20.212
  11  3.38099e-05
  12  15.4434
  13  4.71782e-05
  14  5.65504
  15  7.28306e-07
  16  4.60262
  17  12.2923
  18  0.000983852
  19  0.00141031
  20  0.000129293
  21  31.3538
  22  3.65663
  23  0.000362935
  24  2.57055
  25  0.000415954
  26  0.216706
  27  0.257706
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.062e+01  1.544e+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:  9.387e-01  2.577e-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.126e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.78e-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) = 6116.04898538
delta logL = 0.149682785201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6116.04729242
delta logL = 0.151375749193

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.713       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4486       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93794       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6116.047     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      236 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.708        15.869        .90209E-04   -.21450E-04
   2  alpha         1.4484        .56143        .15458E-01    .32842E-04
   3  Normalizat    1.1302        .20696        .23273E-03    .95474E-03
   4  Prefactor     .93847        .25617        .31155E-03    .63668E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.7079
  alpha      = 1.44843
  Normalizat = 1.1302
  Prefactor  = 0.938469
 **********
 **   18 **HESSE 
 **********

 FCN=   6116.047     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.708        16.045        .18042E-04   -1.4820    
   2  alpha         1.4484        .56757        .61833E-03   -.43414    
   3  Normalizat    1.1302        .20714        .46547E-04   -.88788    
   4  Prefactor     .93847        .25642        .62311E-04   -.94810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94588e-10
Minuit parameter uncertainties:
  1  16.0481
  2  0.573671
  3  0.207292
  4  0.256749
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278212': 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) = 6116.04728948
delta logL = 0.151378685169

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.971e+01  1.605e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.448e+00  5.737e-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:  9.385e-01  2.567e-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.130e+00  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.45 +/- 0.57
Photon Flux (Free Index): 1.50e-08 +/- 1.55e-08
Energy Flux (Free Index): 3.74e-05 +/- 4.27e-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/278212/cmap_HighResolution_371779201_372038401_4FGL_J1309.4+4305_daily_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='3.74e-05', photon_flux_error='1.62e-08', dlogl='1.51e-01', energy_flux='2.37e-05', photon_flux2='1.50e-08', job_status='DONE', time_completed='2021-09-07 01:10:42.299726', photon_index_error2='0.57', photon_index2='1.45', ts='4.06', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='4.27e-05', EG='1.13', time_epoch_completed='1631002242.3', return_code='0', job_id='278212', GAL2='0.94', EG2='1.13', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='1.55e-08', ts2='4.35', photon_index='1.77' WHERE bin_id='511' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:10:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 278212: <4FGL_J1309.4+4305_daily_bin511> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin511> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:24 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:55:29 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:55:29 2021
Terminated at Tue Sep  7 01:10:44 2021
Results reported at Tue Sep  7 01:10:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin511 197.363 43.085 371779201 372038401 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 :                                   723.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            920 sec.

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

