/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 96 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1309.4+4305_daily_bin1226
RA = 197.363, Dec = 43.085
tmin = 557107201, tmax = 557366401
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='283952', job_status='RUN', time_executed='2021-09-07 01:12:32.392586', time_epoch_executed='1631002352.39' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='1226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283952

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283952/ft1_4FGL_J1309.4+4305_daily_bin1226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283952/ft2_4FGL_J1309.4+4305_daily_bin1226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283952/ft1_4FGL_J1309.4+4305_daily_bin1226.fits outfile=/scratch/kocevski/283952/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin1226.fits ra=197.363 dec=43.085 rad=12.0 tmin=557107201.0 tmax=557366401.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.72
user 3.48
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283952/ft1_filtered_4FGL_J1309.4+4305_daily_bin1226.fits" evtable="EVENTS" scfile=/scratch/kocevski/283952/ft2_4FGL_J1309.4+4305_daily_bin1226.fits sctable="SC_DATA" outfile=/scratch/kocevski/283952/ltcube_557107201_557366401_4FGL_J1309.4+4305_daily_bin1226.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/283952/ft2_4FGL_J1309.4+4305_daily_bin1226.fits
.....................!
real 17.93
user 17.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283952/ft1_filtered_4FGL_J1309.4+4305_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/283952/ft2_4FGL_J1309.4+4305_daily_bin1226.fits sctable="SC_DATA" expcube=/scratch/kocevski/283952/ltcube_557107201_557366401_4FGL_J1309.4+4305_daily_bin1226.fits outfile=/scratch/kocevski/283952/expmap_557107201_557366401_4FGL_J1309.4+4305_daily_bin1226.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/283952/ltcube_557107201_557366401_4FGL_J1309.4+4305_daily_bin1226.fits
.....................!
real 194.04
user 187.55
sys 5.07

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/283952/ft1_filtered_4FGL_J1309.4+4305_daily_bin1226.fits scfile=/scratch/kocevski/283952/ft2_4FGL_J1309.4+4305_daily_bin1226.fits outfile=/scratch/kocevski/283952/cmap_557107201_557366401_4FGL_J1309.4+4305_daily_bin1226.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/283952/ft1_filtered_4FGL_J1309.4+4305_daily_bin1226.fits scfile=/scratch/kocevski/283952/ft2_4FGL_J1309.4+4305_daily_bin1226.fits outfile=/scratch/kocevski/283952/cmap_HighResolution_557107201_557366401_4FGL_J1309.4+4305_daily_bin1226.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42674E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.390       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.069       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0665       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.3478       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.590       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10950E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    28.503       1.0000         .10000E-03   10000.    
    12 'norm      '    12.154       1.0000         .10000E-03   10000.    
    13 'norm      '    .69507       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4236       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.827       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.188       1.0000         .10000E-03   10000.    
    22 'norm      '    8.1891       1.0000         .10000E-03   10000.    
    23 'Prefactor '    79.434       1.0000         .10000E-03   10000.    
    24 'norm      '    1.6352       1.0000         .10000E-03   10000.    
    25 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .85721       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3292       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=   4957.757     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3301 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.729        .10518E-04** at limit **
   2  Prefactor     15.448        33.042        .39331E-05   -.60273E-04
   3  Prefactor     25.072        20.768        .50873E-06    .22735E-04
   4  Prefactor     .10000E-03    27.253        .12072E-05** at limit **
   5  norm          4.0662        2.6090        .13388E-07    .28152E-04
   6  Prefactor     .10000E-03    3.3666       -.11462E-06** at limit **
   7  norm          7.3473        6.5605       -.37113E-07    .17663E-03
   8  Prefactor     62.596        52.455       -.84279E-06    .14361E-04
   9  Prefactor     .10000E-03    30.034        .54962E-06** at limit **
  10  Prefactor     .10000E-03    10.436        .31095E-06** at limit **
  11  norm          28.501        9.9240       -.96646E-07    .20333E-03
  12  norm          12.159        16.142       -.11333E-06    .14472E-04
  13  norm          .69232        4.6992        .12234E-05    .23048E-03
  14  norm          .10000E-03    9.5591        .91365E-07** at limit **
  15  norm          .10000E-03    2.9690       -.69806E-06** at limit **
  16  Prefactor     .10000E-03    2.9165       -.50665E-06** at limit **
  17  Prefactor     .10000E-03    18.118       -.12185E-05** at limit **
  18  Prefactor     .10000E-03    48.871       -.23416E-05** at limit **
  19  Prefactor     8.4046        109.86        .65314E-05    .17605E-04
  20  Prefactor     12.821        16.879       -.45230E-07    .53893E-04
  21  Prefactor     12.195        33.753       -.49378E-06    .98993E-04
  22  norm          8.1902        5.2024       -.26796E-06    .17539E-03
  23  Prefactor     79.421        78.368        .20280E-05    .29801E-04
  24  norm          1.6349        1.6526       -.10158E-06    .13811E-03
  25  norm          .10000E-03    6.2251       -.25038E-06** at limit **
  26  Normalizat    .85710        .21218       -.10078E-05    .17403E-03
  27  Prefactor     1.3294        .24918        .26639E-05    .37021E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  Prefactor  = 15.448
  Prefactor  = 25.0716
  Prefactor  = 0.0001
  norm       = 4.06623
  Prefactor  = 0.0001
  norm       = 7.34733
  Prefactor  = 62.5964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.5013
  norm       = 12.1593
  norm       = 0.692319
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 8.40455
  Prefactor  = 12.821
  Prefactor  = 12.1949
  norm       = 8.1902
  Prefactor  = 79.4206
  norm       = 1.63492
  norm       = 0.0001
  Normalizat = 0.857098
  Prefactor  = 1.32943
 **********
 **   18 **HESSE 
 **********

 FCN=   4957.757     FROM HESSE     STATUS=OK           490 CALLS     3791 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    23.696        .39164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.448        32.992        .10210E-03   -1.4922    
   3  Prefactor     25.072        20.767        .80006E-04   -1.4706    
   4  Prefactor     .10000E-03    27.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0662        2.6087        .88106E-04   -1.5305    
   6  Prefactor     .10000E-03    3.3754        .12618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.3473        6.5274        .14796E-03   -1.5166    
   8  Prefactor     62.596        52.454        .50721E-04   -1.4124    
   9  Prefactor     .10000E-03    30.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          28.501        9.8745        .75042E-04   -1.4640    
  12  norm          12.159        16.146        .11491E-03   -1.5010    
  13  norm          .69232        8.5033        .27167E-02   -1.5542    
  14  norm          .10000E-03    9.5918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.0661        .23335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9786        .11760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    48.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.4046        109.87        .13812E-03   -1.5128    
  20  Prefactor     12.821        16.863        .11184E-03   -1.4992    
  21  Prefactor     12.195        33.533        .11474E-03   -1.5009    
  22  norm          8.1902        5.1914        .11236E-03   -1.5136    
  23  Prefactor     79.421        79.005        .45061E-04   -1.3923    
  24  norm          1.6349        1.6321        .83579E-04   -1.5452    
  25  norm          .10000E-03    6.2470        .17164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .85710        .25087        .26031E-03   -.97984    
  27  Prefactor     1.3294        .29971        .27558E-03   -.82436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24589e-09
