/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 106 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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2307.6+1451_daily_bin50
RA = 346.922, Dec = 14.8644
tmin = 252288001, tmax = 252547201
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='664848', job_status='RUN', time_executed='2021-09-29 06:52:17.782334', time_epoch_executed='1632923537.78' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/664848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/664848/ft1_4FGL_J2307.6+1451_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/664848/ft2_4FGL_J2307.6+1451_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/664848/ft1_4FGL_J2307.6+1451_daily_bin50.fits outfile=/scratch/kocevski/664848/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin50.fits ra=346.922 dec=14.8644 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.59
user 2.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/664848/ft1_filtered_4FGL_J2307.6+1451_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/664848/ft2_4FGL_J2307.6+1451_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/664848/ltcube_252288001_252547201_4FGL_J2307.6+1451_daily_bin50.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/664848/ft2_4FGL_J2307.6+1451_daily_bin50.fits
.....................!
real 12.81
user 12.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/664848/ft1_filtered_4FGL_J2307.6+1451_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/664848/ft2_4FGL_J2307.6+1451_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/664848/ltcube_252288001_252547201_4FGL_J2307.6+1451_daily_bin50.fits outfile=/scratch/kocevski/664848/expmap_252288001_252547201_4FGL_J2307.6+1451_daily_bin50.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/664848/ltcube_252288001_252547201_4FGL_J2307.6+1451_daily_bin50.fits
.....................!
real 191.16
user 186.14
sys 4.58

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/664848/ft1_filtered_4FGL_J2307.6+1451_daily_bin50.fits scfile=/scratch/kocevski/664848/ft2_4FGL_J2307.6+1451_daily_bin50.fits outfile=/scratch/kocevski/664848/cmap_252288001_252547201_4FGL_J2307.6+1451_daily_bin50.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/664848/ft1_filtered_4FGL_J2307.6+1451_daily_bin50.fits scfile=/scratch/kocevski/664848/ft2_4FGL_J2307.6+1451_daily_bin50.fits outfile=/scratch/kocevski/664848/cmap_HighResolution_252288001_252547201_4FGL_J2307.6+1451_daily_bin50.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.157       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .75236E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3168       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .71947       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0877       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10956E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18140E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7707       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.833       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .69934E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.939       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.595       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2566       1.0000         .10000E-03   10000.    
    21 'norm      '    7.7456       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0829       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68724       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98901       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=   6920.012     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2370 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8534        .49911E-07** at limit **
   2  Prefactor     17.158        14.690       -.19282E-07    .72650E-05
   3  Prefactor     .75420E-01    .10235       -.20558E-06   -.45426E-02
   4  Prefactor     .10000E-03    2.7227        .11378E-07** at limit **
   5  norm          1.3164        1.2088        .61847E-07   -.69502E-04
   6  Prefactor     .10000E-03    12.359       -.92426E-06** at limit **
   7  Prefactor     .75665        7.3042       -.35787E-06    .18821E-03
   8  Prefactor     .10000E-03    8.8381        .26294E-06** at limit **
   9  Prefactor     2.0878        .26206        .11830E-07    .23861E-02
  10  Prefactor     .10000E-03    40.751       -.88222E-05** at limit **
  11  Prefactor     .10000E-03    15.657        .16484E-05** at limit **
  12  Prefactor     .10000E-03    9.3574        .30804E-05** at limit **
  13  Prefactor     8.7693        10.157       -.14322E-06    .73874E-04
  14  Prefactor     14.852        19.859       -.24932E-05    .25778E-03
  15  Prefactor     .10000E-03    4.4197       -.18630E-06** at limit **
  16  Prefactor     .69324E-01    6.3525       -.17415E-05    .17951E-03
  17  Prefactor     .10000E-03    6.1393       -.73017E-07** at limit **
  18  norm          14.936        11.990        .65410E-07    .17480E-03
  19  Prefactor     12.594        9.8482       -.24536E-06    .17778E-03
  20  Prefactor     5.2540        20.955       -.41601E-06    .30340E-04
  21  norm          7.7443        10.441       -.19498E-06    .28884E-04
  22  Prefactor     7.0823        6.1837       -.11038E-06    .93351E-05
  23  Normalizat    .68718        .21148        .15915E-05    .12812E-03
  24  Prefactor     .98911        .11943        .33635E-06    .17381E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.1576
  Prefactor  = 0.0754201
  Prefactor  = 0.0001
  norm       = 1.31641
  Prefactor  = 0.0001
  Prefactor  = 0.75665
  Prefactor  = 0.0001
  Prefactor  = 2.08776
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.76929
  Prefactor  = 14.8515
  Prefactor  = 0.0001
  Prefactor  = 0.0693237
  Prefactor  = 0.0001
  norm       = 14.9357
  Prefactor  = 12.5945
  Prefactor  = 5.25402
  norm       = 7.74434
  Prefactor  = 7.08229
  Normalizat = 0.687182
  Prefactor  = 0.989111
 **********
 **   18 **HESSE 
 **********

 FCN=   6920.012     FROM HESSE     STATUS=OK           413 CALLS     2783 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.158        14.686        .96693E-04   -1.4879    
   3  Prefactor     .75420E-01    .97350E-01    .33157E-03   -1.5653    
   4  Prefactor     .10000E-03    2.7468        .13405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3164        1.2016        .84779E-04   -1.5478    
   6  Prefactor     .10000E-03    12.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .75665        20.967        .42067E-02   -1.5534    
   8  Prefactor     .10000E-03    8.8385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0878        .26012        .14082E-04   -1.5419    
  10  Prefactor     .10000E-03    50.332        .44262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.200        .31956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.7693        10.130        .13535E-03   -1.5116    
  14  Prefactor     14.852        19.529        .10400E-03   -1.4937    
  15  Prefactor     .10000E-03    4.5241        .17079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .69324E-01    7.7635        .65195E-01   -1.5655    
  17  Prefactor     .10000E-03    6.1474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.936        11.959        .10363E-03   -1.4935    
  19  Prefactor     12.594        9.8487        .11287E-03   -1.4998    
  20  Prefactor     5.2540        20.883        .17531E-03   -1.5249    
  21  norm          7.7443        10.437        .14408E-03   -1.5151    
  22  Prefactor     7.0823        6.1849        .15073E-03   -1.5176    
  23  Normalizat    .68718        .24226        .36969E-03   -1.0440    
  24  Prefactor     .98911        .13849        .18518E-03   -.93093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75521e-09
