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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1215
RA = 346.922, Dec = 14.8644
tmin = 554256001, tmax = 554515201
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='671040', job_status='RUN', time_executed='2021-09-29 07:11:23.854886', time_epoch_executed='1632924683.85' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671040

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671040/ft1_4FGL_J2307.6+1451_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671040/ft2_4FGL_J2307.6+1451_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671040/ft1_4FGL_J2307.6+1451_daily_bin1215.fits outfile=/scratch/kocevski/671040/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1215.fits ra=346.922 dec=14.8644 rad=12.0 tmin=554256001.0 tmax=554515201.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.99
user 3.79
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/671040/ft2_4FGL_J2307.6+1451_daily_bin1215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671040/ft2_4FGL_J2307.6+1451_daily_bin1215.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/671040/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/671040/ft1_filtered_4FGL_J2307.6+1451_daily_bin1215.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671040/ft1_filtered_4FGL_J2307.6+1451_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/671040/ft2_4FGL_J2307.6+1451_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/671040/ltcube_554256001_554515201_4FGL_J2307.6+1451_daily_bin1215.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/671040/ft2_4FGL_J2307.6+1451_daily_bin1215.fits
.....................!
real 11.89
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671040/ft1_filtered_4FGL_J2307.6+1451_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/671040/ft2_4FGL_J2307.6+1451_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/671040/ltcube_554256001_554515201_4FGL_J2307.6+1451_daily_bin1215.fits outfile=/scratch/kocevski/671040/expmap_554256001_554515201_4FGL_J2307.6+1451_daily_bin1215.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/671040/ltcube_554256001_554515201_4FGL_J2307.6+1451_daily_bin1215.fits
.....................!
real 190.31
user 185.23
sys 4.71

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2307.6+1451 @ 346.922 14.8644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/671040/ft1_filtered_4FGL_J2307.6+1451_daily_bin1215.fits scfile=/scratch/kocevski/671040/ft2_4FGL_J2307.6+1451_daily_bin1215.fits outfile=/scratch/kocevski/671040/cmap_554256001_554515201_4FGL_J2307.6+1451_daily_bin1215.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=346.922 yref=14.8644 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671040/ft1_filtered_4FGL_J2307.6+1451_daily_bin1215.fits scfile=/scratch/kocevski/671040/ft2_4FGL_J2307.6+1451_daily_bin1215.fits outfile=/scratch/kocevski/671040/cmap_HighResolution_554256001_554515201_4FGL_J2307.6+1451_daily_bin1215.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=346.922 yref=14.8644 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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/671040/ft1_filtered_4FGL_J2307.6+1451_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/671040/ft2_4FGL_J2307.6+1451_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/671040/Model_4FGL_J2307.6+1451_daily_bin1215.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/671040/ft1_filtered_4FGL_J2307.6+1451_daily_bin1215.fits......................!
real 18.15
user 16.92
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/671040/ft1_filtered_4FGL_J2307.6+1451_daily_bin1215.fits', '/scratch/kocevski/671040/ft2_4FGL_J2307.6+1451_daily_bin1215.fits', expMap='/scratch/kocevski/671040/expmap_554256001_554515201_4FGL_J2307.6+1451_daily_bin1215.fits', expCube='/scratch/kocevski/671040/ltcube_554256001_554515201_4FGL_J2307.6+1451_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/671040/Model_4FGL_J2307.6+1451_daily_bin1215.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2307.6+1451'

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.115e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/671040/ft1_filtered_4FGL_J2307.6+1451_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/671040/ft2_4FGL_J2307.6+1451_daily_bin1215.fits
Exposure map: /scratch/kocevski/671040/expmap_554256001_554515201_4FGL_J2307.6+1451_daily_bin1215.fits
Exposure cube: /scratch/kocevski/671040/ltcube_554256001_554515201_4FGL_J2307.6+1451_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/671040/Model_4FGL_J2307.6+1451_daily_bin1215.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) = 465.461404476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    83.692       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1295       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.697       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.787       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32127       1.0000         .10000E-03   10000.    
    10 'Prefactor '    100.08       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    205.73       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7863       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .27321E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   465.1526     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2689 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.941        .17313E-04** at limit **
   2  Prefactor     83.683        104.64       -.84179E-05   -.20686E-07
   3  Prefactor     2.1293        1.1432       -.20302E-06    .96475E-04
   4  Prefactor     17.700        28.161       -.10097E-05   -.95550E-05
   5  norm          .10000E-03    6.2736        .68376E-07** at limit **
   6  Prefactor     .10000E-03    126.35        .37291E-04** at limit **
   7  Prefactor     47.808        78.407        .30616E-04    .34795E-05
   8  Prefactor     .10000E-03    131.80        .31657E-04** at limit **
   9  Prefactor     .32128        .64614       -.22990E-06   -.39271E-04
  10  Prefactor     99.984        100.82       -.81319E-04    .24756E-05
  11  Prefactor     .10000E-03    71.132       -.39509E-04** at limit **
  12  Prefactor     .10000E-03    104.16        .36070E-04** at limit **
  13  Prefactor     .10000E-03    200.92       -.14661E-03** at limit **
  14  Prefactor     .10000E-03    130.01        .33996E-04** at limit **
  15  Prefactor     .10000E-03    50.162       -.27104E-04** at limit **
  16  Prefactor     .10000E-03    18.593        .24568E-05** at limit **
  17  Prefactor     205.71        155.12       -.81535E-05    .75179E-04
  18  norm          .10000E-03    16.128       -.23167E-05** at limit **
  19  Prefactor     .10000E-03    15.413        .12437E-05** at limit **
  20  Prefactor     .10000E-03    46.632       -.44091E-05** at limit **
  21  norm          .10000E-03    43.950        .17382E-04** at limit **
  22  Prefactor     .10000E-03    25.336       -.39394E-05** at limit **
  23  Normalizat    1.7868        .50265        .15975E-04    .29205E-04
  24  Prefactor     .20297E-10    .32090        .22372E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 83.6832
  Prefactor  = 2.1293
  Prefactor  = 17.6998
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.8081
  Prefactor  = 0.0001
  Prefactor  = 0.321275
  Prefactor  = 99.9838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 205.715
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.78684
  Prefactor  = 2.02965e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   465.1526     FROM HESSE     STATUS=OK           385 CALLS     3074 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.952        .13978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     83.683        104.66        .21954E-03   -1.3876    
   3  Prefactor     2.1293        1.1475        .15939E-04   -1.5416    
   4  Prefactor     17.700        28.060        .95206E-04   -1.4866    
   5  norm          .10000E-03    6.2737        .52782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    126.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     47.808        78.417        .58005E-04   -1.4324    
   8  Prefactor     .10000E-03    131.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .32128        .63105        .23357E-04   -1.5595    
  10  Prefactor     99.984        100.93        .20093E-03   -1.3705    
  11  Prefactor     .10000E-03    71.157        .17797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    104.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    202.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    130.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    50.206        .14920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.593        .90893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     205.71        155.36        .14090E-03   -1.2829    
  18  norm          .10000E-03    16.130        .84651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.419        .82753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    46.635        .14402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    43.949        .13980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.345        .10612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7868        .45289        .22300E-03   -.70008    
  24  Prefactor     .20297E-10    .37626        .65241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34083e-10
