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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin995
RA = 346.078, Dec = 6.3071
tmin = 497232001, tmax = 497491201
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='652280', job_status='RUN', time_executed='2021-09-29 06:12:53.081598', time_epoch_executed='1632921173.08' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652280

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652280/ft1_4FGL_J2304.3+0618_daily_bin995.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652280/ft2_4FGL_J2304.3+0618_daily_bin995.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652280/ft1_4FGL_J2304.3+0618_daily_bin995.fits outfile=/scratch/kocevski/652280/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin995.fits ra=346.078 dec=6.3071 rad=12.0 tmin=497232001.0 tmax=497491201.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 6.75
user 6.47
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/652280/ft2_4FGL_J2304.3+0618_daily_bin995.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/652280/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin995.fits evtable="EVENTS" outfile="/scratch/kocevski/652280/ft1_filtered_4FGL_J2304.3+0618_daily_bin995.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652280/ft1_filtered_4FGL_J2304.3+0618_daily_bin995.fits" evtable="EVENTS" scfile=/scratch/kocevski/652280/ft2_4FGL_J2304.3+0618_daily_bin995.fits sctable="SC_DATA" outfile=/scratch/kocevski/652280/ltcube_497232001_497491201_4FGL_J2304.3+0618_daily_bin995.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/652280/ft2_4FGL_J2304.3+0618_daily_bin995.fits
.....................!
real 11.95
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652280/ft1_filtered_4FGL_J2304.3+0618_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/652280/ft2_4FGL_J2304.3+0618_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/652280/ltcube_497232001_497491201_4FGL_J2304.3+0618_daily_bin995.fits outfile=/scratch/kocevski/652280/expmap_497232001_497491201_4FGL_J2304.3+0618_daily_bin995.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/652280/ltcube_497232001_497491201_4FGL_J2304.3+0618_daily_bin995.fits
.....................!
real 189.71
user 184.99
sys 4.35

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/652280/ft1_filtered_4FGL_J2304.3+0618_daily_bin995.fits scfile=/scratch/kocevski/652280/ft2_4FGL_J2304.3+0618_daily_bin995.fits outfile=/scratch/kocevski/652280/cmap_497232001_497491201_4FGL_J2304.3+0618_daily_bin995.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/652280/ft1_filtered_4FGL_J2304.3+0618_daily_bin995.fits scfile=/scratch/kocevski/652280/ft2_4FGL_J2304.3+0618_daily_bin995.fits outfile=/scratch/kocevski/652280/cmap_HighResolution_497232001_497491201_4FGL_J2304.3+0618_daily_bin995.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/652280/ft1_filtered_4FGL_J2304.3+0618_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/652280/ft2_4FGL_J2304.3+0618_daily_bin995.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/652280/Model_4FGL_J2304.3+0618_daily_bin995.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/652280/ft1_filtered_4FGL_J2304.3+0618_daily_bin995.fits.....................!
real 76.46
user 69.65
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/652280/ft1_filtered_4FGL_J2304.3+0618_daily_bin995.fits', '/scratch/kocevski/652280/ft2_4FGL_J2304.3+0618_daily_bin995.fits', expMap='/scratch/kocevski/652280/expmap_497232001_497491201_4FGL_J2304.3+0618_daily_bin995.fits', expCube='/scratch/kocevski/652280/ltcube_497232001_497491201_4FGL_J2304.3+0618_daily_bin995.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/652280/Model_4FGL_J2304.3+0618_daily_bin995.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/652280/ft1_filtered_4FGL_J2304.3+0618_daily_bin995.fits
Spacecraft file(s): /scratch/kocevski/652280/ft2_4FGL_J2304.3+0618_daily_bin995.fits
Exposure map: /scratch/kocevski/652280/expmap_497232001_497491201_4FGL_J2304.3+0618_daily_bin995.fits
Exposure cube: /scratch/kocevski/652280/ltcube_497232001_497491201_4FGL_J2304.3+0618_daily_bin995.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/652280/Model_4FGL_J2304.3+0618_daily_bin995.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) = 6329.56951238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3757       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2418       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.793       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8200       1.0000         .10000E-03   10000.    
     7 'norm      '    15.411       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.701       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.367       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.085       1.0000         .10000E-03   10000.    
    12 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8737       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.990       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3037       1.0000         .10000E-03   10000.    
    17 'Prefactor '    217.89       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13312E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12238E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .11835E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.857       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.878       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0357       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61979       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=   6329.563     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2874 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3729        37.696       -.47969E-05   -.48039E-04
   2  Prefactor     5.2420        .55033       -.47021E-07    .10063E-02
   3  Prefactor     .10000E-03    13.527       -.16811E-05** at limit **
   4  Prefactor     55.791        51.701       -.19481E-05   -.37170E-05
   5  Prefactor     .10000E-03    11.631       -.14868E-05** at limit **
   6  Prefactor     3.8201        .42024       -.25656E-07    .23482E-02
   7  norm          15.420        17.551       -.25668E-05    .58461E-04
   8  Prefactor     30.697        38.539       -.53237E-05    .43718E-04
   9  Prefactor     20.368        11.246       -.48161E-06    .31254E-04
  10  Prefactor     .10000E-03    4.4031       -.12836E-07** at limit **
  11  Prefactor     22.089        21.876        .43166E-06    .47124E-04
  12  norm          .10000E-03    .45781       -.13178E-06** at limit **
  13  Prefactor     3.8641        13.227       -.14374E-05    .84317E-04
  14  Prefactor     .10000E-03    13.324        .38000E-05** at limit **
  15  norm          13.994        16.280        .22776E-05    .55662E-03
  16  Prefactor     2.2931        16.809       -.59795E-05   -.19620E-03
  17  Prefactor     217.89        207.43       -.14011E-05   -.42136E-05
  18  Prefactor     .10000E-03    26.823       -.49463E-05** at limit **
  19  Prefactor     .10000E-03    62.646       -.35992E-04** at limit **
  20  norm          .10000E-03    8.9676        .80113E-07** at limit **
  21  norm          .10000E-03    52.515        .40540E-04** at limit **
  22  Prefactor     32.813        44.021       -.54010E-04    .41523E-04
  23  Prefactor     12.873        25.633       -.37982E-06    .82388E-04
  24  Normalizat    1.0354        .25119        .91627E-05   -.17899E-04
  25  Prefactor     .61991        .13421        .61725E-06    .41007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.37291
  Prefactor  = 5.24199
  Prefactor  = 0.0001
  Prefactor  = 55.7911
  Prefactor  = 0.0001
  Prefactor  = 3.8201
  norm       = 15.4196
  Prefactor  = 30.6974
  Prefactor  = 20.3681
  Prefactor  = 0.0001
  Prefactor  = 22.0885
  norm       = 0.0001
  Prefactor  = 3.86405
  Prefactor  = 0.0001
  norm       = 13.9941
  Prefactor  = 2.29306
  Prefactor  = 217.893
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 32.8131
  Prefactor  = 12.8726
  Normalizat = 1.03536
  Prefactor  = 0.619915
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.563     FROM HESSE     STATUS=OK           429 CALLS     3303 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3729        37.853        .22023E-03   -1.5341    
   2  Prefactor     5.2420        .55169        .17761E-04   -1.5250    
   3  Prefactor     .10000E-03    13.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     55.791        51.926        .53704E-04   -1.4213    
   5  Prefactor     .10000E-03    11.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8201        .42293        .79259E-04   -1.5317    
   7  norm          15.420        17.688        .10202E-03   -1.4922    
   8  Prefactor     30.697        38.570        .72312E-04   -1.4599    
   9  Prefactor     20.368        11.254        .88750E-04   -1.4805    
  10  Prefactor     .10000E-03    4.4121        .16304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.089        21.891        .85233E-04   -1.4768    
  12  norm          .10000E-03    .77437        .10381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8641        13.090        .20502E-03   -1.5315    
  14  Prefactor     .10000E-03    13.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.994        15.544        .10708E-03   -1.4960    
  16  Prefactor     2.2931        15.492        .27036E-03   -1.5405    
  17  Prefactor     217.89        206.96        .27398E-04   -1.2745    
  18  Prefactor     .10000E-03    27.484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    62.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.9753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    53.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.813        44.024        .69906E-04   -1.4562    
  23  Prefactor     12.873        25.643        .11162E-03   -1.4990    
  24  Normalizat    1.0354        .29021        .35655E-03   -.91855    
  25  Prefactor     .61991        .15490        .25806E-03   -1.0675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02678e-09
