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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1141
RA = 346.922, Dec = 14.8644
tmin = 535075201, tmax = 535334401
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='670929', job_status='RUN', time_executed='2021-09-29 07:10:40.900413', time_epoch_executed='1632924640.9' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670929

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670929/ft1_4FGL_J2307.6+1451_daily_bin1141.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670929/ft2_4FGL_J2307.6+1451_daily_bin1141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670929/ft1_4FGL_J2307.6+1451_daily_bin1141.fits outfile=/scratch/kocevski/670929/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1141.fits ra=346.922 dec=14.8644 rad=12.0 tmin=535075201.0 tmax=535334401.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 4.93
user 4.67
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670929/ft1_filtered_4FGL_J2307.6+1451_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/670929/ft2_4FGL_J2307.6+1451_daily_bin1141.fits sctable="SC_DATA" expcube=/scratch/kocevski/670929/ltcube_535075201_535334401_4FGL_J2307.6+1451_daily_bin1141.fits outfile=/scratch/kocevski/670929/expmap_535075201_535334401_4FGL_J2307.6+1451_daily_bin1141.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/670929/ltcube_535075201_535334401_4FGL_J2307.6+1451_daily_bin1141.fits
.....................!
real 191.43
user 186.12
sys 4.99

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/670929/ft1_filtered_4FGL_J2307.6+1451_daily_bin1141.fits scfile=/scratch/kocevski/670929/ft2_4FGL_J2307.6+1451_daily_bin1141.fits outfile=/scratch/kocevski/670929/cmap_535075201_535334401_4FGL_J2307.6+1451_daily_bin1141.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2465       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.801       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8919       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.490       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5702       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9270       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17479       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4511       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.620       1.0000         .10000E-03   10000.    
    18 'norm      '    4.3848       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0977       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    28.527       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .82656E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1967       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72662       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=   10205.62     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2725 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.800       -.12044E-05** at limit **
   2  Prefactor     3.2408        23.564       -.22421E-05   -.10565E-04
   3  Prefactor     15.802        .80566       -.22375E-07    .92492E-03
   4  Prefactor     .10000E-03    6.4564       -.11971E-06** at limit **
   5  norm          1.8900        1.8353        .83088E-07   -.52307E-03
   6  Prefactor     37.473        41.294        .24059E-05    .39683E-04
   7  Prefactor     .10001E-03    46.065        .21887E-05** at limit **
   8  Prefactor     .10000E-03    19.485        .67727E-06** at limit **
   9  Prefactor     1.5707        .29374        .21180E-08    .29716E-02
  10  Prefactor     .10000E-03    7.3039       -.19798E-06** at limit **
  11  Prefactor     7.9280        40.179       -.19233E-06    .29426E-04
  12  Prefactor     .77498E-01    5.2647       -.22453E-05    .89426E-04
  13  Prefactor     .10000E-03    14.183       -.31535E-06** at limit **
  14  Prefactor     6.4407        29.451        .73815E-06    .34554E-04
  15  Prefactor     .10000E-03    5.0203       -.63739E-06** at limit **
  16  Prefactor     .10000E-03    4.4007       -.57650E-07** at limit **
  17  Prefactor     26.614        21.795       -.14656E-06    .98748E-04
  18  norm          4.3873        9.7933       -.11377E-05    .14118E-03
  19  Prefactor     6.0990        9.0091       -.22361E-06    .23304E-03
  20  Prefactor     .10000E-03    11.239       -.15215E-06** at limit **
  21  norm          28.524        18.453       -.86771E-08    .70636E-04
  22  Prefactor     .10000E-03    51.961        .18110E-04** at limit **
  23  Normalizat    1.1964        .24296        .15845E-05    .13402E-03
  24  Prefactor     .72684        .12475        .15635E-05    .43783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.24083
  Prefactor  = 15.8015
  Prefactor  = 0.0001
  norm       = 1.89004
  Prefactor  = 37.4732
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 1.57066
  Prefactor  = 0.0001
  Prefactor  = 7.92795
  Prefactor  = 0.0774977
  Prefactor  = 0.0001
  Prefactor  = 6.44074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6139
  norm       = 4.38726
  Prefactor  = 6.09899
  Prefactor  = 0.0001
  norm       = 28.5241
  Prefactor  = 0.000100001
  Normalizat = 1.19641
  Prefactor  = 0.726837
 **********
 **   18 **HESSE 
 **********

 FCN=   10205.62     FROM HESSE     STATUS=OK           405 CALLS     3130 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2408        23.672        .22479E-03   -1.5348    
   3  Prefactor     15.802        .80586        .19633E-04   -1.4913    
   4  Prefactor     .10000E-03    6.5103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8900        1.8191        .13004E-03   -1.5433    
   6  Prefactor     37.473        41.558        .65457E-04   -1.4483    
   7  Prefactor     .10001E-03    46.394        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5707        .29574        .21506E-04   -1.5457    
  10  Prefactor     .10000E-03    7.3397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9280        40.517        .14241E-03   -1.5145    
  12  Prefactor     .77498E-01    7.9664        .69187E-01   -1.5652    
  13  Prefactor     .10000E-03    14.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4407        29.845        .15802E-03   -1.5200    
  15  Prefactor     .10000E-03    5.0815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.4075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.614        21.832        .77645E-04   -1.4676    
  18  norm          4.3873        9.6905        .19234E-03   -1.5289    
  19  Prefactor     6.0990        8.9345        .16259E-03   -1.5214    
  20  Prefactor     .10000E-03    11.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          28.524        18.456        .75010E-04   -1.4639    
  22  Prefactor     .10000E-03    50.298        .41772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1964        .29223        .42520E-03   -.86714    
  24  Prefactor     .72684        .15228        .28693E-03   -1.0248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08525e-09
