/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 220 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 = 7431
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin352
RA = 197.363, Dec = 43.085
tmin = 330566401, tmax = 330825601
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='276797', job_status='RUN', time_executed='2021-09-07 00:54:50.833857', time_epoch_executed='1631001290.83' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276797/ft1_4FGL_J1309.4+4305_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276797/ft2_4FGL_J1309.4+4305_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276797/ft1_4FGL_J1309.4+4305_daily_bin352.fits outfile=/scratch/kocevski/276797/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin352.fits ra=197.363 dec=43.085 rad=12.0 tmin=330566401.0 tmax=330825601.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.01
user 3.73
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276797/ft1_filtered_4FGL_J1309.4+4305_daily_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/276797/ft2_4FGL_J1309.4+4305_daily_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/276797/ltcube_330566401_330825601_4FGL_J1309.4+4305_daily_bin352.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/276797/ft2_4FGL_J1309.4+4305_daily_bin352.fits
.....................!
real 16.17
user 15.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276797/ft1_filtered_4FGL_J1309.4+4305_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/276797/ft2_4FGL_J1309.4+4305_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/276797/ltcube_330566401_330825601_4FGL_J1309.4+4305_daily_bin352.fits outfile=/scratch/kocevski/276797/expmap_330566401_330825601_4FGL_J1309.4+4305_daily_bin352.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/276797/ltcube_330566401_330825601_4FGL_J1309.4+4305_daily_bin352.fits
.....................!
real 194.11
user 187.48
sys 6.04

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/276797/ft1_filtered_4FGL_J1309.4+4305_daily_bin352.fits scfile=/scratch/kocevski/276797/ft2_4FGL_J1309.4+4305_daily_bin352.fits outfile=/scratch/kocevski/276797/cmap_330566401_330825601_4FGL_J1309.4+4305_daily_bin352.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276797/ft1_filtered_4FGL_J1309.4+4305_daily_bin352.fits scfile=/scratch/kocevski/276797/ft2_4FGL_J1309.4+4305_daily_bin352.fits outfile=/scratch/kocevski/276797/cmap_HighResolution_330566401_330825601_4FGL_J1309.4+4305_daily_bin352.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.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1245       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5840       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .80975       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23293E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12341E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    39.927       1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2400       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5491       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.991       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    110.20       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .93923       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.215       1.0000         .10000E-03   10000.    
    22 'norm      '    4.6964       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.6289       1.0000         .10000E-03   10000.    
    25 'norm      '    1.0783       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0179       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1066       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=   5538.385     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3314 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1260        5.7759       -.30954E-06   -.26250E-04
   2  Prefactor     9.5834        16.514        .16004E-06    .96806E-06
   3  Prefactor     .10000E-03    7.3828       -.13715E-06** at limit **
   4  Prefactor     .10000E-03    6.2117       -.65428E-06** at limit **
   5  norm          .10000E-03    .74621       -.39416E-07** at limit **
   6  Prefactor     .81381        5.7222        .10066E-05   -.15277E-03
   7  norm          .10000E-03    4.9118       -.26570E-06** at limit **
   8  Prefactor     .10000E-03    130.64       -.61126E-05** at limit **
   9  Prefactor     .10000E-03    11.278       -.14581E-06** at limit **
  10  Prefactor     .10000E-03    35.817       -.25420E-06** at limit **
  11  norm          .10002E-03    4.9123       -.75885E-06** at limit **
  12  norm          39.911        21.410        .20644E-05    .14986E-04
  13  norm          .10000E-03    2.4151        .14632E-06** at limit **
  14  norm          2.2414        3.9929       -.58677E-07   -.21331E-04
  15  norm          3.5487        3.4245       -.51722E-07   -.46399E-04
  16  Prefactor     .10000E-03    3.4360        .36171E-06** at limit **
  17  Prefactor     23.985        17.876        .22290E-05    .84117E-06
  18  Prefactor     .10000E-03    18.692        .33420E-05** at limit **
  19  Prefactor     110.18        75.114       -.13541E-04   -.87287E-06
  20  Prefactor     .92829        14.775        .63396E-06   -.12601E-03
  21  Prefactor     12.215        31.092       -.46888E-06   -.19752E-04
  22  norm          4.6869        5.3271       -.12289E-06   -.17008E-03
  23  Prefactor     .10000E-03    25.626       -.58669E-06** at limit **
  24  norm          6.6290        2.1934       -.27000E-07   -.45833E-04
  25  norm          1.0796        2.0505        .11055E-06   -.39243E-03
  26  Normalizat    1.0180        .18485        .27221E-06   -.48008E-04
  27  Prefactor     1.1063        .22758       -.16124E-07   -.40138E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.126
  Prefactor  = 9.5834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.813809
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100017
  norm       = 39.9111
  norm       = 0.0001
  norm       = 2.24139
  norm       = 3.54875
  Prefactor  = 0.0001
  Prefactor  = 23.9853
  Prefactor  = 0.0001
  Prefactor  = 110.182
  Prefactor  = 0.928292
  Prefactor  = 12.2151
  norm       = 4.68688
  Prefactor  = 0.0001
  norm       = 6.62895
  norm       = 1.07957
  Normalizat = 1.01802
  Prefactor  = 1.10628
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.385     FROM HESSE     STATUS=OK           496 CALLS     3810 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1260        5.7480        .28095E-03   -1.5416    
   2  Prefactor     9.5834        16.488        .12945E-03   -1.5089    
   3  Prefactor     .10000E-03    7.3942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2134        .18116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .75337        .62769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .81381        11.026        .33076E-02   -1.5528    
   7  norm          .10000E-03    5.0516        .32198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    131.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    17.722        .30997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          39.911        21.426        .63435E-04   -1.4444    
  13  norm          .10000E-03    2.4323        .11223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2414        3.9505        .19191E-03   -1.5409    
  15  norm          3.5487        3.4177        .13061E-03   -1.5331    
  16  Prefactor     .10000E-03    3.5348        .26816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.985        17.791        .81781E-04   -1.4728    
  18  Prefactor     .10000E-03    18.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     110.18        75.256        .19158E-03   -1.3605    
  20  Prefactor     .92829        129.37        .47037E-02   -1.5515    
  21  Prefactor     12.215        31.065        .11462E-03   -1.5009    
  22  norm          4.6869        5.7395        .15205E-03   -1.5275    
  23  Prefactor     .10000E-03    25.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.6290        2.1953        .59617E-04   -1.5193    
  25  norm          1.0796        27.480        .23240E-02   -1.5500    
  26  Normalizat    1.0180        .22265        .23522E-03   -.92429    
  27  Prefactor     1.1063        .27572        .28577E-03   -.89266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80454e-08