Minuit parameter uncertainties:
  1  22.6163
  2  0.551694
  3  4.35233e-05
  4  51.9682
  5  7.05517e-06
  6  0.422929
  7  17.6938
  8  38.6018
  9  11.2552
  10  7.70761e-06
  11  21.8985
  12  1.2731e-05
  13  13.0997
  14  1.94809e-05
  15  15.5489
  16  11.9245
  17  207.662
  18  0.000160745
  19  0.000683681
  20  1.64386e-05
  21  0.000144875
  22  44.0673
  23  25.6652
  24  0.290651
  25  0.155009
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  3.070e+01  3.860e+01  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:  6.199e-01  1.550e-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:  1.035e+00  2.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 346.078 6.307
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/652280/likelihoodResults_497232001_497491201_4FGL_J2304.3+0618_daily_bin995.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) = 6329.37614326
delta logL = 0.187050614898

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6329.3599763
delta logL = 0.203217576573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.035       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0371       1.0000          .0000       10.000    
     3 'Normalizat'    1.0503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61338       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6329.360     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      304 TOTAL
                     EDM=   .65E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.047        48.303        .61830E-04   -.44129E-06
   2  Index         2.0371        .71015        .10706E-01    .11137E-05
   3  Normalizat    1.0503        .26476        .35426E-03    .47496E-05
   4  Prefactor     .61339        .15244        .25920E-03   -.65351E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.047
  Index      = 2.03714
  Normalizat = 1.0503
  Prefactor  = 0.613392
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.360     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .65E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.047        48.308        .12366E-04   -1.4410    
   2  Index         2.0371        .71027        .21412E-02   -.63425    
   3  Normalizat    1.0503        .26497        .14170E-04   -.91364    
   4  Prefactor     .61339        .15257        .10368E-04   -1.0703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4763e-13
