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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1588
RA = 346.922, Dec = 14.8644
tmin = 650937601, tmax = 651196801
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='672685', job_status='RUN', time_executed='2021-09-29 07:15:40.521947', time_epoch_executed='1632924940.52' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672685/ft1_4FGL_J2307.6+1451_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672685/ft2_4FGL_J2307.6+1451_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/672685/ft1_4FGL_J2307.6+1451_daily_bin1588.fits outfile=/scratch/kocevski/672685/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1588.fits ra=346.922 dec=14.8644 rad=12.0 tmin=650937601.0 tmax=651196801.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.59
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/672685/ft1_filtered_4FGL_J2307.6+1451_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/672685/ft2_4FGL_J2307.6+1451_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/672685/ltcube_650937601_651196801_4FGL_J2307.6+1451_daily_bin1588.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/672685/ft2_4FGL_J2307.6+1451_daily_bin1588.fits
.....................!
real 12.13
user 11.78
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672685/ft1_filtered_4FGL_J2307.6+1451_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/672685/ft2_4FGL_J2307.6+1451_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/672685/ltcube_650937601_651196801_4FGL_J2307.6+1451_daily_bin1588.fits outfile=/scratch/kocevski/672685/expmap_650937601_651196801_4FGL_J2307.6+1451_daily_bin1588.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/672685/ltcube_650937601_651196801_4FGL_J2307.6+1451_daily_bin1588.fits
.....................!
real 189.80
user 185.15
sys 4.33

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/672685/ft1_filtered_4FGL_J2307.6+1451_daily_bin1588.fits scfile=/scratch/kocevski/672685/ft2_4FGL_J2307.6+1451_daily_bin1588.fits outfile=/scratch/kocevski/672685/cmap_650937601_651196801_4FGL_J2307.6+1451_daily_bin1588.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/672685/ft1_filtered_4FGL_J2307.6+1451_daily_bin1588.fits scfile=/scratch/kocevski/672685/ft2_4FGL_J2307.6+1451_daily_bin1588.fits outfile=/scratch/kocevski/672685/cmap_HighResolution_650937601_651196801_4FGL_J2307.6+1451_daily_bin1588.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7099       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.135       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22345       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5654       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8205       1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.394       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1690       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.814       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.152       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26659E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8483       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6658       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.211       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .54120       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1510       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=   6748.761     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2752 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7065        11.075        .15671E-05    .50749E-04
   2  Prefactor     27.132        16.939        .13984E-06   -.90376E-05
   3  Prefactor     .22345        .15874       -.18411E-07   -.24070E-03
   4  Prefactor     7.5635        8.4880        .34653E-06   -.63167E-03
   5  norm          1.8195        2.2866        .44412E-06   -.10285E-03
   6  Prefactor     53.188        40.952       -.35639E-05   -.15105E-03
   7  Prefactor     26.393        14.448       -.22408E-05   -.38001E-03
   8  Prefactor     .10000E-03    10.766       -.33959E-07** at limit **
   9  Prefactor     1.1689        .21702        .41147E-07   -.59098E-03
  10  Prefactor     11.810        12.054        .19772E-05    .18162E-03
  11  Prefactor     26.944        37.687       -.31182E-07   -.24453E-05
  12  Prefactor     .10000E-03    6.2769       -.44674E-08** at limit **
  13  Prefactor     .10001E-03    6.2958       -.71211E-08** at limit **
  14  Prefactor     .10000E-03    17.607       -.34869E-06** at limit **
  15  Prefactor     4.8459        3.6467        .81887E-06   -.25494E-02
  16  Prefactor     5.6669        8.2962        .67127E-08   -.32874E-04
  17  Prefactor     .10000E-03    4.5807       -.53882E-07** at limit **
  18  norm          15.208        8.7889        .32407E-08   -.12861E-04
  19  Prefactor     .10000E-03    3.2794        .72163E-08** at limit **
  20  Prefactor     .10000E-03    15.684        .27080E-06** at limit **
  21  norm          .10000E-03    3.5668       -.75796E-08** at limit **
  22  Prefactor     .10000E-03    3.0394        .10034E-07** at limit **
  23  Normalizat    .54131        .22526       -.59717E-07   -.10695E-04
  24  Prefactor     1.1510        .13298       -.90041E-07    .14760E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70652
  Prefactor  = 27.132
  Prefactor  = 0.223448
  Prefactor  = 7.5635
  norm       = 1.81953
  Prefactor  = 53.1876
  Prefactor  = 26.3928
  Prefactor  = 0.0001
  Prefactor  = 1.16892
  Prefactor  = 11.81
  Prefactor  = 26.9444
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 4.84585
  Prefactor  = 5.66686
  Prefactor  = 0.0001
  norm       = 15.2079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.541307
  Prefactor  = 1.15102
 **********
 **   18 **HESSE 
 **********

 FCN=   6748.761     FROM HESSE     STATUS=OK           409 CALLS     3161 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7065        11.032        .18542E-03   -1.5274    
   2  Prefactor     27.132        16.929        .76906E-04   -1.4666    
   3  Prefactor     .22345        .15850        .25564E-04   -1.5613    
   4  Prefactor     7.5635        8.7632        .72902E-03   -1.5158    
   5  norm          1.8195        2.2665        .12890E-03   -1.5438    
   6  Prefactor     53.188        41.458        .54991E-04   -1.4248    
   7  Prefactor     26.393        14.631        .77976E-04   -1.4680    
   8  Prefactor     .10000E-03    10.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1689        .21739        .15147E-04   -1.5492    
  10  Prefactor     11.810        12.108        .11655E-03   -1.5021    
  11  Prefactor     26.944        37.693        .76881E-04   -1.4669    
  12  Prefactor     .10000E-03    6.3878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    10.149        .71118E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8459        5.4397        .91347E-03   -1.5268    
  16  Prefactor     5.6669        8.2805        .16876E-03   -1.5232    
  17  Prefactor     .10000E-03    4.5847        .17172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.208        8.7716        .10270E-03   -1.4928    
  19  Prefactor     .10000E-03    3.3030        .14516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.5677        .15152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0634        .13985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .54131        .24095        .41466E-03   -1.1054    
  24  Prefactor     1.1510        .14461        .18066E-03   -.87852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63616e-09
