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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1294
RA = 197.363, Dec = 43.085
tmin = 574732801, tmax = 574992001
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='284051', job_status='RUN', time_executed='2021-09-07 01:11:16.810300', time_epoch_executed='1631002276.81' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284051

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284051/ft1_4FGL_J1309.4+4305_daily_bin1294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284051/ft2_4FGL_J1309.4+4305_daily_bin1294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284051/ft1_4FGL_J1309.4+4305_daily_bin1294.fits outfile=/scratch/kocevski/284051/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1294.fits ra=197.363 dec=43.085 rad=12.0 tmin=574732801.0 tmax=574992001.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 5.53
user 5.15
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284051/ft1_filtered_4FGL_J1309.4+4305_daily_bin1294.fits" evtable="EVENTS" scfile=/scratch/kocevski/284051/ft2_4FGL_J1309.4+4305_daily_bin1294.fits sctable="SC_DATA" outfile=/scratch/kocevski/284051/ltcube_574732801_574992001_4FGL_J1309.4+4305_daily_bin1294.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/284051/ft2_4FGL_J1309.4+4305_daily_bin1294.fits
.....................!
real 13.86
user 13.25
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284051/ft1_filtered_4FGL_J1309.4+4305_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/284051/ft2_4FGL_J1309.4+4305_daily_bin1294.fits sctable="SC_DATA" expcube=/scratch/kocevski/284051/ltcube_574732801_574992001_4FGL_J1309.4+4305_daily_bin1294.fits outfile=/scratch/kocevski/284051/expmap_574732801_574992001_4FGL_J1309.4+4305_daily_bin1294.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/284051/ltcube_574732801_574992001_4FGL_J1309.4+4305_daily_bin1294.fits
.....................!
real 192.76
user 186.03
sys 5.57

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/284051/ft1_filtered_4FGL_J1309.4+4305_daily_bin1294.fits scfile=/scratch/kocevski/284051/ft2_4FGL_J1309.4+4305_daily_bin1294.fits outfile=/scratch/kocevski/284051/cmap_574732801_574992001_4FGL_J1309.4+4305_daily_bin1294.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284051/ft1_filtered_4FGL_J1309.4+4305_daily_bin1294.fits scfile=/scratch/kocevski/284051/ft2_4FGL_J1309.4+4305_daily_bin1294.fits outfile=/scratch/kocevski/284051/cmap_HighResolution_574732801_574992001_4FGL_J1309.4+4305_daily_bin1294.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/284051/ft1_filtered_4FGL_J1309.4+4305_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/284051/ft2_4FGL_J1309.4+4305_daily_bin1294.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/284051/Model_4FGL_J1309.4+4305_daily_bin1294.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/284051/ft1_filtered_4FGL_J1309.4+4305_daily_bin1294.fits.....................!
real 50.13
user 48.36
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9093       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5534       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1686       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7704       1.0000         .10000E-03   10000.    
    11 'norm      '    .48348E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.9293       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0981       1.0000         .10000E-03   10000.    
    15 'norm      '    3.0127       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.255       1.0000         .10000E-03   10000.    
    19 'Prefactor '    86.592       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.110       1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    15.577       1.0000         .10000E-03   10000.    
    25 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99750       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99808       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=   5840.599     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     3346 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3677        .85423E-07** at limit **
   2  Prefactor     3.9092        14.562        .40797E-05    .25317E-03
   3  Prefactor     .10000E-03    41.252        .38016E-05** at limit **
   4  Prefactor     .10000E-03    6.3409       -.10979E-07** at limit **
   5  norm          3.5534        2.2755        .24227E-08   -.30308E-04
   6  Prefactor     3.1688        3.8386        .12527E-06    .20417E-03
   7  norm          .10000E-03    1.6048       -.78110E-08** at limit **
   8  Prefactor     42.571        41.998       -.80930E-06   -.44199E-04
   9  Prefactor     .10000E-03    26.842       -.17136E-05** at limit **
  10  Prefactor     4.7658        14.158        .24348E-06    .17680E-03
  11  norm          .10042E-03    6.9405       -.44861E-05** at limit **
  12  norm          5.9281        12.375        .18672E-05    .26977E-03
  13  norm          .10000E-03    1.9123       -.97995E-07** at limit **
  14  norm          2.0980        3.7460        .25160E-06    .19859E-03
  15  norm          3.0124        3.7917        .19110E-05    .13993E-02
  16  Prefactor     .10000E-03    1.2401       -.13850E-06** at limit **
  17  Prefactor     .10000E-03    5.1819       -.11357E-06** at limit **
  18  Prefactor     19.272        52.510       -.60414E-05   -.34287E-04
  19  Prefactor     86.584        61.298        .13753E-05    .10075E-03
  20  Prefactor     .10000E-03    57.282       -.24613E-05** at limit **
  21  Prefactor     58.108        55.474        .24496E-05    .79824E-04
  22  norm          .10000E-03    3.0679        .27777E-06** at limit **
  23  Prefactor     .10000E-03    123.14        .24906E-05** at limit **
  24  norm          15.577        2.8164        .17068E-07    .14146E-03
  25  norm          .10000E-03    12.881       -.68097E-07** at limit **
  26  Normalizat    .99735        .17053       -.68013E-06    .21940E-03
  27  Prefactor     .99829        .20973       -.37592E-07    .21266E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.90918
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.55338
  Prefactor  = 3.16877
  norm       = 0.0001
  Prefactor  = 42.5708
  Prefactor  = 0.0001
  Prefactor  = 4.76584
  norm       = 0.000100419
  norm       = 5.92806
  norm       = 0.0001
  norm       = 2.098
  norm       = 3.0124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2716
  Prefactor  = 86.5838
  Prefactor  = 0.000100001
  Prefactor  = 58.108
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5767
  norm       = 0.0001
  Normalizat = 0.997346
  Prefactor  = 0.998285
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.599     FROM HESSE     STATUS=OK           482 CALLS     3828 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3915        .13690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.9092        14.763        .10203E-02   -1.5313    
   3  Prefactor     .10000E-03    41.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.3440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5534        2.2753        .89301E-04   -1.5331    
   6  Prefactor     3.1688        3.8265        .15773E-03   -1.5352    
   7  norm          .10000E-03    1.6120        .94535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.571        42.052        .61445E-04   -1.4402    
   9  Prefactor     .10000E-03    27.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7658        13.936        .18421E-03   -1.5271    
  11  norm          .10042E-03    28.410        .23333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9281        12.444        .82456E-03   -1.5221    
  13  norm          .10000E-03    1.9424        .10293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0980        3.7139        .19210E-03   -1.5418    
  15  norm          3.0124        3.8948        .80375E-03   -1.5361    
  16  Prefactor     .10000E-03    1.2526        .83053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1931        .16990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.272        52.704        .91275E-04   -1.4830    
  19  Prefactor     86.584        61.402        .43174E-04   -1.3844    
  20  Prefactor     .10000E-03    58.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     58.108        55.502        .52628E-04   -1.4182    
  22  norm          .10000E-03    3.1308        .13071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    123.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          15.577        2.8183        .51784E-04   -1.4918    
  25  norm          .10000E-03    13.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99735        .19888        .22948E-03   -.93119    
  27  Prefactor     .99829        .24424        .29054E-03   -.92787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5685e-08
