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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1240
RA = 346.922, Dec = 14.8644
tmin = 560736001, tmax = 560995201
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='671080', job_status='RUN', time_executed='2021-09-29 07:10:52.663045', time_epoch_executed='1632924652.66' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671080/ft1_4FGL_J2307.6+1451_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671080/ft2_4FGL_J2307.6+1451_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671080/ft1_4FGL_J2307.6+1451_daily_bin1240.fits outfile=/scratch/kocevski/671080/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1240.fits ra=346.922 dec=14.8644 rad=12.0 tmin=560736001.0 tmax=560995201.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.88
user 3.65
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671080/ft1_filtered_4FGL_J2307.6+1451_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/671080/ft2_4FGL_J2307.6+1451_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/671080/ltcube_560736001_560995201_4FGL_J2307.6+1451_daily_bin1240.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/671080/ft2_4FGL_J2307.6+1451_daily_bin1240.fits
.....................!
real 12.64
user 11.79
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671080/ft1_filtered_4FGL_J2307.6+1451_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/671080/ft2_4FGL_J2307.6+1451_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/671080/ltcube_560736001_560995201_4FGL_J2307.6+1451_daily_bin1240.fits outfile=/scratch/kocevski/671080/expmap_560736001_560995201_4FGL_J2307.6+1451_daily_bin1240.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/671080/ltcube_560736001_560995201_4FGL_J2307.6+1451_daily_bin1240.fits
.....................!
real 191.76
user 185.18
sys 5.75

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/671080/ft1_filtered_4FGL_J2307.6+1451_daily_bin1240.fits scfile=/scratch/kocevski/671080/ft2_4FGL_J2307.6+1451_daily_bin1240.fits outfile=/scratch/kocevski/671080/cmap_560736001_560995201_4FGL_J2307.6+1451_daily_bin1240.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671080/ft1_filtered_4FGL_J2307.6+1451_daily_bin1240.fits scfile=/scratch/kocevski/671080/ft2_4FGL_J2307.6+1451_daily_bin1240.fits outfile=/scratch/kocevski/671080/cmap_HighResolution_560736001_560995201_4FGL_J2307.6+1451_daily_bin1240.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.309       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.104       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19110       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2409       1.0000         .10000E-03   10000.    
     5 'norm      '    5.2156       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7113       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7608       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1482       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9322       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.578       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.464       1.0000         .10000E-03   10000.    
    18 'norm      '    6.8290       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.087       1.0000         .10000E-03   10000.    
    21 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7705       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84597       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88171       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=   5579.761     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2742 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.312        36.843       -.75507E-06   -.15336E-03
   2  Prefactor     31.151        64.576        .12192E-06    .80707E-04
   3  Prefactor     .19106        .37285       -.94528E-07    .14603E-02
   4  Prefactor     1.2443        18.708        .13401E-04   -.17256E-03
   5  norm          5.2171        5.0725        .27697E-06    .31630E-03
   6  Prefactor     .10000E-03    31.399       -.66769E-08** at limit **
   7  Prefactor     .10000E-03    27.791        .64097E-06** at limit **
   8  Prefactor     3.8015        92.563        .21946E-05   -.15403E-04
   9  Prefactor     6.7605        .64482       -.11634E-07   -.10542E-02
  10  Prefactor     .10000E-03    15.119        .18071E-06** at limit **
  11  Prefactor     3.1496        87.626        .83042E-06   -.34593E-05
  12  Prefactor     .10000E-03    3.7009       -.48141E-07** at limit **
  13  Prefactor     5.9322        11.133        .28641E-06    .41704E-04
  14  Prefactor     .10000E-03    63.416       -.19848E-06** at limit **
  15  Prefactor     12.577        20.432        .59634E-06    .76889E-04
  16  Prefactor     .10000E-03    4.7727        .73188E-06** at limit **
  17  Prefactor     19.478        45.023       -.29603E-06    .50844E-05
  18  norm          6.8283        8.9311       -.21534E-06   -.18554E-03
  19  Prefactor     .10002E-03    9.7703        .31415E-05** at limit **
  20  Prefactor     27.107        23.289        .45537E-06   -.81087E-05
  21  norm          .10000E-03    6.6382        .33913E-07** at limit **
  22  Prefactor     5.7764        9.4073        .20271E-06    .76293E-04
  23  Normalizat    .84610        .29078        .42660E-06   -.46962E-04
  24  Prefactor     .88161        .15745       -.10539E-05    .24559E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.3122
  Prefactor  = 31.1509
  Prefactor  = 0.19106
  Prefactor  = 1.24435
  norm       = 5.21714
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.80152
  Prefactor  = 6.76052
  Prefactor  = 0.0001
  Prefactor  = 3.14958
  Prefactor  = 0.0001
  Prefactor  = 5.93218
  Prefactor  = 0.0001
  Prefactor  = 12.5774
  Prefactor  = 0.000100001
  Prefactor  = 19.4777
  norm       = 6.82835
  Prefactor  = 0.000100016
  Prefactor  = 27.1065
  norm       = 0.0001
  Prefactor  = 5.77644
  Normalizat = 0.846101
  Prefactor  = 0.881609
 **********
 **   18 **HESSE 
 **********

 FCN=   5579.761     FROM HESSE     STATUS=OK           401 CALLS     3143 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.312        35.600        .69431E-04   -1.4553    
   2  Prefactor     31.151        64.566        .71844E-04   -1.4591    
   3  Prefactor     .19106        .34927        .50310E-04   -1.5621    
   4  Prefactor     1.2443        18.964        .20126E-02   -1.5485    
   5  norm          5.2171        5.0786        .16010E-03   -1.5251    
   6  Prefactor     .10000E-03    31.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8015        93.139        .10481E-02   -1.5318    
   9  Prefactor     6.7605        .64684        .17003E-04   -1.5188    
  10  Prefactor     .10000E-03    15.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1496        87.326        .22846E-03   -1.5353    
  12  Prefactor     .10000E-03    3.7088        .14033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.9322        11.125        .16487E-03   -1.5221    
  14  Prefactor     .10000E-03    63.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.577        20.304        .11295E-03   -1.4999    
  16  Prefactor     .10000E-03    4.8350        .15988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.478        44.763        .90785E-04   -1.4825    
  18  norm          6.8283        8.9135        .15353E-03   -1.5185    
  19  Prefactor     .10002E-03    10.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.107        23.320        .76974E-04   -1.4666    
  21  norm          .10000E-03    6.6428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.7764        9.3999        .16720E-03   -1.5227    
  23  Normalizat    .84610        .33658        .40746E-03   -.98381    
  24  Prefactor     .88161        .18447        .22609E-03   -.96787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58818e-09
