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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1170
RA = 197.363, Dec = 43.085
tmin = 542592001, tmax = 542851201
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='283244', job_status='RUN', time_executed='2021-09-07 01:09:25.025230', time_epoch_executed='1631002165.03' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283244/ft1_4FGL_J1309.4+4305_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283244/ft2_4FGL_J1309.4+4305_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283244/ft1_4FGL_J1309.4+4305_daily_bin1170.fits outfile=/scratch/kocevski/283244/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1170.fits ra=197.363 dec=43.085 rad=12.0 tmin=542592001.0 tmax=542851201.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.98
user 6.54
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/283244/ft2_4FGL_J1309.4+4305_daily_bin1170.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/283244/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1170.fits evtable="EVENTS" outfile="/scratch/kocevski/283244/ft1_filtered_4FGL_J1309.4+4305_daily_bin1170.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283244/ft1_filtered_4FGL_J1309.4+4305_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/283244/ft2_4FGL_J1309.4+4305_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/283244/ltcube_542592001_542851201_4FGL_J1309.4+4305_daily_bin1170.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/283244/ft2_4FGL_J1309.4+4305_daily_bin1170.fits
.....................!
real 17.42
user 17.05
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283244/ft1_filtered_4FGL_J1309.4+4305_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/283244/ft2_4FGL_J1309.4+4305_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/283244/ltcube_542592001_542851201_4FGL_J1309.4+4305_daily_bin1170.fits outfile=/scratch/kocevski/283244/expmap_542592001_542851201_4FGL_J1309.4+4305_daily_bin1170.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/283244/ltcube_542592001_542851201_4FGL_J1309.4+4305_daily_bin1170.fits
.....................!
real 192.65
user 187.35
sys 4.37

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/283244/ft1_filtered_4FGL_J1309.4+4305_daily_bin1170.fits scfile=/scratch/kocevski/283244/ft2_4FGL_J1309.4+4305_daily_bin1170.fits outfile=/scratch/kocevski/283244/cmap_542592001_542851201_4FGL_J1309.4+4305_daily_bin1170.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283244/ft1_filtered_4FGL_J1309.4+4305_daily_bin1170.fits scfile=/scratch/kocevski/283244/ft2_4FGL_J1309.4+4305_daily_bin1170.fits outfile=/scratch/kocevski/283244/cmap_HighResolution_542592001_542851201_4FGL_J1309.4+4305_daily_bin1170.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.622       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .27483E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.7842       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15114E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.846       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9967       1.0000         .10000E-03   10000.    
    12 'norm      '    74.200       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9366       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5345       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.458       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .59711E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.8768       1.0000         .10000E-03   10000.    
    25 'norm      '    1.7268       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6330       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .64480       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=   2283.780     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3274 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.3139       -.75658E-07** at limit **
   2  Prefactor     .10000E-03    18.501        .64860E-05** at limit **
   3  Prefactor     13.627        50.993        .94809E-05    .12496E-04
   4  Prefactor     .10000E-03    23.007        .33582E-05** at limit **
   5  norm          .10000E-03    5.3146       -.56072E-06** at limit **
   6  Prefactor     .10000E-03    5.5340        .41879E-07** at limit **
   7  norm          6.7848        7.5154       -.17183E-06   -.82768E-04
   8  Prefactor     .10000E-03    115.19       -.12462E-04** at limit **
   9  Prefactor     .10000E-03    13.975        .16207E-05** at limit **
  10  Prefactor     45.841        35.939       -.14846E-05   -.18260E-04
  11  norm          3.9966        6.7617       -.13980E-06   -.72818E-04
  12  norm          74.185        45.281       -.88518E-05    .11264E-04
  13  norm          .10000E-03    2.0671        .53998E-07** at limit **
  14  norm          .10000E-03    3.3784        .14742E-07** at limit **
  15  norm          2.9356        7.1632       -.33813E-05   -.11011E-03
  16  Prefactor     .10000E-03    2.9334        .74204E-07** at limit **
  17  Prefactor     5.5398        22.034        .72444E-06   -.32959E-04
  18  Prefactor     23.494        80.376        .63433E-04    .16320E-03
  19  Prefactor     .10000E-03    40.428       -.15915E-04** at limit **
  20  Prefactor     .10000E-03    16.780       -.80107E-05** at limit **
  21  Prefactor     .10000E-03    48.834        .34299E-04** at limit **
  22  norm          .10002E-03    8.6787       -.61631E-05** at limit **
  23  Prefactor     .10000E-03    40.652       -.14428E-04** at limit **
  24  norm          7.8772        3.5385       -.33514E-06    .12166E-03
  25  norm          1.7314        75.804       -.15247E-06   -.58975E-04
  26  Normalizat    1.6328        .33800       -.48481E-05    .60907E-03
  27  Prefactor     .64504        .38546        .40777E-05    .18179E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.627
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.78477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.8413
  norm       = 3.99664
  norm       = 74.1853
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.93556
  Prefactor  = 0.0001
  Prefactor  = 5.53979
  Prefactor  = 23.4943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100015
  Prefactor  = 0.0001
  norm       = 7.87718
  norm       = 1.73135
  Normalizat = 1.63277
  Prefactor  = 0.645035
 **********
 **   18 **HESSE 
 **********

 FCN=   2283.780     FROM HESSE     STATUS=OK           482 CALLS     3756 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.3483        .14245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.627        51.212        .10853E-03   -1.4970    
   4  Prefactor     .10000E-03    23.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    22.905        .21085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.5387        .10978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.7848        7.5096        .13379E-03   -1.5187    
   8  Prefactor     .10000E-03    115.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.979        .17451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.841        36.033        .59215E-04   -1.4353    
  11  norm          3.9966        6.7483        .15470E-03   -1.5308    
  12  norm          74.185        45.282        .23305E-03   -1.3983    
  13  norm          .10000E-03    2.0688        .67087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.3788        .85792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9356        7.1434        .18836E-03   -1.5365    
  16  Prefactor     .10000E-03    2.9420        .79655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.5398        22.093        .17078E-03   -1.5237    
  18  Prefactor     23.494        80.394        .82704E-04   -1.4738    
  19  Prefactor     .10000E-03    40.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    47.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10002E-03    34.485        .26355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    40.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.8772        3.5460        .57461E-04   -1.5147    
  25  norm          1.7314        76.764        .31954E-03   -1.5445    
  26  Normalizat    1.6328        .39596        .22068E-03   -.74113    
  27  Prefactor     .64504        .44082        .40363E-03   -1.0572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87072e-09
