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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin952
RA = 197.363, Dec = 43.085
tmin = 486086401, tmax = 486345601
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='280094', job_status='RUN', time_executed='2021-09-07 01:03:25.763506', time_epoch_executed='1631001805.76' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='952'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/280094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/280094/ft1_4FGL_J1309.4+4305_daily_bin952.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/280094/ft2_4FGL_J1309.4+4305_daily_bin952.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/280094/ft1_4FGL_J1309.4+4305_daily_bin952.fits outfile=/scratch/kocevski/280094/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin952.fits ra=197.363 dec=43.085 rad=12.0 tmin=486086401.0 tmax=486345601.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.83
user 3.06
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/280094/ft2_4FGL_J1309.4+4305_daily_bin952.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/280094/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin952.fits evtable="EVENTS" outfile="/scratch/kocevski/280094/ft1_filtered_4FGL_J1309.4+4305_daily_bin952.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 1.68
user 0.32
sys 0.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/280094/ft1_filtered_4FGL_J1309.4+4305_daily_bin952.fits" evtable="EVENTS" scfile=/scratch/kocevski/280094/ft2_4FGL_J1309.4+4305_daily_bin952.fits sctable="SC_DATA" outfile=/scratch/kocevski/280094/ltcube_486086401_486345601_4FGL_J1309.4+4305_daily_bin952.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/280094/ft2_4FGL_J1309.4+4305_daily_bin952.fits
.....................!
real 16.41
user 14.09
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/280094/ft1_filtered_4FGL_J1309.4+4305_daily_bin952.fits evtable="EVENTS" scfile=/scratch/kocevski/280094/ft2_4FGL_J1309.4+4305_daily_bin952.fits sctable="SC_DATA" expcube=/scratch/kocevski/280094/ltcube_486086401_486345601_4FGL_J1309.4+4305_daily_bin952.fits outfile=/scratch/kocevski/280094/expmap_486086401_486345601_4FGL_J1309.4+4305_daily_bin952.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/280094/ltcube_486086401_486345601_4FGL_J1309.4+4305_daily_bin952.fits
.....................!
real 163.06
user 153.16
sys 5.08

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/280094/ft1_filtered_4FGL_J1309.4+4305_daily_bin952.fits scfile=/scratch/kocevski/280094/ft2_4FGL_J1309.4+4305_daily_bin952.fits outfile=/scratch/kocevski/280094/cmap_486086401_486345601_4FGL_J1309.4+4305_daily_bin952.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.80
user 0.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/280094/ft1_filtered_4FGL_J1309.4+4305_daily_bin952.fits scfile=/scratch/kocevski/280094/ft2_4FGL_J1309.4+4305_daily_bin952.fits outfile=/scratch/kocevski/280094/cmap_HighResolution_486086401_486345601_4FGL_J1309.4+4305_daily_bin952.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.63
user 0.34
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.626       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.687       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.852       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2420       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.8537       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9160       1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.292       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1372       1.0000         .10000E-03   10000.    
    11 'norm      '    10.586       1.0000         .10000E-03   10000.    
    12 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11344E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.2525       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19096E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10643E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.441       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.788       1.0000         .10000E-03   10000.    
    22 'norm      '    .97666E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    84.823       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1997       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3053       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80822       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=   6442.978     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3315 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.626        10.059       -.12469E-05   -.18329E-03
   2  Prefactor     14.691        30.705        .45188E-05   -.10520E-03
   3  Prefactor     .10000E-03    28.434        .31488E-04** at limit **
   4  Prefactor     10.848        15.047        .66384E-06    .71482E-05
   5  norm          1.2420        1.2483       -.41628E-07    .39519E-05
   6  Prefactor     .10000E-03    3.0827       -.48078E-07** at limit **
   7  norm          7.8541        5.9131        .42652E-06    .34850E-03
   8  Prefactor     5.8721        50.405       -.99653E-04   -.47744E-05
   9  Prefactor     51.288        36.275       -.21302E-05    .26639E-03
  10  Prefactor     6.1314        18.521       -.52485E-06   -.11040E-04
  11  norm          10.586        6.9606        .24440E-06    .12090E-03
  12  norm          .10000E-03    7.7158        .18641E-05** at limit **
  13  norm          .10002E-03    2.9483       -.24844E-05** at limit **
  14  norm          .10000E-03    3.9631        .58082E-06** at limit **
  15  norm          1.2528        2.4414       -.15731E-06   -.38917E-03
  16  Prefactor     .10000E-03    1.7699        .25538E-06** at limit **
  17  Prefactor     .10032E-03    11.489        .18526E-05** at limit **
  18  Prefactor     .10000E-03    26.231       -.26517E-04** at limit **
  19  Prefactor     13.424        45.090       -.33485E-04   -.22402E-04
  20  Prefactor     .10000E-03    4.3777       -.12587E-05** at limit **
  21  Prefactor     21.779        31.339       -.85224E-05    .15989E-03
  22  norm          .93881E-01    1.9254       -.75317E-06   -.14408E-03
  23  Prefactor     84.842        91.372        .19080E-04   -.30009E-05
  24  norm          1.2001        1.1259       -.50187E-07   -.18534E-03
  25  norm          .10000E-03    5.3203        .49090E-05** at limit **
  26  Normalizat    1.3050        .17419       -.93764E-07    .26459E-03
  27  Prefactor     .80847        .20022        .54668E-05   -.89425E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6259
  Prefactor  = 14.6913
  Prefactor  = 0.0001
  Prefactor  = 10.8483
  norm       = 1.24201
  Prefactor  = 0.0001
  norm       = 7.85407
  Prefactor  = 5.87212
  Prefactor  = 51.2881
  Prefactor  = 6.13141
  norm       = 10.5863
  norm       = 0.000100001
  norm       = 0.000100017
  norm       = 0.0001
  norm       = 1.25275
  Prefactor  = 0.0001
  Prefactor  = 0.000100323
  Prefactor  = 0.000100001
  Prefactor  = 13.424
  Prefactor  = 0.0001
  Prefactor  = 21.7788
  norm       = 0.0938808
  Prefactor  = 84.8423
  norm       = 1.20011
  norm       = 0.0001
  Normalizat = 1.30502
  Prefactor  = 0.808474
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.978     FROM HESSE     STATUS=OK           494 CALLS     3809 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.626        10.024        .10132E-03   -1.4917    
   2  Prefactor     14.691        30.697        .10451E-03   -1.4941    
   3  Prefactor     .10000E-03    28.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.848        15.043        .12162E-03   -1.5049    
   5  norm          1.2420        1.2573        .87521E-04   -1.5485    
   6  Prefactor     .10000E-03    3.0984        .13753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.8541        5.8994        .14308E-03   -1.5147    
   8  Prefactor     5.8721        50.808        .16510E-03   -1.5223    
   9  Prefactor     51.288        35.732        .55998E-04   -1.4274    
  10  Prefactor     6.1314        18.442        .16206E-03   -1.5213    
  11  norm          10.586        6.9263        .12314E-03   -1.5057    
  12  norm          .10000E-03    7.7336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    5.7006        .25605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.9997        .15578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2528        2.3873        .16926E-03   -1.5484    
  16  Prefactor     .10000E-03    1.7806        .10400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10032E-03    85.755        .50377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.424        44.578        .10925E-03   -1.4975    
  20  Prefactor     .10000E-03    4.3814        .16401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.779        31.263        .85811E-04   -1.4774    
  22  norm          .93881E-01    7.9204        .21521E-02   -1.5647    
  23  Prefactor     84.842        92.106        .43617E-04   -1.3863    
  24  norm          1.2001        1.1023        .79053E-04   -1.5489    
  25  norm          .10000E-03    5.3220        .18075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3050        .20710        .21977E-03   -.83417    
  27  Prefactor     .80847        .23530        .32647E-03   -.99417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53852e-08
