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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin671
RA = 197.363, Dec = 43.085
tmin = 413251201, tmax = 413510401
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='278445', job_status='RUN', time_executed='2021-09-07 00:58:30.663586', time_epoch_executed='1631001510.66' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278445

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278445/ft1_4FGL_J1309.4+4305_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278445/ft2_4FGL_J1309.4+4305_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278445/ft1_4FGL_J1309.4+4305_daily_bin671.fits outfile=/scratch/kocevski/278445/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin671.fits ra=197.363 dec=43.085 rad=12.0 tmin=413251201.0 tmax=413510401.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 5.79
user 5.55
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278445/ft1_filtered_4FGL_J1309.4+4305_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/278445/ft2_4FGL_J1309.4+4305_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/278445/ltcube_413251201_413510401_4FGL_J1309.4+4305_daily_bin671.fits outfile=/scratch/kocevski/278445/expmap_413251201_413510401_4FGL_J1309.4+4305_daily_bin671.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/278445/ltcube_413251201_413510401_4FGL_J1309.4+4305_daily_bin671.fits
.....................!
real 195.92
user 189.73
sys 5.50

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/278445/ft1_filtered_4FGL_J1309.4+4305_daily_bin671.fits scfile=/scratch/kocevski/278445/ft2_4FGL_J1309.4+4305_daily_bin671.fits outfile=/scratch/kocevski/278445/cmap_413251201_413510401_4FGL_J1309.4+4305_daily_bin671.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.04
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278445/ft1_filtered_4FGL_J1309.4+4305_daily_bin671.fits scfile=/scratch/kocevski/278445/ft2_4FGL_J1309.4+4305_daily_bin671.fits outfile=/scratch/kocevski/278445/cmap_HighResolution_413251201_413510401_4FGL_J1309.4+4305_daily_bin671.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.67
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.917       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.300       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.137       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.2148       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3943       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.706       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6420       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20117E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.523       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .90061       1.0000         .10000E-03   10000.    
    22 'norm      '    .23202E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    16.584       1.0000         .10000E-03   10000.    
    25 'norm      '    1.2796       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1673       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .52172       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=   3966.461     FROM MIGRAD    STATUS=CONVERGED   1209 CALLS     3808 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.921        11.629        .10370E-03    .10415E-05
   2  Prefactor     40.333        36.300        .63142E-04    .70327E-04
   3  Prefactor     31.140        29.451        .71805E-04   -.25332E-05
   4  Prefactor     .10000E-03    7.8249        .17204E-02** at limit **
   5  norm          5.2146        2.8318        .75709E-04   -.26879E-04
   6  Prefactor     .10000E-03    1.8805        .84332E-03** at limit **
   7  norm          2.3938        4.3462        .16755E-03   -.40406E-04
   8  Prefactor     .10000E-03    23.980        .18142E-02** at limit **
   9  Prefactor     39.718        33.958        .63611E-04    .24664E-04
  10  Prefactor     .10000E-03    5.9182        .14959E-02** at limit **
  11  norm          .10000E-03    2.0884        .88824E-03** at limit **
  12  norm          .10000E-03    6.5479        .15737E-02** at limit **
  13  norm          .10000E-03    2.6705        .99927E-03** at limit **
  14  norm          .10000E-03    2.6496        .10005E-02** at limit **
  15  norm          3.6413        3.7108        .11707E-03    .10196E-05
  16  Prefactor     .10000E-03    5.7254        .28919E-03** at limit **
  17  Prefactor     .10000E-03    11.753        .18142E-02** at limit **
  18  Prefactor     .10411E-03    169.29        .12617    ** at limit **
  19  Prefactor     .10000E-03    28.641        .18142E-02** at limit **
  20  Prefactor     26.474        23.899        .77787E-04   -.28175E-03
  21  Prefactor     .83266        1786.6        .84944E-02   -.94985E-04
  22  norm          .10001E-03    13.691        .24126E-02** at limit **
  23  Prefactor     .10000E-03    36.351        .18142E-02** at limit **
  24  norm          16.585        3.5380        .50386E-04    .24912E-03
  25  norm          1.2840        41.598        .39247E-03   -.58325E-04
  26  Normalizat    1.1672        .24346        .21098E-03   -.22632E-04
  27  Prefactor     .52160        .26396        .35869E-03    .35023E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.9214
  Prefactor  = 40.3329
  Prefactor  = 31.1398
  Prefactor  = 0.0001
  norm       = 5.21458
  Prefactor  = 0.0001
  norm       = 2.39385
  Prefactor  = 0.0001
  Prefactor  = 39.7183
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.64132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000104108
  Prefactor  = 0.0001
  Prefactor  = 26.4744
  Prefactor  = 0.832657
  norm       = 0.000100014
  Prefactor  = 0.0001
  norm       = 16.5845
  norm       = 1.28405
  Normalizat = 1.16719
  Prefactor  = 0.521598
 **********
 **   18 **HESSE 
 **********

 FCN=   3966.461     FROM HESSE     STATUS=OK           474 CALLS     4282 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.921        11.628        .41481E-05   -1.4935    
   2  Prefactor     40.333        36.295        .12628E-04   -1.4437    
   3  Prefactor     31.140        29.441        .28722E-05   -1.4591    
   4  Prefactor     .10000E-03    7.8250        .34409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.2146        2.8316        .30284E-05   -1.5251    
   6  Prefactor     .10000E-03    1.8805        .16866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3938        4.3459        .67021E-05   -1.5399    
   8  Prefactor     .10000E-03    23.980        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.718        33.951        .25444E-05   -1.4447    
  10  Prefactor     .10000E-03    5.9183        .29918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0884        .17765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.5480        .31475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.6708        .19985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.6496        .20011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6413        3.7102        .46828E-05   -1.5326    
  16  Prefactor     .10000E-03    5.7256        .57839E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10411E-03    131.79        .12474       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.474        23.858        .15557E-04   -1.4678    
  21  Prefactor     .83266        1387.1        .33978E-02   -1.5525    
  22  norm          .10001E-03    13.716        .48252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    36.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          16.585        3.4993        .10077E-04   -1.4893    
  25  norm          1.2840        41.560        .15699E-04   -1.5481    
  26  Normalizat    1.1672        .24313        .84391E-05   -.87623    
  27  Prefactor     .52160        .26417        .14348E-04   -1.1100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67455e-09
