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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin654
RA = 197.363, Dec = 43.085
tmin = 408844801, tmax = 409104001
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='278421', job_status='RUN', time_executed='2021-09-07 00:58:47.787950', time_epoch_executed='1631001527.79' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278421

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278421/ft1_4FGL_J1309.4+4305_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278421/ft2_4FGL_J1309.4+4305_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278421/ft1_4FGL_J1309.4+4305_daily_bin654.fits outfile=/scratch/kocevski/278421/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin654.fits ra=197.363 dec=43.085 rad=12.0 tmin=408844801.0 tmax=409104001.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 4.42
user 4.13
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278421/ft2_4FGL_J1309.4+4305_daily_bin654.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/278421/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/278421/ft1_filtered_4FGL_J1309.4+4305_daily_bin654.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.53
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278421/ft1_filtered_4FGL_J1309.4+4305_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/278421/ft2_4FGL_J1309.4+4305_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/278421/ltcube_408844801_409104001_4FGL_J1309.4+4305_daily_bin654.fits outfile=/scratch/kocevski/278421/expmap_408844801_409104001_4FGL_J1309.4+4305_daily_bin654.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/278421/ltcube_408844801_409104001_4FGL_J1309.4+4305_daily_bin654.fits
.....................!
real 193.13
user 186.84
sys 5.46

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/278421/ft1_filtered_4FGL_J1309.4+4305_daily_bin654.fits scfile=/scratch/kocevski/278421/ft2_4FGL_J1309.4+4305_daily_bin654.fits outfile=/scratch/kocevski/278421/cmap_408844801_409104001_4FGL_J1309.4+4305_daily_bin654.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.62
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278421/ft1_filtered_4FGL_J1309.4+4305_daily_bin654.fits scfile=/scratch/kocevski/278421/ft2_4FGL_J1309.4+4305_daily_bin654.fits outfile=/scratch/kocevski/278421/cmap_HighResolution_408844801_409104001_4FGL_J1309.4+4305_daily_bin654.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.60
user 0.43
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.203       1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.841       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    14.697       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    396.05       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10295E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11350E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13371E-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 '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.6524       1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .47797       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.5648       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=   683.7539     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3195 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.181        41.306        .68749E-04    .85658E-05
   2  Prefactor     46.687        96.510       -.15167E-03   -.23563E-05
   3  Prefactor     .10000E-03    59.057       -.11766E-04** at limit **
   4  Prefactor     .10000E-03    123.46        .39061E-04** at limit **
   5  norm          14.696        13.542        .49776E-06   -.23190E-06
   6  Prefactor     .10000E-03    13.349       -.65020E-06** at limit **
   7  norm          .10000E-03    5.3543        .80341E-07** at limit **
   8  Prefactor     396.23        391.58        .93027E-04   -.10469E-04
   9  Prefactor     .10000E-03    39.062       -.16945E-04** at limit **
  10  Prefactor     .10000E-03    59.731       -.16005E-04** at limit **
  11  norm          .10000E-03    11.297       -.64416E-06** at limit **
  12  norm          .10000E-03    48.416        .37761E-04** at limit **
  13  norm          .10000E-03    5.2626        .12764E-07** at limit **
  14  norm          .10000E-03    5.8986        .23980E-06** at limit **
  15  norm          .10000E-03    7.8678        .45227E-07** at limit **
  16  Prefactor     .10000E-03    11.879        .86526E-06** at limit **
  17  Prefactor     .10000E-03    93.980       -.57158E-04** at limit **
  18  Prefactor     .10000E-03    54.165        .16582E-04** at limit **
  19  Prefactor     .10000E-03    311.64       -.60905E-04** at limit **
  20  Prefactor     .10000E-03    24.117        .10830E-05** at limit **
  21  Prefactor     .10000E-03    57.176       -.62207E-06** at limit **
  22  norm          .10000E-03    6.3471        .19907E-06** at limit **
  23  Prefactor     .10000E-03    129.62        .57212E-04** at limit **
  24  norm          8.6498        7.8542       -.25259E-06   -.10969E-04
  25  norm          .10000E-03    58.473       -.84271E-05** at limit **
  26  Normalizat    .47646        .49218       -.67949E-05    .75444E-04
  27  Prefactor     1.5665        .62501       -.10648E-05    .85027E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.1814
  Prefactor  = 46.6874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6958
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 396.233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.6498
  norm       = 0.0001
  Normalizat = 0.476462
  Prefactor  = 1.56649
 **********
 **   18 **HESSE 
 **********

 FCN=   683.7539     FROM HESSE     STATUS=OK           470 CALLS     3665 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.181        41.305        .10628E-03   -1.4955    
   2  Prefactor     46.687        96.752        .29293E-03   -1.4340    
   3  Prefactor     .10000E-03    59.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    123.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          14.696        13.542        .89809E-04   -1.4941    
   6  Prefactor     .10000E-03    13.361        .93341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.3577        .59107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     396.23        393.08        .10255E-03   -1.1700    
   9  Prefactor     .10000E-03    39.072        .15974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    59.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.314        .85860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    48.349        .17777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.2704        .58589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.8991        .62047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.8680        .71661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.976        .87957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    94.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    54.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    311.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.117        .12550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.3471        .64364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    129.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.6498        7.8758        .67525E-04   -1.5120    
  25  norm          .10000E-03    58.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .47646        .56230        .32857E-03   -1.1352    
  27  Prefactor     1.5665        .71992        .24747E-03   -.75694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84998e-10
