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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin440
RA = 197.363, Dec = 43.085
tmin = 353376001, tmax = 353635201
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='276943', job_status='RUN', time_executed='2021-09-07 00:51:43.287290', time_epoch_executed='1631001103.29' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276943

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276943/ft1_4FGL_J1309.4+4305_daily_bin440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276943/ft2_4FGL_J1309.4+4305_daily_bin440.fits


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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276943/ft1_filtered_4FGL_J1309.4+4305_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/276943/ft2_4FGL_J1309.4+4305_daily_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/276943/ltcube_353376001_353635201_4FGL_J1309.4+4305_daily_bin440.fits outfile=/scratch/kocevski/276943/expmap_353376001_353635201_4FGL_J1309.4+4305_daily_bin440.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/276943/ltcube_353376001_353635201_4FGL_J1309.4+4305_daily_bin440.fits
.....................!
real 192.97
user 186.81
sys 5.58

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/276943/ft1_filtered_4FGL_J1309.4+4305_daily_bin440.fits scfile=/scratch/kocevski/276943/ft2_4FGL_J1309.4+4305_daily_bin440.fits outfile=/scratch/kocevski/276943/cmap_353376001_353635201_4FGL_J1309.4+4305_daily_bin440.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.40
sys 0.14

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

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

This is gtbin version HEAD
real 0.56
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5744       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.677       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.090       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0587       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8137       1.0000         .10000E-03   10000.    
    11 'norm      '    11.070       1.0000         .10000E-03   10000.    
    12 'norm      '    17.161       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10235E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.922       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2668       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2026       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    119.37       1.0000         .10000E-03   10000.    
    24 'norm      '    9.5311       1.0000         .10000E-03   10000.    
    25 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0967       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .69106       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=   5432.352     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3346 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5745        5.4327        .16723E-05   -.15726E-03
   2  Prefactor     23.675        18.135       -.37709E-06   -.26053E-04
   3  Prefactor     15.089        16.235        .51686E-07   -.17205E-04
   4  Prefactor     .10000E-03    6.2143       -.14439E-06** at limit **
   5  norm          2.5758        1.9166        .36518E-07   -.36974E-04
   6  Prefactor     .10000E-03    2.6734       -.58813E-06** at limit **
   7  norm          2.0596        3.5349        .18988E-06   -.23447E-04
   8  Prefactor     .10000E-03    29.799        .49354E-07** at limit **
   9  Prefactor     .10000E-03    29.920       -.69458E-06** at limit **
  10  Prefactor     1.7935        77.011        .94521E-05   -.19275E-05
  11  norm          11.071        8.1200       -.12432E-05   -.11743E-03
  12  norm          17.161        13.250        .60624E-07   -.69371E-05
  13  norm          .10000E-03    1.9621       -.91019E-07** at limit **
  14  norm          .10000E-03    3.4153        .23808E-08** at limit **
  15  norm          .10000E-03    2.2695        .17481E-06** at limit **
  16  Prefactor     .10000E-03    2.0635        .16511E-06** at limit **
  17  Prefactor     19.916        16.526       -.80531E-07   -.35239E-04
  18  Prefactor     .10000E-03    8.7943        .25700E-07** at limit **
  19  Prefactor     17.970        53.583        .98045E-06    .65473E-04
  20  Prefactor     1.2695        36.343        .39852E-05   -.15539E-04
  21  Prefactor     4.2063        16.329        .49560E-06   -.62198E-05
  22  norm          .10000E-03    1.9757       -.64534E-07** at limit **
  23  Prefactor     119.36        82.121        .10188E-06   -.18591E-04
  24  norm          9.5307        2.2475        .27425E-07   -.51786E-04
  25  norm          .10000E-03    16.483       -.77034E-07** at limit **
  26  Normalizat    1.0970        .17705       -.25155E-06   -.14894E-03
  27  Prefactor     .69080        .20374       -.15124E-05   -.59737E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.57446
  Prefactor  = 23.6746
  Prefactor  = 15.0894
  Prefactor  = 0.0001
  norm       = 2.57576
  Prefactor  = 0.0001
  norm       = 2.05961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.79346
  norm       = 11.0713
  norm       = 17.1605
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.9158
  Prefactor  = 0.0001
  Prefactor  = 17.9699
  Prefactor  = 1.26952
  Prefactor  = 4.20632
  norm       = 0.0001
  Prefactor  = 119.363
  norm       = 9.53069
  norm       = 0.0001
  Normalizat = 1.097
  Prefactor  = 0.690801
 **********
 **   18 **HESSE 
 **********

 FCN=   5432.352     FROM HESSE     STATUS=OK           488 CALLS     3834 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5745        5.3564        .88177E-03   -1.5280    
   2  Prefactor     23.675        18.118        .82320E-04   -1.4734    
   3  Prefactor     15.089        16.239        .10311E-03   -1.4931    
   4  Prefactor     .10000E-03    6.2166        .17945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5758        1.9150        .85272E-04   -1.5387    
   6  Prefactor     .10000E-03    2.6845        .11776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0596        3.5070        .17555E-03   -1.5421    
   8  Prefactor     .10000E-03    29.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7935        76.967        .31018E-03   -1.5440    
  11  norm          11.071        8.0089        .12041E-03   -1.5042    
  12  norm          17.161        13.253        .96684E-04   -1.4879    
  13  norm          .10000E-03    1.9926        .10064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.4716        .13298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.3452        .21475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0791        .10308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.916        16.486        .89732E-04   -1.4815    
  18  Prefactor     .10000E-03    8.7974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.970        53.150        .94608E-04   -1.4860    
  20  Prefactor     1.2695        36.761        .39568E-03   -1.5483    
  21  Prefactor     4.2063        16.302        .19658E-03   -1.5298    
  22  norm          .10000E-03    1.9991        .10098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     119.36        82.336        .36831E-04   -1.3519    
  24  norm          9.5307        2.2528        .51105E-04   -1.5090    
  25  norm          .10000E-03    16.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0970        .20660        .21186E-03   -.89848    
  27  Prefactor     .69080        .23538        .31552E-03   -1.0389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33011e-10
