/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 149 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 = 7436
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin204
RA = 197.363, Dec = 43.085
tmin = 292204801, tmax = 292464001
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='275450', job_status='RUN', time_executed='2021-09-07 00:50:27.686764', time_epoch_executed='1631001027.69' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275450

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275450/ft1_4FGL_J1309.4+4305_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275450/ft2_4FGL_J1309.4+4305_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275450/ft1_4FGL_J1309.4+4305_daily_bin204.fits outfile=/scratch/kocevski/275450/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin204.fits ra=197.363 dec=43.085 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.64
user 9.20
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275450/ft2_4FGL_J1309.4+4305_daily_bin204.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/275450/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin204.fits evtable="EVENTS" outfile="/scratch/kocevski/275450/ft1_filtered_4FGL_J1309.4+4305_daily_bin204.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.56
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275450/ft1_filtered_4FGL_J1309.4+4305_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/275450/ft2_4FGL_J1309.4+4305_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/275450/ltcube_292204801_292464001_4FGL_J1309.4+4305_daily_bin204.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/275450/ft2_4FGL_J1309.4+4305_daily_bin204.fits
.....................!
real 13.08
user 12.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275450/ft1_filtered_4FGL_J1309.4+4305_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/275450/ft2_4FGL_J1309.4+4305_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/275450/ltcube_292204801_292464001_4FGL_J1309.4+4305_daily_bin204.fits outfile=/scratch/kocevski/275450/expmap_292204801_292464001_4FGL_J1309.4+4305_daily_bin204.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/275450/ltcube_292204801_292464001_4FGL_J1309.4+4305_daily_bin204.fits
.....................!
real 192.95
user 188.18
sys 4.23

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/275450/ft1_filtered_4FGL_J1309.4+4305_daily_bin204.fits scfile=/scratch/kocevski/275450/ft2_4FGL_J1309.4+4305_daily_bin204.fits outfile=/scratch/kocevski/275450/cmap_292204801_292464001_4FGL_J1309.4+4305_daily_bin204.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275450/ft1_filtered_4FGL_J1309.4+4305_daily_bin204.fits scfile=/scratch/kocevski/275450/ft2_4FGL_J1309.4+4305_daily_bin204.fits outfile=/scratch/kocevski/275450/cmap_HighResolution_292204801_292464001_4FGL_J1309.4+4305_daily_bin204.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29800       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.590       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.479       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1926       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5202       1.0000         .10000E-03   10000.    
     7 'norm      '    13.545       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8454       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18845       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9079       1.0000         .10000E-03   10000.    
    12 'norm      '    8.3918       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1035       1.0000         .10000E-03   10000.    
    14 'norm      '    .91917E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.6138       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3489       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.744       1.0000         .10000E-03   10000.    
    19 'Prefactor '    82.651       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1148       1.0000         .10000E-03   10000.    
    22 'norm      '    3.7216       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11685E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    18.822       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1421       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84277       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=   4972.303     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3392 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31470        8.1982        .18179E-05    .24969E-03
   2  Prefactor     .10000E-03    5.5950       -.10838E-07** at limit **
   3  Prefactor     17.625        25.337       -.20380E-06    .31441E-05
   4  Prefactor     32.477        24.280        .77081E-07    .78626E-05
   5  norm          2.1925        2.3322        .24757E-07   -.21524E-04
   6  Prefactor     5.5203        5.6742       -.11145E-07    .25107E-04
   7  norm          13.541        9.3997       -.29587E-06   -.73974E-04
   8  Prefactor     .10000E-03    17.022       -.64295E-08** at limit **
   9  Prefactor     7.8880        56.728        .36199E-05    .18566E-04
  10  Prefactor     .19278        13.798        .16241E-05   -.10237E-03
  11  norm          1.9074        4.2042        .60932E-07   -.30112E-04
  12  norm          8.3919        8.4229       -.88575E-08   -.22326E-05
  13  norm          4.0938        6.9849       -.74331E-06   -.21330E-03
  14  norm          .10001E-03    31.876       -.44052E-05** at limit **
  15  norm          9.6152        5.9585       -.31326E-08   -.78967E-04
  16  Prefactor     .10000E-03    2.0078       -.38918E-06** at limit **
  17  Prefactor     5.3503        18.628       -.10211E-05   -.26179E-04
  18  Prefactor     13.620        63.356       -.67464E-06   -.48508E-04
  19  Prefactor     82.700        86.749        .97844E-06   -.11794E-04
  20  Prefactor     .10000E-03    6.7188       -.19447E-06** at limit **
  21  Prefactor     4.3249        189.83       -.33957E-05   -.28999E-04
  22  norm          3.7208        4.0531       -.46891E-07   -.87800E-04
  23  Prefactor     .10000E-03    115.20        .57384E-06** at limit **
  24  norm          .10000E-03    .47971       -.25570E-07** at limit **
  25  norm          18.816        17.914       -.15528E-06   -.44058E-04
  26  Normalizat    1.1420        .22209        .37777E-05   -.12988E-03
  27  Prefactor     .84271        .26187       -.54122E-05   -.48515E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.314697
  Prefactor  = 0.0001
  Prefactor  = 17.6248
  Prefactor  = 32.4769
  norm       = 2.1925
  Prefactor  = 5.5203
  norm       = 13.5406
  Prefactor  = 0.0001
  Prefactor  = 7.88797
  Prefactor  = 0.192784
  norm       = 1.90739
  norm       = 8.39193
  norm       = 4.09375
  norm       = 0.000100011
  norm       = 9.61517
  Prefactor  = 0.0001
  Prefactor  = 5.35032
  Prefactor  = 13.62
  Prefactor  = 82.6995
  Prefactor  = 0.0001
  Prefactor  = 4.32495
  norm       = 3.72083
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 18.8157
  Normalizat = 1.14204
  Prefactor  = 0.842714
 **********
 **   18 **HESSE 
 **********

 FCN=   4972.303     FROM HESSE     STATUS=OK           510 CALLS     3902 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31470        16.315        .25384E-02   -1.5596    
   2  Prefactor     .10000E-03    5.5976        .16289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.625        25.310        .95497E-04   -1.4868    
   4  Prefactor     32.477        24.272        .70310E-04   -1.4568    
   5  norm          2.1925        2.3216        .10686E-03   -1.5412    
   6  Prefactor     5.5203        5.6769        .16210E-03   -1.5238    
   7  norm          13.541        9.3768        .10883E-03   -1.4972    
   8  Prefactor     .10000E-03    17.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8880        57.164        .14316E-03   -1.5146    
  10  Prefactor     .19278        14.999        .77094E-01   -1.5620    
  11  norm          1.9074        4.1692        .20311E-03   -1.5432    
  12  norm          8.3919        8.4263        .13839E-03   -1.5129    
  13  norm          4.0938        5.9887        .17584E-03   -1.5303    
  14  norm          .10001E-03    42.523        .35073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.6152        5.9510        .12453E-03   -1.5088    
  16  Prefactor     .10000E-03    2.0215        .97349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3503        18.345        .17377E-03   -1.5245    
  18  Prefactor     13.620        63.723        .10804E-03   -1.4970    
  19  Prefactor     82.700        86.460        .22091E-03   -1.3887    
  20  Prefactor     .10000E-03    6.7284        .17852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.3249        187.08        .19873E-03   -1.5292    
  22  norm          3.7208        4.0417        .14090E-03   -1.5322    
  23  Prefactor     .10000E-03    115.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .48407        .47646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          18.816        17.913        .92318E-04   -1.4840    
  26  Normalizat    1.1420        .22363        .21944E-03   -.88413    
  27  Prefactor     .84271        .26329        .30980E-03   -.98173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1709e-09
