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


Performing analysis on: 4FGL_J1309.4+4305_daily_bin730
RA = 197.363, Dec = 43.085
tmin = 428544001, tmax = 428803201
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='279715', job_status='RUN', time_executed='2021-09-07 01:03:20.178969', time_epoch_executed='1631001800.18' WHERE source_name='4FGL J1309.4+4305' and cadence='daily' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279715

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279715/ft1_4FGL_J1309.4+4305_daily_bin730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279715/ft2_4FGL_J1309.4+4305_daily_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279715/ft1_4FGL_J1309.4+4305_daily_bin730.fits outfile=/scratch/kocevski/279715/ft1_filteredMKT_4FGL_J1309.4+4305_daily_bin730.fits ra=197.363 dec=43.085 rad=12.0 tmin=428544001.0 tmax=428803201.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 6.73
user 5.93
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279715/ft1_filtered_4FGL_J1309.4+4305_daily_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/279715/ft2_4FGL_J1309.4+4305_daily_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/279715/ltcube_428544001_428803201_4FGL_J1309.4+4305_daily_bin730.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/279715/ft2_4FGL_J1309.4+4305_daily_bin730.fits
.....................!
real 13.74
user 12.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279715/ft1_filtered_4FGL_J1309.4+4305_daily_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/279715/ft2_4FGL_J1309.4+4305_daily_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/279715/ltcube_428544001_428803201_4FGL_J1309.4+4305_daily_bin730.fits outfile=/scratch/kocevski/279715/expmap_428544001_428803201_4FGL_J1309.4+4305_daily_bin730.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/279715/ltcube_428544001_428803201_4FGL_J1309.4+4305_daily_bin730.fits
.....................!
real 199.16
user 186.10
sys 4.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/279715/ft1_filtered_4FGL_J1309.4+4305_daily_bin730.fits scfile=/scratch/kocevski/279715/ft2_4FGL_J1309.4+4305_daily_bin730.fits outfile=/scratch/kocevski/279715/cmap_428544001_428803201_4FGL_J1309.4+4305_daily_bin730.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 1.06
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279715/ft1_filtered_4FGL_J1309.4+4305_daily_bin730.fits scfile=/scratch/kocevski/279715/ft2_4FGL_J1309.4+4305_daily_bin730.fits outfile=/scratch/kocevski/279715/cmap_HighResolution_428544001_428803201_4FGL_J1309.4+4305_daily_bin730.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.78
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2735       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24402E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.207       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .56292       1.0000         .10000E-03   10000.    
     5 'norm      '    7.4713       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.749       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.5524       1.0000         .10000E-03   10000.    
    14 'norm      '    13.669       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0214       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.106       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3563       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .15156E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.969       1.0000         .10000E-03   10000.    
    24 'norm      '    4.1077       1.0000         .10000E-03   10000.    
    25 'norm      '    6.4934       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .59175       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2611       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=   3107.098     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3359 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2604        11.285        .25670E-06    .19861E-03
   2  Prefactor     .10009E-03    30.129       -.14906E-05** at limit **
   3  Prefactor     29.192        25.154        .21318E-06    .61391E-04
   4  Prefactor     .24072        38.913        .27945E-06   -.49523E-05
   5  norm          7.4708        3.7070        .38481E-07    .31390E-04
   6  Prefactor     .10000E-03    17.949       -.95867E-07** at limit **
   7  norm          .10000E-03    2.4525        .92949E-07** at limit **
   8  Prefactor     .10000E-03    20.416        .85330E-06** at limit **
   9  Prefactor     34.737        27.880        .10504E-05    .15355E-03
  10  Prefactor     .10000E-03    21.568       -.79409E-06** at limit **
  11  norm          .10000E-03    2.8151        .17870E-07** at limit **
  12  norm          .10000E-03    6.7092        .18219E-09** at limit **
  13  norm          6.5595        11.181       -.33697E-06   -.11163E-04
  14  norm          13.656        19.304        .44717E-06    .11120E-04
  15  norm          .10000E-03    2.7918       -.10773E-06** at limit **
  16  Prefactor     8.0182        5.8595        .32796E-07   -.10899E-04
  17  Prefactor     .10000E-03    26.069        .10978E-06** at limit **
  18  Prefactor     14.100        34.313       -.98075E-06   -.50644E-04
  19  Prefactor     .10000E-03    61.845        .74719E-07** at limit **
  20  Prefactor     4.3491        16.942        .14838E-05    .32088E-04
  21  Prefactor     .10000E-03    16.119       -.63929E-07** at limit **
  22  norm          .10000E-03    5.4560       -.20681E-06** at limit **
  23  Prefactor     36.006        77.540        .29629E-05    .54576E-04
  24  norm          4.1067        2.7137        .50811E-07   -.84900E-05
  25  norm          6.4883        18.565        .39143E-05   -.42059E-04
  26  Normalizat    .59198        .21886       -.84110E-07    .55854E-04
  27  Prefactor     1.2611        .27911       -.86359E-06    .78217E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.26038
  Prefactor  = 0.000100087
  Prefactor  = 29.1917
  Prefactor  = 0.240715
  norm       = 7.47083
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.737
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.55947
  norm       = 13.6565
  norm       = 0.0001
  Prefactor  = 8.01821
  Prefactor  = 0.0001
  Prefactor  = 14.1001
  Prefactor  = 0.0001
  Prefactor  = 4.34907
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 36.006
  norm       = 4.10666
  norm       = 6.48835
  Normalizat = 0.591976
  Prefactor  = 1.26109
 **********
 **   18 **HESSE 
 **********

 FCN=   3107.098     FROM HESSE     STATUS=OK           496 CALLS     3855 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2604        10.060        .16026E-03   -1.5208    
   2  Prefactor     .10009E-03    115.64        .50434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.192        25.110        .74134E-04   -1.4627    
   4  Prefactor     .24072        49.502        .97756E-01   -1.5610    
   5  norm          7.4708        3.7110        .72839E-04   -1.5161    
   6  Prefactor     .10000E-03    18.422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4590        .85208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.737        28.511        .67981E-04   -1.4529    
  10  Prefactor     .10000E-03    21.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.8188        .91321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.7109        .14102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.5595        11.696        .13512E-03   -1.5196    
  14  norm          13.656        20.204        .10834E-03   -1.4969    
  15  norm          .10000E-03    2.8298        .90858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.0182        5.8460        .10666E-03   -1.5142    
  17  Prefactor     .10000E-03    26.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.100        34.549        .10664E-03   -1.4957    
  19  Prefactor     .10000E-03    61.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.3491        14.989        .19298E-03   -1.5291    
  21  Prefactor     .10000E-03    16.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    26.499        .21787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     36.006        78.963        .66822E-04   -1.4507    
  24  norm          4.1067        2.7113        .71038E-04   -1.5303    
  25  norm          6.4883        18.925        .78748E-03   -1.5198    
  26  Normalizat    .59198        .26182        .26406E-03   -1.0833    
  27  Prefactor     1.2611        .33471        .24467E-03   -.84472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08592e-09