Minuit parameter uncertainties:
  1  1.55719e-05
  2  14.6892
  3  0.0973507
  4  6.00428e-07
  5  1.20167
  6  8.48689e-05
  7  7.96868
  8  2.9823e-05
  9  0.260115
  10  5.12429e-05
  11  0.000218394
  12  4.56517e-05
  13  10.1318
  14  19.5373
  15  1.29534e-05
  16  1.46637
  17  6.36455e-06
  18  11.9611
  19  9.84996
  20  20.9115
  21  10.4393
  22  6.18541
  23  0.242637
  24  0.138541
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  4.565e-05  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:  9.891e-01  1.385e-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:  6.872e-01  2.426e-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: 9.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/664848/likelihoodResults_252288001_252547201_4FGL_J2307.6+1451_daily_bin50.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) = 6920.01254311
delta logL = -0.000180712348993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6920.01231668
delta logL = 4.57210735476e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23937E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3290       1.0000          .0000       10.000    
     3 'Normalizat'    .68734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98902       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=   6919.522     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      277 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .95901E-01    1.5704        .61058E-02    .91171E-03
   2  Index         4.1301        2.2822        .89438E-01    .10508E-03
   3  Normalizat    .63193        .39697E-01    .86577E-01   -.31007E-03
   4  Prefactor     1.0058        .23671E-01    .46130E-01   -.35846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0959014
  Index      = 4.13008
  Normalizat = 0.631929
  Prefactor  = 1.00582
 **********
 **   18 **HESSE 
 **********

 FCN=   6919.522     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      310 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .95901E-01    5.5637        .27852E-03   -1.5646    
   2  Index         4.1301        7.0062        .53557E-02   -.17487    
   3  Normalizat    .63193        .16089        .38350E-03   -1.0664    
   4  Prefactor     1.0058        .95224E-01    .18355E-03   -.92536    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.90867e-10
Minuit parameter uncertainties:
  1  1.46029
  2  5.80258
  3  0.161006
  4  0.09524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/664848': 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) = 6919.52205096
delta logL = 0.490311441448

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  9.590e-02  1.460e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  4.130e+00  5.803e+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:  1.006e+00  9.524e-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:  6.319e-01  1.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 346.922 14.864
Photon Index (Free Index): 4.13 +/- 5.80
Photon Flux (Free Index): 6.25e-08 +/- 6.37e-08
Energy Flux (Free Index): 9.16e-06 +/- 1.15e-05

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/664848/cmap_HighResolution_252288001_252547201_4FGL_J2307.6+1451_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-03', comment='SUCCESS', energy_flux2='9.16e-06', dlogl='4.90e-01', photon_flux2='6.25e-08', job_status='DONE', time_completed='2021-09-29 07:03:41.721967', photon_index_error2='5.80', photon_index2='4.13', ts='-0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='9.94e-08', energy_flux_error2='1.15e-05', EG='0.69', time_epoch_completed='1632924221.72', return_code='0', job_id='664848', GAL2='1.01', EG2='0.63', return_code2='102', photon_flux_error2='6.37e-08', ts2='1.03', photon_index='2.18' WHERE bin_id='50' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:03:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 664848: <4FGL_J2307.6+1451_daily_bin50> in cluster <slac> Done

Job <4FGL_J2307.6+1451_daily_bin50> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 06:50:20 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:50:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 06:50:22 2021
Terminated at Wed Sep 29 07:03:42 2021
Results reported at Wed Sep 29 07:03:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin50 346.922 14.8644 252288001 252547201 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 :                                   682.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            802 sec.

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