Minuit parameter uncertainties:
  1  0.000523111
  2  33.0311
  3  20.773
  4  9.03504e-05
  5  2.60877
  6  1.0451e-05
  7  6.52802
  8  52.4926
  9  2.40838e-05
  10  3.67709e-05
  11  9.8751
  12  16.1517
  13  4.85314
  14  3.3482e-05
  15  8.28156e-05
  16  7.64485e-05
  17  0.000206088
  18  0.000333016
  19  60.9115
  20  16.8694
  21  33.5849
  22  5.19165
  23  79.1098
  24  1.63217
  25  3.58728e-05
  26  0.251213
  27  0.300099
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.216e+01  1.615e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.769e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
351         beta:  8.354e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
352           Eb:  1.387e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
663    Prefactor:  1.329e+00  3.001e-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:  8.571e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 197.363 43.085
Photon Flux Upper Limit: 6.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283952/likelihoodResults_557107201_557366401_4FGL_J1309.4+4305_daily_bin1226.txt

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) = 4957.75631857
delta logL = 0.00115112016192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4957.75631052
delta logL = 0.00115916689356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.159       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8187       1.0000          .0000       5.0000    
     3 'Normalizat'    .85639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3296       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=   4957.756     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      193 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.148        16.320        .28720E-02    .17263E-04
   2  alpha         1.8186        1.0188        .43272E-01    .15947E-03
   3  Normalizat    .85639        .19222        .44342E-01    .86859E-05
   4  Prefactor     1.3296        .24806        .62305E-01   -.15843E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 12.1475
  alpha      = 1.81856
  Normalizat = 0.856393
  Prefactor  = 1.32961
 **********
 **   18 **HESSE 
 **********

 FCN=   4957.756     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.148        15.977        .11488E-03   -1.5011    
   2  alpha         1.8186        1.0021        .86544E-02   -.27607    
   3  Normalizat    .85639        .22928        .26041E-03   -.98010    
   4  Prefactor     1.3296        .29602        .27556E-03   -.82431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20569e-13
Minuit parameter uncertainties:
  1  15.9824
  2  1.03366
  3  0.229541
  4  0.296399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283952': 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) = 4957.75631024
delta logL = 0.00115945237212

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.215e+01  1.598e+01  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.819e+00  1.034e+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:  1.330e+00  2.964e-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:  8.564e-01  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.91
Ra Dec: 197.363 43.085

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/283952/cmap_HighResolution_557107201_557366401_4FGL_J1309.4+4305_daily_bin1226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-05', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-07 01:26:05.878837', job_id='283952', GAL2='1.33', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631003165.88', return_code2='0', ts='0.91', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='1.16e-03', ts2='0.91', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='1226' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:26:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 283952: <4FGL_J1309.4+4305_daily_bin1226> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin1226> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 01:10:37 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:10:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 01:10:38 2021
Terminated at Tue Sep  7 01:26:06 2021
Results reported at Tue Sep  7 01:26:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin1226 197.363 43.085 557107201 557366401 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 :                                   741.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