Minuit parameter uncertainties:
  1  10.0251
  2  30.7298
  3  0.00021478
  4  15.0478
  5  1.25728
  6  1.58283e-06
  7  5.89987
  8  34.585
  9  35.7465
  10  18.4592
  11  6.92686
  12  0.000156185
  13  0.000625015
  14  2.84643e-05
  15  2.3875
  16  2.95998e-05
  17  0.0105391
  18  0.000283688
  19  44.6886
  20  3.36756e-06
  21  31.2865
  22  1.72393
  23  92.2619
  24  1.10236
  25  2.78835e-05
  26  0.207232
  27  0.235598
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.562e-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:  8.085e-01  2.356e-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.305e+00  2.072e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/280094/likelihoodResults_486086401_486345601_4FGL_J1309.4+4305_daily_bin952.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) = 6442.97866274
delta logL = -0.000614865425632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6442.9780486
delta logL = -7.21503965906e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10839E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7963       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80828       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=   6442.978     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.981        .90712E-02** at limit **
   2  alpha         1.8251        3.4076        .43429       -.17280E-04
   3  Normalizat    1.3050        .16369        .49711E-01   -.15916E-03
   4  Prefactor     .80848        .19734        .73767E-01   -.60093E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.8251
  Normalizat = 1.30501
  Prefactor  = 0.808478
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.978     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.4023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8251        3.3616        .50000       -.27335    
   3  Normalizat    1.3050        .19184        .21977E-03   -.83417    
   4  Prefactor     .80848        .23088        .32646E-03   -.99417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26437e-10
Minuit parameter uncertainties:
  1  8.30719e-05
  2  2.43372
  3  0.191941
  4  0.231157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/280094': 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) = 6442.97804747
delta logL = 4.02877049055e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  8.307e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.825e+00  2.434e+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:  8.085e-01  2.312e-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.305e+00  1.919e-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/280094/cmap_HighResolution_486086401_486345601_4FGL_J1309.4+4305_daily_bin952.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-05', job_status='DONE', photon_flux_upper_limit='3.60e-08', time_completed='2021-09-07 01:15:25.822374', job_id='280094', GAL2='0.81', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1631002525.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='952' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:15:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 280094: <4FGL_J1309.4+4305_daily_bin952> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin952 197.363 43.085 486086401 486345601 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 :                                   694.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            879 sec.

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

