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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin391
RA = 346.078, Dec = 6.3071
tmin = 340675201, tmax = 340934401
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='649188', job_status='RUN', time_executed='2021-09-29 06:04:42.925894', time_epoch_executed='1632920682.93' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649188

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649188/ft1_4FGL_J2304.3+0618_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649188/ft2_4FGL_J2304.3+0618_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649188/ft1_4FGL_J2304.3+0618_daily_bin391.fits outfile=/scratch/kocevski/649188/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin391.fits ra=346.078 dec=6.3071 rad=12.0 tmin=340675201.0 tmax=340934401.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.09
user 5.85
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/649188/ft2_4FGL_J2304.3+0618_daily_bin391.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/649188/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin391.fits evtable="EVENTS" outfile="/scratch/kocevski/649188/ft1_filtered_4FGL_J2304.3+0618_daily_bin391.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649188/ft1_filtered_4FGL_J2304.3+0618_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/649188/ft2_4FGL_J2304.3+0618_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/649188/ltcube_340675201_340934401_4FGL_J2304.3+0618_daily_bin391.fits outfile=/scratch/kocevski/649188/expmap_340675201_340934401_4FGL_J2304.3+0618_daily_bin391.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/649188/ltcube_340675201_340934401_4FGL_J2304.3+0618_daily_bin391.fits
.....................!
real 189.47
user 184.84
sys 4.32

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/649188/ft1_filtered_4FGL_J2304.3+0618_daily_bin391.fits scfile=/scratch/kocevski/649188/ft2_4FGL_J2304.3+0618_daily_bin391.fits outfile=/scratch/kocevski/649188/cmap_340675201_340934401_4FGL_J2304.3+0618_daily_bin391.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649188/ft1_filtered_4FGL_J2304.3+0618_daily_bin391.fits scfile=/scratch/kocevski/649188/ft2_4FGL_J2304.3+0618_daily_bin391.fits outfile=/scratch/kocevski/649188/cmap_HighResolution_340675201_340934401_4FGL_J2304.3+0618_daily_bin391.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0222       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8129       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.178       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .82745E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    21.870       1.0000         .10000E-03   10000.    
     8 'Prefactor '    45.737       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.414       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .62648       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7027       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20533E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6081       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .36013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .58534E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.906       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    19.766       1.0000         .10000E-03   10000.    
    22 'Prefactor '    69.266       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8521       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60418       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0507       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=   5648.648     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     3010 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.749       -.24445E-06** at limit **
   2  Prefactor     1.0223        .27944       -.68803E-08    .14514E-02
   3  Prefactor     7.8132        7.9406       -.10926E-06    .16925E-04
   4  Prefactor     .10000E-03    17.388       -.50781E-07** at limit **
   5  Prefactor     35.189        29.959        .91470E-06    .22501E-03
   6  Prefactor     .82626E-01    .17527       -.12558E-06    .14765E-02
   7  norm          21.869        13.624       -.68530E-07    .19593E-04
   8  Prefactor     45.717        55.143        .25299E-06    .89258E-04
   9  Prefactor     10.415        9.8654       -.20780E-05    .26991E-03
  10  Prefactor     .10000E-03    7.6484        .73696E-07** at limit **
  11  Prefactor     .10000E-03    14.386        .17174E-06** at limit **
  12  norm          .62634        .85274       -.28579E-06   -.11581E-02
  13  Prefactor     2.6987        16.155       -.99051E-06    .19940E-04
  14  Prefactor     .10001E-03    188.90        .31170E-05** at limit **
  15  norm          3.6056        8.0788       -.51405E-06   -.14840E-04
  16  Prefactor     .10000E-03    4.6793       -.88573E-07** at limit **
  17  Prefactor     .10001E-03    104.72       -.94499E-06** at limit **
  18  Prefactor     .10000E-03    83.715       -.12637E-04** at limit **
  19  Prefactor     13.908        24.600        .29103E-06    .30632E-04
  20  norm          .10000E-03    5.4160       -.54702E-07** at limit **
  21  norm          19.747        22.232       -.46177E-05   -.13549E-03
  22  Prefactor     69.218        51.137       -.41252E-06    .15203E-03
  23  Prefactor     6.8496        20.861       -.30391E-06   -.30386E-05
  24  Normalizat    .60427        .24966       -.65453E-06    .17063E-03
  25  Prefactor     1.0506        .14067        .10844E-05    .40850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.02226
  Prefactor  = 7.81317
  Prefactor  = 0.0001
  Prefactor  = 35.1886
  Prefactor  = 0.0826259
  norm       = 21.869
  Prefactor  = 45.7169
  Prefactor  = 10.4149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.626336
  Prefactor  = 2.69868
  Prefactor  = 0.000100007
  norm       = 3.6056
  Prefactor  = 0.000100002
  Prefactor  = 0.000100013
  Prefactor  = 0.000100003
  Prefactor  = 13.9079
  norm       = 0.0001
  norm       = 19.7473
  Prefactor  = 69.218
  Prefactor  = 6.8496
  Normalizat = 0.604269
  Prefactor  = 1.05061
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.648     FROM HESSE     STATUS=OK           431 CALLS     3441 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0223        .27928        .19584E-04   -1.5506    
   3  Prefactor     7.8132        7.9490        .14346E-03   -1.5149    
   4  Prefactor     .10000E-03    17.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.189        29.223        .67567E-04   -1.4521    
   6  Prefactor     .82626E-01    .16840        .38250E-03   -1.5651    
   7  norm          21.869        13.628        .85650E-04   -1.4772    
   8  Prefactor     45.717        55.224        .59285E-04   -1.4355    
   9  Prefactor     10.415        9.6104        .62079E-03   -1.5062    
  10  Prefactor     .10000E-03    7.6787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .62634        .77284        .78596E-03   -1.5550    
  13  Prefactor     2.6987        15.556        .24778E-03   -1.5379    
  14  Prefactor     .10001E-03    190.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6056        7.6890        .21272E-03   -1.5328    
  16  Prefactor     .10000E-03    14.857        .30060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    105.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    83.789        .42313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.908        24.420        .10741E-03   -1.4962    
  20  norm          .10000E-03    5.4188        .17083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          19.747        22.405        .90089E-04   -1.4819    
  22  Prefactor     69.218        51.160        .48230E-04   -1.4042    
  23  Prefactor     6.8496        20.842        .15327E-03   -1.5184    
  24  Normalizat    .60427        .27349        .38629E-03   -1.0780    
  25  Prefactor     1.0506        .15623        .18139E-03   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.97678e-10
