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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin891
RA = 346.078, Dec = 6.3071
tmin = 470275201, tmax = 470534401
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='652122', job_status='RUN', time_executed='2021-09-29 06:10:37.558080', time_epoch_executed='1632921037.56' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='891'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652122/ft1_4FGL_J2304.3+0618_daily_bin891.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652122/ft2_4FGL_J2304.3+0618_daily_bin891.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652122/ft1_4FGL_J2304.3+0618_daily_bin891.fits outfile=/scratch/kocevski/652122/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin891.fits ra=346.078 dec=6.3071 rad=12.0 tmin=470275201.0 tmax=470534401.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.65
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652122/ft1_filtered_4FGL_J2304.3+0618_daily_bin891.fits" evtable="EVENTS" scfile=/scratch/kocevski/652122/ft2_4FGL_J2304.3+0618_daily_bin891.fits sctable="SC_DATA" outfile=/scratch/kocevski/652122/ltcube_470275201_470534401_4FGL_J2304.3+0618_daily_bin891.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/652122/ft2_4FGL_J2304.3+0618_daily_bin891.fits
.....................!
real 11.81
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652122/ft1_filtered_4FGL_J2304.3+0618_daily_bin891.fits evtable="EVENTS" scfile=/scratch/kocevski/652122/ft2_4FGL_J2304.3+0618_daily_bin891.fits sctable="SC_DATA" expcube=/scratch/kocevski/652122/ltcube_470275201_470534401_4FGL_J2304.3+0618_daily_bin891.fits outfile=/scratch/kocevski/652122/expmap_470275201_470534401_4FGL_J2304.3+0618_daily_bin891.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/652122/ltcube_470275201_470534401_4FGL_J2304.3+0618_daily_bin891.fits
.....................!
real 191.64
user 186.10
sys 5.18

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/652122/ft1_filtered_4FGL_J2304.3+0618_daily_bin891.fits scfile=/scratch/kocevski/652122/ft2_4FGL_J2304.3+0618_daily_bin891.fits outfile=/scratch/kocevski/652122/cmap_470275201_470534401_4FGL_J2304.3+0618_daily_bin891.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/652122/ft1_filtered_4FGL_J2304.3+0618_daily_bin891.fits scfile=/scratch/kocevski/652122/ft2_4FGL_J2304.3+0618_daily_bin891.fits outfile=/scratch/kocevski/652122/cmap_HighResolution_470275201_470534401_4FGL_J2304.3+0618_daily_bin891.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.073       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5636       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.128       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.226       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8505       1.0000         .10000E-03   10000.    
     7 'norm      '    8.4297       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3894       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.105       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0851       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.359       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.1162       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .70712       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0467       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=   11029.12     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2465 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.074        16.596        .22586E-07   -.14164E-05
   2  Prefactor     1.5635        .28774        .24410E-08   -.85647E-04
   3  Prefactor     .10000E-03    3.7197        .10094E-07** at limit **
   4  Prefactor     16.120        27.550       -.70225E-06   -.47437E-04
   5  Prefactor     11.226        15.526        .65186E-06   -.31086E-04
   6  Prefactor     5.8503        .39678        .13080E-08   -.13536E-03
   7  norm          8.4286        9.3467        .10158E-06   -.11747E-04
   8  Prefactor     .10000E-03    44.174        .37499E-05** at limit **
   9  Prefactor     .10000E-03    4.7579        .83260E-07** at limit **
  10  Prefactor     2.3887        9.5161        .84634E-06   -.29243E-04
  11  Prefactor     .10000E-03    10.055       -.26209E-06** at limit **
  12  norm          12.105        1.6358       -.19451E-08    .24393E-04
  13  Prefactor     4.0842        7.7817        .15803E-06   -.31847E-04
  14  Prefactor     .10000E-03    24.901       -.42141E-06** at limit **
  15  norm          17.357        8.6542        .28875E-06   -.94654E-04
  16  Prefactor     .10000E-03    5.7544       -.22440E-07** at limit **
  17  Prefactor     .10000E-03    56.002       -.34759E-05** at limit **
  18  Prefactor     .10000E-03    4.2583       -.15464E-07** at limit **
  19  Prefactor     .10000E-03    12.744        .16225E-06** at limit **
  20  norm          6.1159        10.884        .26695E-05   -.13203E-03
  21  norm          .10000E-03    5.2718       -.14332E-06** at limit **
  22  Prefactor     .10000E-03    10.604        .17802E-06** at limit **
  23  Prefactor     .10000E-03    25.047       -.22748E-06** at limit **
  24  Normalizat    .70735        .20082        .56507E-08   -.36831E-04
  25  Prefactor     1.0466        .11970       -.15114E-06   -.27269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.074
  Prefactor  = 1.56353
  Prefactor  = 0.0001
  Prefactor  = 16.12
  Prefactor  = 11.2264
  Prefactor  = 5.8503
  norm       = 8.42862
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 2.3887
  Prefactor  = 0.0001
  norm       = 12.1047
  Prefactor  = 4.08416
  Prefactor  = 0.0001
  norm       = 17.3571
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.11585
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.707351
  Prefactor  = 1.04658
 **********
 **   18 **HESSE 
 **********

 FCN=   11029.12     FROM HESSE     STATUS=OK           425 CALLS     2890 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.074        16.640        .94211E-04   -1.4857    
   2  Prefactor     1.5635        .28839        .22748E-04   -1.5458    
   3  Prefactor     .10000E-03    3.7360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.120        27.703        .99732E-04   -1.4905    
   5  Prefactor     11.226        15.545        .59786E-03   -1.5038    
   6  Prefactor     5.8503        .39766        .16357E-04   -1.5224    
   7  norm          8.4286        9.3476        .13807E-03   -1.5127    
   8  Prefactor     .10000E-03    46.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3887        9.5082        .26496E-03   -1.5399    
  11  Prefactor     .10000E-03    10.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.105        1.6374        .47489E-04   -1.5012    
  13  Prefactor     4.0842        7.7546        .19947E-03   -1.5304    
  14  Prefactor     .10000E-03    24.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.357        8.6359        .48065E-03   -1.4874    
  16  Prefactor     .10000E-03    5.8448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    58.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.1159        11.059        .81169E-03   -1.5213    
  21  norm          .10000E-03    5.2815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .70735        .22568        .44209E-03   -1.0360    
  25  Prefactor     1.0466        .13575        .22471E-03   -.91192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72727e-10
