/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 30 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 = 7407
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin931
RA = 197.363, Dec = 43.085
tmin = 480643201, tmax = 480902401
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='280049', job_status='RUN', time_executed='2021-09-07 01:03:33.479647', time_epoch_executed='1631001813.48' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280049

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280049/ft1_4FGL_J1309.4+4305_daily_bin931.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280049/ft2_4FGL_J1309.4+4305_daily_bin931.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280049/ft1_4FGL_J1309.4+4305_daily_bin931.fits outfile=/scratch/kocevski/280049/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin931.fits ra=197.363 dec=43.085 rad=12.0 tmin=480643201.0 tmax=480902401.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.62
user 2.72
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280049/ft1_filtered_4FGL_J1309.4+4305_daily_bin931.fits" evtable="EVENTS" scfile=/scratch/kocevski/280049/ft2_4FGL_J1309.4+4305_daily_bin931.fits sctable="SC_DATA" outfile=/scratch/kocevski/280049/ltcube_480643201_480902401_4FGL_J1309.4+4305_daily_bin931.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/280049/ft2_4FGL_J1309.4+4305_daily_bin931.fits
.....................!
real 13.62
user 11.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280049/ft1_filtered_4FGL_J1309.4+4305_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/280049/ft2_4FGL_J1309.4+4305_daily_bin931.fits sctable="SC_DATA" expcube=/scratch/kocevski/280049/ltcube_480643201_480902401_4FGL_J1309.4+4305_daily_bin931.fits outfile=/scratch/kocevski/280049/expmap_480643201_480902401_4FGL_J1309.4+4305_daily_bin931.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/280049/ltcube_480643201_480902401_4FGL_J1309.4+4305_daily_bin931.fits
.....................!
real 155.64
user 149.39
sys 4.58

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/280049/ft1_filtered_4FGL_J1309.4+4305_daily_bin931.fits scfile=/scratch/kocevski/280049/ft2_4FGL_J1309.4+4305_daily_bin931.fits outfile=/scratch/kocevski/280049/cmap_480643201_480902401_4FGL_J1309.4+4305_daily_bin931.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.75
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280049/ft1_filtered_4FGL_J1309.4+4305_daily_bin931.fits scfile=/scratch/kocevski/280049/ft2_4FGL_J1309.4+4305_daily_bin931.fits outfile=/scratch/kocevski/280049/cmap_HighResolution_480643201_480902401_4FGL_J1309.4+4305_daily_bin931.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.80
user 0.32
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19770E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .64685       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.597       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.188       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10205E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13544E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1177       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5564       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29522E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9771       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7706       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.419       1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.5228       1.0000         .10000E-03   10000.    
    25 'norm      '    17.007       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2312       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86470       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=   6013.600     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3291 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9706        .20372E-05** at limit **
   2  Prefactor     .10051E-03    14.503       -.23649E-06** at limit **
   3  Prefactor     .10000E-03    40.331       -.12594E-04** at limit **
   4  Prefactor     .10000E-03    6.3525        .19444E-06** at limit **
   5  norm          .64674        1.7944       -.11240E-05   -.14382E-02
   6  Prefactor     .10000E-03    1.7263        .14465E-08** at limit **
   7  norm          21.598        7.6958       -.35352E-06    .15976E-04
   8  Prefactor     .10000E-03    15.046        .22981E-07** at limit **
   9  Prefactor     31.183        30.368       -.35245E-05    .37571E-05
  10  Prefactor     .10000E-03    4.9789       -.78685E-07** at limit **
  11  norm          .10000E-03    4.3951        .22022E-06** at limit **
  12  norm          .10000E-03    5.9694       -.54457E-06** at limit **
  13  norm          .10000E-03    1.1098        .26642E-07** at limit **
  14  norm          .10000E-03    1.6559        .17353E-07** at limit **
  15  norm          .10000E-03    2.3319       -.89299E-06** at limit **
  16  Prefactor     4.1183        3.6772        .22006E-05    .17693E-03
  17  Prefactor     5.5550        11.110        .10809E-05    .37720E-04
  18  Prefactor     .10001E-03    57.992        .58924E-05** at limit **
  19  Prefactor     7.9341        98.411       -.11411E-03   -.52554E-05
  20  Prefactor     4.7706        8.2990       -.43760E-06   -.50516E-04
  21  Prefactor     27.391        34.130       -.23034E-04    .78118E-05
  22  norm          .10000E-03    .95698        .40424E-07** at limit **
  23  Prefactor     .10000E-03    42.335        .11845E-04** at limit **
  24  norm          2.5231        1.4041        .25608E-06    .27748E-03
  25  norm          17.005        15.797       -.62171E-06   -.26210E-05
  26  Normalizat    1.2312        .17635        .38638E-05    .18823E-03
  27  Prefactor     .86479        .21628        .21634E-05    .24706E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.646742
  Prefactor  = 0.0001
  norm       = 21.5981
  Prefactor  = 0.0001
  Prefactor  = 31.1829
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 4.11825
  Prefactor  = 5.55502
  Prefactor  = 0.000100014
  Prefactor  = 7.9341
  Prefactor  = 4.77064
  Prefactor  = 27.3912
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.52311
  norm       = 17.0053
  Normalizat = 1.23121
  Prefactor  = 0.864791
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.600     FROM HESSE     STATUS=OK           486 CALLS     3777 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0425        .16854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10051E-03    108.25        .56587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    40.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.3548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .64674        1.7575        .16663E-03   -1.5547    
   6  Prefactor     .10000E-03    1.7286        .99498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.598        7.6970        .86188E-04   -1.4778    
   8  Prefactor     .10000E-03    15.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.183        30.355        .71747E-04   -1.4591    
  10  Prefactor     .10000E-03    4.9854        .16898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.5188        .31706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.9792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1142        .79751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.6570        .97451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.9212        .22910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1183        3.6537        .12720E-03   -1.5302    
  17  Prefactor     5.5550        11.068        .17044E-03   -1.5237    
  18  Prefactor     .10001E-03    60.145        .42793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.9341        98.169        .14196E-03   -1.5145    
  20  Prefactor     4.7706        8.2864        .18421E-03   -1.5271    
  21  Prefactor     27.391        34.108        .76507E-04   -1.4661    
  22  norm          .10000E-03    .95830        .74063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    42.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.5231        1.4008        .65483E-04   -1.5390    
  25  norm          17.005        15.788        .97119E-04   -1.4883    
  26  Normalizat    1.2312        .20550        .21525E-03   -.85644    
  27  Prefactor     .86479        .25281        .31191E-03   -.97382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74556e-09
