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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin1115
RA = 346.922, Dec = 14.8644
tmin = 528336001, tmax = 528595201
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='670892', job_status='RUN', time_executed='2021-09-29 07:12:21.528111', time_epoch_executed='1632924741.53' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670892

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670892/ft1_4FGL_J2307.6+1451_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670892/ft2_4FGL_J2307.6+1451_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670892/ft1_4FGL_J2307.6+1451_daily_bin1115.fits outfile=/scratch/kocevski/670892/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1115.fits ra=346.922 dec=14.8644 rad=12.0 tmin=528336001.0 tmax=528595201.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.42
user 3.20
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670892/ft2_4FGL_J2307.6+1451_daily_bin1115.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/670892/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin1115.fits evtable="EVENTS" outfile="/scratch/kocevski/670892/ft1_filtered_4FGL_J2307.6+1451_daily_bin1115.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.54
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670892/ft1_filtered_4FGL_J2307.6+1451_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/670892/ft2_4FGL_J2307.6+1451_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/670892/ltcube_528336001_528595201_4FGL_J2307.6+1451_daily_bin1115.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/670892/ft2_4FGL_J2307.6+1451_daily_bin1115.fits
.....................!
real 12.07
user 11.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670892/ft1_filtered_4FGL_J2307.6+1451_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/670892/ft2_4FGL_J2307.6+1451_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/670892/ltcube_528336001_528595201_4FGL_J2307.6+1451_daily_bin1115.fits outfile=/scratch/kocevski/670892/expmap_528336001_528595201_4FGL_J2307.6+1451_daily_bin1115.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/670892/ltcube_528336001_528595201_4FGL_J2307.6+1451_daily_bin1115.fits
.....................!
real 190.61
user 185.12
sys 5.10

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/670892/ft1_filtered_4FGL_J2307.6+1451_daily_bin1115.fits scfile=/scratch/kocevski/670892/ft2_4FGL_J2307.6+1451_daily_bin1115.fits outfile=/scratch/kocevski/670892/cmap_528336001_528595201_4FGL_J2307.6+1451_daily_bin1115.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670892/ft1_filtered_4FGL_J2307.6+1451_daily_bin1115.fits scfile=/scratch/kocevski/670892/ft2_4FGL_J2307.6+1451_daily_bin1115.fits outfile=/scratch/kocevski/670892/cmap_HighResolution_528336001_528595201_4FGL_J2307.6+1451_daily_bin1115.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.449       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.933       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3054       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0421       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.971       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1986       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2800       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.375       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4538       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.004       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.8960       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0395       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93639       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=   8176.327     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2325 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.449        11.110        .27251E-07   -.51570E-04
   2  Prefactor     10.933        13.851       -.88585E-07   -.26464E-05
   3  Prefactor     3.0287        .36630       -.97290E-09    .10199E-04
   4  Prefactor     5.3055        5.6099        .16219E-08    .58789E-05
   5  norm          1.8275        1.4319       -.15185E-08    .57612E-05
   6  Prefactor     5.0419        18.860       -.98950E-07   -.27156E-05
   7  Prefactor     22.974        14.661       -.39992E-07   -.30491E-05
   8  Prefactor     .10000E-03    43.273       -.25529E-06** at limit **
   9  Prefactor     1.1985        .21579        .95333E-09    .30792E-05
  10  Prefactor     .10000E-03    14.233        .43711E-06** at limit **
  11  Prefactor     7.2791        28.071       -.18406E-05   -.37062E-05
  12  Prefactor     11.375        8.5847       -.23192E-07   -.13752E-04
  13  Prefactor     .10000E-03    4.8842        .12331E-05** at limit **
  14  Prefactor     .10000E-03    9.1932       -.32713E-05** at limit **
  15  Prefactor     4.4537        4.5161        .33581E-07   -.54307E-03
  16  Prefactor     17.004        11.987        .82732E-07   -.24724E-04
  17  Prefactor     .10000E-03    5.3241       -.53850E-06** at limit **
  18  norm          3.8964        4.7649        .56889E-07   -.52193E-03
  19  Prefactor     .10000E-03    4.3292        .23031E-06** at limit **
  20  Prefactor     .10000E-03    8.7500        .31009E-05** at limit **
  21  norm          .10000E-03    4.5787       -.93874E-06** at limit **
  22  Prefactor     .10000E-03    5.8827       -.18620E-06** at limit **
  23  Normalizat    1.0395        .21764        .91550E-07   -.63433E-05
  24  Prefactor     .93636        .12269        .67160E-08   -.16775E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4486
  Prefactor  = 10.9333
  Prefactor  = 3.02875
  Prefactor  = 5.30547
  norm       = 1.82752
  Prefactor  = 5.0419
  Prefactor  = 22.9741
  Prefactor  = 0.0001
  Prefactor  = 1.19852
  Prefactor  = 0.0001
  Prefactor  = 7.27913
  Prefactor  = 11.3747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.45373
  Prefactor  = 17.0039
  Prefactor  = 0.0001
  norm       = 3.89643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03955
  Prefactor  = 0.936363
 **********
 **   18 **HESSE 
 **********

 FCN=   8176.327     FROM HESSE     STATUS=OK           403 CALLS     2728 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.449        11.154        .61977E-03   -1.5061    
   2  Prefactor     10.933        13.860        .12117E-03   -1.5047    
   3  Prefactor     3.0287        .36723        .18152E-04   -1.5360    
   4  Prefactor     5.3055        5.6143        .17449E-03   -1.5247    
   5  norm          1.8275        1.4348        .91293E-04   -1.5438    
   6  Prefactor     5.0419        18.862        .17907E-03   -1.5259    
   7  Prefactor     22.974        14.662        .83574E-04   -1.4749    
   8  Prefactor     .10000E-03    44.391        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1985        .21597        .16651E-04   -1.5489    
  10  Prefactor     .10000E-03    14.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2791        28.105        .14866E-03   -1.5168    
  12  Prefactor     11.375        8.5844        .11878E-03   -1.5033    
  13  Prefactor     .10000E-03    4.8960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.4537        5.9491        .95402E-03   -1.5286    
  16  Prefactor     17.004        12.079        .97127E-04   -1.4883    
  17  Prefactor     .10000E-03    5.3295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.8964        6.8298        .10221E-02   -1.5313    
  19  Prefactor     .10000E-03    4.3768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.5824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.9463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0395        .25666        .35742E-03   -.91717    
  24  Prefactor     .93636        .14353        .21605E-03   -.94882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48822e-10
