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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin676
RA = 197.363, Dec = 43.085
tmin = 414547201, tmax = 414806401
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='278453', job_status='RUN', time_executed='2021-09-07 01:00:07.916378', time_epoch_executed='1631001607.92' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278453

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278453/ft1_4FGL_J1309.4+4305_daily_bin676.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278453/ft2_4FGL_J1309.4+4305_daily_bin676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278453/ft1_4FGL_J1309.4+4305_daily_bin676.fits outfile=/scratch/kocevski/278453/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin676.fits ra=197.363 dec=43.085 rad=12.0 tmin=414547201.0 tmax=414806401.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 6.19
user 5.62
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278453/ft1_filtered_4FGL_J1309.4+4305_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/278453/ft2_4FGL_J1309.4+4305_daily_bin676.fits sctable="SC_DATA" expcube=/scratch/kocevski/278453/ltcube_414547201_414806401_4FGL_J1309.4+4305_daily_bin676.fits outfile=/scratch/kocevski/278453/expmap_414547201_414806401_4FGL_J1309.4+4305_daily_bin676.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/278453/ltcube_414547201_414806401_4FGL_J1309.4+4305_daily_bin676.fits
.....................!
real 192.63
user 186.61
sys 5.03

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/278453/ft1_filtered_4FGL_J1309.4+4305_daily_bin676.fits scfile=/scratch/kocevski/278453/ft2_4FGL_J1309.4+4305_daily_bin676.fits outfile=/scratch/kocevski/278453/cmap_414547201_414806401_4FGL_J1309.4+4305_daily_bin676.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.44
user 0.41
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278453/ft1_filtered_4FGL_J1309.4+4305_daily_bin676.fits scfile=/scratch/kocevski/278453/ft2_4FGL_J1309.4+4305_daily_bin676.fits outfile=/scratch/kocevski/278453/cmap_HighResolution_414547201_414806401_4FGL_J1309.4+4305_daily_bin676.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 1.32
user 0.41
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8496       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5153       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.4566       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6956       1.0000         .10000E-03   10000.    
     7 'norm      '    .87266       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.198       1.0000         .10000E-03   10000.    
    14 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0098       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.189       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.7304       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .58608       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3673       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=   3703.370     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3285 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8499        5.5724       -.10184E-05   -.16136E-03
   2  Prefactor     .10000E-03    8.9634        .17040E-05** at limit **
   3  Prefactor     9.5150        12.414        .46890E-07   -.11695E-04
   4  Prefactor     .10000E-03    11.102       -.36610E-06** at limit **
   5  norm          6.4568        2.8853       -.20387E-07   -.21184E-06
   6  Prefactor     4.6936        7.6225       -.49470E-06   -.27053E-03
   7  norm          .87177        3.7372       -.39906E-06   -.66328E-03
   8  Prefactor     .10000E-03    34.049       -.25348E-04** at limit **
   9  Prefactor     .10000E-03    42.487        .86155E-05** at limit **
  10  Prefactor     .10000E-03    19.145        .58834E-05** at limit **
  11  norm          .10000E-03    6.2439        .43462E-06** at limit **
  12  norm          .10000E-03    64.884        .39033E-04** at limit **
  13  norm          10.187        6.3708       -.29100E-05   -.59327E-03
  14  norm          .10001E-03    19.850        .45325E-05** at limit **
  15  norm          .10000E-03    2.0504        .82072E-07** at limit **
  16  Prefactor     .10000E-03    3.8414        .22519E-06** at limit **
  17  Prefactor     7.0168        20.545        .24752E-06   -.12313E-04
  18  Prefactor     30.180        42.874       -.87755E-05    .49058E-06
  19  Prefactor     .10000E-03    90.526       -.47276E-04** at limit **
  20  Prefactor     .10000E-03    4.9807       -.27756E-07** at limit **
  21  Prefactor     .10000E-03    14.951       -.38322E-05** at limit **
  22  norm          .10000E-03    1.5515        .82990E-07** at limit **
  23  Prefactor     .10000E-03    43.239        .93225E-05** at limit **
  24  norm          5.7304        2.3376        .63358E-08   -.20288E-04
  25  norm          .10000E-03    8.8772       -.11084E-05** at limit **
  26  Normalizat    .58611        .19234        .19229E-05   -.19616E-03
  27  Prefactor     1.3672        .25178        .21566E-06   -.18809E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.8499
  Prefactor  = 0.0001
  Prefactor  = 9.51503
  Prefactor  = 0.0001
  norm       = 6.45675
  Prefactor  = 4.69362
  norm       = 0.871767
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 10.1871
  norm       = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.0168
  Prefactor  = 30.1801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.73037
  norm       = 0.0001
  Normalizat = 0.586113
  Prefactor  = 1.36723
 **********
 **   18 **HESSE 
 **********

 FCN=   3703.370     FROM HESSE     STATUS=OK           480 CALLS     3765 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8499        5.5686        .14922E-03   -1.5267    
   2  Prefactor     .10000E-03    8.9815        .17791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5150        12.414        .12992E-03   -1.5091    
   4  Prefactor     .10000E-03    11.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.4568        2.8851        .67064E-04   -1.5200    
   6  Prefactor     4.6936        7.6109        .18571E-03   -1.5275    
   7  norm          .87177        3.5676        .22642E-03   -1.5521    
   8  Prefactor     .10000E-03    33.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.3612        .14839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    65.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.187        6.3097        .10910E-03   -1.5070    
  14  norm          .10001E-03    20.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0587        .85015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.8693        .11557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0168        20.374        .15152E-03   -1.5178    
  18  Prefactor     30.180        42.827        .72921E-04   -1.4609    
  19  Prefactor     .10000E-03    90.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9854        .13265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5627        .74017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    43.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.7304        2.3376        .57114E-04   -1.5229    
  25  norm          .10000E-03    8.8928        .17710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .58611        .22982        .26292E-03   -1.0858    
  27  Prefactor     1.3672        .30267        .23796E-03   -.81329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34273e-09
