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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin562
RA = 197.363, Dec = 43.085
tmin = 384998401, tmax = 385257601
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='278284', job_status='RUN', time_executed='2021-09-07 00:57:34.291669', time_epoch_executed='1631001454.29' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='562'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278284/ft1_4FGL_J1309.4+4305_daily_bin562.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278284/ft2_4FGL_J1309.4+4305_daily_bin562.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278284/ft1_4FGL_J1309.4+4305_daily_bin562.fits outfile=/scratch/kocevski/278284/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin562.fits ra=197.363 dec=43.085 rad=12.0 tmin=384998401.0 tmax=385257601.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.60
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278284/ft1_filtered_4FGL_J1309.4+4305_daily_bin562.fits" evtable="EVENTS" scfile=/scratch/kocevski/278284/ft2_4FGL_J1309.4+4305_daily_bin562.fits sctable="SC_DATA" outfile=/scratch/kocevski/278284/ltcube_384998401_385257601_4FGL_J1309.4+4305_daily_bin562.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/278284/ft2_4FGL_J1309.4+4305_daily_bin562.fits
.....................!
real 17.94
user 17.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278284/ft1_filtered_4FGL_J1309.4+4305_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/278284/ft2_4FGL_J1309.4+4305_daily_bin562.fits sctable="SC_DATA" expcube=/scratch/kocevski/278284/ltcube_384998401_385257601_4FGL_J1309.4+4305_daily_bin562.fits outfile=/scratch/kocevski/278284/expmap_384998401_385257601_4FGL_J1309.4+4305_daily_bin562.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/278284/ltcube_384998401_385257601_4FGL_J1309.4+4305_daily_bin562.fits
.....................!
real 194.11
user 188.22
sys 5.17

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/278284/ft1_filtered_4FGL_J1309.4+4305_daily_bin562.fits scfile=/scratch/kocevski/278284/ft2_4FGL_J1309.4+4305_daily_bin562.fits outfile=/scratch/kocevski/278284/cmap_384998401_385257601_4FGL_J1309.4+4305_daily_bin562.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.69
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278284/ft1_filtered_4FGL_J1309.4+4305_daily_bin562.fits scfile=/scratch/kocevski/278284/ft2_4FGL_J1309.4+4305_daily_bin562.fits outfile=/scratch/kocevski/278284/cmap_HighResolution_384998401_385257601_4FGL_J1309.4+4305_daily_bin562.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.60
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3494       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.171       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.003       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .82732       1.0000         .10000E-03   10000.    
     7 'norm      '    4.5451       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0281       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8382       1.0000         .10000E-03   10000.    
    12 'norm      '    20.341       1.0000         .10000E-03   10000.    
    13 'norm      '    .89025       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3749       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-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 '    1.7721       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    36.904       1.0000         .10000E-03   10000.    
    24 'norm      '    9.4594       1.0000         .10000E-03   10000.    
    25 'norm      '    1.5166       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .73649       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3022       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=   5725.001     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3274 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3493        5.6917       -.14698E-06   -.22323E-04
   2  Prefactor     .10000E-03    4.2800       -.14128E-07** at limit **
   3  Prefactor     14.174        16.671        .64938E-06    .77094E-06
   4  Prefactor     21.011        22.566        .49064E-05    .69310E-04
   5  norm          .10000E-03    .83100        .11789E-08** at limit **
   6  Prefactor     .82557        8.6064       -.20551E-05   -.18660E-03
   7  norm          4.5444        5.0366       -.11187E-05    .30958E-04
   8  Prefactor     .10000E-03    27.416        .10253E-04** at limit **
   9  Prefactor     .10000E-03    34.772       -.61828E-05** at limit **
  10  Prefactor     2.0273        24.689       -.39485E-06    .21195E-04
  11  norm          3.8384        4.3662       -.10605E-06    .79215E-04
  12  norm          20.340        15.704       -.25820E-06   -.11686E-04
  13  norm          .89092        24.066        .11878E-05    .46759E-04
  14  norm          1.3750        23.849       -.81951E-06   -.10459E-03
  15  norm          .10000E-03    2.1272       -.44471E-07** at limit **
  16  Prefactor     .10000E-03    2.0306       -.10267E-06** at limit **
  17  Prefactor     .10000E-03    11.492       -.88850E-06** at limit **
  18  Prefactor     .10000E-03    13.957        .30021E-05** at limit **
  19  Prefactor     .10000E-03    22.221        .48830E-06** at limit **
  20  Prefactor     1.7723        2.6040        .66659E-06   -.10830E-02
  21  Prefactor     .10000E-03    19.039       -.69200E-05** at limit **
  22  norm          .10000E-03    .91048       -.27423E-07** at limit **
  23  Prefactor     36.906        64.553        .29774E-05    .18354E-04
  24  norm          9.4593        2.3841        .19448E-07    .21829E-03
  25  norm          1.5084        60.102       -.91722E-05   -.92999E-05
  26  Normalizat    .73654        .17199       -.93799E-07    .12920E-03
  27  Prefactor     1.3022        .21017        .27031E-06    .95126E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.34933
  Prefactor  = 0.0001
  Prefactor  = 14.1742
  Prefactor  = 21.0107
  norm       = 0.0001
  Prefactor  = 0.825568
  norm       = 4.5444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.02731
  norm       = 3.83839
  norm       = 20.3401
  norm       = 0.890918
  norm       = 1.37495
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.77229
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.9064
  norm       = 9.45927
  norm       = 1.50841
  Normalizat = 0.736545
  Prefactor  = 1.30216
 **********
 **   18 **HESSE 
 **********

 FCN=   5725.001     FROM HESSE     STATUS=OK           488 CALLS     3762 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3493        5.6896        .17376E-03   -1.5245    
   2  Prefactor     .10000E-03    4.2811        .15288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.174        16.659        .10640E-03   -1.4955    
   4  Prefactor     21.011        22.486        .87397E-04   -1.4791    
   5  norm          .10000E-03    .84753        .67339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .82557        8.1645        .39336E-03   -1.5526    
   7  norm          4.5444        4.9526        .16821E-03   -1.5282    
   8  Prefactor     .10000E-03    27.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0273        22.965        .29051E-03   -1.5423    
  11  norm          3.8384        4.3164        .15713E-03   -1.5316    
  12  norm          20.340        15.706        .88807E-04   -1.4806    
  13  norm          .89092        11.853        .26277E-03   -1.5519    
  14  norm          1.3750        11.448        .26783E-03   -1.5473    
  15  norm          .10000E-03    2.1634        .10773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0596        .10494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7723        7.5099        .15727E-02   -1.5442    
  21  Prefactor     .10000E-03    19.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .91311        .70503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     36.906        64.597        .65973E-04   -1.4492    
  24  norm          9.4593        2.3850        .55342E-04   -1.5093    
  25  norm          1.5084        60.309        .34709E-03   -1.5462    
  26  Normalizat    .73654        .19960        .26085E-03   -1.0247    
  27  Prefactor     1.3022        .24842        .25567E-03   -.83243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72741e-09
