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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin141
RA = 197.363, Dec = 43.085
tmin = 275875201, tmax = 276134401
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='275358', job_status='RUN', time_executed='2021-09-07 00:49:31.454004', time_epoch_executed='1631000971.45' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275358

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275358/ft1_4FGL_J1309.4+4305_daily_bin141.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275358/ft2_4FGL_J1309.4+4305_daily_bin141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275358/ft1_4FGL_J1309.4+4305_daily_bin141.fits outfile=/scratch/kocevski/275358/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin141.fits ra=197.363 dec=43.085 rad=12.0 tmin=275875201.0 tmax=276134401.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 2.66
user 2.42
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275358/ft2_4FGL_J1309.4+4305_daily_bin141.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/275358/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin141.fits evtable="EVENTS" outfile="/scratch/kocevski/275358/ft1_filtered_4FGL_J1309.4+4305_daily_bin141.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.44
user 0.27
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275358/ft1_filtered_4FGL_J1309.4+4305_daily_bin141.fits" evtable="EVENTS" scfile=/scratch/kocevski/275358/ft2_4FGL_J1309.4+4305_daily_bin141.fits sctable="SC_DATA" outfile=/scratch/kocevski/275358/ltcube_275875201_276134401_4FGL_J1309.4+4305_daily_bin141.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/275358/ft2_4FGL_J1309.4+4305_daily_bin141.fits
.....................!
real 9.17
user 8.86
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275358/ft1_filtered_4FGL_J1309.4+4305_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/275358/ft2_4FGL_J1309.4+4305_daily_bin141.fits sctable="SC_DATA" expcube=/scratch/kocevski/275358/ltcube_275875201_276134401_4FGL_J1309.4+4305_daily_bin141.fits outfile=/scratch/kocevski/275358/expmap_275875201_276134401_4FGL_J1309.4+4305_daily_bin141.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/275358/ltcube_275875201_276134401_4FGL_J1309.4+4305_daily_bin141.fits
.....................!
real 153.49
user 149.32
sys 3.70

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/275358/ft1_filtered_4FGL_J1309.4+4305_daily_bin141.fits scfile=/scratch/kocevski/275358/ft2_4FGL_J1309.4+4305_daily_bin141.fits outfile=/scratch/kocevski/275358/cmap_275875201_276134401_4FGL_J1309.4+4305_daily_bin141.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.49
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275358/ft1_filtered_4FGL_J1309.4+4305_daily_bin141.fits scfile=/scratch/kocevski/275358/ft2_4FGL_J1309.4+4305_daily_bin141.fits outfile=/scratch/kocevski/275358/cmap_HighResolution_275875201_276134401_4FGL_J1309.4+4305_daily_bin141.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.51
user 0.32
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98009       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5240       1.0000         .10000E-03   10000.    
     7 'norm      '    .78714       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.534       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28964       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .93083E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4260       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8736       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7021       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.829       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.545       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5079       1.0000         .10000E-03   10000.    
    22 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    17.723       1.0000         .10000E-03   10000.    
    25 'norm      '    3.8732       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .82885       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95799       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=   5471.663     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3298 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98432        3.1254        .77950E-06    .10774E-03
   2  Prefactor     .10000E-03    4.1900       -.63234E-07** at limit **
   3  Prefactor     .10000E-03    15.045        .10326E-05** at limit **
   4  Prefactor     .10000E-03    31.141       -.11102E-04** at limit **
   5  norm          1.6981        1.4172        .35719E-07   -.99019E-05
   6  Prefactor     5.5260        5.5506       -.29898E-06    .36793E-04
   7  norm          .78539        10.338        .30168E-05   -.24699E-03
   8  Prefactor     .10000E-03    35.988        .93570E-05** at limit **
   9  Prefactor     10.565        30.688        .74616E-06    .12716E-03
  10  Prefactor     .24558        7.7710        .26955E-06    .43125E-05
  11  norm          .10000E-03    2.3433        .16086E-06** at limit **
  12  norm          .10001E-03    9.8411        .99516E-06** at limit **
  13  norm          .10000E-03    3.0159        .37422E-07** at limit **
  14  norm          3.4284        4.8814       -.84947E-06   -.18924E-03
  15  norm          3.8725        3.5076        .78585E-06    .20318E-03
  16  Prefactor     1.7022        2.1479        .37136E-07   -.10197E-03
  17  Prefactor     .10000E-03    6.3403        .13968E-06** at limit **
  18  Prefactor     51.815        40.576       -.17163E-05   -.16709E-03
  19  Prefactor     .10000E-03    10.321       -.24874E-06** at limit **
  20  Prefactor     23.538        16.550        .11321E-05    .50443E-04
  21  Prefactor     7.4709        26.904       -.96267E-05   -.16699E-03
  22  norm          .10000E-03    1.9958        .16291E-07** at limit **
  23  Prefactor     .10000E-03    34.807        .31792E-05** at limit **
  24  norm          17.723        2.7340        .11537E-06   -.12892E-03
  25  norm          3.8706        13.420        .69793E-05   -.20341E-03
  26  Normalizat    .82924        .16834       -.21972E-05   -.11138E-03
  27  Prefactor     .95762        .20637        .43539E-06   -.19306E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.984323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.69809
  Prefactor  = 5.52602
  norm       = 0.785394
  Prefactor  = 0.000100004
  Prefactor  = 10.5646
  Prefactor  = 0.245577
  norm       = 0.0001
  norm       = 0.000100008
  norm       = 0.0001
  norm       = 3.42844
  norm       = 3.87246
  Prefactor  = 1.70224
  Prefactor  = 0.0001
  Prefactor  = 51.8148
  Prefactor  = 0.0001
  Prefactor  = 23.538
  Prefactor  = 7.4709
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.7228
  norm       = 3.87055
  Normalizat = 0.829242
  Prefactor  = 0.957623
 **********
 **   18 **HESSE 
 **********

 FCN=   5471.663     FROM HESSE     STATUS=OK           498 CALLS     3796 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98432        2.9137        .22708E-02   -1.5510    
   2  Prefactor     .10000E-03    4.1917        .14787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6981        1.4149        .78326E-04   -1.5447    
   6  Prefactor     5.5260        5.5554        .16620E-03   -1.5238    
   7  norm          .78539        11.865        .36124E-02   -1.5531    
   8  Prefactor     .10000E-03    36.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.565        31.985        .12345E-03   -1.5058    
  10  Prefactor     .24558        97.000        .38796E-02   -1.5609    
  11  norm          .10000E-03    2.3642        .11052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    45.526        .44824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0442        .24680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4284        4.8075        .18496E-03   -1.5338    
  15  norm          3.8725        3.5072        .12511E-03   -1.5314    
  16  Prefactor     1.7022        2.1248        .11643E-03   -1.5447    
  17  Prefactor     .10000E-03    6.3764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.815        40.569        .55709E-04   -1.4267    
  19  Prefactor     .10000E-03    10.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.538        16.550        .82550E-04   -1.4737    
  21  Prefactor     7.4709        27.036        .14636E-03   -1.5161    
  22  norm          .10000E-03    2.0075        .10191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          17.723        2.7362        .45720E-04   -1.4866    
  25  norm          3.8706        13.859        .10252E-02   -1.5314    
  26  Normalizat    .82924        .19759        .23102E-03   -.98993    
  27  Prefactor     .95762        .24308        .27439E-03   -.94156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03316e-07