Minuit parameter uncertainties:
  1  2.93186e-05
  2  104.895
  3  1.14752
  4  28.081
  5  6.35444e-06
  6  5.38119e-05
  7  78.5867
  8  0.000109768
  9  0.631063
  10  101.099
  11  0.000107403
  12  0.000134176
  13  0.00042191
  14  0.000400822
  15  0.000298654
  16  1.29296e-05
  17  155.669
  18  8.45896e-06
  19  9.22157e-06
  20  3.12243e-05
  21  6.33756e-06
  22  2.5828e-05
  23  0.453956
  24  5.56219e-06
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  1.342e-04  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.184e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  2.030e-11  5.562e-06  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.787e+00  4.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 346.922 14.864
Photon Flux Upper Limit: 8.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671040/likelihoodResults_554256001_554515201_4FGL_J2307.6+1451_daily_bin1215.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) = 465.152637511
delta logL = -4.56554510038e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 465.151955199
delta logL = 0.000636657281973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30914       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1297       1.0000          .0000       10.000    
     3 'Normalizat'    1.7801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .21968E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+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=   465.1520     FROM MIGRAD    STATUS=FAILED        96 CALLS      326 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30418        8748.6        .14817E-02    .95589E-03
   2  Index         3.1364        6.5672        .11779E-01    .11692E-03
   3  Normalizat    1.7796        1.1991        .22332E-03   -.12286E-02
   4  Prefactor     .56704E-10    .35670        .65292E-02** at limit **
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   465.1520     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      450 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30418        8748.6        .64389E-03    .95589E-03
   2  Index         3.1364        6.5672        .43244E-03    .11692E-03
   3  Normalizat    1.7796        1.1991        .10490E-03   -.12286E-02
   4  Prefactor     .56704E-10    .35670        .21836E-02** at limit **
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   465.1520     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      486 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30301        88.380        .59269E-04    .26734E-05
   2  Index         3.1355        6.1269        .47115E-03   -.33329E-06
   3  Normalizat    1.7797        .44923        .44665E-04    .11992E-04
   4  Prefactor     .34972E-12    .37940        .13058E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.30301
  Index      = 3.13548
  Normalizat = 1.77972
  Prefactor  = 3.4972e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   465.1520     FROM HESSE     STATUS=OK            23 CALLS      509 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30301        85.947        .23707E-05   -1.5598    
   2  Index         3.1355        6.1614        .18846E-04   -.38214    
   3  Normalizat    1.7797        .44901        .89330E-05   -.70194    
   4  Prefactor     .34972E-12    .37941        .26117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33157e-12
Minuit parameter uncertainties:
  1  10.2195
  2  8.1968
  3  0.450052
  4  7.33072e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671040': 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) = 465.151954341
delta logL = 0.00063751536004

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  3.030e-01  1.022e+01  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  3.135e+00  8.197e+00  0.000e+00  1.000e+01 (-1.000e+00)
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  3.497e-13  7.331e-07  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  1.780e+00  4.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.922 14.864

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/671040/cmap_HighResolution_554256001_554515201_4FGL_J2307.6+1451_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-02', job_status='DONE', photon_flux_upper_limit='8.07e-07', time_completed='2021-09-29 07:17:13.368791', job_id='671040', GAL2='0.00', fit_tolerance='1e-08', EG2='1.78', EG='1.79', time_epoch_completed='1632925033.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='6.38e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1215' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:17:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 671040: <4FGL_J2307.6+1451_daily_bin1215> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1215> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 07:10:31 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:10:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 07:10:33 2021
Terminated at Wed Sep 29 07:17:14 2021
Results reported at Wed Sep 29 07:17:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1215 346.922 14.8644 554256001 554515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2307.6+1451 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   345.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   400 sec.
    Turnaround time :                            403 sec.

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