Minuit parameter uncertainties:
  1  4.53238
  2  8.06135e-07
  3  25.3253
  4  24.2794
  5  2.32169
  6  5.67741
  7  9.37784
  8  5.9608e-06
  9  42.5263
  10  3.40089
  11  4.16982
  12  8.42746
  13  5.98957
  14  0.00134046
  15  5.95135
  16  1.68497e-05
  17  18.364
  18  59.0234
  19  86.5917
  20  1.45361e-05
  21  57.08
  22  4.04201
  23  0.000602427
  24  3.8946e-06
  25  17.9185
  26  0.223815
  27  0.26369
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  8.392e+00  8.427e+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:  8.427e-01  2.637e-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.142e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.83
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 8.79e-09 +/- 8.83e-09
Energy Flux (Fixed Index): 9.66e-06 +/- 9.70e-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) = 4971.82941341
delta logL = 0.47383598253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4971.81512161
delta logL = 0.488127781956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.9181       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0498       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84219       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=   4971.815     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.9159        6.9553        .38133E-02   -.25162E-02
   2  alpha         1.0497        .53683        .43926       -.21615E-04
   3  Normalizat    1.1450        .18142        .36408E-01    .66539E-05
   4  Prefactor     .84219        .22453        .70029E-01    .14847E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.91587
  alpha      = 1.0497
  Normalizat = 1.14496
  Prefactor  = 0.842195
 **********
 **   18 **HESSE 
 **********

 FCN=   4971.815     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.9159        8.1886        .76266E-03   -1.5182    
   2  alpha         1.0497        .66423        .18361E-01   -.61888    
   3  Normalizat    1.1450        .20990        .21918E-03   -.88321    
   4  Prefactor     .84219        .25936        .30985E-03   -.98191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68114e-12
Minuit parameter uncertainties:
  1  8.1899
  2  0.67661
  3  0.210049
  4  0.259741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275450': 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) = 4971.81512157
delta logL = 0.488127817269

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  6.916e+00  8.190e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.050e+00  6.766e-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:  8.422e-01  2.597e-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.145e+00  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.80
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.05 +/- 0.68
Photon Flux (Free Index): 4.74e-09 +/- 5.21e-09
Energy Flux (Free Index): 3.43e-05 +/- 5.50e-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/275450/cmap_HighResolution_292204801_292464001_4FGL_J1309.4+4305_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.79e-09', energy_flux2='3.43e-05', photon_flux_error='8.83e-09', dlogl='4.88e-01', energy_flux='9.66e-06', photon_flux2='4.74e-09', job_status='DONE', time_completed='2021-09-07 01:02:02.131583', photon_index_error2='0.68', photon_index2='1.05', ts='6.83', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='5.50e-05', EG='1.14', time_epoch_completed='1631001722.13', return_code='0', job_id='275450', GAL2='0.84', EG2='1.14', return_code2='0', energy_flux_error='9.70e-06', photon_flux_error2='5.21e-09', ts2='7.80', photon_index='1.77' WHERE bin_id='204' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:02:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 275450: <4FGL_J1309.4+4305_daily_bin204> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin204> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:31 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:47:50 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:47:50 2021
Terminated at Tue Sep  7 01:02:03 2021
Results reported at Tue Sep  7 01:02:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin204 197.363 43.085 292204801 292464001 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 :                                   686.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            992 sec.

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

