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


Performing analysis on: 4FGL_J2307.6+1451_daily_bin91
RA = 346.922, Dec = 14.8644
tmin = 262915201, tmax = 263174401
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='664907', job_status='RUN', time_executed='2021-09-29 06:52:35.700772', time_epoch_executed='1632923555.7' WHERE source_name='4FGL J2307.6+1451' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/664907

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/664907/ft1_4FGL_J2307.6+1451_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/664907/ft2_4FGL_J2307.6+1451_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/664907/ft1_4FGL_J2307.6+1451_daily_bin91.fits outfile=/scratch/kocevski/664907/ft1_filteredMKT_4FGL_J2307.6+1451_daily_bin91.fits ra=346.922 dec=14.8644 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.28
user 1.12
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/664907/ft1_filtered_4FGL_J2307.6+1451_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/664907/ft2_4FGL_J2307.6+1451_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/664907/ltcube_262915201_263174401_4FGL_J2307.6+1451_daily_bin91.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/664907/ft2_4FGL_J2307.6+1451_daily_bin91.fits
.....................!
real 11.08
user 10.75
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/664907/ft1_filtered_4FGL_J2307.6+1451_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/664907/ft2_4FGL_J2307.6+1451_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/664907/ltcube_262915201_263174401_4FGL_J2307.6+1451_daily_bin91.fits outfile=/scratch/kocevski/664907/expmap_262915201_263174401_4FGL_J2307.6+1451_daily_bin91.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/664907/ltcube_262915201_263174401_4FGL_J2307.6+1451_daily_bin91.fits
.....................!
real 190.08
user 185.55
sys 4.20

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/664907/ft1_filtered_4FGL_J2307.6+1451_daily_bin91.fits scfile=/scratch/kocevski/664907/ft2_4FGL_J2307.6+1451_daily_bin91.fits outfile=/scratch/kocevski/664907/cmap_262915201_263174401_4FGL_J2307.6+1451_daily_bin91.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.52
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .90498       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0993       1.0000         .10000E-03   10000.    
     5 'norm      '    .48526       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.373       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4098       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6226       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0138       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.778       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0015       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.407       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .67565       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76805       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1005       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=   11685.68     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2347 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.817       -.91271E-05** at limit **
   2  Prefactor     .10000E-03    7.5936        .10134E-05** at limit **
   3  Prefactor     .90503        .20943        .90163E-08    .20292E-02
   4  Prefactor     5.0994        5.5073       -.24672E-07    .17440E-04
   5  norm          .48533        1.0542        .35421E-07    .33695E-05
   6  Prefactor     14.373        15.395       -.15806E-07    .52055E-05
   7  Prefactor     2.4099        5.8612       -.65799E-07   -.13260E-04
   8  Prefactor     .10000E-03    4.5129       -.22998E-06** at limit **
   9  Prefactor     3.0902        .25241        .93634E-10    .32245E-03
  10  Prefactor     .10000E-03    1.9720        .25943E-07** at limit **
  11  Prefactor     .10000E-03    7.4618        .34186E-05** at limit **
  12  Prefactor     6.6226        4.7989       -.10117E-07    .11663E-04
  13  Prefactor     .10000E-03    3.5514        .81964E-07** at limit **
  14  Prefactor     .10000E-03    15.765        .10434E-04** at limit **
  15  Prefactor     .10000E-03    2.4360        .31711E-07** at limit **
  16  Prefactor     1.0134        .72433        .10918E-07   -.26170E-03
  17  Prefactor     .10000E-03    8.4192       -.60600E-05** at limit **
  18  norm          19.779        9.8265       -.13912E-08    .18973E-05
  19  Prefactor     9.0014        7.3919       -.17069E-07    .76442E-05
  20  Prefactor     19.407        21.332       -.29271E-06   -.34947E-06
  21  norm          .10000E-03    10.776        .52915E-06** at limit **
  22  Prefactor     .67531        3.5925        .15683E-07   -.32811E-05
  23  Normalizat    .76803        .19324       -.81599E-07    .34787E-04
  24  Prefactor     1.1005        .10902        .18933E-07    .55472E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.905027
  Prefactor  = 5.09936
  norm       = 0.48533
  Prefactor  = 14.3735
  Prefactor  = 2.40992
  Prefactor  = 0.0001
  Prefactor  = 3.09024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.62259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.01345
  Prefactor  = 0.0001
  norm       = 19.7787
  Prefactor  = 9.00139
  Prefactor  = 19.4069
  norm       = 0.0001
  Prefactor  = 0.675308
  Normalizat = 0.76803
  Prefactor  = 1.10048
 **********
 **   18 **HESSE 
 **********

 FCN=   11685.68     FROM HESSE     STATUS=OK           403 CALLS     2750 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .90503        .20860        .22577E-04   -1.5518    
   4  Prefactor     5.0994        5.5082        .17805E-03   -1.5256    
   5  norm          .48533        .98129        .15543E-02   -1.5569    
   6  Prefactor     14.373        15.403        .52823E-03   -1.4950    
   7  Prefactor     2.4099        5.7739        .26372E-03   -1.5397    
   8  Prefactor     .10000E-03    4.5143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0902        .25280        .14631E-04   -1.5356    
  10  Prefactor     .10000E-03    1.9737        .14825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.4745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.6226        4.7978        .15593E-03   -1.5193    
  13  Prefactor     .10000E-03    3.5658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4798        .16470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0134        13.569        .26038E-02   -1.5507    
  17  Prefactor     .10000E-03    8.4627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.779        10.054        .90061E-04   -1.4818    
  19  Prefactor     9.0014        7.3857        .13359E-03   -1.5108    
  20  Prefactor     19.407        21.418        .90918E-04   -1.4827    
  21  norm          .10000E-03    10.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .67531        9.5263        .39177E-02   -1.5544    
  23  Normalizat    .76803        .21589        .41232E-03   -1.0127    
  24  Prefactor     1.1005        .12328        .20581E-03   -.89451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.71039e-08