Minuit parameter uncertainties:
  1  11.6298
  2  36.3145
  3  29.4552
  4  5.95399e-06
  5  2.83169
  6  6.14953e-07
  7  4.34651
  8  3.05624e-05
  9  33.9672
  10  2.06627e-06
  11  1.79082e-06
  12  8.38393e-06
  13  8.94296e-06
  14  1.59878e-06
  15  3.71048
  16  1.50044e-05
  17  1.79061e-06
  18  0.0466397
  19  8.27339e-07
  20  23.867
  21  69.6479
  22  0.000883278
  23  3.60914e-05
  24  3.49937
  25  14.6207
  26  0.243368
  27  0.264797
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  8.384e-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:  5.216e-01  2.648e-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.167e+00  2.434e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278445/likelihoodResults_413251201_413510401_4FGL_J1309.4+4305_daily_bin671.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) = 3966.46174995
delta logL = -0.000707172804596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3966.46104278
delta logL = -8.64019966684e-12

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7679       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52160       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=   3966.461     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      230 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1309.9        .15738E-02** at limit **
   2  alpha         1.7537        3.3490        .17456        .38673E-06
   3  Normalizat    1.1672        .11876        .21098E-03    .40414E-06
   4  Prefactor     .52160        .13997        .35869E-03    .83357E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100014
  alpha      = 1.75367
  Normalizat = 1.16719
  Prefactor  = 0.521597
 **********
 **   18 **HESSE 
 **********

 FCN=   3966.461     FROM HESSE     STATUS=OK            25 CALLS      255 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    6.5578        .31476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7537        4.0649        .69823E-02   -.30316    
   3  Normalizat    1.1672        .22129        .84391E-05   -.87623    
   4  Prefactor     .52160        .26054        .71739E-04   -1.1100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7642e-09
Minuit parameter uncertainties:
  1  0.000607349
  2  324.614
  3  0.221471
  4  0.261139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278445': 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) = 3966.46104278
delta logL = 2.49974618782e-09

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  6.073e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.754e+00  3.246e+02  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:  5.216e-01  2.611e-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.167e+00  2.215e-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/278445/cmap_HighResolution_413251201_413510401_4FGL_J1309.4+4305_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-05', job_status='DONE', photon_flux_upper_limit='3.73e-08', time_completed='2021-09-07 01:10:25.882984', job_id='278445', GAL2='0.52', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631002225.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='2.50e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='671' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:10:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 278445: <4FGL_J1309.4+4305_daily_bin671> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin671 197.363 43.085 413251201 413510401 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 :                                   710.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            885 sec.

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