Minuit parameter uncertainties:
  1  48.3529
  2  0.714009
  3  0.265306
  4  0.15267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652280': 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) = 6329.35997627
delta logL = 0.203217612886

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  4.205e+01  4.835e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.037e+00  7.140e-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:  6.134e-01  1.527e-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:  1.050e+00  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 346.078 6.307
Photon Index (Free Index): 2.04 +/- 0.71
Photon Flux (Free Index): 2.81e-08 +/- 3.97e-08
Energy Flux (Free Index): 1.77e-05 +/- 2.54e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/652280/cmap_HighResolution_497232001_497491201_4FGL_J2304.3+0618_daily_bin995.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', energy_flux2='1.77e-05', dlogl='2.03e-01', photon_flux2='2.81e-08', job_status='DONE', time_completed='2021-09-29 06:25:14.002269', photon_index_error2='0.71', photon_index2='2.04', ts='0.97', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='2.54e-05', EG='1.04', time_epoch_completed='1632921914.0', return_code='0', job_id='652280', GAL2='0.61', EG2='1.05', return_code2='0', photon_flux_error2='3.97e-08', ts2='1.36', photon_index='2.53' WHERE bin_id='995' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:25:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 652280: <4FGL_J2304.3+0618_daily_bin995> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin995> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 06:10:35 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:10:37 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:10:37 2021
Terminated at Wed Sep 29 06:25:14 2021
Results reported at Wed Sep 29 06:25:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin995 346.078 6.3071 497232001 497491201 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 :                                   732.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

