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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin476
RA = 197.363, Dec = 43.085
tmin = 362707201, tmax = 362966401
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='278162', job_status='RUN', time_executed='2021-09-07 00:57:35.783276', time_epoch_executed='1631001455.78' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278162

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278162/ft1_4FGL_J1309.4+4305_daily_bin476.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278162/ft2_4FGL_J1309.4+4305_daily_bin476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278162/ft1_4FGL_J1309.4+4305_daily_bin476.fits outfile=/scratch/kocevski/278162/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin476.fits ra=197.363 dec=43.085 rad=12.0 tmin=362707201.0 tmax=362966401.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.98
user 5.66
sys 0.25

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278162/ft1_filtered_4FGL_J1309.4+4305_daily_bin476.fits evtable="EVENTS" scfile=/scratch/kocevski/278162/ft2_4FGL_J1309.4+4305_daily_bin476.fits sctable="SC_DATA" expcube=/scratch/kocevski/278162/ltcube_362707201_362966401_4FGL_J1309.4+4305_daily_bin476.fits outfile=/scratch/kocevski/278162/expmap_362707201_362966401_4FGL_J1309.4+4305_daily_bin476.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/278162/ltcube_362707201_362966401_4FGL_J1309.4+4305_daily_bin476.fits
.....................!
real 189.96
user 185.58
sys 3.69

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/278162/ft1_filtered_4FGL_J1309.4+4305_daily_bin476.fits scfile=/scratch/kocevski/278162/ft2_4FGL_J1309.4+4305_daily_bin476.fits outfile=/scratch/kocevski/278162/cmap_362707201_362966401_4FGL_J1309.4+4305_daily_bin476.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.59
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278162/ft1_filtered_4FGL_J1309.4+4305_daily_bin476.fits scfile=/scratch/kocevski/278162/ft2_4FGL_J1309.4+4305_daily_bin476.fits outfile=/scratch/kocevski/278162/cmap_HighResolution_362707201_362966401_4FGL_J1309.4+4305_daily_bin476.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.61
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10846E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.806       1.0000         .10000E-03   10000.    
     5 'norm      '    4.1324       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .30468E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5271       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11046E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7480       1.0000         .10000E-03   10000.    
    12 'norm      '    14.554       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5846       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9030       1.0000         .10000E-03   10000.    
    15 'norm      '    .16410E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.903       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15715E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4652       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25220E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    13.133       1.0000         .10000E-03   10000.    
    25 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98292       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0480       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=   5922.251     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3322 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5734       -.59158E-08** at limit **
   2  Prefactor     .10000E-03    9.3971        .78112E-06** at limit **
   3  Prefactor     .10000E-03    15.627        .17233E-07** at limit **
   4  Prefactor     19.812        25.136        .76265E-06    .19359E-04
   5  norm          4.1331        2.1546        .65369E-07   -.41882E-04
   6  Prefactor     .10000E-03    9.0447       -.43617E-06** at limit **
   7  norm          .10000E-03    3.2503       -.59979E-07** at limit **
   8  Prefactor     .10000E-03    14.305        .91231E-06** at limit **
   9  Prefactor     5.5724        47.111       -.10285E-05    .39888E-04
  10  Prefactor     .10000E-03    17.394       -.14026E-06** at limit **
  11  norm          2.7382        7.0590        .50162E-05   -.51040E-04
  12  norm          14.563        10.562       -.24484E-08   -.25384E-04
  13  norm          4.5822        7.6567       -.72308E-06    .25394E-04
  14  norm          1.8984        17.140        .14259E-05   -.33806E-04
  15  norm          .10000E-03    2.0917        .72533E-06** at limit **
  16  Prefactor     .10000E-03    1.4741       -.96415E-07** at limit **
  17  Prefactor     19.942        17.705        .18776E-05    .84989E-06
  18  Prefactor     .10000E-03    19.683       -.70045E-08** at limit **
  19  Prefactor     .10000E-03    33.704        .76086E-06** at limit **
  20  Prefactor     .10000E-03    3.8409        .11331E-07** at limit **
  21  Prefactor     3.4240        58.618       -.37124E-06   -.20928E-04
  22  norm          .10000E-03    1.0523        .10103E-07** at limit **
  23  Prefactor     .10001E-03    816.82        .62682E-04** at limit **
  24  norm          13.137        2.5597        .25172E-07   -.58149E-03
  25  norm          .10000E-03    10.956       -.42521E-06** at limit **
  26  Normalizat    .98266        .17007       -.16043E-05   -.41063E-03
  27  Prefactor     1.0484        .20967       -.38247E-06   -.33263E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8124
  norm       = 4.1331
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.57239
  Prefactor  = 0.0001
  norm       = 2.73817
  norm       = 14.5634
  norm       = 4.58219
  norm       = 1.8984
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 19.9416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42405
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 13.1375
  norm       = 0.0001
  Normalizat = 0.982663
  Prefactor  = 1.04843
 **********
 **   18 **HESSE 
 **********

 FCN=   5922.251     FROM HESSE     STATUS=OK           482 CALLS     3804 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5752        .94271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.4317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.812        25.085        .89998E-04   -1.4817    
   5  norm          4.1331        2.1541        .79181E-04   -1.5301    
   6  Prefactor     .10000E-03    9.1999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    16.161        .24815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5724        41.732        .17090E-03   -1.5236    
  10  Prefactor     .10000E-03    17.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7382        7.0807        .12279E-02   -1.5377    
  12  norm          14.563        10.563        .10499E-03   -1.4945    
  13  norm          4.5822        8.0303        .13275E-03   -1.5280    
  14  norm          1.8984        18.882        .30145E-03   -1.5432    
  15  norm          .10000E-03    11.027        .21186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4841        .91185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.942        17.715        .89778E-04   -1.4815    
  18  Prefactor     .10000E-03    19.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8436        .14730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4240        57.988        .21724E-03   -1.5338    
  22  norm          .10000E-03    1.0567        .77082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    818.16        .40018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.137        2.5598        .51271E-04   -1.4983    
  25  norm          .10000E-03    11.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .98266        .20422        .23450E-03   -.93614    
  27  Prefactor     1.0484        .25190        .28572E-03   -.91132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38945e-10
