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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1397
RA = 197.363, Dec = 43.085
tmin = 601430401, tmax = 601689601
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='284202', job_status='RUN', time_executed='2021-09-07 01:11:46.465122', time_epoch_executed='1631002306.47' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284202/ft1_4FGL_J1309.4+4305_daily_bin1397.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284202/ft2_4FGL_J1309.4+4305_daily_bin1397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284202/ft1_4FGL_J1309.4+4305_daily_bin1397.fits outfile=/scratch/kocevski/284202/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1397.fits ra=197.363 dec=43.085 rad=12.0 tmin=601430401.0 tmax=601689601.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 3.74
user 3.41
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/284202/ft2_4FGL_J1309.4+4305_daily_bin1397.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/284202/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1397.fits evtable="EVENTS" outfile="/scratch/kocevski/284202/ft1_filtered_4FGL_J1309.4+4305_daily_bin1397.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.57
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284202/ft1_filtered_4FGL_J1309.4+4305_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/284202/ft2_4FGL_J1309.4+4305_daily_bin1397.fits sctable="SC_DATA" expcube=/scratch/kocevski/284202/ltcube_601430401_601689601_4FGL_J1309.4+4305_daily_bin1397.fits outfile=/scratch/kocevski/284202/expmap_601430401_601689601_4FGL_J1309.4+4305_daily_bin1397.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/284202/ltcube_601430401_601689601_4FGL_J1309.4+4305_daily_bin1397.fits
.....................!
real 194.87
user 187.73
sys 5.10

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/284202/ft1_filtered_4FGL_J1309.4+4305_daily_bin1397.fits scfile=/scratch/kocevski/284202/ft2_4FGL_J1309.4+4305_daily_bin1397.fits outfile=/scratch/kocevski/284202/cmap_601430401_601689601_4FGL_J1309.4+4305_daily_bin1397.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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284202/ft1_filtered_4FGL_J1309.4+4305_daily_bin1397.fits scfile=/scratch/kocevski/284202/ft2_4FGL_J1309.4+4305_daily_bin1397.fits outfile=/scratch/kocevski/284202/cmap_HighResolution_601430401_601689601_4FGL_J1309.4+4305_daily_bin1397.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.57
user 0.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25839       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.119       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5148       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4308       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7777       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9279       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.7075       1.0000         .10000E-03   10000.    
    12 'norm      '    8.4404       1.0000         .10000E-03   10000.    
    13 'norm      '    23.920       1.0000         .10000E-03   10000.    
    14 'norm      '    9.3060       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9458       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.2518       1.0000         .10000E-03   10000.    
    25 'norm      '    .16913       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2027       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92331       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=   6925.949     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     2829 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25512        4.7610       -.13715E-05   -.32009E-04
   2  Prefactor     .10000E-03    10.468        .61628E-05** at limit **
   3  Prefactor     .10000E-03    16.145        .56042E-05** at limit **
   4  Prefactor     16.120        16.052        .56932E-07    .22962E-04
   5  norm          1.5147        1.4237       -.13101E-07    .40647E-04
   6  Prefactor     1.4304        3.3432       -.51503E-06   -.59168E-03
   7  norm          1.7782        4.0431       -.11980E-05   -.80515E-03
   8  Prefactor     .10000E-03    19.250       -.79528E-05** at limit **
   9  Prefactor     9.9281        16.358       -.99442E-06   -.43873E-03
  10  Prefactor     .10000E-03    10.718       -.70265E-05** at limit **
  11  norm          8.7085        5.4613        .30383E-06    .10254E-03
  12  norm          8.4403        8.1291        .17426E-07    .42085E-04
  13  norm          23.920        8.4925        .41427E-06    .90381E-04
  14  norm          9.3067        13.293        .18695E-07   -.55400E-04
  15  norm          .10000E-03    2.8754        .33367E-07** at limit **
  16  Prefactor     .10000E-03    .70070       -.94744E-07** at limit **
  17  Prefactor     .10000E-03    3.8624        .98529E-07** at limit **
  18  Prefactor     .10000E-03    14.471       -.51913E-05** at limit **
  19  Prefactor     .10000E-03    15.363        .28176E-05** at limit **
  20  Prefactor     .10000E-03    46.367        .98816E-05** at limit **
  21  Prefactor     .10000E-03    15.447        .33757E-05** at limit **
  22  norm          1.9456        3.1039       -.55250E-06   -.10186E-02
  23  Prefactor     .10000E-03    64.567       -.10302E-04** at limit **
  24  norm          6.2519        1.7536       -.18637E-07    .51086E-04
  25  norm          .16923        7.9062       -.69894E-06   -.21878E-05
  26  Normalizat    1.2027        .15847        .47137E-07    .12834E-03
  27  Prefactor     .92331        .19812        .46556E-06    .63477E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.255124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1199
  norm       = 1.51473
  Prefactor  = 1.43037
  norm       = 1.77818
  Prefactor  = 0.0001
  Prefactor  = 9.92814
  Prefactor  = 0.0001
  norm       = 8.70851
  norm       = 8.44035
  norm       = 23.9203
  norm       = 9.30671
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9456
  Prefactor  = 0.0001
  norm       = 6.25188
  norm       = 0.169226
  Normalizat = 1.20273
  Prefactor  = 0.923312
 **********
 **   18 **HESSE 
 **********

 FCN=   6925.949     FROM HESSE     STATUS=OK           498 CALLS     3327 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25512        27.034        .34880E-02   -1.5607    
   2  Prefactor     .10000E-03    10.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.120        16.044        .99758E-04   -1.4905    
   5  norm          1.5147        1.4324        .93635E-04   -1.5462    
   6  Prefactor     1.4304        3.3092        .22659E-03   -1.5469    
   7  norm          1.7782        4.0650        .24145E-03   -1.5441    
   8  Prefactor     .10000E-03    19.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9281        16.427        .63588E-03   -1.5078    
  10  Prefactor     .10000E-03    10.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.7085        5.4581        .13584E-03   -1.5118    
  12  norm          8.4403        8.1310        .13798E-03   -1.5127    
  13  norm          23.920        8.6050        .81902E-04   -1.4729    
  14  norm          9.3067        13.437        .13137E-03   -1.5098    
  15  norm          .10000E-03    2.9981        .27543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .70266        .68016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8661        .15972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    47.262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9456        3.1143        .18003E-03   -1.5429    
  23  Prefactor     .10000E-03    64.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.2519        1.7552        .56023E-04   -1.5208    
  25  norm          .16923        10.778        .76907E-01   -1.5626    
  26  Normalizat    1.2027        .19041        .22204E-03   -.86518    
  27  Prefactor     .92331        .23803        .31341E-03   -.95331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18217e-08