Minuit parameter uncertainties:
  1  0.000139639
  2  1.92123e-06
  3  0.208604
  4  5.50874
  5  0.981323
  6  15.4073
  7  5.77525
  8  9.60232e-08
  9  0.252803
  10  1.76221e-07
  11  3.93371e-07
  12  4.79811
  13  1.52076e-07
  14  2.70164e-05
  15  1.66496e-06
  16  7.41816
  17  9.41438e-06
  18  10.0549
  19  7.38645
  20  21.4269
  21  9.38992e-07
  22  5.07334
  23  0.216127
  24  0.123309
Done.

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

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  6.623e+00  4.798e+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:  1.100e+00  1.233e-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:  7.680e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.10
Ra Dec: 346.922 14.864
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.58e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.20e-05

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) = 11685.5280942
delta logL = 0.154331588621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11685.5031696
delta logL = 0.179256128491

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7455       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9084       1.0000          .0000       10.000    
     3 'Normalizat'    .77470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0987       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=   11685.50     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      244 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7499        202.32        .33885E-02    .30423E-04
   2  Index         1.9080        5.8545        .16027        .12772E-03
   3  Normalizat    .77467        .11912        .92719E-01    .59083E-04
   4  Prefactor     1.0986        .52925E-01    .37637E-01    .15918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.74994
  Index      = 1.90795
  Normalizat = 0.774674
  Prefactor  = 1.09864
 **********
 **   18 **HESSE 
 **********

 FCN=   11685.50     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7499        6.9533        .13554E-03   -1.5116    
   2  Index         1.9080        .45786        .93387E-02   -.66672    
   3  Normalizat    .77467        .20575        .41079E-03   -1.0102    
   4  Prefactor     1.0986        .12197        .20598E-03   -.89510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83555e-12
Minuit parameter uncertainties:
  1  6.95398
  2  0.458903
  3  0.205958
  4  0.122004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/664907': 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) = 11685.5031687
delta logL = 0.179257088801

Extracting fit parameters...

4FGL J2307.6+1451
   Spectrum: PowerLaw
343    Prefactor:  8.750e+00  6.954e+00  1.000e-04  1.000e+04 ( 1.000e-13)
344        Index:  1.908e+00  4.589e-01  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.099e+00  1.220e-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:  7.747e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 346.922 14.864
Photon Index (Free Index): 1.91 +/- 0.46
Photon Flux (Free Index): 2.72e-08 +/- 2.46e-08
Energy Flux (Free Index): 2.39e-05 +/- 2.44e-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/664907/cmap_HighResolution_262915201_263174401_4FGL_J2307.6+1451_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.58e-08', energy_flux2='2.39e-05', photon_flux_error='2.59e-08', dlogl='1.79e-01', energy_flux='1.66e-05', photon_flux2='2.72e-08', job_status='DONE', time_completed='2021-09-29 07:06:29.699717', photon_index_error2='0.46', photon_index2='1.91', ts='4.10', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='0.77', time_epoch_completed='1632924389.7', return_code='0', job_id='664907', GAL2='1.10', EG2='0.77', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='2.46e-08', ts2='4.47', photon_index='2.18' WHERE bin_id='91' AND source_name='4FGL J2307.6+1451' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 07:06:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 664907: <4FGL_J2307.6+1451_daily_bin91> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2307.6+1451_daily_bin91 346.922 14.8644 262915201 263174401 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 :                                   826.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            965 sec.

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

