/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 206 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 = 7484
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2304.3+0618_daily_bin395
RA = 346.078, Dec = 6.3071
tmin = 341712001, tmax = 341971201
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='649195', job_status='RUN', time_executed='2021-09-29 06:04:07.883128', time_epoch_executed='1632920647.88' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649195

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649195/ft1_4FGL_J2304.3+0618_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649195/ft2_4FGL_J2304.3+0618_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649195/ft1_4FGL_J2304.3+0618_daily_bin395.fits outfile=/scratch/kocevski/649195/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin395.fits ra=346.078 dec=6.3071 rad=12.0 tmin=341712001.0 tmax=341971201.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.19
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/649195/ft2_4FGL_J2304.3+0618_daily_bin395.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/649195/ft2_4FGL_J2304.3+0618_daily_bin395.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/649195/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin395.fits evtable="EVENTS" outfile="/scratch/kocevski/649195/ft1_filtered_4FGL_J2304.3+0618_daily_bin395.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649195/ft1_filtered_4FGL_J2304.3+0618_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/649195/ft2_4FGL_J2304.3+0618_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/649195/ltcube_341712001_341971201_4FGL_J2304.3+0618_daily_bin395.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/649195/ft2_4FGL_J2304.3+0618_daily_bin395.fits
.....................!
real 12.17
user 11.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649195/ft1_filtered_4FGL_J2304.3+0618_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/649195/ft2_4FGL_J2304.3+0618_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/649195/ltcube_341712001_341971201_4FGL_J2304.3+0618_daily_bin395.fits outfile=/scratch/kocevski/649195/expmap_341712001_341971201_4FGL_J2304.3+0618_daily_bin395.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/649195/ltcube_341712001_341971201_4FGL_J2304.3+0618_daily_bin395.fits
.....................!
real 191.45
user 185.17
sys 5.90

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J2304.3+0618 @ 346.078 6.3071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/649195/ft1_filtered_4FGL_J2304.3+0618_daily_bin395.fits scfile=/scratch/kocevski/649195/ft2_4FGL_J2304.3+0618_daily_bin395.fits outfile=/scratch/kocevski/649195/cmap_341712001_341971201_4FGL_J2304.3+0618_daily_bin395.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.078 yref=6.3071 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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649195/ft1_filtered_4FGL_J2304.3+0618_daily_bin395.fits scfile=/scratch/kocevski/649195/ft2_4FGL_J2304.3+0618_daily_bin395.fits outfile=/scratch/kocevski/649195/cmap_HighResolution_341712001_341971201_4FGL_J2304.3+0618_daily_bin395.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.078 yref=6.3071 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/649195/ft1_filtered_4FGL_J2304.3+0618_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/649195/ft2_4FGL_J2304.3+0618_daily_bin395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649195/Model_4FGL_J2304.3+0618_daily_bin395.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/649195/ft1_filtered_4FGL_J2304.3+0618_daily_bin395.fits....................!
real 73.57
user 72.22
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/649195/ft1_filtered_4FGL_J2304.3+0618_daily_bin395.fits', '/scratch/kocevski/649195/ft2_4FGL_J2304.3+0618_daily_bin395.fits', expMap='/scratch/kocevski/649195/expmap_341712001_341971201_4FGL_J2304.3+0618_daily_bin395.fits', expCube='/scratch/kocevski/649195/ltcube_341712001_341971201_4FGL_J2304.3+0618_daily_bin395.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/649195/Model_4FGL_J2304.3+0618_daily_bin395.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.3+0618'

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  4.761e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.530e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/649195/ft1_filtered_4FGL_J2304.3+0618_daily_bin395.fits
Spacecraft file(s): /scratch/kocevski/649195/ft2_4FGL_J2304.3+0618_daily_bin395.fits
Exposure map: /scratch/kocevski/649195/expmap_341712001_341971201_4FGL_J2304.3+0618_daily_bin395.fits
Exposure cube: /scratch/kocevski/649195/ltcube_341712001_341971201_4FGL_J2304.3+0618_daily_bin395.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/649195/Model_4FGL_J2304.3+0618_daily_bin395.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) = 7325.97010806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4932       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35638E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    3.4030       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0349       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4152       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.550       1.0000         .10000E-03   10000.    
    15 'norm      '    13.449       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11384E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.326       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.8231       1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5037       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41932E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77166       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90889       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7325.968     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2925 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.654        20.809        .60331E-06   -.15095E-04
   2  Prefactor     .35752        .21324       -.29481E-07   -.15376E-02
   3  Prefactor     5.4930        5.7096        .87950E-06   -.16847E-04
   4  Prefactor     .10000E-03    8.7795        .17966E-07** at limit **
   5  Prefactor     .10000E-03    5.9675        .22636E-06** at limit **
   6  Prefactor     .35585E-01    .74304E-01   -.24268E-07   -.59263E-02
   7  norm          3.4026        5.6290        .14368E-05   -.25961E-03
   8  Prefactor     .10000E-03    69.417       -.12012E-06** at limit **
   9  Prefactor     .10000E-03    2.4870       -.14905E-06** at limit **
  10  Prefactor     .10000E-03    3.1239        .21905E-06** at limit **
  11  Prefactor     4.0336        9.8750       -.15761E-05   -.14861E-03
  12  norm          5.4153        1.2088        .65311E-07   -.15717E-03
  13  Prefactor     .10000E-03    2.4200        .32949E-06** at limit **
  14  Prefactor     21.573        44.225        .22880E-04   -.13777E-04
  15  norm          13.456        8.1634       -.26617E-05   -.87033E-03
  16  Prefactor     .10001E-03    4.4956        .15257E-05** at limit **
  17  Prefactor     .10000E-03    144.38       -.38119E-05** at limit **
  18  Prefactor     21.322        12.695       -.36632E-05   -.12549E-03
  19  Prefactor     .10000E-03    15.414       -.76642E-06** at limit **
  20  norm          3.8242        12.424        .33055E-05   -.14500E-03
  21  norm          .10000E-03    5.9772        .32175E-06** at limit **
  22  Prefactor     6.4910        33.977       -.76600E-05   -.10750E-03
  23  Prefactor     .10102E-03    18.094        .39637E-05** at limit **
  24  Normalizat    .77161        .18097        .57282E-06   -.50878E-03
  25  Prefactor     .90896        .10360       -.31475E-06   -.51154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6535
  Prefactor  = 0.357524
  Prefactor  = 5.49295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0355853
  norm       = 3.40262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03357
  norm       = 5.41527
  Prefactor  = 0.0001
  Prefactor  = 21.573
  norm       = 13.4565
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 21.3223
  Prefactor  = 0.0001
  norm       = 3.82424
  norm       = 0.0001
  Prefactor  = 6.491
  Prefactor  = 0.000101018
  Normalizat = 0.771614
  Prefactor  = 0.908965
 **********
 **   18 **HESSE 
 **********

 FCN=   7325.968     FROM HESSE     STATUS=OK           437 CALLS     3362 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.654        20.747        .88130E-04   -1.4799    
   2  Prefactor     .35752        .20738        .26919E-04   -1.5588    
   3  Prefactor     5.4930        5.7081        .17143E-03   -1.5239    
   4  Prefactor     .10000E-03    8.7831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.9791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .35585E-01    .62813E-01    .32551E-03   -1.5670    
   7  norm          3.4026        5.5938        .21931E-03   -1.5339    
   8  Prefactor     .10000E-03    70.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0251        .26208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1281        .14774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0336        9.8728        .20075E-03   -1.5306    
  12  norm          5.4153        1.2098        .42232E-04   -1.5243    
  13  Prefactor     .10000E-03    2.4243        .13004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.573        43.797        .86282E-04   -1.4779    
  15  norm          13.456        7.9096        .10922E-03   -1.4974    
  16  Prefactor     .10001E-03    11.715        .33003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    144.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.322        12.662        .86735E-04   -1.4784    
  19  Prefactor     .10000E-03    15.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.8242        12.337        .20642E-03   -1.5317    
  21  norm          .10000E-03    5.9796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.4910        33.393        .15737E-03   -1.5198    
  23  Prefactor     .10102E-03    144.14        .68033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77161        .20796        .31473E-03   -1.0113    
  25  Prefactor     .90896        .12143        .17720E-03   -.95829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39403e-09