Minuit parameter uncertainties:
  1  2.9141
  2  1.6898e-07
  3  7.32707e-05
  4  0.000723244
  5  1.41488
  6  5.55593
  7  6.10631
  8  0.00075694
  9  32.0364
  10  9.77535
  11  3.97651e-07
  12  0.00120212
  13  2.19274e-05
  14  4.80803
  15  3.50738
  16  2.12487
  17  6.60574e-06
  18  40.5906
  19  9.95736e-06
  20  16.553
  21  27.0804
  22  5.93486e-06
  23  0.000244865
  24  2.73627
  25  13.8709
  26  0.197766
  27  0.24336
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  1.202e-03  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:  9.576e-01  2.434e-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.292e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/275358/likelihoodResults_275875201_276134401_4FGL_J1309.4+4305_daily_bin141.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) = 5471.66308486
delta logL = -0.000103560373645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5471.65394628
delta logL = 0.00903502554684

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0386       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4396       1.0000          .0000       5.0000    
     3 'Normalizat'    .82855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95514       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5471.654     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      289 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0386        46.231        .24632E-02   -.88262E-03
   2  alpha         2.4396        3.6830        .50486E-01   -.59051E-04
   3  Normalizat    .82856        .18779        .23112E-03    .30448E-04
   4  Prefactor     .95513        .24122        .27472E-03   -.34513E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03861
  alpha      = 2.43959
  Normalizat = 0.828555
  Prefactor  = 0.955134
 **********
 **   18 **HESSE 
 **********

 FCN=   5471.654     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0386        17.759        .98526E-04   -1.5504    
   2  alpha         2.4396        3.6052        .20194E-02   -.24168E-01
   3  Normalizat    .82856        .18762        .92449E-05   -.99018    
   4  Prefactor     .95513        .23949        .10989E-04   -.94240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77699e-09
Minuit parameter uncertainties:
  1  8.59207
  2  2.78691
  3  0.18777
  4  0.239755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275358': 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) = 5471.65394628
delta logL = 0.00903502574874

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.039e+00  8.592e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  2.440e+00  2.787e+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:  9.551e-01  2.398e-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.286e-01  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/275358/cmap_HighResolution_275875201_276134401_4FGL_J1309.4+4305_daily_bin141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-05', job_status='DONE', photon_flux_upper_limit='4.05e-08', time_completed='2021-09-07 01:00:06.471031', job_id='275358', GAL2='0.96', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631001606.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='9.04e-03', ts2='0.02', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='141' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:00:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 275358: <4FGL_J1309.4+4305_daily_bin141> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin141> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 00:45:24 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 00:46:15 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:46:15 2021
Terminated at Tue Sep  7 01:00:07 2021
Results reported at Tue Sep  7 01:00:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin141 197.363 43.085 275875201 276134401 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 :                                   631.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            883 sec.

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

