/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 127 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin21
RA = 197.363, Dec = 43.085
tmin = 244771201, tmax = 245030401
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='274079', job_status='RUN', time_executed='2021-09-07 00:43:27.147523', time_epoch_executed='1631000607.15' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274079

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274079/ft1_4FGL_J1309.4+4305_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274079/ft2_4FGL_J1309.4+4305_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274079/ft1_4FGL_J1309.4+4305_daily_bin21.fits outfile=/scratch/kocevski/274079/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin21.fits ra=197.363 dec=43.085 rad=12.0 tmin=244771201.0 tmax=245030401.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 1.24
user 1.06
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/274079/ft2_4FGL_J1309.4+4305_daily_bin21.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/274079/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin21.fits evtable="EVENTS" outfile="/scratch/kocevski/274079/ft1_filtered_4FGL_J1309.4+4305_daily_bin21.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.45
user 0.31
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274079/ft1_filtered_4FGL_J1309.4+4305_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/274079/ft2_4FGL_J1309.4+4305_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/274079/ltcube_244771201_245030401_4FGL_J1309.4+4305_daily_bin21.fits outfile=/scratch/kocevski/274079/expmap_244771201_245030401_4FGL_J1309.4+4305_daily_bin21.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/274079/ltcube_244771201_245030401_4FGL_J1309.4+4305_daily_bin21.fits
.....................!
real 156.09
user 151.12
sys 4.53

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/274079/ft1_filtered_4FGL_J1309.4+4305_daily_bin21.fits scfile=/scratch/kocevski/274079/ft2_4FGL_J1309.4+4305_daily_bin21.fits outfile=/scratch/kocevski/274079/cmap_244771201_245030401_4FGL_J1309.4+4305_daily_bin21.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.49
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274079/ft1_filtered_4FGL_J1309.4+4305_daily_bin21.fits scfile=/scratch/kocevski/274079/ft2_4FGL_J1309.4+4305_daily_bin21.fits outfile=/scratch/kocevski/274079/cmap_HighResolution_244771201_245030401_4FGL_J1309.4+4305_daily_bin21.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.48
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.124       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.956       1.0000         .10000E-03   10000.    
     5 'norm      '    .73747       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8249       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4891       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.914       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.3424       1.0000         .10000E-03   10000.    
    14 'norm      '    .66170E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10757E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9347       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1397       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3377       1.0000         .10000E-03   10000.    
    23 'Prefactor '    55.535       1.0000         .10000E-03   10000.    
    24 'norm      '    .17004       1.0000         .10000E-03   10000.    
    25 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3045       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .60354       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4536.076     FROM MIGRAD    STATUS=FAILED      1193 CALLS     4333 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4422        .10274E-02** at limit **
   2  Prefactor     .10000E-03    11.347        .18142E-02** at limit **
   3  Prefactor     19.123        21.213        .91587E-04   -.57472E-04
   4  Prefactor     12.957        13.201        .11128E-03    .38821E-05
   5  norm          .73772        2.3590        .17968E-03   -.11838E-03
   6  Prefactor     2.8242        3.5384        .13819E-03   -.80623E-05
   7  norm          3.4894        4.0498        .13444E-03   -.32979E-04
   8  Prefactor     38.516        50.679        .32272E-03   -.70948E-04
   9  Prefactor     14.897        29.996        .10371E-03   -.19731E-05
  10  Prefactor     .10000E-03    4.3208        .13667E-02** at limit **
  11  norm          .10000E-03    1.5155        .80902E-03** at limit **
  12  norm          .10000E-03    7.2812        .17731E-02** at limit **
  13  norm          9.3643        8.4253        .98747E-04   -.17488E-03
  14  norm          .26730E-01    26.862        .52421E-01    .13377E-03
  15  norm          .10000E-03    2.1035        .95007E-03** at limit **
  16  Prefactor     .10000E-03    14.941        .17909E-02** at limit **
  17  Prefactor     5.9187        16.200        .16484E-03    .19312E-05
  18  Prefactor     1.2084        310.40        .79926E-02    .50024E-03
  19  Prefactor     .10000E-03    99.506        .18142E-02** at limit **
  20  Prefactor     .10000E-03    10.730        .18142E-02** at limit **
  21  Prefactor     .10000E-03    37.400        .18142E-02** at limit **
  22  norm          2.3370        4.0714        .17215E-03   -.10679E-03
  23  Prefactor     55.529        49.448        .53828E-04   -.18755E-04
  24  norm          .17044        1.6468        .12874E-02    .50427E-02
  25  norm          .10000E-03    6.6735        .16973E-02** at limit **
  26  Normalizat    1.3043        .23156        .19487E-03   -.24685E-03
  27  Prefactor     .60365        .26955        .33530E-03   -.18967E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4536.076     FROM SIMPLEX   STATUS=UNCHANGED   1616 CALLS     5949 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4422        .28124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.347        .37290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.123        21.213        .29974E-06   -1.4833    
   4  Prefactor     12.957        13.201        .30251E-06   -1.4988    
   5  norm          .73772        2.3590        .31318E-06   -1.5536    
   6  Prefactor     2.8242        3.5384        .31000E-06   -1.5372    
   7  norm          3.4894        4.0498        .30936E-06   -1.5334    
   8  Prefactor     38.516        50.679        .29277E-06   -1.4466    
   9  Prefactor     14.897        29.996        .30272E-06   -1.4936    
  10  Prefactor     .10000E-03    4.3208        .26463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5155        .10351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.2812        .13613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.3643        8.4253        .30384E-06   -1.5096    
  14  norm          .26730E-01    26.862        .32929E-06   -1.5675    
  15  norm          .10000E-03    2.1035        .13681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.941        .89096E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.9187        16.200        .30664E-06   -1.5221    
  18  Prefactor     1.2084        310.40        .33058E-06   -1.5488    
  19  Prefactor     .10000E-03    99.506        .92109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.730        .15051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    37.400        .71936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3370        4.0714        .31009E-06   -1.5402    
  23  Prefactor     55.529        49.448        .28692E-06   -1.4216    
  24  norm          .17044        1.6468        .31470E-06   -1.5625    
  25  norm          .10000E-03    6.6735        .34264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3043        .23156        .16793E-06   -.83439    
  27  Prefactor     .60365        .26955        .21623E-06   -1.0743    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4536.076     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     6428 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4422        .20547E-03** at limit **
   2  Prefactor     .10000E-03    11.348        .36285E-03** at limit **
   3  Prefactor     19.123        21.212        .36635E-05   -.74478E-05
   4  Prefactor     12.957        13.201        .44513E-05    .10216E-05
   5  norm          .73772        2.3585        .71871E-05   -.15818E-04
   6  Prefactor     2.8242        3.5383        .55276E-05    .24680E-05
   7  norm          3.4894        4.0493        .53777E-05    .10993E-04
   8  Prefactor     38.517        50.676        .12909E-04   -.89830E-05
   9  Prefactor     14.897        29.956        .41485E-05    .16991E-04
  10  Prefactor     .10000E-03    4.3209        .27335E-03** at limit **
  11  norm          .10000E-03    1.5155        .16180E-03** at limit **
  12  norm          .10000E-03    7.2817        .35463E-03** at limit **
  13  norm          9.3644        8.1286        .39499E-05    .27516E-03
  14  norm          .26724E-01    23.271        .54943E-01    .13946E-03
  15  norm          .10000E-03    2.1036        .19001E-03** at limit **
  16  Prefactor     .10000E-03    15.016        .35818E-03** at limit **
  17  Prefactor     5.9186        16.150        .65934E-05    .26209E-04
  18  Prefactor     1.2084        309.60        .15985E-02   -.11521E-05
  19  Prefactor     .10000E-03    99.528        .36285E-03** at limit **
  20  Prefactor     .10000E-03    10.730        .36285E-03** at limit **
  21  Prefactor     .10000E-03    37.401        .36285E-03** at limit **
  22  norm          2.3371        4.0672        .68860E-05   -.14859E-04
  23  Prefactor     55.529        49.443        .10766E-04   -.19008E-05
  24  norm          .17044        1.6412        .25747E-03   -.25522E-04
  25  norm          .10000E-03    6.6741        .33947E-03** at limit **
  26  Normalizat    1.3043        .23026        .38974E-04   -.16102E-04
  27  Prefactor     .60365        .26943        .13412E-04   -.16275E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1235
  Prefactor  = 12.9567
  norm       = 0.737722
  Prefactor  = 2.8242
  norm       = 3.4894
  Prefactor  = 38.5165
  Prefactor  = 14.8972
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.36438
  norm       = 0.0267238
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.91864
  Prefactor  = 1.20844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.33705
  Prefactor  = 55.5291
  norm       = 0.170443
  norm       = 0.0001
  Normalizat = 1.30426
  Prefactor  = 0.603655
 **********
 **   18 **HESSE 
 **********

 FCN=   4536.076     FROM HESSE     STATUS=OK           474 CALLS     6902 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4422        .41095E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.348        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.123        21.215        .73270E-06   -1.4833    
   4  Prefactor     12.957        13.202        .89027E-06   -1.4988    
   5  norm          .73772        2.3586        .14374E-05   -1.5536    
   6  Prefactor     2.8242        3.5379        .11055E-05   -1.5372    
   7  norm          3.4894        4.0498        .10755E-05   -1.5334    
   8  Prefactor     38.517        50.699        .25818E-05   -1.4466    
   9  Prefactor     14.897        30.050        .82971E-06   -1.4936    
  10  Prefactor     .10000E-03    4.3209        .54670E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5155        .32361E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.2817        .70926E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.3644        8.2259        .78998E-06   -1.5096    
  14  norm          .26724E-01    24.388        .54119E-01   -1.5675    
  15  norm          .10000E-03    2.1036        .38003E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.019        .71637E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.9186        16.153        .13187E-05   -1.5221    
  18  Prefactor     1.2084        307.70        .63941E-04   -1.5488    
  19  Prefactor     .10000E-03    99.530        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.730        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    37.401        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3371        4.0656        .13772E-05   -1.5402    
  23  Prefactor     55.529        49.465        .21531E-05   -1.4216    
  24  norm          .17044        1.6397        .10299E-04   -1.5625    
  25  norm          .10000E-03    6.6741        .67893E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3043        .22991        .77949E-05   -.83439    
  27  Prefactor     .60365        .26944        .26824E-05   -1.0743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.45051e-11
