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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1521
RA = 197.363, Dec = 43.085
tmin = 633571201, tmax = 633830401
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='285563', job_status='RUN', time_executed='2021-09-07 01:16:30.583741', time_epoch_executed='1631002590.58' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285563

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285563/ft1_4FGL_J1309.4+4305_daily_bin1521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285563/ft2_4FGL_J1309.4+4305_daily_bin1521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285563/ft1_4FGL_J1309.4+4305_daily_bin1521.fits outfile=/scratch/kocevski/285563/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1521.fits ra=197.363 dec=43.085 rad=12.0 tmin=633571201.0 tmax=633830401.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 3.67
user 3.33
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/285563/ft2_4FGL_J1309.4+4305_daily_bin1521.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/285563/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1521.fits evtable="EVENTS" outfile="/scratch/kocevski/285563/ft1_filtered_4FGL_J1309.4+4305_daily_bin1521.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/285563/ft1_filtered_4FGL_J1309.4+4305_daily_bin1521.fits" evtable="EVENTS" scfile=/scratch/kocevski/285563/ft2_4FGL_J1309.4+4305_daily_bin1521.fits sctable="SC_DATA" outfile=/scratch/kocevski/285563/ltcube_633571201_633830401_4FGL_J1309.4+4305_daily_bin1521.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/285563/ft2_4FGL_J1309.4+4305_daily_bin1521.fits
.....................!
real 16.64
user 16.15
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285563/ft1_filtered_4FGL_J1309.4+4305_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/285563/ft2_4FGL_J1309.4+4305_daily_bin1521.fits sctable="SC_DATA" expcube=/scratch/kocevski/285563/ltcube_633571201_633830401_4FGL_J1309.4+4305_daily_bin1521.fits outfile=/scratch/kocevski/285563/expmap_633571201_633830401_4FGL_J1309.4+4305_daily_bin1521.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/285563/ltcube_633571201_633830401_4FGL_J1309.4+4305_daily_bin1521.fits
.....................!
real 191.02
user 185.26
sys 5.01

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/285563/ft1_filtered_4FGL_J1309.4+4305_daily_bin1521.fits scfile=/scratch/kocevski/285563/ft2_4FGL_J1309.4+4305_daily_bin1521.fits outfile=/scratch/kocevski/285563/cmap_633571201_633830401_4FGL_J1309.4+4305_daily_bin1521.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285563/ft1_filtered_4FGL_J1309.4+4305_daily_bin1521.fits scfile=/scratch/kocevski/285563/ft2_4FGL_J1309.4+4305_daily_bin1521.fits outfile=/scratch/kocevski/285563/cmap_HighResolution_633571201_633830401_4FGL_J1309.4+4305_daily_bin1521.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3647       1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.835       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5246       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0019       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4014       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.6332       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.520       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.568       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5558       1.0000         .10000E-03   10000.    
    11 'norm      '    4.7804       1.0000         .10000E-03   10000.    
    12 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    23.936       1.0000         .10000E-03   10000.    
    14 'norm      '    .11082E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.041       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1322       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3252       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.8376       1.0000         .10000E-03   10000.    
    25 'norm      '    11.272       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0942       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .91037       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=   6665.430     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3272 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3747        8.8352        .18644E-05   -.13327E-03
   2  Prefactor     50.800        27.019       -.39826E-05   -.12884E-02
   3  Prefactor     4.5274        20.022        .17336E-05    .27699E-04
   4  Prefactor     9.0013        15.714        .12737E-06   -.18531E-04
   5  norm          1.4014        1.2789       -.17009E-08    .57534E-04
   6  Prefactor     .10000E-03    3.4240        .17357E-06** at limit **
   7  norm          4.6345        4.2828        .34697E-06    .91081E-04
   8  Prefactor     17.516        55.389       -.87375E-06   -.16817E-04
   9  Prefactor     30.547        34.124       -.48943E-05   -.38950E-03
  10  Prefactor     6.5672        18.181       -.36707E-05    .49452E-04
  11  norm          4.7789        5.6638        .47588E-05   -.12034E-02
  12  norm          .10000E-03    9.8058        .52929E-07** at limit **
  13  norm          23.934        6.7066        .25185E-06    .19940E-03
  14  norm          .10000E-03    7.6593        .15559E-06** at limit **
  15  norm          .10000E-03    1.8803        .80182E-07** at limit **
  16  Prefactor     .10000E-03    2.1087       -.30688E-06** at limit **
  17  Prefactor     24.035        16.727       -.44514E-06    .73451E-05
  18  Prefactor     .10000E-03    15.469        .91906E-06** at limit **
  19  Prefactor     .10000E-03    20.280       -.21472E-05** at limit **
  20  Prefactor     7.1391        13.413       -.85116E-06   -.45822E-04
  21  Prefactor     .10000E-03    37.265        .14889E-06** at limit **
  22  norm          1.3242        3.9543        .99057E-06   -.15911E-03
  23  Prefactor     .10000E-03    31.135        .21256E-05** at limit **
  24  norm          3.8379        1.5748       -.40357E-07   -.90400E-04
  25  norm          11.272        13.938       -.10321E-06   -.62368E-05
  26  Normalizat    1.0940        .16967        .18506E-05   -.21123E-03
  27  Prefactor     .91063        .20158       -.20287E-05    .49202E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.3747
  Prefactor  = 50.8003
  Prefactor  = 4.52736
  Prefactor  = 9.00127
  norm       = 1.40135
  Prefactor  = 0.0001
  norm       = 4.63454
  Prefactor  = 17.5164
  Prefactor  = 30.5475
  Prefactor  = 6.56718
  norm       = 4.77888
  norm       = 0.0001
  norm       = 23.9339
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.0353
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.13912
  Prefactor  = 0.0001
  norm       = 1.32418
  Prefactor  = 0.000100002
  norm       = 3.83785
  norm       = 11.2719
  Normalizat = 1.09405
  Prefactor  = 0.91063
 **********
 **   18 **HESSE 
 **********

 FCN=   6665.430     FROM HESSE     STATUS=OK           490 CALLS     3762 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3747        8.3164        .37358E-03   -1.5473    
   2  Prefactor     50.800        27.784        .56248E-04   -1.4281    
   3  Prefactor     4.5274        20.057        .18927E-03   -1.5282    
   4  Prefactor     9.0013        15.711        .13359E-03   -1.5108    
   5  norm          1.4014        1.2979        .85845E-04   -1.5471    
   6  Prefactor     .10000E-03    3.4427        .14722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.6345        4.2781        .15200E-03   -1.5277    
   8  Prefactor     17.516        55.452        .95687E-04   -1.4871    
   9  Prefactor     30.547        34.510        .72469E-04   -1.4602    
  10  Prefactor     6.5672        18.333        .15673E-03   -1.5195    
  11  norm          4.7789        5.8669        .92007E-03   -1.5271    
  12  norm          .10000E-03    9.8369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.934        6.7072        .81875E-04   -1.4729    
  14  norm          .10000E-03    7.7047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9423        .21855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1473        .23073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.035        16.678        .81696E-04   -1.4727    
  18  Prefactor     .10000E-03    15.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1391        13.104        .15020E-03   -1.5174    
  21  Prefactor     .10000E-03    37.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3242        3.8506        .24087E-03   -1.5478    
  23  Prefactor     .10000E-03    31.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.8379        1.5759        .62548E-04   -1.5316    
  25  norm          11.272        13.948        .11933E-03   -1.5036    
  26  Normalizat    1.0940        .19869        .22549E-03   -.89943    
  27  Prefactor     .91063        .23499        .30633E-03   -.95771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30812e-09