Minuit parameter uncertainties:
  1  7.28458e-05
  2  0.279278
  3  7.95004
  4  5.45419e-06
  5  29.2352
  6  0.168398
  7  13.6295
  8  55.2863
  9  9.61185
  10  2.15498e-05
  11  2.77399e-05
  12  0.772849
  13  12.9635
  14  0.00232226
  15  7.69108
  16  0.000302639
  17  0.00234038
  18  0.00107911
  19  24.4373
  20  3.67109e-06
  21  22.4148
  22  51.1927
  23  20.8642
  24  0.274109
  25  0.1563
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  4.572e+01  5.529e+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:  1.051e+00  1.563e-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.043e-01  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/649188/likelihoodResults_340675201_340934401_4FGL_J2304.3+0618_daily_bin391.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) = 5648.0521724
delta logL = 0.595389762047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5648.00495071
delta logL = 0.642611452907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1652       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4798       1.0000          .0000       10.000    
     3 'Normalizat'    .52569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0903       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=   5648.005     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      269 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1532        48.923        .56951E-02   -.48884E-03
   2  Index         4.4831        3.2184        .13589       -.19000E-04
   3  Normalizat    .52544        .68796E-01    .93176E-01   -.14272E-04
   4  Prefactor     1.0905        .41534E-01    .37968E-01   -.80613E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15316
  Index      = 4.48306
  Normalizat = 0.525435
  Prefactor  = 1.09052
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.005     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      300 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1532        91.752        .99045E-04   -1.5353    
   2  Index         4.4831        7.1284        .49751E-02   -.10357    
   3  Normalizat    .52544        .23021        .41287E-03   -1.1125    
   4  Prefactor     1.0905        .13789        .17838E-03   -.89770    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.11803e-10
Minuit parameter uncertainties:
  1  34.0753
  2  5.79501
  3  0.23063
  4  0.137939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649188': 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) = 5648.00494418
delta logL = 0.64261797688

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  3.153e+00  3.408e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  4.483e+00  5.795e+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.091e+00  1.379e-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:  5.254e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 346.078 6.307
Photon Index (Free Index): 4.48 +/- 5.80
Photon Flux (Free Index): 1.02e-07 +/- 8.93e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.88e-05

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/649188/cmap_HighResolution_340675201_340934401_4FGL_J2304.3+0618_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='6.43e-01', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-29 06:15:42.534052', photon_index_error2='5.80', photon_index2='4.48', ts='0.86', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.92e-07', energy_flux_error2='1.88e-05', EG='0.60', time_epoch_completed='1632921342.53', return_code='0', job_id='649188', GAL2='1.09', EG2='0.53', return_code2='102', photon_flux_error2='8.93e-08', ts2='2.34', photon_index='2.53' WHERE bin_id='391' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:15:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 649188: <4FGL_J2304.3+0618_daily_bin391> in cluster <slac> Done

Job <4FGL_J2304.3+0618_daily_bin391> 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) <bullet0289>, 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:15:43 2021
Results reported at Wed Sep 29 06:15:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin391 346.078 6.3071 340675201 340934401 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 :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            913 sec.

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

