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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin557
RA = 197.363, Dec = 43.085
tmin = 383702401, tmax = 383961601
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='278277', job_status='RUN', time_executed='2021-09-07 00:57:35.148892', time_epoch_executed='1631001455.15' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278277/ft1_4FGL_J1309.4+4305_daily_bin557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278277/ft2_4FGL_J1309.4+4305_daily_bin557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278277/ft1_4FGL_J1309.4+4305_daily_bin557.fits outfile=/scratch/kocevski/278277/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin557.fits ra=197.363 dec=43.085 rad=12.0 tmin=383702401.0 tmax=383961601.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.49
user 4.24
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278277/ft2_4FGL_J1309.4+4305_daily_bin557.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/278277/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin557.fits evtable="EVENTS" outfile="/scratch/kocevski/278277/ft1_filtered_4FGL_J1309.4+4305_daily_bin557.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/278277/ft1_filtered_4FGL_J1309.4+4305_daily_bin557.fits" evtable="EVENTS" scfile=/scratch/kocevski/278277/ft2_4FGL_J1309.4+4305_daily_bin557.fits sctable="SC_DATA" outfile=/scratch/kocevski/278277/ltcube_383702401_383961601_4FGL_J1309.4+4305_daily_bin557.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/278277/ft2_4FGL_J1309.4+4305_daily_bin557.fits
.....................!
real 15.29
user 14.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278277/ft1_filtered_4FGL_J1309.4+4305_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/278277/ft2_4FGL_J1309.4+4305_daily_bin557.fits sctable="SC_DATA" expcube=/scratch/kocevski/278277/ltcube_383702401_383961601_4FGL_J1309.4+4305_daily_bin557.fits outfile=/scratch/kocevski/278277/expmap_383702401_383961601_4FGL_J1309.4+4305_daily_bin557.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/278277/ltcube_383702401_383961601_4FGL_J1309.4+4305_daily_bin557.fits
.....................!
real 194.08
user 187.45
sys 5.38

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/278277/ft1_filtered_4FGL_J1309.4+4305_daily_bin557.fits scfile=/scratch/kocevski/278277/ft2_4FGL_J1309.4+4305_daily_bin557.fits outfile=/scratch/kocevski/278277/cmap_383702401_383961601_4FGL_J1309.4+4305_daily_bin557.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.64
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278277/ft1_filtered_4FGL_J1309.4+4305_daily_bin557.fits scfile=/scratch/kocevski/278277/ft2_4FGL_J1309.4+4305_daily_bin557.fits outfile=/scratch/kocevski/278277/cmap_HighResolution_383702401_383961601_4FGL_J1309.4+4305_daily_bin557.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.60
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5506       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.8905       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.7079       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.127       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.092       1.0000         .10000E-03   10000.    
    13 'norm      '    4.2857       1.0000         .10000E-03   10000.    
    14 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13297E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .74454       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7579       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.598       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.659       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .13247E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.9985       1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .82753       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97857       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=   6178.685     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     3323 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5502        4.8181       -.96914E-06   -.16893E-03
   2  Prefactor     .10000E-03    6.3016       -.42311E-06** at limit **
   3  Prefactor     .10000E-03    7.3823        .21887E-05** at limit **
   4  Prefactor     .10000E-03    9.1826        .14480E-05** at limit **
   5  norm          5.8905        2.1941       -.31132E-07    .66084E-04
   6  Prefactor     .10000E-03    4.1892       -.32035E-07** at limit **
   7  norm          5.7076        4.4792        .50686E-06   -.25060E-03
   8  Prefactor     .10000E-03    76.897        .32043E-05** at limit **
   9  Prefactor     .10000E-03    20.387        .12120E-04** at limit **
  10  Prefactor     22.118        16.953        .17381E-06   -.68325E-04
  11  norm          .10000E-03    2.0193       -.10600E-07** at limit **
  12  norm          13.086        13.322       -.13630E-05   -.21952E-04
  13  norm          4.2854        4.0342       -.14441E-05   -.45651E-03
  14  norm          .10000E-03    2.5500        .11995E-06** at limit **
  15  norm          .10000E-03    1.6908        .53738E-09** at limit **
  16  Prefactor     .74144        1.3567        .98008E-06   -.41838E-02
  17  Prefactor     .10000E-03    12.311       -.58286E-07** at limit **
  18  Prefactor     1.6460        97.006       -.54231E-05   -.28680E-03
  19  Prefactor     37.558        43.405       -.25338E-04   -.14513E-03
  20  Prefactor     31.643        20.164       -.90257E-06    .37227E-03
  21  Prefactor     .10000E-03    12.068        .21146E-05** at limit **
  22  norm          .10002E-03    2.6828       -.76274E-06** at limit **
  23  Prefactor     .10000E-03    23.162       -.95318E-05** at limit **
  24  norm          8.9984        1.9779       -.40814E-07    .35344E-03
  25  norm          .10000E-03    14.835       -.50924E-05** at limit **
  26  Normalizat    .82753        .15083        .13701E-05    .68441E-04
  27  Prefactor     .97860        .18609        .63465E-06    .15158E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.55017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.89052
  Prefactor  = 0.0001
  norm       = 5.70761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1177
  norm       = 0.0001
  norm       = 13.0862
  norm       = 4.28537
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.74144
  Prefactor  = 0.000100001
  Prefactor  = 1.64602
  Prefactor  = 37.5578
  Prefactor  = 31.6432
  Prefactor  = 0.0001
  norm       = 0.000100021
  Prefactor  = 0.0001
  norm       = 8.99838
  norm       = 0.0001
  Normalizat = 0.827527
  Prefactor  = 0.978599
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.685     FROM HESSE     STATUS=OK           492 CALLS     3815 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5502        4.8113        .22922E-03   -1.5389    
   2  Prefactor     .10000E-03    6.3164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.2039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.8905        2.1947        .69095E-04   -1.5223    
   6  Prefactor     .10000E-03    4.2301        .15684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7076        4.4680        .14092E-03   -1.5230    
   8  Prefactor     .10000E-03    77.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.118        17.355        .85151E-04   -1.4767    
  11  norm          .10000E-03    2.0246        .10901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.086        13.326        .11071E-03   -1.4984    
  13  norm          4.2854        4.4197        .14180E-03   -1.5294    
  14  norm          .10000E-03    2.5530        .12241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7721        .19580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .74144        4.0736        .41237E-01   -1.5536    
  17  Prefactor     .10000E-03    12.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6460        105.10        .15804E-02   -1.5451    
  19  Prefactor     37.558        45.301        .65363E-04   -1.4482    
  20  Prefactor     31.643        18.370        .71212E-04   -1.4582    
  21  Prefactor     .10000E-03    12.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    8.1825        .22304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.9984        1.9810        .49401E-04   -1.5108    
  25  norm          .10000E-03    15.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .82753        .18080        .22853E-03   -.99056    
  27  Prefactor     .97860        .21664        .26773E-03   -.93446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27336e-08
