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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1124
RA = 346.922, Dec = 14.8644
tmin = 530668801, tmax = 530928001
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='670904', job_status='RUN', time_executed='2021-09-29 07:11:50.905878', time_epoch_executed='1632924710.91' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670904

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670904/ft1_4FGL_J2307.6+1451_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670904/ft2_4FGL_J2307.6+1451_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670904/ft1_4FGL_J2307.6+1451_daily_bin1124.fits outfile=/scratch/kocevski/670904/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1124.fits ra=346.922 dec=14.8644 rad=12.0 tmin=530668801.0 tmax=530928001.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.64
user 3.38
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670904/ft1_filtered_4FGL_J2307.6+1451_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/670904/ft2_4FGL_J2307.6+1451_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/670904/ltcube_530668801_530928001_4FGL_J2307.6+1451_daily_bin1124.fits outfile=/scratch/kocevski/670904/expmap_530668801_530928001_4FGL_J2307.6+1451_daily_bin1124.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/670904/ltcube_530668801_530928001_4FGL_J2307.6+1451_daily_bin1124.fits
.....................!
real 191.23
user 185.80
sys 4.98

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/670904/ft1_filtered_4FGL_J2307.6+1451_daily_bin1124.fits scfile=/scratch/kocevski/670904/ft2_4FGL_J2307.6+1451_daily_bin1124.fits outfile=/scratch/kocevski/670904/cmap_530668801_530928001_4FGL_J2307.6+1451_daily_bin1124.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670904/ft1_filtered_4FGL_J2307.6+1451_daily_bin1124.fits scfile=/scratch/kocevski/670904/ft2_4FGL_J2307.6+1451_daily_bin1124.fits outfile=/scratch/kocevski/670904/cmap_HighResolution_530668801_530928001_4FGL_J2307.6+1451_daily_bin1124.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/670904/ft1_filtered_4FGL_J2307.6+1451_daily_bin1124.fits', '/scratch/kocevski/670904/ft2_4FGL_J2307.6+1451_daily_bin1124.fits', expMap='/scratch/kocevski/670904/expmap_530668801_530928001_4FGL_J2307.6+1451_daily_bin1124.fits', expCube='/scratch/kocevski/670904/ltcube_530668801_530928001_4FGL_J2307.6+1451_daily_bin1124.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/670904/Model_4FGL_J2307.6+1451_daily_bin1124.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/670904/ft1_filtered_4FGL_J2307.6+1451_daily_bin1124.fits
Spacecraft file(s): /scratch/kocevski/670904/ft2_4FGL_J2307.6+1451_daily_bin1124.fits
Exposure map: /scratch/kocevski/670904/expmap_530668801_530928001_4FGL_J2307.6+1451_daily_bin1124.fits
Exposure cube: /scratch/kocevski/670904/ltcube_530668801_530928001_4FGL_J2307.6+1451_daily_bin1124.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/670904/Model_4FGL_J2307.6+1451_daily_bin1124.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) = 8100.77772511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.086       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2753       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4823       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.143       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1905       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3285       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.090       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.434       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.068       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.2889       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20577       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6801       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .54492       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=   8100.770     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     3173 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.090        18.560        .39873E-05   -.15257E-04
   2  Prefactor     .10000E-03    10.975       -.91138E-05** at limit **
   3  Prefactor     3.2754        .40274       -.29827E-07    .70020E-03
   4  Prefactor     .10000E-03    4.1950        .13362E-05** at limit **
   5  norm          4.4827        1.9947        .12791E-06    .16144E-02
   6  Prefactor     24.128        23.411       -.81675E-05   -.14225E-05
   7  Prefactor     .10000E-03    5.2436        .45840E-05** at limit **
   8  Prefactor     .10000E-03    9.6016        .86901E-05** at limit **
   9  Prefactor     1.1906        .21644        .43542E-07   -.13880E-02
  10  Prefactor     .10000E-03    4.4943       -.33552E-05** at limit **
  11  Prefactor     3.2981        137.75       -.92467E-04    .16550E-05
  12  Prefactor     .10000E-03    2.6479        .11722E-06** at limit **
  13  Prefactor     14.094        10.123        .89799E-06    .73099E-04
  14  Prefactor     45.455        33.769        .24609E-04    .19144E-04
  15  Prefactor     .10000E-03    2.0578       -.97430E-07** at limit **
  16  Prefactor     12.070        13.166        .24263E-05    .54624E-04
  17  Prefactor     .10000E-03    4.6721        .50032E-06** at limit **
  18  norm          7.2928        10.325       -.73947E-06   -.17807E-04
  19  Prefactor     .10000E-03    7.1673       -.98474E-06** at limit **
  20  Prefactor     .10000E-03    19.107        .21240E-05** at limit **
  21  norm          .10000E-03    5.8576       -.43641E-05** at limit **
  22  Prefactor     .31298        4.5780       -.83976E-06    .10750E-03
  23  Normalizat    1.6798        .22986        .17090E-05    .20063E-03
  24  Prefactor     .54498        .11629       -.17537E-05    .35365E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0901
  Prefactor  = 0.0001
  Prefactor  = 3.27544
  Prefactor  = 0.0001
  norm       = 4.48266
  Prefactor  = 24.1278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.19059
  Prefactor  = 0.0001
  Prefactor  = 3.29813
  Prefactor  = 0.0001
  Prefactor  = 14.0938
  Prefactor  = 45.4546
  Prefactor  = 0.0001
  Prefactor  = 12.0695
  Prefactor  = 0.0001
  norm       = 7.29281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.312981
  Normalizat = 1.6798
  Prefactor  = 0.544976
 **********
 **   18 **HESSE 
 **********

 FCN=   8100.770     FROM HESSE     STATUS=OK           395 CALLS     3568 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.090        18.616        .10312E-03   -1.4931    
   2  Prefactor     .10000E-03    11.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2754        .40563        .18532E-04   -1.5346    
   4  Prefactor     .10000E-03    4.2235        .18001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4827        1.9967        .41226E-03   -1.5284    
   6  Prefactor     24.128        23.437        .81524E-04   -1.4725    
   7  Prefactor     .10000E-03    5.2571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.6126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1906        .21722        .16848E-04   -1.5490    
  10  Prefactor     .10000E-03    4.5124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2981        140.82        .22187E-03   -1.5345    
  12  Prefactor     .10000E-03    2.6573        .14301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.094        10.129        .10670E-03   -1.4957    
  14  Prefactor     45.455        33.842        .59482E-04   -1.4359    
  15  Prefactor     .10000E-03    2.0678        .12607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.070        13.112        .11532E-03   -1.5013    
  17  Prefactor     .10000E-03    4.6753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.2928        10.273        .14857E-03   -1.5168    
  19  Prefactor     .10000E-03    7.2585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.8658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .31298        55.264        .36719E-02   -1.5596    
  23  Normalizat    1.6798        .27695        .30054E-03   -.72844    
  24  Prefactor     .54498        .13726        .26414E-03   -1.0996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.6451e-10