Minuit parameter uncertainties:
  1  5.25382
  2  4.84069e-06
  3  1.56768e-05
  4  16.0478
  5  1.4324
  6  3.30964
  7  4.06566
  8  8.63669e-08
  9  16.4344
  10  1.2023e-05
  11  5.45845
  12  8.13207
  13  8.60546
  14  13.4415
  15  1.96097e-06
  16  6.92934e-07
  17  2.79769e-06
  18  4.0005e-07
  19  2.60801e-06
  20  2.03503e-05
  21  1.1515e-06
  22  3.11458
  23  1.5763e-05
  24  1.75525
  25  2.70073
  26  0.190518
  27  0.238304
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.440e+00  8.132e+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

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  9.233e-01  2.383e-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.203e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.61
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 8.84e-09 +/- 8.52e-09
Energy Flux (Fixed Index): 9.71e-06 +/- 9.36e-06

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) = 6925.94810698
delta logL = 0.000935103664233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6925.94809683
delta logL = 0.000945253535974

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4602       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7326       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92326       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=   6925.948     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      272 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4678        8.2302        .68911E-03    .96511E-04
   2  alpha         1.7336        .79719        .20940E-01    .43999E-05
   3  Normalizat    1.2030        .18758        .22202E-03   -.10123E-03
   4  Prefactor     .92326        .23610        .31342E-03   -.58218E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.46776
  alpha      = 1.73361
  Normalizat = 1.20301
  Prefactor  = 0.923258
 **********
 **   18 **HESSE 
 **********

 FCN=   6925.948     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4678        8.2049        .27564E-04   -1.5126    
   2  alpha         1.7336        .79520        .83758E-03   -.31157    
   3  Normalizat    1.2030        .18775        .44403E-04   -.86510    
   4  Prefactor     .92326        .23632        .12537E-04   -.95333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70166e-11
Minuit parameter uncertainties:
  1  8.206
  2  0.8108
  3  0.187854
  4  0.236587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284202': 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) = 6925.94809562
delta logL = 0.00094646670459

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.468e+00  8.206e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.734e+00  8.108e-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:  9.233e-01  2.366e-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.203e+00  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.61
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.73 +/- 0.81
Photon Flux (Free Index): 8.50e-09 +/- 1.14e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/284202/cmap_HighResolution_601430401_601689601_4FGL_J1309.4+4305_daily_bin1397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.84e-09', energy_flux2='1.02e-05', photon_flux_error='8.52e-09', dlogl='9.46e-04', energy_flux='9.71e-06', photon_flux2='8.50e-09', job_status='DONE', time_completed='2021-09-07 01:24:24.555891', photon_index_error2='0.81', photon_index2='1.73', ts='4.61', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='1.20', time_epoch_completed='1631003064.56', return_code='0', job_id='284202', GAL2='0.92', EG2='1.20', return_code2='0', energy_flux_error='9.36e-06', photon_flux_error2='1.14e-08', ts2='4.61', photon_index='1.77' WHERE bin_id='1397' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:24:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 284202: <4FGL_J1309.4+4305_daily_bin1397> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1397 197.363 43.085 601430401 601689601 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 :                                   752.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             331.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            810 sec.

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

