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


Performing analysis on: 4FGL_J2304.3+0618_daily_bin334
RA = 346.078, Dec = 6.3071
tmin = 325900801, tmax = 326160001
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='649095', job_status='RUN', time_executed='2021-09-29 06:00:36.774728', time_epoch_executed='1632920436.77' WHERE source_name='4FGL J2304.3+0618' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649095/ft1_4FGL_J2304.3+0618_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649095/ft2_4FGL_J2304.3+0618_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649095/ft1_4FGL_J2304.3+0618_daily_bin334.fits outfile=/scratch/kocevski/649095/ft1_filteredMKT_4FGL_J2304.3+0618_daily_bin334.fits ra=346.078 dec=6.3071 rad=12.0 tmin=325900801.0 tmax=326160001.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.48
user 3.24
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649095/ft1_filtered_4FGL_J2304.3+0618_daily_bin334.fits" evtable="EVENTS" scfile=/scratch/kocevski/649095/ft2_4FGL_J2304.3+0618_daily_bin334.fits sctable="SC_DATA" outfile=/scratch/kocevski/649095/ltcube_325900801_326160001_4FGL_J2304.3+0618_daily_bin334.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/649095/ft2_4FGL_J2304.3+0618_daily_bin334.fits
.....................!
real 12.44
user 12.04
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649095/ft1_filtered_4FGL_J2304.3+0618_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/649095/ft2_4FGL_J2304.3+0618_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/649095/ltcube_325900801_326160001_4FGL_J2304.3+0618_daily_bin334.fits outfile=/scratch/kocevski/649095/expmap_325900801_326160001_4FGL_J2304.3+0618_daily_bin334.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/649095/ltcube_325900801_326160001_4FGL_J2304.3+0618_daily_bin334.fits
.....................!
real 190.54
user 185.01
sys 5.05

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/649095/ft1_filtered_4FGL_J2304.3+0618_daily_bin334.fits scfile=/scratch/kocevski/649095/ft2_4FGL_J2304.3+0618_daily_bin334.fits outfile=/scratch/kocevski/649095/cmap_325900801_326160001_4FGL_J2304.3+0618_daily_bin334.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649095/ft1_filtered_4FGL_J2304.3+0618_daily_bin334.fits scfile=/scratch/kocevski/649095/ft2_4FGL_J2304.3+0618_daily_bin334.fits outfile=/scratch/kocevski/649095/cmap_HighResolution_325900801_326160001_4FGL_J2304.3+0618_daily_bin334.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/649095/ft1_filtered_4FGL_J2304.3+0618_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/649095/ft2_4FGL_J2304.3+0618_daily_bin334.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649095/Model_4FGL_J2304.3+0618_daily_bin334.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/649095/ft1_filtered_4FGL_J2304.3+0618_daily_bin334.fits.....................!
real 76.03
user 74.69
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.0310       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 '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2376       1.0000         .10000E-03   10000.    
     7 'norm      '    13.705       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.837       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6874       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6361       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1624       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7545       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13407E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22696E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    169.48       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.434       1.0000         .10000E-03   10000.    
    20 'norm      '    22.351       1.0000         .10000E-03   10000.    
    21 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3782       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9110       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78352       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0268       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=   7261.597     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2571 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3209       -.12651E-05** at limit **
   2  Prefactor     1.0309        .22765        .13292E-07    .11114E-03
   3  Prefactor     .10000E-03    2.9990        .40740E-07** at limit **
   4  Prefactor     .10000E-03    9.4945       -.97102E-06** at limit **
   5  Prefactor     .10000E-03    5.0685        .15556E-08** at limit **
   6  Prefactor     1.2376        .19950        .10669E-07   -.40963E-05
   7  norm          13.702        10.686        .65949E-06   -.19478E-04
   8  Prefactor     13.815        28.397       -.39531E-05   -.15796E-04
   9  Prefactor     2.6874        5.2580       -.12206E-07   -.78676E-03
  10  Prefactor     .10000E-03    8.0279        .12157E-05** at limit **
  11  Prefactor     5.6287        18.358        .14265E-04    .73682E-05
  12  norm          2.1624        1.0982       -.42183E-07   -.98355E-04
  13  Prefactor     1.7530        5.7219        .17831E-06   -.59554E-03
  14  Prefactor     .10000E-03    10.920        .23619E-05** at limit **
  15  norm          .10000E-03    6.4923        .13962E-06** at limit **
  16  Prefactor     .20603E-02    3.9727       -.49082E-06** at limit **
  17  Prefactor     169.48        184.66        .48631E-05    .19315E-05
  18  Prefactor     .10000E-03    7.4819       -.30411E-06** at limit **
  19  Prefactor     50.468        27.389        .33728E-06    .30984E-04
  20  norm          22.351        13.570       -.16634E-06    .21006E-04
  21  norm          .10000E-03    11.846       -.10195E-05** at limit **
  22  Prefactor     6.3450        29.911       -.50707E-05   -.89057E-05
  23  Prefactor     5.9068        21.067        .51650E-05    .63246E-05
  24  Normalizat    .78402        .21650       -.20001E-05    .58065E-04
  25  Prefactor     1.0266        .12483        .12989E-06   -.11820E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.0309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.23756
  norm       = 13.7018
  Prefactor  = 13.8147
  Prefactor  = 2.68737
  Prefactor  = 0.0001
  Prefactor  = 5.62871
  norm       = 2.16237
  Prefactor  = 1.75296
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.00206028
  Prefactor  = 169.483
  Prefactor  = 0.0001
  Prefactor  = 50.4683
  norm       = 22.3515
  norm       = 0.0001
  Prefactor  = 6.34502
  Prefactor  = 5.90675
  Normalizat = 0.784021
  Prefactor  = 1.02663
 **********
 **   18 **HESSE 
 **********

 FCN=   7261.597     FROM HESSE     STATUS=OK           441 CALLS     3012 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0309        .22783        .18319E-04   -1.5505    
   3  Prefactor     .10000E-03    3.0075        .14411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.4976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2376        .19995        .14585E-04   -1.5485    
   7  norm          13.702        10.690        .10820E-03   -1.4967    
   8  Prefactor     13.815        28.488        .10768E-03   -1.4964    
   9  Prefactor     2.6874        6.4968        .12427E-02   -1.5380    
  10  Prefactor     .10000E-03    8.3472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6287        18.398        .16921E-03   -1.5233    
  12  norm          2.1624        1.0953        .61063E-04   -1.5414    
  13  Prefactor     1.7530        11.626        .15823E-02   -1.5443    
  14  Prefactor     .10000E-03    10.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    22.092        .37786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .20603E-02    9.8934        .46501E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     169.48        184.71        .15495E-03   -1.3097    
  18  Prefactor     .10000E-03    7.5235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     50.468        27.453        .56470E-04   -1.4286    
  20  norm          22.351        13.575        .84723E-04   -1.4762    
  21  norm          .10000E-03    11.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.3450        30.011        .15893E-03   -1.5204    
  23  Prefactor     5.9068        21.077        .16517E-03   -1.5222    
  24  Normalizat    .78402        .25018        .35556E-03   -1.0066    
  25  Prefactor     1.0266        .14514        .19423E-03   -.91847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29577e-09