Minuit parameter uncertainties:
  1  5.94732e-06
  2  2.24852e-05
  3  51.3779
  4  2.09847e-05
  5  0.000398241
  6  1.3602e-05
  7  7.51065
  8  0.000364292
  9  1.23034e-05
  10  36.0498
  11  6.74958
  12  45.3028
  13  2.44562e-06
  14  1.11086e-06
  15  7.14548
  16  8.73832e-06
  17  22.1261
  18  80.7684
  19  1.66472e-05
  20  7.40369e-05
  21  0.000636634
  22  0.00145643
  23  1.627e-05
  24  3.54614
  25  23.0878
  26  0.396726
  27  0.443222
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.419e+01  4.530e+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.450e-01  4.432e-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.633e+00  3.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.93
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 7.77e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 8.54e-05 +/- 5.21e-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) = 2283.77264967
delta logL = 0.00733228161971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2283.77230061
delta logL = 0.00768134813461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    74.185       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6987       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64333       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=   2283.772     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      202 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          73.788        69.684        .11654E-02    .33607E-04
   2  alpha         1.6977        .74669        .24965        .57426E-04
   3  Normalizat    1.6387        .32044        .49862E-01    .14321E-04
   4  Prefactor     .64355        .38323        .91231E-01    .16037E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 73.7879
  alpha      = 1.69769
  Normalizat = 1.63867
  Prefactor  = 0.643553
 **********
 **   18 **HESSE 
 **********

 FCN=   2283.772     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          73.788        46.446        .46615E-04   -1.3988    
   2  alpha         1.6977        .57315        .95645E-02   -.32671    
   3  Normalizat    1.6387        .36077        .22042E-03   -.73953    
   4  Prefactor     .64355        .43357        .40424E-03   -1.0578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74512e-10
Minuit parameter uncertainties:
  1  46.4687
  2  0.578902
  3  0.361349
  4  0.435854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283244': 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) = 2283.77226419
delta logL = 0.00771776791225

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  7.379e+01  4.647e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.698e+00  5.789e-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.436e-01  4.359e-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.639e+00  3.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.91
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.70 +/- 0.58
Photon Flux (Free Index): 7.10e-08 +/- 6.90e-08
Energy Flux (Free Index): 9.26e-05 +/- 8.58e-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/283244/cmap_HighResolution_542592001_542851201_4FGL_J1309.4+4305_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.77e-08', energy_flux2='9.26e-05', photon_flux_error='4.75e-08', dlogl='7.72e-03', energy_flux='8.54e-05', photon_flux2='7.10e-08', job_status='DONE', time_completed='2021-09-07 01:18:39.408648', photon_index_error2='0.58', photon_index2='1.70', ts='10.93', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='8.58e-05', EG='1.63', time_epoch_completed='1631002719.41', return_code='0', job_id='283244', GAL2='0.64', EG2='1.64', return_code2='0', energy_flux_error='5.21e-05', photon_flux_error2='6.90e-08', ts2='10.91', photon_index='1.77' WHERE bin_id='1170' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:18:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 283244: <4FGL_J1309.4+4305_daily_bin1170> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin1170> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 01:07:55 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:08:48 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:08:48 2021
Terminated at Tue Sep  7 01:18:40 2021
Results reported at Tue Sep  7 01:18:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1170 197.363 43.085 542592001 542851201 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 :                                   505.30 sec.
    Max Memory :                                 1173 MB
    Average Memory :                             285.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            645 sec.

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

