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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1554
RA = 346.922, Dec = 14.8644
tmin = 642124801, tmax = 642384001
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='672634', job_status='RUN', time_executed='2021-09-29 07:17:39.029304', time_epoch_executed='1632925059.03' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/672634

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/672634/ft1_4FGL_J2307.6+1451_daily_bin1554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/672634/ft2_4FGL_J2307.6+1451_daily_bin1554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/672634/ft1_4FGL_J2307.6+1451_daily_bin1554.fits outfile=/scratch/kocevski/672634/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1554.fits ra=346.922 dec=14.8644 rad=12.0 tmin=642124801.0 tmax=642384001.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.30
user 4.07
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/672634/ft2_4FGL_J2307.6+1451_daily_bin1554.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/672634/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1554.fits evtable="EVENTS" outfile="/scratch/kocevski/672634/ft1_filtered_4FGL_J2307.6+1451_daily_bin1554.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/672634/ft1_filtered_4FGL_J2307.6+1451_daily_bin1554.fits" evtable="EVENTS" scfile=/scratch/kocevski/672634/ft2_4FGL_J2307.6+1451_daily_bin1554.fits sctable="SC_DATA" outfile=/scratch/kocevski/672634/ltcube_642124801_642384001_4FGL_J2307.6+1451_daily_bin1554.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/672634/ft2_4FGL_J2307.6+1451_daily_bin1554.fits
.....................!
real 12.15
user 11.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/672634/ft1_filtered_4FGL_J2307.6+1451_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/672634/ft2_4FGL_J2307.6+1451_daily_bin1554.fits sctable="SC_DATA" expcube=/scratch/kocevski/672634/ltcube_642124801_642384001_4FGL_J2307.6+1451_daily_bin1554.fits outfile=/scratch/kocevski/672634/expmap_642124801_642384001_4FGL_J2307.6+1451_daily_bin1554.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/672634/ltcube_642124801_642384001_4FGL_J2307.6+1451_daily_bin1554.fits
.....................!
real 190.22
user 184.93
sys 4.93

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/672634/ft1_filtered_4FGL_J2307.6+1451_daily_bin1554.fits scfile=/scratch/kocevski/672634/ft2_4FGL_J2307.6+1451_daily_bin1554.fits outfile=/scratch/kocevski/672634/cmap_642124801_642384001_4FGL_J2307.6+1451_daily_bin1554.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/672634/ft1_filtered_4FGL_J2307.6+1451_daily_bin1554.fits scfile=/scratch/kocevski/672634/ft2_4FGL_J2307.6+1451_daily_bin1554.fits outfile=/scratch/kocevski/672634/cmap_HighResolution_642124801_642384001_4FGL_J2307.6+1451_daily_bin1554.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6497       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14505       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0334       1.0000         .10000E-03   10000.    
     5 'norm      '    2.5899       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15495E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23285       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3849       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0749       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.852       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0018       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1140       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2419       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1996       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0669       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81982       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=   6663.760     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2377 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6497        10.383        .20724E-06    .27917E-04
   2  Prefactor     .10000E-03    4.6330       -.28457E-07** at limit **
   3  Prefactor     .14506        .11905        .52281E-09   -.17908E-03
   4  Prefactor     7.0335        6.4420       -.37844E-07   -.79254E-05
   5  norm          2.5891        1.7156        .50794E-07   -.13242E-03
   6  Prefactor     .10000E-03    10.774        .20857E-06** at limit **
   7  Prefactor     .10017E-03    8.6549        .36437E-06** at limit **
   8  Prefactor     .10000E-03    6.7610        .24138E-05** at limit **
   9  Prefactor     .23284        .13037        .10841E-07   -.75241E-03
  10  Prefactor     6.3823        8.7615       -.36965E-05   -.81037E-03
  11  Prefactor     .10000E-03    7.4141       -.24761E-05** at limit **
  12  Prefactor     5.0746        7.9017       -.67401E-06   -.21795E-03
  13  Prefactor     10.853        11.763        .14906E-05    .28523E-03
  14  Prefactor     .10000E-03    61.892        .10167E-05** at limit **
  15  Prefactor     2.0014        3.5519        .18771E-07   -.16770E-03
  16  Prefactor     .10000E-03    5.7292       -.89968E-06** at limit **
  17  Prefactor     6.1144        15.405        .11764E-05    .68319E-04
  18  norm          .10000E-03    3.3511       -.22926E-07** at limit **
  19  Prefactor     2.2420        5.7039       -.93524E-07   -.25599E-03
  20  Prefactor     .10000E-03    8.5272        .71464E-06** at limit **
  21  norm          3.1988        8.8300        .48729E-05   -.97198E-03
  22  Prefactor     .10000E-03    5.1046        .28002E-06** at limit **
  23  Normalizat    1.0670        .19262       -.24831E-06   -.42438E-04
  24  Prefactor     .81979        .10838        .12371E-06   -.90239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.64972
  Prefactor  = 0.0001
  Prefactor  = 0.145059
  Prefactor  = 7.03351
  norm       = 2.58909
  Prefactor  = 0.0001
  Prefactor  = 0.000100172
  Prefactor  = 0.000100001
  Prefactor  = 0.232844
  Prefactor  = 6.38235
  Prefactor  = 0.000100001
  Prefactor  = 5.07465
  Prefactor  = 10.8527
  Prefactor  = 0.0001
  Prefactor  = 2.0014
  Prefactor  = 0.0001
  Prefactor  = 6.11443
  norm       = 0.0001
  Prefactor  = 2.24196
  Prefactor  = 0.0001
  norm       = 3.19882
  Prefactor  = 0.0001
  Normalizat = 1.06697
  Prefactor  = 0.819789
 **********
 **   18 **HESSE 
 **********

 FCN=   6663.760     FROM HESSE     STATUS=OK           413 CALLS     2790 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6497        10.363        .13629E-03   -1.5120    
   2  Prefactor     .10000E-03    4.6415        .17160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .14506        .12267        .24257E-03   -1.5632    
   4  Prefactor     7.0335        6.4435        .15127E-03   -1.5177    
   5  norm          2.5891        1.7183        .82131E-04   -1.5386    
   6  Prefactor     .10000E-03    10.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10017E-03    15.118        .64391E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .23284        .12775        .20552E-04   -1.5611    
  10  Prefactor     6.3823        9.2191        .15884E-03   -1.5203    
  11  Prefactor     .10000E-03    7.5112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0746        7.9060        .17848E-03   -1.5257    
  13  Prefactor     10.853        11.828        .12162E-03   -1.5049    
  14  Prefactor     .10000E-03    63.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0014        3.5158        .19448E-03   -1.5425    
  16  Prefactor     .10000E-03    5.9521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.1144        15.379        .16237E-03   -1.5213    
  18  norm          .10000E-03    3.3828        .14579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2420        5.7115        .27448E-03   -1.5408    
  20  Prefactor     .10000E-03    8.5551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1988        11.141        .11326E-02   -1.5350    
  22  Prefactor     .10000E-03    5.2421        .36014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0670        .22754        .27764E-03   -.90819    
  24  Prefactor     .81979        .12829        .18405E-03   -.99003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23175e-09