Minuit parameter uncertainties:
  1  11.1566
  2  13.8645
  3  0.367227
  4  5.61485
  5  1.43483
  6  18.8848
  7  14.6648
  8  2.91517e-07
  9  0.215967
  10  2.02672e-06
  11  28.1559
  12  8.58533
  13  1.05116e-06
  14  2.89953e-06
  15  5.94985
  16  12.0809
  17  8.4356e-07
  18  6.83114
  19  1.85875e-06
  20  3.98128e-06
  21  1.30557e-06
  22  5.16981e-07
  23  0.256966
  24  0.14359
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  1.137e+01  8.585e+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:  9.364e-01  1.436e-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.040e+00  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.67
Ra Dec: 346.922 14.864
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 6.15e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 2.85e-05 +/- 2.15e-05

TS (Fixed Index): 2.67
Ra Dec: 346.922 14.864
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670892/likelihoodResults_528336001_528595201_4FGL_J2307.6+1451_daily_bin1115.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) = 8175.19308191
delta logL = 1.13427786456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8175.17764899
delta logL = 1.14971078639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9938       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0811       1.0000          .0000       10.000    
     3 'Normalizat'    .96636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96114       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=   8175.178     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9979        23.930        .58653E-02    .82493E-03
   2  Index         3.0805        1.9521        .94927E-01    .30776E-03
   3  Normalizat    .96638        .76898E-01    .83197E-01    .55292E-04
   4  Prefactor     .96135        .41594E-01    .45780E-01    .31512E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.99785
  Index      = 3.08051
  Normalizat = 0.966376
  Prefactor  = 0.961346
 **********
 **   18 **HESSE 
 **********

 FCN=   8175.178     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9979        12.689        .79751E-04   -1.5362    
   2  Index         3.0805        1.7231        .35488E-02   -.39401    
   3  Normalizat    .96638        .26697        .36832E-03   -.94166    
   4  Prefactor     .96135        .15252        .21329E-03   -.94029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46137e-10
Minuit parameter uncertainties:
  1  12.3394
  2  1.76587
  3  0.267343
  4  0.15259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670892': 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) = 8175.17764398
delta logL = 1.14971579784

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  2.998e+00  1.234e+01  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  3.081e+00  1.766e+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:  9.613e-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:  9.664e-01  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 346.922 14.864
Photon Index (Free Index): 3.08 +/- 1.77
Photon Flux (Free Index): 1.31e-07 +/- 8.07e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.83e-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/670892/cmap_HighResolution_528336001_528595201_4FGL_J2307.6+1451_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='6.15e-08', energy_flux2='2.52e-05', photon_flux_error='4.64e-08', dlogl='1.15e+00', energy_flux='2.85e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-29 07:25:10.158949', photon_index_error2='1.77', photon_index2='3.08', ts='2.67', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.83e-05', EG='1.04', time_epoch_completed='1632925510.16', return_code='0', job_id='670892', GAL2='0.96', EG2='0.97', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='8.07e-08', ts2='5.04', photon_index='2.18' WHERE bin_id='1115' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:25:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 670892: <4FGL_J2307.6+1451_daily_bin1115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin1115 346.922 14.8644 528336001 528595201 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 :                                   760.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

