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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin440
RA = 346.078, Dec = 6.3071
tmin = 353376001, tmax = 353635201
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='649264', job_status='RUN', time_executed='2021-09-29 06:04:01.930839', time_epoch_executed='1632920641.93' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649264

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649264/ft1_4FGL_J2304.3+0618_daily_bin440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649264/ft2_4FGL_J2304.3+0618_daily_bin440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649264/ft1_4FGL_J2304.3+0618_daily_bin440.fits outfile=/scratch/kocevski/649264/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin440.fits ra=346.078 dec=6.3071 rad=12.0 tmin=353376001.0 tmax=353635201.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.49
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649264/ft1_filtered_4FGL_J2304.3+0618_daily_bin440.fits" evtable="EVENTS" scfile=/scratch/kocevski/649264/ft2_4FGL_J2304.3+0618_daily_bin440.fits sctable="SC_DATA" outfile=/scratch/kocevski/649264/ltcube_353376001_353635201_4FGL_J2304.3+0618_daily_bin440.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/649264/ft2_4FGL_J2304.3+0618_daily_bin440.fits
.....................!
real 11.88
user 11.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649264/ft1_filtered_4FGL_J2304.3+0618_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/649264/ft2_4FGL_J2304.3+0618_daily_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/649264/ltcube_353376001_353635201_4FGL_J2304.3+0618_daily_bin440.fits outfile=/scratch/kocevski/649264/expmap_353376001_353635201_4FGL_J2304.3+0618_daily_bin440.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/649264/ltcube_353376001_353635201_4FGL_J2304.3+0618_daily_bin440.fits
.....................!
real 190.37
user 185.32
sys 4.74

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/649264/ft1_filtered_4FGL_J2304.3+0618_daily_bin440.fits scfile=/scratch/kocevski/649264/ft2_4FGL_J2304.3+0618_daily_bin440.fits outfile=/scratch/kocevski/649264/cmap_353376001_353635201_4FGL_J2304.3+0618_daily_bin440.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649264/ft1_filtered_4FGL_J2304.3+0618_daily_bin440.fits scfile=/scratch/kocevski/649264/ft2_4FGL_J2304.3+0618_daily_bin440.fits outfile=/scratch/kocevski/649264/cmap_HighResolution_353376001_353635201_4FGL_J2304.3+0618_daily_bin440.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/649264/ft1_filtered_4FGL_J2304.3+0618_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/649264/ft2_4FGL_J2304.3+0618_daily_bin440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649264/Model_4FGL_J2304.3+0618_daily_bin440.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/649264/ft1_filtered_4FGL_J2304.3+0618_daily_bin440.fits.....................!
real 61.51
user 60.26
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .75661       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.450       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9188       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62592E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .27105E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.113       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5367       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8627       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2866       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.133       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.142       1.0000         .10000E-03   10000.    
    15 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.830       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5477       1.0000         .10000E-03   10000.    
    20 'norm      '    11.445       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    121.92       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.600       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69833       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0343       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=   5897.986     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     3457 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.444       -.18655E-05** at limit **
   2  Prefactor     .75655        .22940       -.82213E-07    .66425E-03
   3  Prefactor     .10000E-03    3.0096        .32181E-08** at limit **
   4  Prefactor     10.452        21.997        .41512E-05   -.79599E-04
   5  Prefactor     4.9196        14.443        .65136E-05   -.15363E-03
   6  Prefactor     .62536E-01    .98291E-01   -.25440E-06   -.94093E-02
   7  norm          .10115E-03    6.8008       -.88943E-06** at limit **
   8  Prefactor     38.109        38.274       -.11417E-05    .67699E-04
   9  Prefactor     .10000E-03    3.4824       -.77091E-07** at limit **
  10  Prefactor     8.5355        10.824       -.11611E-05    .60618E-04
  11  Prefactor     1.8612        29.151       -.13907E-04   -.35550E-04
  12  norm          1.2866        1.0347       -.15377E-06   -.24187E-03
  13  Prefactor     20.132        10.689        .12904E-05    .48363E-03
  14  Prefactor     35.142        50.317       -.74390E-07    .36819E-04
  15  norm          .10000E-03    3.7284        .35919E-06** at limit **
  16  Prefactor     15.827        8.3158       -.19553E-05    .85440E-03
  17  Prefactor     .10000E-03    121.48        .11973E-04** at limit **
  18  Prefactor     .10000E-03    22.160        .60086E-06** at limit **
  19  Prefactor     1.5319        69.167       -.57701E-04    .12946E-03
  20  norm          11.445        10.669       -.42956E-06    .67272E-04
  21  norm          .10000E-03    17.807        .11608E-05** at limit **
  22  Prefactor     121.91        57.695       -.36734E-05    .26872E-03
  23  Prefactor     16.599        25.704       -.47786E-07    .14158E-03
  24  Normalizat    .69850        .23692        .77138E-05    .31708E-03
  25  Prefactor     1.0343        .13252       -.39191E-06    .73728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.756555
  Prefactor  = 0.0001
  Prefactor  = 10.4519
  Prefactor  = 4.91961
  Prefactor  = 0.0625358
  norm       = 0.000101146
  Prefactor  = 38.1086
  Prefactor  = 0.0001
  Prefactor  = 8.53551
  Prefactor  = 1.86125
  norm       = 1.28656
  Prefactor  = 20.1319
  Prefactor  = 35.1418
  norm       = 0.0001
  Prefactor  = 15.8274
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.5319
  norm       = 11.4452
  norm       = 0.0001
  Prefactor  = 121.907
  Prefactor  = 16.5994
  Normalizat = 0.698496
  Prefactor  = 1.03428
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.986     FROM HESSE     STATUS=OK           437 CALLS     3894 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .75655        .22884        .19184E-04   -1.5534    
   3  Prefactor     .10000E-03    3.0125        .13011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.452        21.931        .12394E-03   -1.5061    
   5  Prefactor     4.9196        14.315        .18135E-03   -1.5264    
   6  Prefactor     .62536E-01    .88687E-01    .28493E-03   -1.5658    
   7  norm          .10115E-03    10.367        .65990E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.109        38.336        .64922E-04   -1.4473    
   9  Prefactor     .10000E-03    3.5280        .13990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5355        10.824        .13720E-03   -1.5124    
  11  Prefactor     1.8612        29.743        .30529E-03   -1.5435    
  12  norm          1.2866        1.0191        .67468E-04   -1.5481    
  13  Prefactor     20.132        10.677        .89265E-04   -1.4810    
  14  Prefactor     35.142        50.295        .67602E-04   -1.4522    
  15  norm          .10000E-03    3.7422        .14474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.827        8.2940        .10067E-03   -1.4912    
  17  Prefactor     .10000E-03    121.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.987        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5319        70.659        .34247E-03   -1.5460    
  20  norm          11.445        10.671        .11842E-03   -1.5031    
  21  norm          .10000E-03    17.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     121.91        57.784        .36450E-04   -1.3495    
  23  Prefactor     16.599        25.671        .98302E-04   -1.4893    
  24  Normalizat    .69850        .26826        .35544E-03   -1.0395    
  25  Prefactor     1.0343        .15223        .18232E-03   -.91595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27946e-09