Minuit parameter uncertainties:
  1  5.69013
  2  3.52897e-07
  3  16.6649
  4  22.4953
  5  4.29442e-07
  6  5.19304
  7  4.95306
  8  5.35118e-05
  9  8.72732e-05
  10  13.6527
  11  4.31675
  12  15.709
  13  6.50053
  14  7.93649
  15  1.50079e-06
  16  5.40995e-07
  17  8.65234e-06
  18  1.21397e-05
  19  2.79291e-07
  20  7.29783
  21  3.23865e-05
  22  2.70237e-07
  23  64.7203
  24  2.385
  25  19.0958
  26  0.199798
  27  0.24865
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.034e+01  1.571e+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.302e+00  2.486e-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:  7.365e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.13e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 1.81e-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) = 5724.99728586
delta logL = 0.00398007690455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5724.99713602
delta logL = 0.00412992447036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.295       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6872       1.0000          .0000       5.0000    
     3 'Normalizat'    .73852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3013       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=   5724.997     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.257        548.62        .22227E-02    .69152E-05
   2  alpha         1.6844        3.8283        .44308       -.51761E-05
   3  Normalizat    .73860        .25070        .42802E-01   -.19490E-03
   4  Prefactor     1.3014        .12039        .57834E-01   -.24550E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.2573
  alpha      = 1.68438
  Normalizat = 0.738595
  Prefactor  = 1.30138
 **********
 **   18 **HESSE 
 **********

 FCN=   5724.997     FROM HESSE     STATUS=OK            29 CALLS      252 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.257        15.846        .88908E-04   -1.4807    
   2  alpha         1.6844        .88522        .19269E-01   -.33233    
   3  Normalizat    .73860        .19392        .26051E-03   -1.0239    
   4  Prefactor     1.3014        .24550        .25574E-03   -.83266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82352e-11
Minuit parameter uncertainties:
  1  15.8497
  2  0.907351
  3  0.194097
  4  0.245721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278284': 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) = 5724.99712901
delta logL = 0.00413693102928

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  2.026e+01  1.585e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.684e+00  9.074e-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.301e+00  2.457e-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:  7.386e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.57
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.68 +/- 0.91
Photon Flux (Free Index): 1.92e-08 +/- 2.58e-08
Energy Flux (Free Index): 2.59e-05 +/- 3.63e-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/278284/cmap_HighResolution_384998401_385257601_4FGL_J1309.4+4305_daily_bin562.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.13e-08', energy_flux2='2.59e-05', photon_flux_error='1.65e-08', dlogl='4.14e-03', energy_flux='2.34e-05', photon_flux2='1.92e-08', job_status='DONE', time_completed='2021-09-07 01:09:19.997606', photon_index_error2='0.91', photon_index2='1.68', ts='4.56', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='3.63e-05', EG='0.74', time_epoch_completed='1631002160.0', return_code='0', job_id='278284', GAL2='1.30', EG2='0.74', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='2.58e-08', ts2='4.57', photon_index='1.77' WHERE bin_id='562' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:09:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 278284: <4FGL_J1309.4+4305_daily_bin562> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin562 197.363 43.085 384998401 385257601 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 :                                   700.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            831 sec.

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