Minuit parameter uncertainties:
  1  18.6233
  2  2.32172e-06
  3  0.405635
  4  2.80337e-06
  5  1.9967
  6  23.4459
  7  2.1209e-05
  8  1.1288e-05
  9  0.217218
  10  4.25775e-05
  11  43.2096
  12  8.86992e-07
  13  10.1302
  14  33.8563
  15  7.82237e-06
  16  13.1148
  17  3.6048e-06
  18  10.2751
  19  3.13859e-05
  20  4.09722e-06
  21  2.75962e-06
  22  8.32433
  23  0.27721
  24  0.137341
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  8.870e-07  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:  5.450e-01  1.373e-01  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.680e+00  2.772e-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: 6.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670904/likelihoodResults_530668801_530928001_4FGL_J2307.6+1451_daily_bin1124.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) = 8100.77133282
delta logL = -0.00177812673428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8100.76955477
delta logL = -7.86922100815e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1658       1.0000          .0000       10.000    
     3 'Normalizat'    1.6798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54499       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.

 FCN=   8100.770     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      246 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10047E-03    19.691        .14486E-02** at limit **
   2  Index         2.1335        8.4298        .50000        .49158E-04
   3  Normalizat    1.6798        .15333E-01    .30053E-03   -.13391E-04
   4  Prefactor     .54498        .81993E-02    .26414E-03   -.16699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100473
  Index      = 2.13352
  Normalizat = 1.6798
  Prefactor  = 0.544975
 **********
 **   18 **HESSE 
 **********

 FCN=   8100.770     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10047E-03    88.054        .28971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1335        5.6930        .50000       -.61052    
   3  Normalizat    1.6798        .33368E-01    .12021E-04   -.72844    
   4  Prefactor     .54498        .17843E-01    .10566E-04   -1.0996    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40671e-08
Minuit parameter uncertainties:
  1  0.0129241
  2  204.655
  3  0.0333689
  4  0.0178437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670904': 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): 102
logL (Free Index) = 8100.76955413
delta logL = 5.64838046557e-07

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.005e-04  1.292e-02  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.134e+00  2.047e+02  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:  5.450e-01  1.784e-02  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.680e+00  3.337e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/670904/cmap_HighResolution_530668801_530928001_4FGL_J2307.6+1451_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-29 07:25:55.974784', job_id='670904', GAL2='0.54', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1632925555.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='5.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1124' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:25:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 670904: <4FGL_J2307.6+1451_daily_bin1124> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1124> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 29 07:10:21 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:10:23 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:23 2021
Terminated at Wed Sep 29 07:25:56 2021
Results reported at Wed Sep 29 07:25:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1124 346.922 14.8644 530668801 530928001 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 :                                   827.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             317.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

