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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin759
RA = 197.363, Dec = 43.085
tmin = 436060801, tmax = 436320001
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='279757', job_status='RUN', time_executed='2021-09-07 01:04:14.881953', time_epoch_executed='1631001854.88' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279757

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279757/ft1_4FGL_J1309.4+4305_daily_bin759.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279757/ft2_4FGL_J1309.4+4305_daily_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279757/ft1_4FGL_J1309.4+4305_daily_bin759.fits outfile=/scratch/kocevski/279757/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin759.fits ra=197.363 dec=43.085 rad=12.0 tmin=436060801.0 tmax=436320001.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 7.03
user 5.48
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279757/ft2_4FGL_J1309.4+4305_daily_bin759.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/279757/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/279757/ft1_filtered_4FGL_J1309.4+4305_daily_bin759.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 2.19
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279757/ft1_filtered_4FGL_J1309.4+4305_daily_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/279757/ft2_4FGL_J1309.4+4305_daily_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/279757/ltcube_436060801_436320001_4FGL_J1309.4+4305_daily_bin759.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/279757/ft2_4FGL_J1309.4+4305_daily_bin759.fits
.....................!
real 15.39
user 14.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279757/ft1_filtered_4FGL_J1309.4+4305_daily_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/279757/ft2_4FGL_J1309.4+4305_daily_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/279757/ltcube_436060801_436320001_4FGL_J1309.4+4305_daily_bin759.fits outfile=/scratch/kocevski/279757/expmap_436060801_436320001_4FGL_J1309.4+4305_daily_bin759.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/279757/ltcube_436060801_436320001_4FGL_J1309.4+4305_daily_bin759.fits
.....................!
real 195.75
user 185.93
sys 5.29

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/279757/ft1_filtered_4FGL_J1309.4+4305_daily_bin759.fits scfile=/scratch/kocevski/279757/ft2_4FGL_J1309.4+4305_daily_bin759.fits outfile=/scratch/kocevski/279757/cmap_436060801_436320001_4FGL_J1309.4+4305_daily_bin759.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279757/ft1_filtered_4FGL_J1309.4+4305_daily_bin759.fits scfile=/scratch/kocevski/279757/ft2_4FGL_J1309.4+4305_daily_bin759.fits outfile=/scratch/kocevski/279757/cmap_HighResolution_436060801_436320001_4FGL_J1309.4+4305_daily_bin759.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.76
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5056       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.3182       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4432       1.0000         .10000E-03   10000.    
     7 'norm      '    7.1999       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7621       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.586       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7606       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20146E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.476       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    132.50       1.0000         .10000E-03   10000.    
    24 'norm      '    3.4045       1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .81479       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3158       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=   4439.506     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3831 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5062        6.5365        .46460E-06   -.24558E-03
   2  Prefactor     .10000E-03    7.7103        .62725E-05** at limit **
   3  Prefactor     .10000E-03    7.9271       -.52704E-05** at limit **
   4  Prefactor     .10000E-03    18.666        .60570E-05** at limit **
   5  norm          7.3182        3.2738        .65058E-07    .81346E-05
   6  Prefactor     4.4435        6.8767       -.10274E-05   -.18545E-03
   7  norm          7.2001        5.4892       -.92329E-06   -.30461E-04
   8  Prefactor     2.9915        296.28        .99887E-05   -.44225E-05
   9  Prefactor     .10000E-03    12.983       -.15824E-06** at limit **
  10  Prefactor     27.586        28.096        .46755E-05   -.25403E-03
  11  norm          .10000E-03    4.5022        .16430E-06** at limit **
  12  norm          .10000E-03    18.518       -.59507E-05** at limit **
  13  norm          .10000E-03    2.8453        .23649E-06** at limit **
  14  norm          .10000E-03    2.6000        .76210E-07** at limit **
  15  norm          .10000E-03    4.5143        .62524E-07** at limit **
  16  Prefactor     6.7588        5.5551       -.39441E-05   -.21228E-02
  17  Prefactor     .10001E-03    17.447        .74829E-05** at limit **
  18  Prefactor     34.474        37.263        .20347E-05   -.21948E-04
  19  Prefactor     .10000E-03    52.733        .75056E-06** at limit **
  20  Prefactor     .10000E-03    7.1758       -.14375E-05** at limit **
  21  Prefactor     .10000E-03    52.766       -.24316E-05** at limit **
  22  norm          .10000E-03    2.9291        .69982E-07** at limit **
  23  Prefactor     132.54        114.62        .26867E-04   -.24844E-03
  24  norm          3.4047        1.8368       -.59329E-07   -.16698E-03
  25  norm          .10000E-03    9.8949        .45514E-06** at limit **
  26  Normalizat    .81504        .20801       -.40137E-05   -.30038E-03
  27  Prefactor     1.3154        .24959        .96165E-06   -.38507E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.50619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.31824
  Prefactor  = 4.44346
  norm       = 7.20012
  Prefactor  = 2.99147
  Prefactor  = 0.0001
  Prefactor  = 27.5856
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.75877
  Prefactor  = 0.000100005
  Prefactor  = 34.4743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 132.537
  norm       = 3.40469
  norm       = 0.0001
  Normalizat = 0.81504
  Prefactor  = 1.31535
 **********
 **   18 **HESSE 
 **********

 FCN=   4439.506     FROM HESSE     STATUS=OK           478 CALLS     4309 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5062        6.5272        .17124E-03   -1.5239    
   2  Prefactor     .10000E-03    7.6657        .18011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.3182        3.2741        .77960E-04   -1.5167    
   6  Prefactor     4.4435        6.8565        .19104E-03   -1.5286    
   7  norm          7.2001        5.4863        .13226E-03   -1.5171    
   8  Prefactor     2.9915        296.18        .24490E-03   -1.5362    
   9  Prefactor     .10000E-03    12.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.586        28.037        .76276E-04   -1.4657    
  11  norm          .10000E-03    4.5292        .13796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    18.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8824        .10963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.6025        .10492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.6551        .27613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.7588        5.3271        .12842E-03   -1.5188    
  17  Prefactor     .10001E-03    79.785        .48881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.474        37.251        .68249E-04   -1.4533    
  19  Prefactor     .10000E-03    52.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1813        .17427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    53.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.9874        .11130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     132.54        112.62        .17491E-03   -1.3400    
  24  norm          3.4047        1.8346        .63789E-04   -1.5339    
  25  norm          .10000E-03    9.9410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .81504        .24581        .26076E-03   -.99513    
  27  Prefactor     1.3154        .29635        .26669E-03   -.82852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79333e-09