Minuit parameter uncertainties:
  1  5.56919
  2  8.02491e-06
  3  12.4171
  4  3.44732e-07
  5  2.8852
  6  7.61247
  7  3.52725
  8  1.78683e-05
  9  0.000398154
  10  1.91047e-05
  11  2.2199e-05
  12  0.00073338
  13  6.31008
  14  0.000824467
  15  1.89482e-05
  16  5.48531e-05
  17  20.3938
  18  42.8705
  19  0.000144303
  20  3.66953e-06
  21  5.96107e-05
  22  4.09099e-06
  23  1.94012e-05
  24  2.33765
  25  5.15776e-06
  26  0.230193
  27  0.30306
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  7.334e-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.367e+00  3.031e-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:  5.861e-01  2.302e-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: 6.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278453/likelihoodResults_414547201_414806401_4FGL_J1309.4+4305_daily_bin676.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) = 3703.36969155
delta logL = -7.28769632588e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3703.36961895
delta logL = -2.7241276257e-07

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.7371       1.0000          .0000       5.0000    
     3 'Normalizat'    .58612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3672       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=   3703.147     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      307 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0234        323.99        .90712E-02    .94849E-04
   2  alpha         2.6909        3.5019        .27142        .57352E-04
   3  Normalizat    .57343        .55593E-01    .60048E-01    .29048E-04
   4  Prefactor     1.3593        .72822E-01    .53944E-01   -.32758E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.02344
  alpha      = 2.69089
  Normalizat = 0.573426
  Prefactor  = 1.35927
 **********
 **   18 **HESSE 
 **********

 FCN=   3703.147     FROM HESSE     STATUS=OK            31 CALLS      338 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0234        13.634        .21216E-03   -1.5260    
   2  alpha         2.6909        1.1737        .14092E-01    .76431E-01
   3  Normalizat    .57343        .22658        .26565E-03   -1.0912    
   4  Prefactor     1.3593        .30175        .23850E-03   -.81561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25484e-09
Minuit parameter uncertainties:
  1  13.6425
  2  1.22209
  3  0.226949
  4  0.302142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278453': 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) = 3703.14715368
delta logL = 0.222464993003

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  5.023e+00  1.364e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.691e+00  1.222e+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.359e+00  3.021e-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:  5.734e-01  2.269e-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/278453/cmap_HighResolution_414547201_414806401_4FGL_J1309.4+4305_daily_bin676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.87e-05', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-09-07 01:11:19.356142', job_id='278453', GAL2='1.36', fit_tolerance='1e-08', EG2='0.57', EG='0.59', time_epoch_completed='1631002279.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='2.22e-01', ts2='0.45', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='676' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:11:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 278453: <4FGL_J1309.4+4305_daily_bin676> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin676> 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) <bullet0067>, 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:11:19 2021
Results reported at Tue Sep  7 01:11:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin676 197.363 43.085 414547201 414806401 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 :                                   656.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            938 sec.

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