Minuit parameter uncertainties:
  1  5.96782e-06
  2  0.227827
  3  1.22438e-06
  4  1.09588e-06
  5  1.45764e-06
  6  0.199952
  7  10.6919
  8  28.5165
  9  6.49853
  10  4.08503e-06
  11  18.417
  12  1.09534
  13  9.03098
  14  4.11881e-06
  15  0.000637982
  16  0.278569
  17  185.35
  18  6.81964e-06
  19  27.46
  20  13.5765
  21  3.94343e-06
  22  27.6212
  23  21.1036
  24  0.250552
  25  0.145191
Done.

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

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  1.381e+01  2.852e+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.027e+00  1.452e-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.840e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.29
Ra Dec: 346.078 6.307
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649095/likelihoodResults_325900801_326160001_4FGL_J2304.3+0618_daily_bin334.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) = 7261.45333345
delta logL = 0.143631706751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7261.44882403
delta logL = 0.148141124454

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8584       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3774       1.0000          .0000       10.000    
     3 'Normalizat'    .76154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0352       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7261.449     FROM MIGRAD    STATUS=FAILED       102 CALLS      322 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8778        671.88        .76601E-03    .10831E-03
   2  Index         3.3768        5.0901        .90919E-02    .36643E-03
   3  Normalizat    .76112        .25291        .36054E-03    .66217E-06
   4  Prefactor     1.0355        .16027        .19350E-03    .40540E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7261.449     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      407 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8778        671.88        .34874E-03    .10831E-03
   2  Index         3.3768        5.0901        .14411E-02    .36643E-03
   3  Normalizat    .76112        .25291        .34690E-03    .66217E-06
   4  Prefactor     1.0355        .16027        .14267E-03    .40540E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7261.449     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      437 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8778        22.679        .15320E-03   -.76434E-05
   2  Index         3.3768        1.9084        .18184E-02   -.98158E-06
   3  Normalizat    .76112        .23751        .14422E-04    .63064E-06
   4  Prefactor     1.0355        .14498        .77398E-05    .38190E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.87777
  Index      = 3.37676
  Normalizat = 0.761125
  Prefactor  = 1.03548
 **********
 **   18 **HESSE 
 **********

 FCN=   7261.449     FROM HESSE     STATUS=OK            23 CALLS      460 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8778        20.559        .61281E-05   -1.5183    
   2  Index         3.3768        1.7378        .72735E-04   -.33064    
   3  Normalizat    .76112        .23756        .28844E-05   -1.0153    
   4  Prefactor     1.0355        .14499        .15480E-05   -.91556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09038e-13
Minuit parameter uncertainties:
  1  20.5803
  2  1.77955
  3  0.23788
  4  0.145046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649095': 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) = 7261.4488218
delta logL = 0.148143354699

Extracting fit parameters...

4FGL J2304.3+0618
   Spectrum: PowerLaw
362    Prefactor:  6.878e+00  2.058e+01  1.000e-04  1.000e+04 ( 1.000e-13)
363        Index:  3.377e+00  1.780e+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.035e+00  1.450e-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.611e-01  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
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/649095/cmap_HighResolution_325900801_326160001_4FGL_J2304.3+0618_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.03e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-29 06:13:21.712800', job_id='649095', GAL2='1.04', fit_tolerance='1e-08', EG2='0.76', EG='0.78', time_epoch_completed='1632921201.71', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.48e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='334' AND source_name='4FGL J2304.3+0618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:13:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 649095: <4FGL_J2304.3+0618_daily_bin334> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.3+0618_daily_bin334 346.078 6.3071 325900801 326160001 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 :                                   762.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