Minuit parameter uncertainties:
  1  20.7538
  2  0.207376
  3  5.7087
  4  9.00407e-07
  5  9.20647e-07
  6  0.0628136
  7  5.59468
  8  3.96748e-05
  9  7.56217e-05
  10  2.05922e-06
  11  9.87677
  12  1.20983
  13  1.0946e-05
  14  43.8619
  15  7.91024
  16  0.000600775
  17  0.000254855
  18  12.6638
  19  6.0915e-05
  20  12.3451
  21  2.66766e-05
  22  29.4709
  23  0.0242811
  24  0.208177
  25  0.121465
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  3.967e-05  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.530e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.090e-01  1.215e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  7.716e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 346.078 6.307
Photon Flux Upper Limit: 9.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649195/likelihoodResults_341712001_341971201_4FGL_J2304.3+0618_daily_bin395.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) = 7325.96780815
delta logL = -6.77756297591e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7325.96773974
delta logL = 6.28330781183e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2218       1.0000          .0000       10.000    
     3 'Normalizat'    .77161       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90897       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7325.966     FROM MIGRAD    STATUS=CONVERGED    164 CALLS      363 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22218        3.3195        .68286E-01    .39569E-03
   2  Index         4.0414        1.1665        .50000        .37716E-05
   3  Normalizat    .76767        .65424E-02    .71295E-01    .31231E-04
   4  Prefactor     .91020        .39937E-02    .45119E-01    .13237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.22218
  Index      = 4.04142
  Normalizat = 0.767668
  Prefactor  = 0.910196
 **********
 **   18 **HESSE 
 **********

 FCN=   7325.966     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      398 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22218        6160.6        .20817E-02   -1.5614    
   2  Index         4.0414        6.0852        .13710E-01   -.19291    
   3  Normalizat    .76767        .13170        .31552E-03   -1.0128    
   4  Prefactor     .91020        .62443E-01    .17710E-03   -.95786    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.51062e-09
Minuit parameter uncertainties:
  1  47.8252
  2  94.871
  3  0.131751
  4  0.0624479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649195': 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) = 7325.96609154
delta logL = 0.0016488259198

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.222e-01  4.783e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  4.041e+00  9.487e+01  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  8.008e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.102e-01  6.245e-02  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  7.677e-01  1.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 346.078 6.307

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/649195/cmap_HighResolution_341712001_341971201_4FGL_J2304.3+0618_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-29 06:16:52.323431', job_id='649195', GAL2='0.91', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632921412.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.65e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='395' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:16:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 649195: <4FGL_J2304.3+0618_daily_bin395> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin395> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 06:00:30 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:00:33 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:00:33 2021
Terminated at Wed Sep 29 06:16:53 2021
Results reported at Wed Sep 29 06:16:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin395 346.078 6.3071 341712001 341971201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2304.3+0618 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            983 sec.

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

