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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin620
RA = 346.078, Dec = 6.3071
tmin = 400032001, tmax = 400291201
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='650576', job_status='RUN', time_executed='2021-09-29 06:09:02.395625', time_epoch_executed='1632920942.4' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650576

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650576/ft1_4FGL_J2304.3+0618_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650576/ft2_4FGL_J2304.3+0618_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650576/ft1_4FGL_J2304.3+0618_daily_bin620.fits outfile=/scratch/kocevski/650576/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin620.fits ra=346.078 dec=6.3071 rad=12.0 tmin=400032001.0 tmax=400291201.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 4.37
user 4.12
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650576/ft1_filtered_4FGL_J2304.3+0618_daily_bin620.fits" evtable="EVENTS" scfile=/scratch/kocevski/650576/ft2_4FGL_J2304.3+0618_daily_bin620.fits sctable="SC_DATA" outfile=/scratch/kocevski/650576/ltcube_400032001_400291201_4FGL_J2304.3+0618_daily_bin620.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/650576/ft2_4FGL_J2304.3+0618_daily_bin620.fits
.....................!
real 11.77
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650576/ft1_filtered_4FGL_J2304.3+0618_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/650576/ft2_4FGL_J2304.3+0618_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/650576/ltcube_400032001_400291201_4FGL_J2304.3+0618_daily_bin620.fits outfile=/scratch/kocevski/650576/expmap_400032001_400291201_4FGL_J2304.3+0618_daily_bin620.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/650576/ltcube_400032001_400291201_4FGL_J2304.3+0618_daily_bin620.fits
.....................!
real 190.01
user 185.43
sys 4.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/650576/ft1_filtered_4FGL_J2304.3+0618_daily_bin620.fits scfile=/scratch/kocevski/650576/ft2_4FGL_J2304.3+0618_daily_bin620.fits outfile=/scratch/kocevski/650576/cmap_400032001_400291201_4FGL_J2304.3+0618_daily_bin620.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650576/ft1_filtered_4FGL_J2304.3+0618_daily_bin620.fits scfile=/scratch/kocevski/650576/ft2_4FGL_J2304.3+0618_daily_bin620.fits outfile=/scratch/kocevski/650576/cmap_HighResolution_400032001_400291201_4FGL_J2304.3+0618_daily_bin620.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31451E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0255       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9309       1.0000         .10000E-03   10000.    
     7 'norm      '    17.301       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0801       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10772E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7084       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18569E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.471       1.0000         .10000E-03   10000.    
    15 'norm      '    18.878       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    130.77       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.8928       1.0000         .10000E-03   10000.    
    21 'norm      '    .19760E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17229       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.949       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60073       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0538       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6267.928     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     2961 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3682        .15952E-05** at limit **
   2  Prefactor     .10000E-03    14.862        .11609E-04** at limit **
   3  Prefactor     .10000E-03    4.5570       -.30688E-05** at limit **
   4  Prefactor     .10068E-03    80.235        .19098E-04** at limit **
   5  Prefactor     8.0251        1.0093        .56360E-07    .18532E-05
   6  Prefactor     1.9309        .25505        .59306E-07    .30694E-03
   7  norm          17.297        1.1068        .15150E-06   -.65879E-03
   8  Prefactor     .10000E-03    28.007       -.10794E-04** at limit **
   9  Prefactor     5.0799        7.0796        .36450E-05    .44464E-02
  10  Prefactor     .10031E-03    23.639       -.13136E-04** at limit **
  11  Prefactor     .10000E-03    5.0656       -.18112E-05** at limit **
  12  norm          2.7083        1.2655       -.60639E-06   -.13491E-03
  13  Prefactor     .10001E-03    30.992       -.66207E-05** at limit **
  14  Prefactor     16.471        1.4279        .36691E-06   -.10599E-02
  15  norm          18.884        7.0317       -.67798E-06    .98160E-02
  16  Prefactor     .10007E-03    34.844        .52379E-05** at limit **
  17  Prefactor     130.76        1.4638       -.97141E-07    .16658E-02
  18  Prefactor     .10000E-03    13.656       -.62388E-06** at limit **
  19  Prefactor     .10103E-03    46.227       -.11833E-04** at limit **
  20  norm          5.8924        1.0305        .25146E-07    .68059E-04
  21  norm          .10030E-03    8.7375       -.37534E-05** at limit **
  22  Prefactor     .10026E-03    1246.6       -.35750E-04** at limit **
  23  Prefactor     18.956        2.3946       -.33223E-06    .11312E-02
  24  Normalizat    .60097        .24727       -.74957E-05   -.23478E-04
  25  Prefactor     1.0537        .15055        .31759E-05   -.49403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100677
  Prefactor  = 8.02514
  Prefactor  = 1.93091
  norm       = 17.2971
  Prefactor  = 0.000100003
  Prefactor  = 5.07988
  Prefactor  = 0.000100308
  Prefactor  = 0.0001
  norm       = 2.70826
  Prefactor  = 0.000100006
  Prefactor  = 16.4713
  norm       = 18.8836
  Prefactor  = 0.000100065
  Prefactor  = 130.763
  Prefactor  = 0.000100001
  Prefactor  = 0.000101026
  norm       = 5.89239
  norm       = 0.000100296
  Prefactor  = 0.00010026
  Prefactor  = 18.9563
  Normalizat = 0.600965
  Prefactor  = 1.05372
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.928     FROM HESSE     STATUS=OK           501 CALLS     3462 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3676        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .12567        .10685E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5379        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10068E-03    86.003        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.0251        13.632        .35383E-02   -1.5141    
   6  Prefactor     1.9309        .25753        .31145E-02   -1.5430    
   7  norm          17.297        14.502        .24073E-02   -1.4876    
   8  Prefactor     .10000E-03    28.115        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0799        8.1816        .44598E-02   -1.5257    
  10  Prefactor     .10031E-03    8.3302        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.0673        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7083        1.3031        .61876E-02   -1.5379    
  13  Prefactor     .10001E-03    7.7567        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.471        39.629        .24672E-02   -1.4896    
  15  norm          18.884        11.421        .23046E-02   -1.4839    
  16  Prefactor     .10007E-03    7.1096        .68687E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     130.76        237.77        .88024E-03   -1.3416    
  18  Prefactor     .10000E-03    13.532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10103E-03    67.089        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.8924        12.727        .41357E-02   -1.5222    
  21  norm          .10030E-03    13.049        .15199       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10026E-03    34.012        .13652       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.956        22.190        .23002E-02   -1.4837    
  24  Normalizat    .60097        .23408        .88366E-01   -1.0794    
  25  Prefactor     1.0537        .13327        .39695E-01   -.90960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53835e-07
