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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin763
RA = 197.363, Dec = 43.085
tmin = 437097601, tmax = 437356801
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='279762', job_status='RUN', time_executed='2021-09-07 01:04:51.278290', time_epoch_executed='1631001891.28' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279762

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279762/ft1_4FGL_J1309.4+4305_daily_bin763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279762/ft2_4FGL_J1309.4+4305_daily_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279762/ft1_4FGL_J1309.4+4305_daily_bin763.fits outfile=/scratch/kocevski/279762/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin763.fits ra=197.363 dec=43.085 rad=12.0 tmin=437097601.0 tmax=437356801.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.49
user 4.91
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279762/ft1_filtered_4FGL_J1309.4+4305_daily_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/279762/ft2_4FGL_J1309.4+4305_daily_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/279762/ltcube_437097601_437356801_4FGL_J1309.4+4305_daily_bin763.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/279762/ft2_4FGL_J1309.4+4305_daily_bin763.fits
.....................!
real 15.80
user 15.26
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279762/ft1_filtered_4FGL_J1309.4+4305_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/279762/ft2_4FGL_J1309.4+4305_daily_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/279762/ltcube_437097601_437356801_4FGL_J1309.4+4305_daily_bin763.fits outfile=/scratch/kocevski/279762/expmap_437097601_437356801_4FGL_J1309.4+4305_daily_bin763.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/279762/ltcube_437097601_437356801_4FGL_J1309.4+4305_daily_bin763.fits
.....................!
real 194.96
user 186.51
sys 5.21

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/279762/ft1_filtered_4FGL_J1309.4+4305_daily_bin763.fits scfile=/scratch/kocevski/279762/ft2_4FGL_J1309.4+4305_daily_bin763.fits outfile=/scratch/kocevski/279762/cmap_437097601_437356801_4FGL_J1309.4+4305_daily_bin763.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.74
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7636       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.6379       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.154       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.152       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1980       1.0000         .10000E-03   10000.    
    12 'norm      '    13.714       1.0000         .10000E-03   10000.    
    13 'norm      '    .50463       1.0000         .10000E-03   10000.    
    14 'norm      '    18.444       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.961       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.816       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.4550       1.0000         .10000E-03   10000.    
    23 'Prefactor '    65.229       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8257       1.0000         .10000E-03   10000.    
    25 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0515       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .67994       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=   4622.822     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3716 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3172       -.19145E-07** at limit **
   2  Prefactor     .10000E-03    3.7710       -.29756E-07** at limit **
   3  Prefactor     6.7631        13.339        .25132E-06    .10435E-04
   4  Prefactor     .10000E-03    10.097        .90834E-08** at limit **
   5  norm          8.6379        3.1275        .25061E-07   -.56003E-04
   6  Prefactor     .10000E-03    4.2710        .93500E-07** at limit **
   7  norm          .10000E-03    2.2877        .10766E-06** at limit **
   8  Prefactor     .10000E-03    20.053        .13106E-06** at limit **
   9  Prefactor     24.154        28.816       -.20016E-05   -.50816E-03
  10  Prefactor     18.154        20.016       -.19824E-07   -.18691E-03
  11  norm          5.1981        6.4781        .14789E-06   -.30093E-03
  12  norm          13.714        12.668        .23565E-07   -.11549E-04
  13  norm          .50670        9.5691        .40621E-05   -.12479E-02
  14  norm          18.445        13.098       -.20791E-05   -.15955E-02
  15  norm          .10000E-03    1.3745       -.14567E-08** at limit **
  16  Prefactor     .10000E-03    1.5976        .18680E-06** at limit **
  17  Prefactor     24.963        17.031       -.84424E-06   -.60031E-03
  18  Prefactor     24.819        33.169        .55470E-06    .93925E-05
  19  Prefactor     .10000E-03    42.151        .10616E-06** at limit **
  20  Prefactor     .10000E-03    19.407       -.37802E-06** at limit **
  21  Prefactor     .10000E-03    17.613       -.15081E-06** at limit **
  22  norm          3.4557        3.1794        .45433E-07   -.11400E-03
  23  Prefactor     65.265        81.988        .20279E-05    .10023E-03
  24  norm          2.8261        1.8341        .85436E-07    .38927E-04
  25  norm          .10000E-03    14.770        .24170E-06** at limit **
  26  Normalizat    1.0510        .19355       -.27419E-05   -.33095E-03
  27  Prefactor     .68049        .22838        .33801E-05   -.25777E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.76312
  Prefactor  = 0.0001
  norm       = 8.6379
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.1538
  Prefactor  = 18.154
  norm       = 5.19805
  norm       = 13.7144
  norm       = 0.506695
  norm       = 18.4449
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.963
  Prefactor  = 24.8192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.45572
  Prefactor  = 65.2652
  norm       = 2.82614
  norm       = 0.0001
  Normalizat = 1.05102
  Prefactor  = 0.680486
 **********
 **   18 **HESSE 
 **********

 FCN=   4622.822     FROM HESSE     STATUS=OK           482 CALLS     4198 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3180        .76207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7719        .12895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7631        13.333        .15428E-03   -1.5188    
   4  Prefactor     .10000E-03    10.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.6379        3.1274        .69832E-04   -1.5120    
   6  Prefactor     .10000E-03    4.2999        .13709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.3148        .10041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.154        29.397        .81505E-04   -1.4725    
  10  Prefactor     18.154        19.984        .94006E-04   -1.4856    
  11  norm          5.1981        6.4429        .17506E-03   -1.5252    
  12  norm          13.714        12.669        .10816E-03   -1.4967    
  13  norm          .50670        40.442        .21932E-02   -1.5566    
  14  norm          18.445        17.453        .46630E-03   -1.4849    
  15  norm          .10000E-03    1.3801        .77810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6121        .83874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.963        17.219        .80179E-04   -1.4708    
  18  Prefactor     24.819        33.269        .80413E-04   -1.4711    
  19  Prefactor     .10000E-03    42.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.947        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.4557        3.1768        .11221E-03   -1.5336    
  23  Prefactor     65.265        81.888        .49690E-04   -1.4090    
  24  norm          2.8261        1.8274        .70178E-04   -1.5372    
  25  norm          .10000E-03    14.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0510        .21510        .20198E-03   -.91340    
  27  Prefactor     .68049        .25443        .30753E-03   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.97392e-09