Minuit parameter uncertainties:
  1  5.74952
  2  16.4963
  3  1.75743e-06
  4  2.26398e-06
  5  2.61223e-07
  6  5.99203
  7  8.11034e-07
  8  0.00030126
  9  5.12158e-07
  10  1.52427e-05
  11  0.00110561
  12  21.4306
  13  1.79838e-06
  14  3.95098
  15  3.41787
  16  4.14091e-05
  17  17.7949
  18  1.08923e-06
  19  75.3213
  20  21.9646
  21  31.1061
  22  5.74018
  23  1.01991e-05
  24  2.19529
  25  10.8986
  26  0.222855
  27  0.276076
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.991e+01  2.143e+01  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.106e+00  2.761e-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.018e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.65
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 4.18e-08 +/- 2.25e-08
Energy Flux (Fixed Index): 4.59e-05 +/- 2.47e-05

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) = 5538.16107947
delta logL = 0.2242579037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5538.15209276
delta logL = 0.233244618306

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    36.665       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0870       1.0000          .0000       5.0000    
     3 'Normalizat'    .99848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1161       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=   5538.152     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      293 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          36.680        20.745        .66187E-04    .60771E-04
   2  alpha         2.0875        .46889        .95453E-02    .17942E-03
   3  Normalizat    .99817        .21765        .23719E-03   -.43378E-04
   4  Prefactor     1.1162        .27236        .28444E-03    .32694E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 36.6801
  alpha      = 2.08748
  Normalizat = 0.998172
  Prefactor  = 1.11617
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.152     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          36.680        20.387        .13237E-04   -1.4496    
   2  alpha         2.0875        .46057        .19091E-02   -.16577    
   3  Normalizat    .99817        .21774        .94875E-05   -.93092    
   4  Prefactor     1.1162        .27258        .11378E-04   -.88952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82617e-11
Minuit parameter uncertainties:
  1  20.3904
  2  0.463295
  3  0.217932
  4  0.272922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276797': 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) = 5538.15208889
delta logL = 0.233248486105

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.668e+01  2.039e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.087e+00  4.633e-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:  1.116e+00  2.729e-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:  9.982e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.08
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.09 +/- 0.46
Photon Flux (Free Index): 6.06e-08 +/- 4.06e-08
Energy Flux (Free Index): 3.46e-05 +/- 2.06e-05

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/276797/cmap_HighResolution_330566401_330825601_4FGL_J1309.4+4305_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.18e-08', energy_flux2='3.46e-05', photon_flux_error='2.25e-08', dlogl='2.33e-01', energy_flux='4.59e-05', photon_flux2='6.06e-08', job_status='DONE', time_completed='2021-09-07 01:06:44.824518', photon_index_error2='0.46', photon_index2='2.09', ts='13.65', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.06e-05', EG='1.02', time_epoch_completed='1631002004.82', return_code='0', job_id='276797', GAL2='1.12', EG2='1.00', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='4.06e-08', ts2='14.08', photon_index='1.77' WHERE bin_id='352' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 276797: <4FGL_J1309.4+4305_daily_bin352> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin352> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:36 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:51: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:51:02 2021
Terminated at Tue Sep  7 01:06:45 2021
Results reported at Tue Sep  7 01:06:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin352 197.363 43.085 330566401 330825601 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 :                                   709.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            969 sec.

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