Minuit parameter uncertainties:
  1  10.3656
  2  1.28165e-06
  3  0.122671
  4  6.44414
  5  1.71834
  6  1.50651e-05
  7  0.00322285
  8  0.000158214
  9  0.127746
  10  9.22117
  11  0.000174006
  12  7.9076
  13  11.8302
  14  0.000355428
  15  3.51615
  16  5.00022e-05
  17  15.3886
  18  2.18264e-06
  19  5.71284
  20  5.11043e-05
  21  11.1478
  22  9.59424e-06
  23  0.227748
  24  0.128337
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  5.075e+00  7.908e+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:  8.198e-01  1.283e-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.067e+00  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.48
Ra Dec: 346.922 14.864
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/672634/likelihoodResults_642124801_642384001_4FGL_J2307.6+1451_daily_bin1554.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): 0
logL (Free Index) = 6663.42629823
delta logL = 0.333266289908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6663.3916764
delta logL = 0.36788811832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5621       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0457       1.0000          .0000       10.000    
     3 'Normalizat'    1.0242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83433       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=   6663.392     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      258 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5614        30.782        .85102E-02    .90527E-03
   2  Index         3.0459        2.7476        .93030E-01    .20583E-03
   3  Normalizat    1.0241        .53134E-01    .63864E-01    .16672E-04
   4  Prefactor     .83437        .30545E-01    .44162E-01    .42559E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56142
  Index      = 3.04594
  Normalizat = 1.02414
  Prefactor  = 0.834373
 **********
 **   18 **HESSE 
 **********

 FCN=   6663.392     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5614        66.605        .93275E-04   -1.5458    
   2  Index         3.0459        6.5227        .53691E-02   -.40151    
   3  Normalizat    1.0241        .23802        .28247E-03   -.92226    
   4  Prefactor     .83437        .14042        .18250E-03   -.98473    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46045e-09
Minuit parameter uncertainties:
  1  20.4196
  2  5.44851
  3  0.238267
  4  0.140485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/672634': 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) = 6663.39167632
delta logL = 0.367888200301

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.561e+00  2.042e+01  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  3.046e+00  5.449e+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:  8.344e-01  1.405e-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.024e+00  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 346.922 14.864
Photon Index (Free Index): 3.05 +/- 5.45
Photon Flux (Free Index): 6.28e-08 +/- 6.58e-08
Energy Flux (Free Index): 1.23e-05 +/- 2.83e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/672634/cmap_HighResolution_642124801_642384001_4FGL_J2307.6+1451_daily_bin1554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.97e-03', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='3.68e-01', photon_flux2='6.28e-08', job_status='DONE', time_completed='2021-09-29 07:28:48.421483', photon_index_error2='5.45', photon_index2='3.05', ts='0.48', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='2.83e-05', EG='1.07', time_epoch_completed='1632925728.42', return_code='0', job_id='672634', GAL2='0.83', EG2='1.02', return_code2='102', photon_flux_error2='6.58e-08', ts2='1.25', photon_index='2.18' WHERE bin_id='1554' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:28:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 672634: <4FGL_J2307.6+1451_daily_bin1554> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1554 346.922 14.8644 642124801 642384001 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 :                                   665.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