Minuit parameter uncertainties:
  1  6.46448e-05
  2  17.527
  3  0.805859
  4  6.80821e-06
  5  1.81914
  6  41.5906
  7  0.00134982
  8  6.08658e-05
  9  0.295745
  10  6.54136e-05
  11  35.8835
  12  1.57067
  13  8.003e-05
  14  27.7515
  15  3.96431e-05
  16  2.27006e-06
  17  21.8389
  18  9.69401
  19  8.9365
  20  6.11682e-06
  21  18.4601
  22  0.000350142
  23  0.292627
  24  0.152366
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  7.750e-02  1.571e+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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  7.268e-01  1.524e-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.196e+00  2.926e-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: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670929/likelihoodResults_535075201_535334401_4FGL_J2307.6+1451_daily_bin1141.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) = 10205.5747804
delta logL = 0.0417241880186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10205.5515024
delta logL = 0.0650021992424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56728       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1558       1.0000          .0000       10.000    
     3 'Normalizat'    1.1773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72948       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=   10205.55     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      300 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57137        212.90        .20014E-03   -.79879E-03
   2  Index         3.1521        7.6331        .88649E-02   -.62629E-04
   3  Normalizat    1.1773        .26872        .42782E-03   -.16970E-03
   4  Prefactor     .72947        .14773        .28630E-03   -.11778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.571366
  Index      = 3.15206
  Normalizat = 1.17734
  Prefactor  = 0.729473
 **********
 **   18 **HESSE 
 **********

 FCN=   10205.55     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57137        6.8543        .80054E-05   -1.5557    
   2  Index         3.1521        2.7380        .35460E-03   -.37857    
   3  Normalizat    1.1773        .28577        .17113E-04   -.87306    
   4  Prefactor     .72947        .15247        .11452E-04   -1.0238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52126e-10
Minuit parameter uncertainties:
  1  3.95817
  2  2.92807
  3  0.286152
  4  0.152558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670929': 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) = 10205.5515015
delta logL = 0.0650031341647

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  5.714e-01  3.958e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  3.152e+00  2.928e+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:  7.295e-01  1.526e-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.177e+00  2.862e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/670929/cmap_HighResolution_535075201_535334401_4FGL_J2307.6+1451_daily_bin1141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.82e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-29 07:26:31.430234', job_id='670929', GAL2='0.73', fit_tolerance='1e-08', EG2='1.18', EG='1.20', time_epoch_completed='1632925591.43', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='6.50e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1141' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:26:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 670929: <4FGL_J2307.6+1451_daily_bin1141> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1141 346.922 14.8644 535075201 535334401 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 :                                   944.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