Minuit parameter uncertainties:
  1  5.9515e-06
  2  14.7772
  3  0.000368142
  4  6.92493e-07
  5  2.27536
  6  3.82682
  7  7.35645e-07
  8  42.0814
  9  0.00013765
  10  13.9458
  11  0.00690581
  12  12.4494
  13  6.13433e-06
  14  3.71428
  15  3.89512
  16  6.95075e-06
  17  1.42014e-05
  18  52.8319
  19  61.4475
  20  0.000484805
  21  55.5518
  22  3.27861e-05
  23  0.000359646
  24  2.81836
  25  1.07683e-05
  26  0.199025
  27  0.244514
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  5.928e+00  1.245e+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.983e-01  2.445e-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:  9.973e-01  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/284051/likelihoodResults_574732801_574992001_4FGL_J1309.4+4305_daily_bin1294.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) = 5840.5989724
delta logL = 5.58105875825e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5840.59896779
delta logL = 1.0195410141e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9107       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7743       1.0000          .0000       5.0000    
     3 'Normalizat'    .99733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99827       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5840.599     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      262 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9281        12.458        .82587E-03    .60222E-04
   2  alpha         1.7768        1.4859        .41362E-01   -.73640E-05
   3  Normalizat    .99727        .19083        .22949E-03   -.63410E-05
   4  Prefactor     .99833        .24291        .29053E-03   -.42653E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.9281
  alpha      = 1.77682
  Normalizat = 0.997268
  Prefactor  = 0.998333
 **********
 **   18 **HESSE 
 **********

 FCN=   5840.599     FROM HESSE     STATUS=OK            27 CALLS      289 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9281        12.407        .16517E-03   -1.5221    
   2  alpha         1.7768        1.4801        .16545E-02   -.29347    
   3  Normalizat    .99727        .19081        .91796E-05   -.93122    
   4  Prefactor     .99833        .24302        .11621E-04   -.92785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99569e-13
Minuit parameter uncertainties:
  1  12.412
  2  1.59577
  3  0.190936
  4  0.243286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284051': 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) = 5840.59896548
delta logL = 1.25033375298e-05

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  5.928e+00  1.241e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.777e+00  1.596e+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:  9.983e-01  2.433e-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:  9.973e-01  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/284051/cmap_HighResolution_574732801_574992001_4FGL_J1309.4+4305_daily_bin1294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-05', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-07 01:25:25.191261', job_id='284051', GAL2='1.00', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631003125.19', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.25e-05', ts2='0.30', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='1294' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:25:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 284051: <4FGL_J1309.4+4305_daily_bin1294> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin1294> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 01:10:45 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:10: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:10:59 2021
Terminated at Tue Sep  7 01:25:26 2021
Results reported at Tue Sep  7 01:25:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1294 197.363 43.085 574732801 574992001 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 :                                   836.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            881 sec.

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

