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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin756
RA = 197.363, Dec = 43.085
tmin = 435283201, tmax = 435542401
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='279753', job_status='RUN', time_executed='2021-09-07 01:01:25.713827', time_epoch_executed='1631001685.71' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279753

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279753/ft1_4FGL_J1309.4+4305_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279753/ft2_4FGL_J1309.4+4305_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279753/ft1_4FGL_J1309.4+4305_daily_bin756.fits outfile=/scratch/kocevski/279753/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin756.fits ra=197.363 dec=43.085 rad=12.0 tmin=435283201.0 tmax=435542401.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 6.34
user 4.89
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279753/ft2_4FGL_J1309.4+4305_daily_bin756.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/279753/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin756.fits evtable="EVENTS" outfile="/scratch/kocevski/279753/ft1_filtered_4FGL_J1309.4+4305_daily_bin756.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.58
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279753/ft1_filtered_4FGL_J1309.4+4305_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/279753/ft2_4FGL_J1309.4+4305_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/279753/ltcube_435283201_435542401_4FGL_J1309.4+4305_daily_bin756.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/279753/ft2_4FGL_J1309.4+4305_daily_bin756.fits
.....................!
real 14.91
user 14.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279753/ft1_filtered_4FGL_J1309.4+4305_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/279753/ft2_4FGL_J1309.4+4305_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/279753/ltcube_435283201_435542401_4FGL_J1309.4+4305_daily_bin756.fits outfile=/scratch/kocevski/279753/expmap_435283201_435542401_4FGL_J1309.4+4305_daily_bin756.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/279753/ltcube_435283201_435542401_4FGL_J1309.4+4305_daily_bin756.fits
.....................!
real 194.54
user 185.39
sys 5.56

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/279753/ft1_filtered_4FGL_J1309.4+4305_daily_bin756.fits scfile=/scratch/kocevski/279753/ft2_4FGL_J1309.4+4305_daily_bin756.fits outfile=/scratch/kocevski/279753/cmap_435283201_435542401_4FGL_J1309.4+4305_daily_bin756.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 3.17
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279753/ft1_filtered_4FGL_J1309.4+4305_daily_bin756.fits scfile=/scratch/kocevski/279753/ft2_4FGL_J1309.4+4305_daily_bin756.fits outfile=/scratch/kocevski/279753/cmap_HighResolution_435283201_435542401_4FGL_J1309.4+4305_daily_bin756.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 2.03
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2835       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.561       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.648       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.242       1.0000         .10000E-03   10000.    
    13 'norm      '    4.7120       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.419       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.477       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.0783       1.0000         .10000E-03   10000.    
    25 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0757       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .62399       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=   4053.068     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3293 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2858        2.2419        .31724E-06   -.75310E-03
   2  Prefactor     .10000E-03    11.643       -.27582E-05** at limit **
   3  Prefactor     .10000E-03    9.1893       -.21059E-06** at limit **
   4  Prefactor     .10000E-03    15.998       -.20252E-05** at limit **
   5  norm          2.9862        2.6803        .41444E-08    .63070E-05
   6  Prefactor     .10000E-03    3.7903       -.15140E-07** at limit **
   7  norm          12.555        7.6607       -.17643E-06   -.34830E-03
   8  Prefactor     29.646        40.930       -.21769E-05    .18037E-05
   9  Prefactor     .10000E-03    53.116        .20642E-04** at limit **
  10  Prefactor     .10000E-03    30.473       -.90301E-05** at limit **
  11  norm          .10000E-03    2.6304       -.33057E-08** at limit **
  12  norm          22.242        16.963        .10618E-06    .83279E-05
  13  norm          4.7099        4.8901        .22985E-06   -.12298E-03
  14  norm          .10000E-03    3.9922       -.21685E-07** at limit **
  15  norm          11.418        6.0765       -.77783E-06    .12205E-04
  16  Prefactor     .10000E-03    2.1394       -.30402E-07** at limit **
  17  Prefactor     14.477        21.388        .15945E-06   -.36022E-04
  18  Prefactor     .10000E-03    41.259        .23684E-05** at limit **
  19  Prefactor     .10000E-03    23.096        .10731E-04** at limit **
  20  Prefactor     .10000E-03    26.379       -.87436E-06** at limit **
  21  Prefactor     .10000E-03    29.396       -.72801E-05** at limit **
  22  norm          .10000E-03    4.7895        .74339E-07** at limit **
  23  Prefactor     .10000E-03    76.345       -.17409E-04** at limit **
  24  norm          4.0781        1.8251        .62950E-08    .94830E-04
  25  norm          .10000E-03    11.013        .29722E-05** at limit **
  26  Normalizat    1.0756        .18705        .30026E-06    .23473E-04
  27  Prefactor     .62405        .21818       -.97239E-07    .31059E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98623
  Prefactor  = 0.0001
  norm       = 12.5552
  Prefactor  = 29.6461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.2423
  norm       = 4.70989
  norm       = 0.0001
  norm       = 11.4177
  Prefactor  = 0.0001
  Prefactor  = 14.4771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.0781
  norm       = 0.0001
  Normalizat = 1.07558
  Prefactor  = 0.624047
 **********
 **   18 **HESSE 
 **********

 FCN=   4053.068     FROM HESSE     STATUS=OK           482 CALLS     3775 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2858        16.443        .19576E-02   -1.5481    
   2  Prefactor     .10000E-03    11.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.1969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9862        2.6740        .95569E-04   -1.5362    
   6  Prefactor     .10000E-03    3.8057        .12104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.555        7.6624        .11302E-03   -1.4999    
   8  Prefactor     29.646        40.943        .73581E-04   -1.4618    
   9  Prefactor     .10000E-03    53.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6442        .10082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.242        16.967        .84931E-04   -1.4764    
  13  norm          4.7099        4.8623        .13051E-03   -1.5274    
  14  norm          .10000E-03    3.9968        .12394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.418        6.0870        .10991E-03   -1.5032    
  16  Prefactor     .10000E-03    2.1475        .90672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.477        21.322        .10527E-03   -1.4947    
  18  Prefactor     .10000E-03    41.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.9546        .27185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    76.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.0781        1.8289        .54945E-04   -1.5304    
  25  norm          .10000E-03    11.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0756        .21909        .20386E-03   -.90540    
  27  Prefactor     .62405        .25284        .30900E-03   -1.0658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67053e-09