Minuit parameter uncertainties:
  1  35.6225
  2  64.7113
  3  0.349272
  4  9.7189
  5  5.07904
  6  4.33019e-05
  7  0.000308713
  8  37.6988
  9  0.646844
  10  5.76704e-05
  11  33.2219
  12  7.45085e-06
  13  11.1287
  14  0.000130487
  15  20.3147
  16  0.000131506
  17  44.8399
  18  8.91519
  19  0.000832514
  20  23.3276
  21  7.18038e-06
  22  9.40228
  23  0.337413
  24  0.184601
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  7.451e-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:  8.816e-01  1.846e-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:  8.461e-01  3.374e-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.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671080/likelihoodResults_560736001_560995201_4FGL_J2307.6+1451_daily_bin1240.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) = 5579.76275966
delta logL = -0.00127169230564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5579.76148777
delta logL = 1.94278982235e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1559       1.0000          .0000       10.000    
     3 'Normalizat'    .84608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88163       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5579.761     FROM MIGRAD    STATUS=FAILED        87 CALLS      239 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10216E-03    39.601        .14486E-02** at limit **
   2  Index         2.0859        6.0327        .50000        .52681E-04
   3  Normalizat    .84610        .21529E-01    .40746E-03    .11747E-04
   4  Prefactor     .88161        .12275E-01    .22609E-03   -.50284E-07
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5579.761     FROM SIMPLEX   STATUS=UNCHANGED    131 CALLS      370 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10216E-03    39.601        .31153E-03** at limit **
   2  Index         2.0859        6.0327        .31901E-03    .52681E-04
   3  Normalizat    .84610        .21529E-01    .30242E-05    .11747E-04
   4  Prefactor     .88161        .12275E-01    .65149E-06   -.50284E-07
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5579.761     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      417 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.283        .28971E-02** at limit **
   2  Index         1.5169        8.3184        .50000        .23988E-07
   3  Normalizat    .84610        .24212E-01    .16298E-04   -.12332E-03
   4  Prefactor     .88161        .13804E-01    .90435E-05   -.20214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.5169
  Normalizat = 0.846102
  Prefactor  = 0.881608
 **********
 **   18 **HESSE 
 **********

 FCN=   5579.761     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 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     .10000E-03    315.35        .57943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5169        6.0473        .50000       -.77068    
   3  Normalizat    .84610        .54646E-01    .32597E-05   -.98381    
   4  Prefactor     .88161        .31159E-01    .18087E-05   -.96787    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.93743e-10
Minuit parameter uncertainties:
  1  0.000131528
  2  809.65
  3  0.0546493
  4  0.0311599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671080': 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) = 5579.76148317
delta logL = 4.78962738271e-06

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.000e-04  1.315e-04  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  1.517e+00  8.097e+02  0.000e+00  1.000e+01 (-1.000e+00)
345        Scale:  1.928e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  8.816e-01  3.116e-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:  8.461e-01  5.465e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/671080/cmap_HighResolution_560736001_560995201_4FGL_J2307.6+1451_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', job_status='DONE', photon_flux_upper_limit='9.68e-08', time_completed='2021-09-29 07:21:39.451741', job_id='671080', GAL2='0.88', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632925299.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.79e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1240' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:21:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 671080: <4FGL_J2307.6+1451_daily_bin1240> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1240 346.922 14.8644 560736001 560995201 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 :                                   637.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            666 sec.

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

