/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7425
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin492
RA = 197.363, Dec = 43.085
tmin = 366854401, tmax = 367113601
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='278185', job_status='RUN', time_executed='2021-09-07 00:55:40.957388', time_epoch_executed='1631001340.96' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278185

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278185/ft1_4FGL_J1309.4+4305_daily_bin492.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278185/ft2_4FGL_J1309.4+4305_daily_bin492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278185/ft1_4FGL_J1309.4+4305_daily_bin492.fits outfile=/scratch/kocevski/278185/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin492.fits ra=197.363 dec=43.085 rad=12.0 tmin=366854401.0 tmax=367113601.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.33
user 5.10
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278185/ft2_4FGL_J1309.4+4305_daily_bin492.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/278185/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin492.fits evtable="EVENTS" outfile="/scratch/kocevski/278185/ft1_filtered_4FGL_J1309.4+4305_daily_bin492.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.50
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278185/ft1_filtered_4FGL_J1309.4+4305_daily_bin492.fits evtable="EVENTS" scfile=/scratch/kocevski/278185/ft2_4FGL_J1309.4+4305_daily_bin492.fits sctable="SC_DATA" expcube=/scratch/kocevski/278185/ltcube_366854401_367113601_4FGL_J1309.4+4305_daily_bin492.fits outfile=/scratch/kocevski/278185/expmap_366854401_367113601_4FGL_J1309.4+4305_daily_bin492.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/278185/ltcube_366854401_367113601_4FGL_J1309.4+4305_daily_bin492.fits
.....................!
real 191.60
user 187.14
sys 3.99

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/278185/ft1_filtered_4FGL_J1309.4+4305_daily_bin492.fits scfile=/scratch/kocevski/278185/ft2_4FGL_J1309.4+4305_daily_bin492.fits outfile=/scratch/kocevski/278185/cmap_366854401_367113601_4FGL_J1309.4+4305_daily_bin492.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=197.363 yref=43.085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5412       1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.401       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.092       1.0000         .10000E-03   10000.    
     5 'norm      '    7.4860       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.604       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17833       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    19.889       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.7637       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.410       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.455       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    14.261       1.0000         .10000E-03   10000.    
    25 'norm      '    18.466       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2926       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88759       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6285.799     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     2724 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5412        1.1038       -.64599E-06    .19947E-03
   2  Prefactor     37.392        1.1869       -.35298E-07   -.29444E-03
   3  Prefactor     .10000E-03    7.2478       -.87249E-05** at limit **
   4  Prefactor     22.104        1.8825        .68551E-06   -.65205E-02
   5  norm          7.4847        2.1220       -.35378E-05   -.83299E-02
   6  Prefactor     .10000E-03    6.6109       -.31275E-05** at limit **
   7  norm          .10000E-03    2.2581       -.42420E-06** at limit **
   8  Prefactor     11.599        1.0778       -.19073E-06    .10146E-02
   9  Prefactor     .10000E-03    11.253        .18671E-05** at limit **
  10  Prefactor     .10001E-03    693.41       -.13575E-04** at limit **
  11  norm          .10000E-03    2.5840       -.67055E-06** at limit **
  12  norm          19.888        1.0083        .81146E-07   -.66296E-03
  13  norm          .10000E-03    2.3343        .11162E-06** at limit **
  14  norm          .10000E-03    2.0728       -.43215E-06** at limit **
  15  norm          3.7630        3.4130        .68797E-05   -.32263E-02
  16  Prefactor     .10000E-03    1.3110        .33399E-06** at limit **
  17  Prefactor     21.417        1.2218       -.37446E-06    .40297E-02
  18  Prefactor     11.447        1.2203       -.29178E-06    .18199E-02
  19  Prefactor     .10006E-03    18.698        .32419E-05** at limit **
  20  Prefactor     .10000E-03    6.8600        .10513E-04** at limit **
  21  Prefactor     .10013E-03    16.373        .16142E-05** at limit **
  22  norm          .10000E-03    2.4925        .17094E-06** at limit **
  23  Prefactor     .10001E-03    28.032        .11205E-05** at limit **
  24  norm          14.260        2.7375       -.65959E-07   -.79453E-03
  25  norm          18.461        1.1179        .20304E-06   -.19544E-02
  26  Normalizat    1.2928        .21842       -.28397E-05    .10883E-03
  27  Prefactor     .88772        .26452        .11214E-05    .69478E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.54123
  Prefactor  = 37.3923
  Prefactor  = 0.0001
  Prefactor  = 22.1043
  norm       = 7.48466
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5988
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 19.8877
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.76303
  Prefactor  = 0.0001
  Prefactor  = 21.4173
  Prefactor  = 11.4466
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  Prefactor  = 0.000100129
  norm       = 0.0001
  Prefactor  = 0.000100012
  norm       = 14.2602
  norm       = 18.4609
  Normalizat = 1.29275
  Prefactor  = 0.887724
 **********
 **   18 **HESSE 
 **********

 FCN=   6285.799     FROM HESSE     STATUS=OK           546 CALLS     3270 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5412        6.4101        .42669E-02   -1.5237    
   2  Prefactor     37.392        24.476        .16384E-02   -1.4484    
   3  Prefactor     .10000E-03    7.3359        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.104        25.598        .21305E-02   -1.4767    
   5  norm          7.4847        3.2491        .36645E-02   -1.5161    
   6  Prefactor     .10000E-03    6.6007        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.2517        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.599        47.841        .29401E-02   -1.5027    
   9  Prefactor     .10000E-03    11.277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    16.673        .98783E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.5753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          19.888        15.123        .22453E-02   -1.4816    
  13  norm          .10000E-03    2.3124        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7630        4.2000        .52026E-02   -1.5320    
  16  Prefactor     .10000E-03    1.3087        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.417        16.828        .21641E-02   -1.4782    
  18  Prefactor     11.447        36.893        .29592E-02   -1.5031    
  19  Prefactor     .10006E-03    35.147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.0086        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10013E-03    34.501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    28.353        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.260        2.7549        .26516E-02   -1.4953    
  25  norm          18.461        16.586        .23301E-02   -1.4848    
  26  Normalizat    1.2928        .18838        .53824E-01   -.83783    
  27  Prefactor     .88772        .22446        .77196E-01   -.96571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34486e-07