Minuit parameter uncertainties:
  1  11.0366
  2  16.9322
  3  0.158497
  4  8.76473
  5  2.26656
  6  41.481
  7  14.6325
  8  4.51788e-06
  9  0.217386
  10  12.111
  11  37.7262
  12  2.51892e-06
  13  0.000522575
  14  2.93187e-05
  15  5.44022
  16  8.2822
  17  1.70918e-06
  18  8.77233
  19  3.93327e-07
  20  1.27128e-05
  21  4.31318e-07
  22  4.9046e-07
  23  0.24142
  24  0.144663
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  2.519e-06  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:  1.151e+00  1.447e-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:  5.413e-01  2.414e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/672685/likelihoodResults_650937601_651196801_4FGL_J2307.6+1451_daily_bin1588.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) = 6748.76164809
delta logL = -0.000746085594983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6748.76090233
delta logL = -3.26432200382e-07

Fit tolerance = 1e-08

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

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

 FCN=   6748.761     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.099        .90712E-02** at limit **
   2  Index         2.2137        5.2300        .50000       -.20553E-04
   3  Normalizat    .54131        .10732E-01    .93574E-01    .93780E-04
   4  Prefactor     1.1510        .66638E-02    .35904E-01    .11983E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21368
  Normalizat = 0.541307
  Prefactor  = 1.15102
 **********
 **   18 **HESSE 
 **********

 FCN=   6748.761     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      238 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    520.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2137        6.8936        .50000       -.59109    
   3  Normalizat    .54131        .51650E-01    .41466E-03   -1.1054    
   4  Prefactor     1.1510        .32168E-01    .18066E-03   -.87852    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.88316e-08
Minuit parameter uncertainties:
  1  0.000633374
  2  37.5113
  3  0.0516542
  4  0.0321684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672685': 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) = 6748.76090186
delta logL = 1.42593307828e-07

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  6.334e-04  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  2.214e+00  3.751e+01  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:  1.151e+00  3.217e-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:  5.413e-01  5.165e-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/672685/cmap_HighResolution_650937601_651196801_4FGL_J2307.6+1451_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.15e-08', time_completed='2021-09-29 07:27:30.928458', job_id='672685', GAL2='1.15', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1632925650.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1588' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:27:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 672685: <4FGL_J2307.6+1451_daily_bin1588> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin1588> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 07:15:22 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 07:15:24 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:15:24 2021
Terminated at Wed Sep 29 07:27:31 2021
Results reported at Wed Sep 29 07:27:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1588 346.922 14.8644 650937601 651196801 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 :                                   700.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

