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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1410
RA = 346.173, Dec = 37.0826
tmin = 604800001, tmax = 605059201
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='663409', job_status='RUN', time_executed='2021-09-29 06:45:56.945030', time_epoch_executed='1632923156.95' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/663409

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/663409/ft1_4FGL_J2304.6+3704_daily_bin1410.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/663409/ft2_4FGL_J2304.6+3704_daily_bin1410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/663409/ft1_4FGL_J2304.6+3704_daily_bin1410.fits outfile=/scratch/kocevski/663409/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1410.fits ra=346.173 dec=37.0826 rad=12.0 tmin=604800001.0 tmax=605059201.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 5.12
user 4.86
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/663409/ft2_4FGL_J2304.6+3704_daily_bin1410.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/663409/ft2_4FGL_J2304.6+3704_daily_bin1410.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/663409/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1410.fits evtable="EVENTS" outfile="/scratch/kocevski/663409/ft1_filtered_4FGL_J2304.6+3704_daily_bin1410.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/663409/ft1_filtered_4FGL_J2304.6+3704_daily_bin1410.fits" evtable="EVENTS" scfile=/scratch/kocevski/663409/ft2_4FGL_J2304.6+3704_daily_bin1410.fits sctable="SC_DATA" outfile=/scratch/kocevski/663409/ltcube_604800001_605059201_4FGL_J2304.6+3704_daily_bin1410.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/663409/ft2_4FGL_J2304.6+3704_daily_bin1410.fits
.....................!
real 11.77
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/663409/ft1_filtered_4FGL_J2304.6+3704_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/663409/ft2_4FGL_J2304.6+3704_daily_bin1410.fits sctable="SC_DATA" expcube=/scratch/kocevski/663409/ltcube_604800001_605059201_4FGL_J2304.6+3704_daily_bin1410.fits outfile=/scratch/kocevski/663409/expmap_604800001_605059201_4FGL_J2304.6+3704_daily_bin1410.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/663409/ltcube_604800001_605059201_4FGL_J2304.6+3704_daily_bin1410.fits
.....................!
real 193.16
user 187.30
sys 5.48

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 155 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2304.6+3704 @ 346.173 37.0826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/663409/ft1_filtered_4FGL_J2304.6+3704_daily_bin1410.fits scfile=/scratch/kocevski/663409/ft2_4FGL_J2304.6+3704_daily_bin1410.fits outfile=/scratch/kocevski/663409/cmap_604800001_605059201_4FGL_J2304.6+3704_daily_bin1410.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.173 yref=37.0826 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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/663409/ft1_filtered_4FGL_J2304.6+3704_daily_bin1410.fits scfile=/scratch/kocevski/663409/ft2_4FGL_J2304.6+3704_daily_bin1410.fits outfile=/scratch/kocevski/663409/cmap_HighResolution_604800001_605059201_4FGL_J2304.6+3704_daily_bin1410.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.173 yref=37.0826 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/663409/ft1_filtered_4FGL_J2304.6+3704_daily_bin1410.fits evtable="EVENTS" scfile=/scratch/kocevski/663409/ft2_4FGL_J2304.6+3704_daily_bin1410.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/663409/Model_4FGL_J2304.6+3704_daily_bin1410.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/663409/ft1_filtered_4FGL_J2304.6+3704_daily_bin1410.fits.....................!
real 108.81
user 107.36
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/663409/ft1_filtered_4FGL_J2304.6+3704_daily_bin1410.fits', '/scratch/kocevski/663409/ft2_4FGL_J2304.6+3704_daily_bin1410.fits', expMap='/scratch/kocevski/663409/expmap_604800001_605059201_4FGL_J2304.6+3704_daily_bin1410.fits', expCube='/scratch/kocevski/663409/ltcube_604800001_605059201_4FGL_J2304.6+3704_daily_bin1410.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/663409/Model_4FGL_J2304.6+3704_daily_bin1410.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2304.6+3704'

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  4.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/663409/ft1_filtered_4FGL_J2304.6+3704_daily_bin1410.fits
Spacecraft file(s): /scratch/kocevski/663409/ft2_4FGL_J2304.6+3704_daily_bin1410.fits
Exposure map: /scratch/kocevski/663409/expmap_604800001_605059201_4FGL_J2304.6+3704_daily_bin1410.fits
Exposure cube: /scratch/kocevski/663409/ltcube_604800001_605059201_4FGL_J2304.6+3704_daily_bin1410.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/663409/Model_4FGL_J2304.6+3704_daily_bin1410.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) = 9185.84621607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9886       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-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 'norm      '    3.0055       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.041       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.690       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.823       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9804       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .14757E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11970E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5826       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4281       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86406       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9185.750     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2173 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9886        1.2301       -.16992E-07   -.14738E-03
   2  Prefactor     .10000E-03    15.967       -.84014E-05** at limit **
   3  Prefactor     .10000E-03    1.7494        .65961E-07** at limit **
   4  Prefactor     .10000E-03    4.8735        .64194E-07** at limit **
   5  norm          3.0054        2.4079       -.68920E-09   -.10206E-04
   6  Prefactor     12.041        11.778       -.91330E-07    .25529E-04
   7  Prefactor     10.690        6.2384       -.11381E-06   -.22518E-04
   8  Prefactor     11.819        21.220        .14565E-06   -.66669E-05
   9  norm          2.1901        1.3394       -.25203E-07   -.17643E-03
  10  Prefactor     .10000E-03    10.064        .41076E-05** at limit **
  11  Prefactor     4.9794        10.333       -.13201E-05   -.13287E-03
  12  Prefactor     .10000E-03    11.595       -.45437E-05** at limit **
  13  norm          .10001E-03    1.7488       -.34482E-06** at limit **
  14  norm          .10000E-03    4.1507        .41631E-07** at limit **
  15  Prefactor     .10000E-03    3.7879       -.11125E-07** at limit **
  16  norm          .10000E-03    .62977        .19533E-08** at limit **
  17  Prefactor     .10000E-03    4.8073       -.52692E-07** at limit **
  18  Prefactor     .10000E-03    154.87       -.64286E-05** at limit **
  19  Prefactor     .10000E-03    15.212        .10394E-04** at limit **
  20  Prefactor     .10000E-03    87.225        .26709E-05** at limit **
  21  Prefactor     4.5879        6.9332       -.28480E-06   -.21645E-03
  22  Normalizat    1.4281        .20944        .31844E-06   -.61703E-05
  23  Prefactor     .86406        .80026E-01    .32493E-07    .51250E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.98859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.00542
  Prefactor  = 12.0411
  Prefactor  = 10.6897
  Prefactor  = 11.8192
  norm       = 2.1901
  Prefactor  = 0.0001
  Prefactor  = 4.9794
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.58795
  Normalizat = 1.42814
  Prefactor  = 0.864062
 **********
 **   18 **HESSE 
 **********

 FCN=   9185.750     FROM HESSE     STATUS=OK           370 CALLS     2543 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9886        1.2298        .66090E-04   -1.5362    
   2  Prefactor     .10000E-03    15.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.7558        .12375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0054        2.4051        .12901E-03   -1.5361    
   6  Prefactor     12.041        11.779        .11544E-03   -1.5014    
   7  Prefactor     10.690        6.2349        .12254E-03   -1.5054    
   8  Prefactor     11.819        21.210        .11651E-03   -1.5020    
   9  norm          2.1901        1.3354        .83465E-04   -1.5412    
  10  Prefactor     .10000E-03    10.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9794        10.377        .18020E-03   -1.5262    
  12  Prefactor     .10000E-03    11.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    9.0827        .24648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.1621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .63246        .74264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    155.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    87.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.5879        6.9411        .18804E-03   -1.5280    
  22  Normalizat    1.4281        .24082        .34547E-03   -.79818    
  23  Prefactor     .86406        .92245E-01    .16733E-03   -.97408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57249e-10
