/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 127 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin110
RA = 197.363, Dec = 43.085
tmin = 267840001, tmax = 268099201
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='275303', job_status='RUN', time_executed='2021-09-07 00:48:00.316705', time_epoch_executed='1631000880.32' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275303

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275303/ft1_4FGL_J1309.4+4305_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275303/ft2_4FGL_J1309.4+4305_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275303/ft1_4FGL_J1309.4+4305_daily_bin110.fits outfile=/scratch/kocevski/275303/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin110.fits ra=197.363 dec=43.085 rad=12.0 tmin=267840001.0 tmax=268099201.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 1.48
user 1.30
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275303/ft1_filtered_4FGL_J1309.4+4305_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/275303/ft2_4FGL_J1309.4+4305_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/275303/ltcube_267840001_268099201_4FGL_J1309.4+4305_daily_bin110.fits outfile=/scratch/kocevski/275303/expmap_267840001_268099201_4FGL_J1309.4+4305_daily_bin110.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/275303/ltcube_267840001_268099201_4FGL_J1309.4+4305_daily_bin110.fits
.....................!
real 192.60
user 187.61
sys 4.54

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/275303/ft1_filtered_4FGL_J1309.4+4305_daily_bin110.fits scfile=/scratch/kocevski/275303/ft2_4FGL_J1309.4+4305_daily_bin110.fits outfile=/scratch/kocevski/275303/cmap_267840001_268099201_4FGL_J1309.4+4305_daily_bin110.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275303/ft1_filtered_4FGL_J1309.4+4305_daily_bin110.fits scfile=/scratch/kocevski/275303/ft2_4FGL_J1309.4+4305_daily_bin110.fits outfile=/scratch/kocevski/275303/cmap_HighResolution_267840001_268099201_4FGL_J1309.4+4305_daily_bin110.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=197.363 yref=43.085 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.188       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5413       1.0000         .10000E-03   10000.    
     5 'norm      '    .69946       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11318E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.005       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1823       1.0000         .10000E-03   10000.    
    12 'norm      '    18.976       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.594       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31777E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .79650       1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.070       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10431E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2057       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .39534E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .12040E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.836       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1683       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .68108       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=   4376.587     FROM MIGRAD    STATUS=CONVERGED   1163 CALLS     3830 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.323        .32676E-02** at limit **
   2  Prefactor     15.174        23.991        .10277E-03   -.39619E-03
   3  Prefactor     .10000E-03    8.5497        .18142E-02** at limit **
   4  Prefactor     1.5424        37.840        .34340E-03    .36748E-05
   5  norm          .70018        2.8810        .21096E-03   -.10374E-03
   6  Prefactor     .10000E-03    2.5518        .10305E-02** at limit **
   7  norm          .10000E-03    2.9317        .11005E-02** at limit **
   8  Prefactor     .10000E-03    25.937        .18142E-02** at limit **
   9  Prefactor     45.003        28.977        .59764E-04   -.28724E-04
  10  Prefactor     .10000E-03    6.5824        .16561E-02** at limit **
  11  norm          5.1806        4.9299        .13784E-03   -.25510E-03
  12  norm          18.970        15.847        .91944E-04    .98473E-04
  13  norm          .10000E-03    1.5453        .79994E-03** at limit **
  14  norm          .10000E-03    1.7019        .84268E-03** at limit **
  15  norm          11.597        5.5266        .10269E-03    .33433E-03
  16  Prefactor     .10000E-03    8.7013        .16857E-02** at limit **
  17  Prefactor     .73838        61.437        .46166E-02    .18243E-03
  18  Prefactor     24.977        33.599        .80005E-04    .50445E-04
  19  Prefactor     .10000E-03    18.253        .18142E-02** at limit **
  20  Prefactor     8.2038        18.275        .13996E-03    .20389E-04
  21  Prefactor     .10021E-03    400.98        .81217E-02** at limit **
  22  norm          .10000E-03    2.2643        .96627E-03** at limit **
  23  Prefactor     .10000E-03    110.13        .18142E-02** at limit **
  24  norm          .10002E-03    6.0938        .11712E-02** at limit **
  25  norm          10.844        11.739        .12171E-03    .54270E-04
  26  Normalizat    1.1683        .21651        .19808E-03   -.15371E-03
  27  Prefactor     .68106        .25383        .30808E-03    .19798E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 15.1742
  Prefactor  = 0.0001
  Prefactor  = 1.54238
  norm       = 0.700182
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.0028
  Prefactor  = 0.0001
  norm       = 5.1806
  norm       = 18.9698
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.5967
  Prefactor  = 0.000100001
  Prefactor  = 0.738384
  Prefactor  = 24.9773
  Prefactor  = 0.0001
  Prefactor  = 8.20377
  Prefactor  = 0.000100214
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.000100024
  norm       = 10.8442
  Normalizat = 1.16825
  Prefactor  = 0.681062
 **********
 **   18 **HESSE 
 **********

 FCN=   4376.587     FROM HESSE     STATUS=OK           462 CALLS     4292 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    26.523        .65352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.174        23.918        .20555E-04   -1.4929    
   3  Prefactor     .10000E-03    8.5500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5424        37.824        .13736E-04   -1.5460    
   5  norm          .70018        2.8792        .84384E-05   -1.5541    
   6  Prefactor     .10000E-03    2.5519        .20611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.9319        .22010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.937        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.003        28.953        .23905E-05   -1.4365    
  10  Prefactor     .10000E-03    6.5828        .33121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1806        4.9284        .55136E-05   -1.5253    
  12  norm          18.970        15.847        .18389E-04   -1.4837    
  13  norm          .10000E-03    1.5454        .15999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.7019        .16854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.597        5.5261        .20539E-04   -1.5027    
  16  Prefactor     .10000E-03    8.7489        .33714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .73838        61.159        .18466E-03   -1.5536    
  18  Prefactor     24.977        33.295        .32002E-05   -1.4708    
  19  Prefactor     .10000E-03    18.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.2038        18.269        .55983E-05   -1.5135    
  21  Prefactor     .10021E-03    409.97        .32487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.2644        .19325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    110.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10002E-03    6.1568        .23424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.844        11.738        .48684E-05   -1.5049    
  26  Normalizat    1.1683        .21596        .39616E-04   -.87590    
  27  Prefactor     .68106        .25394        .12323E-04   -1.0427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75773e-09