Minuit parameter uncertainties:
  1  16.6443
  2  0.288395
  3  4.75758e-07
  4  27.7246
  5  15.5502
  6  0.397661
  7  9.34919
  8  0.000725202
  9  2.63794e-06
  10  9.51424
  11  2.58792e-05
  12  1.63737
  13  7.7565
  14  6.44912e-05
  15  8.63653
  16  9.52066e-06
  17  0.000824193
  18  7.10676e-08
  19  1.43287e-05
  20  11.0625
  21  9.84513e-06
  22  1.79559e-05
  23  3.40897e-05
  24  0.225977
  25  0.135794
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  7.252e-04  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:  1.047e+00  1.358e-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.074e-01  2.260e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/652122/likelihoodResults_470275201_470534401_4FGL_J2304.3+0618_daily_bin891.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11029.1157542
delta logL = -0.000101888486824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11029.1156525
delta logL = -1.35847585625e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4675       1.0000          .0000       10.000    
     3 'Normalizat'    .70736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0466       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=   11029.12     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      240 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7259.5        .90712E-02** at limit **
   2  Index         2.5062        8.2001        .50000       -.84889E-05
   3  Normalizat    .70735        .66007E-01    .99716E-01   -.58768E-04
   4  Prefactor     1.0466        .40181E-01    .40114E-01   -.10263E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.50616
  Normalizat = 0.707351
  Prefactor  = 1.04658
 **********
 **   18 **HESSE 
 **********

 FCN=   11029.12     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    119.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5062        5.8090        .50000       -.52218    
   3  Normalizat    .70735        .21847        .44209E-03   -1.0360    
   4  Prefactor     1.0466        .13422        .22471E-03   -.91192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79983e-10
Minuit parameter uncertainties:
  1  0.000475872
  2  7.16725
  3  0.218739
  4  0.13426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652122': 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) = 11029.1156524
delta logL = -4.77630237583e-08

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  4.759e-04  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  2.506e+00  7.167e+00  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:  1.047e+00  1.343e-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.074e-01  2.187e-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/652122/cmap_HighResolution_470275201_470534401_4FGL_J2304.3+0618_daily_bin891.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.38e-08', time_completed='2021-09-29 06:26:53.454870', job_id='652122', GAL2='1.05', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1632922013.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-4.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='891' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:26:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 652122: <4FGL_J2304.3+0618_daily_bin891> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin891 346.078 6.3071 470275201 470534401 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 :                                   971.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