Minuit parameter uncertainties:
  1  1.55753e-05
  2  0.228844
  3  4.67793e-06
  4  21.9478
  5  14.3245
  6  0.0886876
  7  0.00689538
  8  38.3605
  9  1.6021e-05
  10  10.8263
  11  14.8892
  12  1.01912
  13  10.6778
  14  50.3562
  15  6.861e-05
  16  8.29465
  17  0.00106717
  18  9.73819e-05
  19  20.8334
  20  10.6729
  21  6.19039e-05
  22  57.8107
  23  25.6879
  24  0.268763
  25  0.152291
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  3.811e+01  3.836e+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.034e+00  1.523e-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.985e-01  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 346.078 6.307
Photon Index (Fixed Index): 2.53 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 4.85e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/649264/likelihoodResults_353376001_353635201_4FGL_J2304.3+0618_daily_bin440.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) = 5897.80129636
delta logL = 0.184654690936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5897.79664475
delta logL = 0.189306296094

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.259       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0301       1.0000          .0000       10.000    
     3 'Normalizat'    .67459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0432       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=   5897.797     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      295 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.228        40.753        .81329E-04    .91560E-04
   2  Index         3.0292        1.0169        .70128E-02    .43676E-03
   3  Normalizat    .67528        .25012        .36112E-03   -.57234E-04
   4  Prefactor     1.0432        .15174        .18161E-03    .23287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2278
  Index      = 3.02923
  Normalizat = 0.675278
  Prefactor  = 1.04324
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.797     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.228        35.739        .32532E-05   -1.4723    
   2  Index         3.0292        .89235        .14026E-02   -.40515    
   3  Normalizat    .67528        .25011        .14445E-04   -1.0488    
   4  Prefactor     1.0432        .15167        .36322E-04   -.91302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28504e-10
Minuit parameter uncertainties:
  1  35.771
  2  0.898056
  3  0.250537
  4  0.151728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649264': 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) = 5897.79662701
delta logL = 0.189324041375

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  2.423e+01  3.577e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  3.029e+00  8.981e-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:  1.043e+00  1.517e-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.753e-01  2.505e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 346.078 6.307
Photon Index (Free Index): 3.03 +/- 0.90
Photon Flux (Free Index): 6.53e-08 +/- 5.96e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.16e-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/649264/cmap_HighResolution_353376001_353635201_4FGL_J2304.3+0618_daily_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='1.28e-05', photon_flux_error='4.85e-08', dlogl='1.89e-01', energy_flux='1.35e-05', photon_flux2='6.53e-08', job_status='DONE', time_completed='2021-09-29 06:15:58.491758', photon_index_error2='0.90', photon_index2='3.03', ts='1.34', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.16e-05', EG='0.70', time_epoch_completed='1632921358.49', return_code='0', job_id='649264', GAL2='1.04', EG2='0.68', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='5.96e-08', ts2='1.74', photon_index='2.53' WHERE bin_id='440' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:15:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 649264: <4FGL_J2304.3+0618_daily_bin440> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin440 346.078 6.3071 353376001 353635201 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 :                                   715.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