Minuit parameter uncertainties:
  1  5.35691
  2  18.1226
  3  16.244
  4  1.66649e-06
  5  1.91502
  6  3.48721e-06
  7  3.50735
  8  3.26892e-05
  9  2.07664e-05
  10  23.5295
  11  8.00967
  12  13.2554
  13  3.93137e-06
  14  6.24163e-06
  15  9.39092e-06
  16  2.37677e-06
  17  16.4894
  18  2.16925e-06
  19  53.2909
  20  13.6716
  21  16.319
  22  4.11718e-06
  23  82.4149
  24  2.25277
  25  2.0516e-05
  26  0.206751
  27  0.235722
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.716e+01  1.326e+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.908e-01  2.357e-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.097e+00  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.51
Ra Dec: 197.363 43.085
Photon Index (Fixed Index): 1.77 +/- 0.00
Photon Flux (Fixed Index): 1.80e-08 +/- 1.39e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.53e-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) = 5431.98843279
delta logL = 0.363180936294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5431.98276589
delta logL = 0.368847830145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.775       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3088       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69352       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=   5431.983     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.775        13.046        .25210E-02   -.34559E-03
   2  alpha         1.3081        .44662        .35756       -.11334E-04
   3  Normalizat    1.0996        .16578        .38015E-01    .73787E-05
   4  Prefactor     .69349        .20142        .71188E-01    .21471E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.7752
  alpha      = 1.30812
  Normalizat = 1.09955
  Prefactor  = 0.693491
 **********
 **   18 **HESSE 
 **********

 FCN=   5431.983     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.775        14.229        .10084E-03   -1.4913    
   2  alpha         1.3081        .53042        .14467E-01   -.49696    
   3  Normalizat    1.0996        .19161        .21164E-03   -.89766    
   4  Prefactor     .69349        .23267        .31507E-03   -1.0378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4041e-10
Minuit parameter uncertainties:
  1  14.2322
  2  0.535714
  3  0.19173
  4  0.233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276943': 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) = 5431.9827639
delta logL = 0.368849821666

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.578e+01  1.423e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.308e+00  5.357e-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.935e-01  2.330e-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.100e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.23
Ra Dec: 197.363 43.085
Photon Index (Free Index): 1.31 +/- 0.54
Photon Flux (Free Index): 1.11e-08 +/- 1.13e-08
Energy Flux (Free Index): 4.05e-05 +/- 4.76e-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/276943/cmap_HighResolution_353376001_353635201_4FGL_J1309.4+4305_daily_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.80e-08', energy_flux2='4.05e-05', photon_flux_error='1.39e-08', dlogl='3.69e-01', energy_flux='1.98e-05', photon_flux2='1.11e-08', job_status='DONE', time_completed='2021-09-07 01:04:24.395344', photon_index_error2='0.54', photon_index2='1.31', ts='8.51', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='4.76e-05', EG='1.10', time_epoch_completed='1631001864.4', return_code='0', job_id='276943', GAL2='0.69', EG2='1.10', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='1.13e-08', ts2='9.23', photon_index='1.77' WHERE bin_id='440' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:04:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 276943: <4FGL_J1309.4+4305_daily_bin440> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin440> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 00:50:48 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:51:27 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:51:27 2021
Terminated at Tue Sep  7 01:04:25 2021
Results reported at Tue Sep  7 01:04:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin440 197.363 43.085 353376001 353635201 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 :                                   689.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            817 sec.

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