Minuit parameter uncertainties:
  1  6.76358
  2  27.7907
  3  19.069
  4  15.7183
  5  1.29795
  6  4.19886e-06
  7  4.27838
  8  55.6161
  9  34.5324
  10  18.3489
  11  5.86764
  12  9.51385e-06
  13  6.7074
  14  3.87723e-05
  15  2.32827e-06
  16  1.59912e-05
  17  16.6813
  18  0.000124353
  19  0.000400223
  20  13.1092
  21  5.51203e-05
  22  3.85129
  23  0.000438985
  24  1.57593
  25  13.952
  26  0.198823
  27  0.235256
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  9.514e-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:  9.106e-01  2.353e-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.094e+00  1.988e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285563/likelihoodResults_633571201_633830401_4FGL_J1309.4+4305_daily_bin1521.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6665.43063153
delta logL = -0.000484261581732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6665.43014709
delta logL = 1.76501998794e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7991       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91063       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6665.173     FROM MIGRAD    STATUS=FAILED       150 CALLS      300 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34726E-01    2.3841        .48718E-02    .77218E-02
   2  alpha         5.0000        2.6805        .50000    ** at limit **
   3  Normalizat    1.0524        .66291E-01    .22549E-03   -.50316E-04
   4  Prefactor     .94298        .71371E-01    .30633E-03   -.87585E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6665.173     FROM SIMPLEX   STATUS=UNCHANGED    140 CALLS      440 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34726E-01    2.3841        .36075E-06    .77218E-02
   2  alpha         5.0000        2.6805        .66908E-02** at limit **
   3  Normalizat    1.0524        .66291E-01    .13161E-06   -.50316E-04
   4  Prefactor     .94298        .71371E-01    .53387E-07   -.87585E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6665.173     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      476 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34726E-01    .53961E-01    .21928E-03    .24059E-01
   2  alpha         5.0000        3.4569        .85779E-01** at limit **
   3  Normalizat    1.0524        .19384        .90197E-05   -.10260E-03
   4  Prefactor     .94298        .23684        .12253E-04   -.28577E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0347256
  alpha      = 5
  Normalizat = 1.05239
  Prefactor  = 0.942981
 **********
 **   18 **HESSE 
 **********

 FCN=   6665.173     FROM HESSE     STATUS=OK            25 CALLS      501 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34726E-01    .52764E-01    .43857E-04   -1.5671    
   2  alpha         5.0000        3.4472        .34312E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0524        .19410        .18039E-05   -.91295    
   4  Prefactor     .94298        .23730        .24506E-05   -.94655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10569e-11
Minuit parameter uncertainties:
  1  0.0527638
  2  3.21705e-06
  3  0.194227
  4  0.237559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285563': 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) = 6665.17333546
delta logL = 0.256811805852

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  3.473e-02  5.276e-02  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  5.000e+00  3.217e-06  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:  9.430e-01  2.376e-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.052e+00  1.942e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/285563/cmap_HighResolution_633571201_633830401_4FGL_J1309.4+4305_daily_bin1521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-05', job_status='DONE', photon_flux_upper_limit='3.54e-08', time_completed='2021-09-07 01:31:43.984874', job_id='285563', GAL2='0.94', fit_tolerance='1e-08', EG2='1.05', EG='1.09', time_epoch_completed='1631003503.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.57e-01', ts2='0.55', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='1521' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 285563: <4FGL_J1309.4+4305_daily_bin1521> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin1521> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 01:15:53 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:16:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:16:14 2021
Terminated at Tue Sep  7 01:31:44 2021
Results reported at Tue Sep  7 01:31:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1521 197.363 43.085 633571201 633830401 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 :                                   904.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             340.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            951 sec.

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