Minuit parameter uncertainties:
  1  10.063
  2  0.00636045
  3  25.119
  4  6.90823
  5  3.71112
  6  3.19512e-05
  7  2.08253e-06
  8  0.000131472
  9  28.5218
  10  0.000129255
  11  4.77944e-07
  12  8.4041e-07
  13  11.6997
  14  20.2146
  15  4.13914e-06
  16  5.84645
  17  3.00457e-05
  18  34.5976
  19  1.08758e-05
  20  15.0024
  21  1.09095e-05
  22  0.00034824
  23  79.1938
  24  2.71136
  25  18.9428
  26  0.262374
  27  0.335283
Done.

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

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  8.404e-07  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.261e+00  3.353e-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:  5.920e-01  2.624e-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: 3.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279715/likelihoodResults_428544001_428803201_4FGL_J1309.4+4305_daily_bin730.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): 102
logL (Free Index) = 3107.09911191
delta logL = -0.000661697157739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3107.0984502
delta logL = 1.76601133717e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7610       1.0000          .0000       5.0000    
     3 'Normalizat'    .59197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2611       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3107.098     FROM MIGRAD    STATUS=FAILED        94 CALLS      244 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1462.6        .14140E-02** at limit **
   2  alpha         1.5388        3.6429        .17477       -.27223E-07
   3  Normalizat    .59198        .14047        .26406E-03    .16360E-05
   4  Prefactor     1.2611        .18488        .24467E-03    .21374E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3107.098     FROM SIMPLEX   STATUS=UNCHANGED    197 CALLS      441 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1462.6        .38922E-03** at limit **
   2  alpha         1.5388        3.6429        .26589E-06   -.27223E-07
   3  Normalizat    .59198        .14047        .26948E-07    .16360E-05
   4  Prefactor     1.2611        .18488        .95195E-08    .21374E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3107.098     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      469 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9875        .28281E-03** at limit **
   2  alpha         1.5405        3.2698        .69908E-02    .19840E-07
   3  Normalizat    .59198        .24922        .10562E-04    .16145E-05
   4  Prefactor     1.2611        .32806        .97867E-05    .22071E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.5405
  Normalizat = 0.591976
  Prefactor  = 1.26108
 **********
 **   18 **HESSE 
 **********

 FCN=   3107.098     FROM HESSE     STATUS=OK            23 CALLS      492 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9866        .56562E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5405        3.2196        .13982E-02   -.39391    
   3  Normalizat    .59198        .24955        .21125E-05   -1.0833    
   4  Prefactor     1.2611        .32845        .19573E-05   -.84472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77479e-12
Minuit parameter uncertainties:
  1  2.25942e-05
  2  293.476
  3  0.250025
  4  0.328984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279715': 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) = 3107.09844992
delta logL = 2.94006895274e-07

Extracting fit parameters...

4FGL J1309.4+4305
   Spectrum: LogParabola
349         norm:  1.000e-04  2.259e-05  1.000e-04  1.000e+04 ( 1.000e-13)
350        alpha:  1.541e+00  2.935e+02  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.261e+00  3.290e-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:  5.920e-01  2.500e-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/279715/cmap_HighResolution_428544001_428803201_4FGL_J1309.4+4305_daily_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-05', job_status='DONE', photon_flux_upper_limit='3.95e-08', time_completed='2021-09-07 01:13:58.100087', job_id='279715', GAL2='1.26', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1631002438.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='2.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.77' WHERE bin_id='730' AND source_name='4FGL J1309.4+4305' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 01:13:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 279715: <4FGL_J1309.4+4305_daily_bin730> in cluster <slac> Done

Job <4FGL_J1309.4+4305_daily_bin730> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 01:00:25 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 01:00:37 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:00:37 2021
Terminated at Tue Sep  7 01:13:58 2021
Results reported at Tue Sep  7 01:13:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1309.4+4305_daily_bin730 197.363 43.085 428544001 428803201 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 :                                   606.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            813 sec.

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