Minuit parameter uncertainties:
  1  0.000345168
  2  23.9333
  3  6.81157e-06
  4  15.2864
  5  2.83972
  6  2.23808e-06
  7  2.01307e-05
  8  0.000129556
  9  28.9616
  10  1.55855e-05
  11  4.92883
  12  15.85
  13  5.69779e-06
  14  2.0388e-06
  15  5.52638
  16  0.000202045
  17  13.4534
  18  33.3196
  19  2.05289e-05
  20  18.2819
  21  0.0188561
  22  1.90953e-05
  23  0.00119338
  24  0.000770483
  25  11.7407
  26  0.216126
  27  0.254368
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.897e+01  1.585e+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:  6.811e-01  2.544e-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.168e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.52
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.99e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.82e-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) = 4376.47607985
delta logL = 0.110525334857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4376.43087264
delta logL = 0.155732542318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.026       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2083       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68514       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=   4376.431     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      218 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.957        12.117        .28879E-02   -.55054E-03
   2  alpha         1.2052        .55926        .40448       -.28514E-04
   3  Normalizat    1.1744        .17768        .35545E-01   -.15717E-03
   4  Prefactor     .68573        .21757        .69437E-01   -.51798E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.9567
  alpha      = 1.20515
  Normalizat = 1.17436
  Prefactor  = 0.685735
 **********
 **   18 **HESSE 
 **********

 FCN=   4376.431     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.957        20.305        .57758E-03   -1.5016    
   2  alpha         1.2052        .99691        .16339E-01   -.54444    
   3  Normalizat    1.1744        .20507        .19768E-03   -.87399    
   4  Prefactor     .68573        .25106        .30728E-03   -1.0409    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17857e-11
Minuit parameter uncertainties:
  1  20.3171
  2  1.03709
  3  0.205208
  4  0.251476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275303': 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) = 4376.43086476
delta logL = 0.155740425001

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.196e+01  2.032e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.205e+00  1.037e+00  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:  6.857e-01  2.515e-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.174e+00  2.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.83
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.21 +/- 1.04
Photon Flux (Free Index): 8.13e-09 +/- 1.50e-08
Energy Flux (Free Index): 3.94e-05 +/- 6.10e-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/275303/cmap_HighResolution_267840001_268099201_4FGL_J1309.4+4305_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.99e-08', energy_flux2='3.94e-05', photon_flux_error='1.66e-08', dlogl='1.56e-01', energy_flux='2.18e-05', photon_flux2='8.13e-09', job_status='DONE', time_completed='2021-09-07 00:58:43.920069', photon_index_error2='1.04', photon_index2='1.21', ts='11.52', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='6.10e-05', EG='1.17', time_epoch_completed='1631001523.92', return_code='0', job_id='275303', GAL2='0.69', EG2='1.17', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='1.50e-08', ts2='11.83', photon_index='1.77' WHERE bin_id='110' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 00:58:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 275303: <4FGL_J1309.4+4305_daily_bin110> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin110> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:20 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:45:44 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:45:44 2021
Terminated at Tue Sep  7 00:58:44 2021
Results reported at Tue Sep  7 00:58:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin110 197.363 43.085 267840001 268099201 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 :                                   641.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            804 sec.

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