Minuit parameter uncertainties:
  1  6.41089
  2  24.4825
  3  5.61791e-05
  4  25.6109
  5  3.24916
  6  8.37183e-05
  7  1.57582e-05
  8  47.1776
  9  5.37438e-05
  10  0.000664764
  11  2.77749e-05
  12  15.1258
  13  1.78174e-05
  14  3.84844e-05
  15  4.20037
  16  2.14473e-05
  17  16.8317
  18  36.9669
  19  0.00290077
  20  1.32666e-05
  21  0.00421987
  22  1.87195e-05
  23  0.0011487
  24  2.75496
  25  16.5905
  26  0.188475
  27  0.224694
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.989e+01  1.513e+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:  8.877e-01  2.247e-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.293e+00  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.75
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 2.08e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 1.74e-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) = 6285.7988111
delta logL = 0.00020709837554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6285.798806
delta logL = 0.000212194478081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.867       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7557       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88787       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=   6285.799     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      226 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.844        536.08        .22465E-02    .73885E-05
   2  alpha         1.7544        3.1766        .43733       -.45321E-05
   3  Normalizat    1.2931        .22464        .53818E-01   -.22070E-04
   4  Prefactor     .88770        .13433        .77198E-01    .31828E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.8444
  alpha      = 1.75444
  Normalizat = 1.29306
  Prefactor  = 0.887699
 **********
 **   18 **HESSE 
 **********

 FCN=   6285.799     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.844        15.116        .89860E-04   -1.4817    
   2  alpha         1.7544        .68339        .16844E-01   -.30283    
   3  Normalizat    1.2931        .21737        .23796E-03   -.83774    
   4  Prefactor     .88770        .26457        .34167E-03   -.96572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69711e-12
Minuit parameter uncertainties:
  1  15.1189
  2  0.693094
  3  0.217524
  4  0.264953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278185': 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) = 6285.79880332
delta logL = 0.000214877422877

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.984e+01  1.512e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.754e+00  6.931e-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.877e-01  2.650e-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.293e+00  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.74
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.75 +/- 0.69
Photon Flux (Free Index): 2.04e-08 +/- 2.47e-08
Energy Flux (Free Index): 2.32e-05 +/- 2.40e-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/278185/cmap_HighResolution_366854401_367113601_4FGL_J1309.4+4305_daily_bin492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.08e-08', energy_flux2='2.32e-05', photon_flux_error='1.58e-08', dlogl='2.15e-04', energy_flux='2.29e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2021-09-07 01:07:43.374782', photon_index_error2='0.69', photon_index2='1.75', ts='7.75', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='1.29', time_epoch_completed='1631002063.37', return_code='0', job_id='278185', GAL2='0.89', EG2='1.29', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='2.47e-08', ts2='7.74', photon_index='1.77' WHERE bin_id='492' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:07:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 278185: <4FGL_J1309.4+4305_daily_bin492> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin492> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 00:55:22 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:55:25 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:25 2021
Terminated at Tue Sep  7 01:07:44 2021
Results reported at Tue Sep  7 01:07:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin492 197.363 43.085 366854401 367113601 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 :                                   716.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            742 sec.

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