Minuit parameter uncertainties:
  1  4.55098e-05
  2  0.0149361
  3  0.000210439
  4  7.02592e-06
  5  1.75759
  6  1.61406e-06
  7  7.69737
  8  1.21017e-05
  9  30.3699
  10  1.42947e-06
  11  4.08265e-06
  12  8.82335e-06
  13  2.63623e-06
  14  1.75227e-06
  15  0.000259232
  16  3.65394
  17  11.0723
  18  0.00184885
  19  55.9306
  20  8.28836
  21  34.1326
  22  3.22904e-06
  23  1.44775e-06
  24  1.40079
  25  15.7923
  26  0.20564
  27  0.253155
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  8.823e-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:  8.648e-01  2.532e-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.231e+00  2.056e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280049/likelihoodResults_480643201_480902401_4FGL_J1309.4+4305_daily_bin931.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) = 6013.60068116
delta logL = -0.000792941619693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6013.5998882
delta logL = 1.60125637194e-08

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.7765       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86480       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=   6013.600     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      241 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    414.01        .18142E-02** at limit **
   2  alpha         2.0342        3.4322        .50000        .61618E-08
   3  Normalizat    1.2312        .37036E-01    .21525E-03   -.46583E-04
   4  Prefactor     .86479        .46020E-01    .31191E-03   -.34772E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.03418
  Normalizat = 1.23121
  Prefactor  = 0.864788
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.600     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1306.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0342        2.8461        .50000       -.18742    
   3  Normalizat    1.2312        .11406        .86101E-05   -.85644    
   4  Prefactor     .86479        .14168        .12476E-04   -.97383    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.79471e-11
Minuit parameter uncertainties:
  1  4.4348e-05
  2  3803.97
  3  0.114085
  4  0.141743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280049': 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): 102
logL (Free Index) = 6013.59988789
delta logL = 3.29484464601e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  4.435e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.034e+00  3.804e+03  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:  8.648e-01  1.417e-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.231e+00  1.141e-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/280049/cmap_HighResolution_480643201_480902401_4FGL_J1309.4+4305_daily_bin931.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', job_status='DONE', photon_flux_upper_limit='2.99e-08', time_completed='2021-09-07 01:15:09.366613', job_id='280049', GAL2='0.86', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631002509.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='931' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:15:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 280049: <4FGL_J1309.4+4305_daily_bin931> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin931> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:45 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:02:34 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:02:34 2021
Terminated at Tue Sep  7 01:15:10 2021
Results reported at Tue Sep  7 01:15:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin931 197.363 43.085 480643201 480902401 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 :                                   667.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            865 sec.

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