Minuit parameter uncertainties:
  1  9.1989
  2  2.2384e-06
  3  3.76102e-06
  4  2.21783e-06
  5  2.67406
  6  1.0275e-06
  7  7.663
  8  40.982
  9  5.09951e-05
  10  3.40348e-05
  11  1.13902e-07
  12  16.9709
  13  4.86269
  14  7.67621e-06
  15  6.08737
  16  3.60796e-06
  17  21.3333
  18  9.54048e-05
  19  1.59487e-05
  20  1.77067e-05
  21  1.23054e-05
  22  4.75284e-06
  23  7.87231e-07
  24  1.82891
  25  2.59724e-05
  26  0.219275
  27  0.253304
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.224e+01  1.697e+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:  6.240e-01  2.533e-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.076e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.94
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.33e-08 +/- 1.78e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 1.95e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4052.84548617
delta logL = 0.222576797921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4052.82688535
delta logL = 0.241177619443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.598       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3229       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62691       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=   4052.827     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.591        18.209       -.52353E-05   -.37862E-03
   2  alpha         1.3227        .63426       -.56503E-04    .39542E-04
   3  Normalizat    1.0804        .18305        .11512E-06    .32160E-03
   4  Prefactor     .62683        .21812        .12569E-05    .17053E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.5915
  alpha      = 1.32267
  Normalizat = 1.08038
  Prefactor  = 0.62683
 **********
 **   18 **HESSE 
 **********

 FCN=   4052.827     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.591        17.937        .92872E-04   -1.4845    
   2  alpha         1.3227        .62362        .13935E-01   -.49035    
   3  Normalizat    1.0804        .21247        .20348E-03   -.90384    
   4  Prefactor     .62683        .25248        .30853E-03   -1.0647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04827e-10
Minuit parameter uncertainties:
  1  17.9425
  2  0.632246
  3  0.21264
  4  0.252941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279753': 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) = 4052.82688511
delta logL = 0.241177854388

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.859e+01  1.794e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.323e+00  6.322e-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:  6.268e-01  2.529e-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.080e+00  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.41
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.32 +/- 0.63
Photon Flux (Free Index): 1.31e-08 +/- 1.50e-08
Energy Flux (Free Index): 4.62e-05 +/- 5.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/279753/cmap_HighResolution_435283201_435542401_4FGL_J1309.4+4305_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.33e-08', energy_flux2='4.62e-05', photon_flux_error='1.78e-08', dlogl='2.41e-01', energy_flux='2.56e-05', photon_flux2='1.31e-08', job_status='DONE', time_completed='2021-09-07 01:11:50.990968', photon_index_error2='0.63', photon_index2='1.32', ts='9.94', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='5.69e-05', EG='1.08', time_epoch_completed='1631002310.99', return_code='0', job_id='279753', GAL2='0.63', EG2='1.08', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='1.50e-08', ts2='10.41', photon_index='1.77' WHERE bin_id='756' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:11:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 279753: <4FGL_J1309.4+4305_daily_bin756> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin756> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:27 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:00:59 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:00:59 2021
Terminated at Tue Sep  7 01:11:51 2021
Results reported at Tue Sep  7 01:11:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin756 197.363 43.085 435283201 435542401 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 :                                   593.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            684 sec.

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