Minuit parameter uncertainties:
  1  41.3886
  2  97.0794
  3  7.94328e-06
  4  2.12012e-05
  5  13.5453
  6  5.24593e-06
  7  1.16559e-05
  8  395.791
  9  6.3965e-05
  10  4.14647e-06
  11  2.79535e-05
  12  0.000410842
  13  2.09874e-05
  14  6.25943e-06
  15  3.32339e-05
  16  9.6341e-05
  17  0.000664159
  18  9.87926e-05
  19  0.000603914
  20  5.74259e-06
  21  6.69517e-05
  22  2.97157e-06
  23  9.78171e-06
  24  7.87671
  25  2.91995e-05
  26  0.569192
  27  0.724716
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  4.108e-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.566e+00  7.247e-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:  4.765e-01  5.692e-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: 2.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278421/likelihoodResults_408844801_409104001_4FGL_J1309.4+4305_daily_bin654.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) = 683.753952518
delta logL = -9.41774255807e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 683.75394842
delta logL = -9.00796370615e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88244E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7691       1.0000          .0000       5.0000    
     3 'Normalizat'    .47641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5666       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=   683.7539     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      204 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    48.563        .91522E-02** at limit **
   2  alpha         1.7735        3.3433        .43630       -.47838E-06
   3  Normalizat    .47645        .45584        .74196E-01   -.78083E-04
   4  Prefactor     1.5665        .59617        .55975E-01   -.55531E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.77347
  Normalizat = 0.476453
  Prefactor  = 1.56649
 **********
 **   18 **HESSE 
 **********

 FCN=   683.7539     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    47.562        .17784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7735        3.3398        .50000       -.29486    
   3  Normalizat    .47645        .51265        .32858E-03   -1.1352    
   4  Prefactor     1.5665        .67263        .24747E-03   -.75694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87487e-10
Minuit parameter uncertainties:
  1  0.000515081
  2  2.39435
  3  0.517842
  4  0.676525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278421': 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) = 683.75385834
delta logL = 8.7072749011e-10

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  5.151e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.773e+00  2.394e+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.566e+00  6.765e-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:  4.765e-01  5.178e-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/278421/cmap_HighResolution_408844801_409104001_4FGL_J1309.4+4305_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-04', job_status='DONE', photon_flux_upper_limit='2.66e-07', time_completed='2021-09-07 01:05:29.585916', job_id='278421', GAL2='1.57', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1631001929.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.57', dlogl='8.71e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='654' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:05:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 278421: <4FGL_J1309.4+4305_daily_bin654> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin654 197.363 43.085 408844801 409104001 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 :                                   394.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             253.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   570 sec.
    Turnaround time :                            591 sec.

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