Minuit parameter uncertainties:
  1  7.93886e-07
  2  1.7252e-05
  3  1.81278e-05
  4  25.0982
  5  2.15417
  6  4.74885e-05
  7  8.37741e-05
  8  1.81533e-05
  9  30.5284
  10  5.24952e-05
  11  7.08287
  12  10.5645
  13  8.03223
  14  11.9787
  15  0.000416627
  16  1.32326e-05
  17  17.7192
  18  2.22894e-05
  19  3.6024e-05
  20  2.23514e-06
  21  28.2135
  22  1.2942e-06
  23  0.00443465
  24  2.55977
  25  5.15914e-06
  26  0.204378
  27  0.252189
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.456e+01  1.056e+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:  1.048e+00  2.522e-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.827e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.56
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.53e-08 +/- 1.11e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.22e-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) = 5922.20783408
delta logL = 0.0426811843017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5922.2070291
delta logL = 0.0434861632839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.955       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5938       1.0000          .0000       5.0000    
     3 'Normalizat'    .98455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0476       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=   5922.207     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      233 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.958        10.889        .10357E-03   -.16443E-03
   2  alpha         1.5937        .57577        .16023E-01   -.30910E-04
   3  Normalizat    .98491        .19886        .23425E-03   -.85558E-03
   4  Prefactor     1.0474        .25030        .28584E-03   -.61685E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.9576
  alpha      = 1.59367
  Normalizat = 0.98491
  Prefactor  = 1.04737
 **********
 **   18 **HESSE 
 **********

 FCN=   5922.207     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.958        10.883        .41428E-05   -1.4934    
   2  alpha         1.5937        .57550        .64091E-03   -.37098    
   3  Normalizat    .98491        .19905        .46851E-04   -.93538    
   4  Prefactor     1.0474        .25054        .57168E-04   -.91167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62704e-10
Minuit parameter uncertainties:
  1  10.8843
  2  0.581523
  3  0.199195
  4  0.250816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278162': 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) = 5922.20702669
delta logL = 0.0434885719906

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.496e+01  1.088e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.594e+00  5.815e-01  0.000e+00  5.000e+00 ( 1.000e+00)
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.047e+00  2.508e-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.849e-01  1.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.64
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.59 +/- 0.58
Photon Flux (Free Index): 1.29e-08 +/- 1.19e-08
Energy Flux (Free Index): 2.19e-05 +/- 2.61e-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/278162/cmap_HighResolution_362707201_362966401_4FGL_J1309.4+4305_daily_bin476.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-08', energy_flux2='2.19e-05', photon_flux_error='1.11e-08', dlogl='4.35e-02', energy_flux='1.68e-05', photon_flux2='1.29e-08', job_status='DONE', time_completed='2021-09-07 01:09:52.456489', photon_index_error2='0.58', photon_index2='1.59', ts='9.56', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='0.98', time_epoch_completed='1631002192.46', return_code='0', job_id='278162', GAL2='1.05', EG2='0.98', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='1.19e-08', ts2='9.64', photon_index='1.77' WHERE bin_id='476' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:09:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 278162: <4FGL_J1309.4+4305_daily_bin476> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin476> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:21 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:55: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 00:55:23 2021
Terminated at Tue Sep  7 01:09:53 2021
Results reported at Tue Sep  7 01:09:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin476 197.363 43.085 362707201 362966401 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 :                                   724.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