Minuit parameter uncertainties:
  1  1.86103e-07
  2  8.40046e-07
  3  13.339
  4  7.61753e-06
  5  3.12744
  6  6.03743e-06
  7  6.20257e-06
  8  7.68203e-05
  9  29.4151
  10  19.9913
  11  6.44371
  12  12.6711
  13  9.05901
  14  17.4582
  15  3.08466e-07
  16  4.79891e-06
  17  17.2226
  18  33.2937
  19  4.01319e-05
  20  2.42027e-05
  21  8.26277e-05
  22  3.17697
  23  82.03
  24  1.82739
  25  4.62613e-06
  26  0.215282
  27  0.254864
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.371e+01  1.267e+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.805e-01  2.549e-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.051e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.39
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.44e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.46e-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) = 4622.78240729
delta logL = 0.039753596061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4622.78185011
delta logL = 0.0403107809761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.389       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0248       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68319       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=   4622.782     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.395        342.40        .27366E-02   -.16015E-04
   2  alpha         2.0244        2.7706        .42132        .11803E-04
   3  Normalizat    1.0449        .96508E-01    .40910E-01   -.12686E-03
   4  Prefactor     .68311        .83394E-01    .69362E-01   -.52338E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.3953
  alpha      = 2.02439
  Normalizat = 1.04495
  Prefactor  = 0.683112
 **********
 **   18 **HESSE 
 **********

 FCN=   4622.782     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.395        12.490        .10947E-03   -1.4976    
   2  alpha         2.0244        .88719        .14403E-01   -.19141    
   3  Normalizat    1.0449        .20047        .20251E-03   -.91540    
   4  Prefactor     .68311        .24914        .30695E-03   -1.0419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59346e-10
Minuit parameter uncertainties:
  1  12.4923
  2  0.907739
  3  0.200616
  4  0.249543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279762': 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) = 4622.78184984
delta logL = 0.0403110519828

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.340e+01  1.249e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.024e+00  9.077e-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:  6.831e-01  2.495e-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.045e+00  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 197.363 43.085
Photon Index (Free Index): 2.02 +/- 0.91
Photon Flux (Free Index): 2.01e-08 +/- 2.82e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.37e-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/279762/cmap_HighResolution_437097601_437356801_4FGL_J1309.4+4305_daily_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-08', energy_flux2='1.28e-05', photon_flux_error='1.33e-08', dlogl='4.03e-02', energy_flux='1.58e-05', photon_flux2='2.01e-08', job_status='DONE', time_completed='2021-09-07 01:16:19.641267', photon_index_error2='0.91', photon_index2='2.02', ts='4.39', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='1.05', time_epoch_completed='1631002579.64', return_code='0', job_id='279762', GAL2='0.68', EG2='1.04', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='2.82e-08', ts2='4.46', photon_index='1.77' WHERE bin_id='763' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:16:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 279762: <4FGL_J1309.4+4305_daily_bin763> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin763> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:28 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:01:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:01:00 2021
Terminated at Tue Sep  7 01:16:20 2021
Results reported at Tue Sep  7 01:16:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin763 197.363 43.085 437097601 437356801 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 :                                   679.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             234.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            952 sec.

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