Minuit parameter uncertainties:
  1  6.51216e-06
  2  6.26277e-06
  3  1.28839e-05
  4  0.0152788
  5  13.6368
  6  0.257526
  7  14.5052
  8  0.000571675
  9  8.18344
  10  0.00320243
  11  6.14148e-06
  12  1.30309
  13  0.00043602
  14  39.6922
  15  11.4226
  16  0.001364
  17  239.541
  18  0.000173521
  19  0.0166081
  20  12.7326
  21  0.00392854
  22  0.00595064
  23  22.1996
  24  0.23447
  25  0.13331
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  5.717e-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.054e+00  1.333e-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:  6.010e-01  2.345e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650576/likelihoodResults_400032001_400291201_4FGL_J2304.3+0618_daily_bin620.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) = 6267.92772162
delta logL = -0.000168983161529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6267.92755232
delta logL = 3.09049937641e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4595       1.0000          .0000       10.000    
     3 'Normalizat'    .60096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0537       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=   6267.928     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      251 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .86578E-01    .90712E-01** at limit **
   2  Index         3.4654        5.1269        .50000       -.18261E-05
   3  Normalizat    .60097        .63950E-03    .88366E-01    .59997E-04
   4  Prefactor     1.0537        .39143E-03    .39697E-01    .29342E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 3.46545
  Normalizat = 0.600965
  Prefactor  = 1.05372
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.928     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      286 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.966        .37945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4654        5.1743        .50000       -.31194    
   3  Normalizat    .60097        .79824E-02    .39151E-03   -1.0794    
   4  Prefactor     1.0537        .49001E-02    .18395E-03   -.90960    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.34329e-08
Minuit parameter uncertainties:
  1  0.000750985
  2  370.425
  3  0.00798241
  4  0.00490014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650576': 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) = 6267.92755232
delta logL = 3.16202203976e-07

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  7.510e-04  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  3.465e+00  3.704e+02  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.054e+00  4.900e-03  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:  6.010e-01  7.982e-03  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/650576/cmap_HighResolution_400032001_400291201_4FGL_J2304.3+0618_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.50e-03', job_status='DONE', photon_flux_upper_limit='9.62e-08', time_completed='2021-09-29 06:20:54.195406', job_id='650576', GAL2='1.05', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1632921654.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='620' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:20:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 650576: <4FGL_J2304.3+0618_daily_bin620> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin620> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 06:05:16 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:05:17 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:05:17 2021
Terminated at Wed Sep 29 06:20:54 2021
Results reported at Wed Sep 29 06:20:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin620 346.078 6.3071 400032001 400291201 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 :                                   710.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            938 sec.

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