Minuit parameter uncertainties:
  1  6.52804
  2  0.000119527
  3  0.000114389
  4  0.000179434
  5  3.27415
  6  6.85774
  7  5.4867
  8  59.8379
  9  4.88594e-05
  10  28.0506
  11  2.17958e-05
  12  0.000169041
  13  3.7745e-05
  14  9.8367e-06
  15  5.01837e-06
  16  5.32743
  17  0.00131322
  18  37.2759
  19  8.73638e-05
  20  3.72874e-05
  21  7.33057e-05
  22  9.34147e-06
  23  112.806
  24  1.83459
  25  4.34281e-05
  26  0.246144
  27  0.296729
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.690e-04  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:  1.315e+00  2.967e-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:  8.150e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 5.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279757/likelihoodResults_436060801_436320001_4FGL_J1309.4+4305_daily_bin759.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): 0
logL (Free Index) = 4439.50652729
delta logL = -0.000256851711129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4439.50627071
delta logL = -2.64670234174e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7200       1.0000          .0000       5.0000    
     3 'Normalizat'    .81504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3154       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=   4439.506     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      233 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    30.801        .90712E-02** at limit **
   2  alpha         1.7668        3.3829        .44023       -.12901E-04
   3  Normalizat    .81504        .19485        .43806E-01    .34486E-04
   4  Prefactor     1.3154        .24768        .60306E-01    .29088E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.76676
  Normalizat = 0.815039
  Prefactor  = 1.31536
 **********
 **   18 **HESSE 
 **********

 FCN=   4439.506     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7668        3.3414        .50000       -.29767    
   3  Normalizat    .81504        .23045        .26077E-03   -.99513    
   4  Prefactor     1.3154        .29289        .26669E-03   -.82852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33434e-10
Minuit parameter uncertainties:
  1  0.000397817
  2  2.42161
  3  0.230727
  4  0.293263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279757': 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) = 4439.50627045
delta logL = -1.12740963232e-08

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  3.978e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.767e+00  2.422e+00  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:  1.315e+00  2.933e-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:  8.150e-01  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.363 43.085

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/279757/cmap_HighResolution_436060801_436320001_4FGL_J1309.4+4305_daily_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-05', job_status='DONE', photon_flux_upper_limit='5.48e-08', time_completed='2021-09-07 01:16:47.353492', job_id='279757', GAL2='1.32', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1631002607.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='-1.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='759' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:16:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 279757: <4FGL_J1309.4+4305_daily_bin759> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin759> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:28 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:01:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:01:00 2021
Terminated at Tue Sep  7 01:16:48 2021
Results reported at Tue Sep  7 01:16:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin759 197.363 43.085 436060801 436320001 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 :                                   736.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            980 sec.

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