Minuit parameter uncertainties:
  1  4.81203
  2  2.49652e-06
  3  6.24426e-06
  4  1.15706e-06
  5  2.1947
  6  1.03623e-05
  7  4.46823
  8  8.59831e-06
  9  0.000169035
  10  17.3587
  11  9.04867e-06
  12  13.3293
  13  4.42004
  14  1.97093e-05
  15  1.14635e-05
  16  3.47594
  17  0.00018862
  18  26.3529
  19  45.3428
  20  18.3737
  21  3.51303e-05
  22  0.000819965
  23  0.00010255
  24  1.98104
  25  5.41161e-05
  26  0.18093
  27  0.216829
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.309e+01  1.333e+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:  9.786e-01  2.168e-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:  8.275e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.57
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.37e-08 +/- 1.40e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.53e-05

TS (Fixed Index): 2.57
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 5.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278277/likelihoodResults_383702401_383961601_4FGL_J1309.4+4305_daily_bin557.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) = 6178.08378038
delta logL = 0.601594387342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6178.08075383
delta logL = 0.604620939103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8143       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8507       1.0000          .0000       5.0000    
     3 'Normalizat'    .77087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0124       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=   6178.081     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      272 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8113        22.511        .13501E-03   -.34746E-02
   2  alpha         2.8508        1.4842        .89684E-02   -.50759E-03
   3  Normalizat    .77088        .19150        .23593E-03   -.77562E-03
   4  Prefactor     1.0124        .23066        .26368E-03   -.11908E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 8.81129
  alpha      = 2.85084
  Normalizat = 0.770882
  Prefactor  = 1.01241
 **********
 **   18 **HESSE 
 **********

 FCN=   6178.081     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8113        13.583        .54004E-05   -1.5114    
   2  alpha         2.8508        .93454        .35874E-03    .14080    
   3  Normalizat    .77088        .17886        .47186E-04   -1.0116    
   4  Prefactor     1.0124        .22008        .52735E-04   -.92317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.53618e-09
Minuit parameter uncertainties:
  1  13.5876
  2  0.958305
  3  0.178994
  4  0.220275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278277': 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) = 6178.08075379
delta logL = 0.604620975604

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.811e+00  1.359e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.851e+00  9.583e-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.012e+00  2.203e-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:  7.709e-01  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.79
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.85 +/- 0.96
Photon Flux (Free Index): 5.89e-08 +/- 4.79e-08
Energy Flux (Free Index): 1.43e-05 +/- 9.10e-06

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/278277/cmap_HighResolution_383702401_383961601_4FGL_J1309.4+4305_daily_bin557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-05', comment='SUCCESS', photon_flux='1.37e-08', energy_flux2='1.43e-05', photon_flux_error='1.40e-08', dlogl='6.05e-01', energy_flux='1.51e-05', photon_flux2='5.89e-08', job_status='DONE', time_completed='2021-09-07 01:11:53.484318', photon_index_error2='0.96', photon_index2='2.85', ts='2.57', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='5.23e-08', energy_flux_error2='9.10e-06', EG='0.83', time_epoch_completed='1631002313.48', return_code='0', job_id='278277', GAL2='1.01', EG2='0.77', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='4.79e-08', ts2='3.79', photon_index='1.77' WHERE bin_id='557' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:11:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 278277: <4FGL_J1309.4+4305_daily_bin557> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin557> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:29 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:55:39 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:55:39 2021
Terminated at Tue Sep  7 01:11:54 2021
Results reported at Tue Sep  7 01:11:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin557 197.363 43.085 383702401 383961601 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 :                                   847.23 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            985 sec.

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