Minuit parameter uncertainties:
  1  9.63227e-08
  2  2.19155e-06
  3  21.2236
  4  13.2049
  5  2.35885
  6  3.53813
  7  4.05016
  8  50.7562
  9  30.0802
  10  7.21921e-07
  11  2.52089e-07
  12  5.12351e-06
  13  8.22685
  14  1.61223
  15  5.39148e-07
  16  2.6204e-05
  17  16.1645
  18  38.7676
  19  2.38433e-05
  20  5.63621e-06
  21  1.03917e-06
  22  4.06604
  23  49.5014
  24  1.05703
  25  8.32019e-07
  26  0.230092
  27  0.270018
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  5.124e-06  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:  6.037e-01  2.700e-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.304e+00  2.301e-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: 3.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/274079/likelihoodResults_244771201_245030401_4FGL_J1309.4+4305_daily_bin21.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4536.07667281
delta logL = -0.000648976782941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4536.07602381
delta logL = 1.97042027139e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7859       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60366       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=   4536.068     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      289 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20334        15.507        .28567E-01    .98898E-03
   2  alpha         3.4655        4.0436        .50000        .29946E-04
   3  Normalizat    1.2987        .14786E-01    .19488E-03   -.11843E-04
   4  Prefactor     .60680        .18018E-01    .33528E-03   -.18954E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.203343
  alpha      = 3.46548
  Normalizat = 1.29868
  Prefactor  = 0.606801
 **********
 **   18 **HESSE 
 **********

 FCN=   4536.068     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      320 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20334        618.36        .15740E-02   -1.5618    
   2  alpha         3.4655        2.7857        .50441E-01    6.6797    
   3  Normalizat    1.2987        .12922        .77950E-05   -.83606    
   4  Prefactor     .60680        .14313        .13411E-04   -1.0730    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.90668e-11
Minuit parameter uncertainties:
  1  22.6591
  2  38.6643
  3  0.129255
  4  0.143216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274079': 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): 102
logL (Free Index) = 4536.06843552
delta logL = 0.00758831330495

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.033e-01  2.266e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  3.465e+00  3.866e+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:  6.068e-01  1.432e-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.299e+00  1.293e-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/274079/cmap_HighResolution_244771201_245030401_4FGL_J1309.4+4305_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.82e-05', job_status='DONE', photon_flux_upper_limit='3.48e-08', time_completed='2021-09-07 00:55:44.162198', job_id='274079', GAL2='0.61', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1631001344.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='7.59e-03', ts2='0.02', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='21' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:55:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 274079: <4FGL_J1309.4+4305_daily_bin21> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin21> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 00:40:43 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:41:12 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:41:12 2021
Terminated at Tue Sep  7 00:55:44 2021
Results reported at Tue Sep  7 00:55:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin21 197.363 43.085 244771201 245030401 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 :                                   734.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            901 sec.

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