Minuit parameter uncertainties:
  1  1.22981
  2  1.05261e-07
  3  1.05024e-07
  4  1.84175e-07
  5  2.40522
  6  11.7812
  7  6.23532
  8  21.2237
  9  1.33542
  10  3.481e-06
  11  10.3806
  12  2.07129e-06
  13  0.00044382
  14  7.29647e-07
  15  1.07072e-07
  16  5.6493e-07
  17  2.88303e-07
  18  1.70784e-05
  19  4.63699e-06
  20  3.35527e-05
  21  6.94227
  22  0.241008
  23  0.0922614
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.182e+01  2.122e+01  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.849e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.641e-01  9.226e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.428e+00  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.47
Ra Dec: 346.173 37.083
Photon Flux Upper Limit: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/663409/likelihoodResults_604800001_605059201_4FGL_J2304.6+3704_daily_bin1410.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) = 9185.58805399
delta logL = 0.161573984708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9185.58426796
delta logL = 0.165360015877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5425       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5303       1.0000          .0000       10.000    
     3 'Normalizat'    1.4052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86708       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+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=   9185.584     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      327 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5367        437.93        .17066E-03    .82873E-04
   2  Index         2.5310        5.7339        .85812E-02    .72241E-04
   3  Normalizat    1.4051        .33009        .34770E-03    .10496E-03
   4  Prefactor     .86713        .10195        .16703E-03   -.40314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.53667
  Index      = 2.53099
  Normalizat = 1.40513
  Prefactor  = 0.86713
 **********
 **   18 **HESSE 
 **********

 FCN=   9185.584     FROM HESSE     STATUS=OK            25 CALLS      352 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5367        15.798        .68262E-05   -1.5237    
   2  Index         2.5310        1.1763        .34325E-03   -.51646    
   3  Normalizat    1.4051        .24152        .13908E-04   -.80480    
   4  Prefactor     .86713        .92521E-01    .33405E-04   -.97299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84824e-10
Minuit parameter uncertainties:
  1  15.8095
  2  1.19119
  3  0.241716
  4  0.0925376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/663409': 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) = 9185.58426759
delta logL = 0.165360384286

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  5.537e+00  1.581e+01  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  2.531e+00  1.191e+00  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  3.823e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.671e-01  9.254e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.405e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
Ra Dec: 346.173 37.083

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/663409/cmap_HighResolution_604800001_605059201_4FGL_J2304.6+3704_daily_bin1410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-29 06:59:34.496162', job_id='663409', GAL2='0.87', fit_tolerance='1e-08', EG2='1.41', EG='1.43', time_epoch_completed='1632923974.5', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.65e-01', ts2='0.80', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1410' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:59:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 663409: <4FGL_J2304.6+3704_daily_bin1410> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1410> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 06:45:14 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 06:45:16 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:45:16 2021
Terminated at Wed Sep 29 06:59:35 2021
Results reported at Wed Sep 29 06:59:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1410 346.173 37.0826 604800001 605059201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2304.6+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   802.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            861 sec.

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

