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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin981
RA = 346.173, Dec = 37.0826
tmin = 493603201, tmax = 493862401
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='660029', job_status='RUN', time_executed='2021-09-29 06:36:07.779421', time_epoch_executed='1632922567.78' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660029

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660029/ft1_4FGL_J2304.6+3704_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660029/ft2_4FGL_J2304.6+3704_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660029/ft1_4FGL_J2304.6+3704_daily_bin981.fits outfile=/scratch/kocevski/660029/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin981.fits ra=346.173 dec=37.0826 rad=12.0 tmin=493603201.0 tmax=493862401.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.23
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660029/ft1_filtered_4FGL_J2304.6+3704_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/660029/ft2_4FGL_J2304.6+3704_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/660029/ltcube_493603201_493862401_4FGL_J2304.6+3704_daily_bin981.fits outfile=/scratch/kocevski/660029/expmap_493603201_493862401_4FGL_J2304.6+3704_daily_bin981.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/660029/ltcube_493603201_493862401_4FGL_J2304.6+3704_daily_bin981.fits
.....................!
real 191.29
user 185.52
sys 5.30

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/660029/ft1_filtered_4FGL_J2304.6+3704_daily_bin981.fits scfile=/scratch/kocevski/660029/ft2_4FGL_J2304.6+3704_daily_bin981.fits outfile=/scratch/kocevski/660029/cmap_493603201_493862401_4FGL_J2304.6+3704_daily_bin981.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660029/ft1_filtered_4FGL_J2304.6+3704_daily_bin981.fits scfile=/scratch/kocevski/660029/ft2_4FGL_J2304.6+3704_daily_bin981.fits outfile=/scratch/kocevski/660029/cmap_HighResolution_493603201_493862401_4FGL_J2304.6+3704_daily_bin981.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/660029/ft1_filtered_4FGL_J2304.6+3704_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/660029/ft2_4FGL_J2304.6+3704_daily_bin981.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/660029/Model_4FGL_J2304.6+3704_daily_bin981.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/660029/ft1_filtered_4FGL_J2304.6+3704_daily_bin981.fits.....................!
real 123.71
user 122.22
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/660029/ft1_filtered_4FGL_J2304.6+3704_daily_bin981.fits', '/scratch/kocevski/660029/ft2_4FGL_J2304.6+3704_daily_bin981.fits', expMap='/scratch/kocevski/660029/expmap_493603201_493862401_4FGL_J2304.6+3704_daily_bin981.fits', expCube='/scratch/kocevski/660029/ltcube_493603201_493862401_4FGL_J2304.6+3704_daily_bin981.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/660029/Model_4FGL_J2304.6+3704_daily_bin981.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/660029/ft1_filtered_4FGL_J2304.6+3704_daily_bin981.fits
Spacecraft file(s): /scratch/kocevski/660029/ft2_4FGL_J2304.6+3704_daily_bin981.fits
Exposure map: /scratch/kocevski/660029/expmap_493603201_493862401_4FGL_J2304.6+3704_daily_bin981.fits
Exposure cube: /scratch/kocevski/660029/ltcube_493603201_493862401_4FGL_J2304.6+3704_daily_bin981.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/660029/Model_4FGL_J2304.6+3704_daily_bin981.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) = 10419.5252496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1687       1.0000         .10000E-03   10000.    
     2 'Prefactor '    79.577       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8228       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.618       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5262       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.983       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8023       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      '    1.1255       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8568       1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.354       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.469       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5047       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10859E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3389       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88071       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=   10419.52     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2524 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1688        .94055        .49606E-07    .10196E-03
   2  Prefactor     79.574        78.063        .28876E-06   -.86779E-05
   3  Prefactor     2.8230        6.6866        .54570E-05   -.23332E-03
   4  Prefactor     .10000E-03    11.128       -.64757E-06** at limit **
   5  norm          10.615        4.8610       -.91248E-06   -.11560E-03
   6  Prefactor     .10000E-03    10.019        .10294E-05** at limit **
   7  Prefactor     .10000E-03    5.6079        .31650E-06** at limit **
   8  Prefactor     .10000E-03    54.588       -.12312E-06** at limit **
   9  norm          .10000E-03    .44273       -.17829E-07** at limit **
  10  Prefactor     8.5341        25.154       -.10253E-05    .15826E-04
  11  Prefactor     28.983        13.702        .10452E-06    .71515E-04
  12  Prefactor     .10000E-03    7.5856       -.62240E-07** at limit **
  13  norm          3.8027        3.9903        .27366E-06    .47721E-05
  14  norm          .10000E-03    3.9662        .84175E-07** at limit **
  15  Prefactor     .10000E-03    7.1783       -.44076E-06** at limit **
  16  norm          1.1262        2.1570       -.30153E-06   -.95119E-03
  17  Prefactor     3.8602        20.715       -.26483E-06   -.66456E-05
  18  Prefactor     51.356        47.445       -.21770E-06    .68847E-05
  19  Prefactor     13.454        42.681        .32485E-05   -.22347E-04
  20  Prefactor     5.4676        51.841        .11722E-04   -.18903E-04
  21  Prefactor     .10000E-03    4.8396       -.26306E-05** at limit **
  22  Normalizat    1.3385        .22001        .26157E-06    .57974E-04
  23  Prefactor     .88085        .80312E-01   -.54415E-06    .88837E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16877
  Prefactor  = 79.5738
  Prefactor  = 2.82298
  Prefactor  = 0.0001
  norm       = 10.6153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.53409
  Prefactor  = 28.9832
  Prefactor  = 0.0001
  norm       = 3.80272
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12616
  Prefactor  = 3.86021
  Prefactor  = 51.356
  Prefactor  = 13.4544
  Prefactor  = 5.46757
  Prefactor  = 0.000100002
  Normalizat = 1.33851
  Prefactor  = 0.880848
 **********
 **   18 **HESSE 
 **********

 FCN=   10419.52     FROM HESSE     STATUS=OK           370 CALLS     2894 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1688        .93423        .86012E-04   -1.5492    
   2  Prefactor     79.574        78.077        .45020E-04   -1.3922    
   3  Prefactor     2.8230        6.7243        .12104E-02   -1.5372    
   4  Prefactor     .10000E-03    11.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.615        4.8771        .12296E-03   -1.5056    
   6  Prefactor     .10000E-03    10.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .45195        .66262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5341        25.273        .13728E-03   -1.5124    
  11  Prefactor     28.983        13.562        .74418E-04   -1.4631    
  12  Prefactor     .10000E-03    7.5906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8027        3.9822        .20229E-03   -1.5318    
  14  norm          .10000E-03    3.9704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1262        1.6976        .19863E-02   -1.5496    
  17  Prefactor     3.8602        20.714        .20548E-03   -1.5315    
  18  Prefactor     51.356        47.450        .55964E-04   -1.4273    
  19  Prefactor     13.454        42.830        .10914E-03   -1.4974    
  20  Prefactor     5.4676        51.836        .17125E-03   -1.5240    
  21  Prefactor     .10000E-03    5.0734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3385        .25877        .37459E-03   -.82424    
  23  Prefactor     .88085        .94355E-01    .16938E-03   -.96814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54166e-10
Minuit parameter uncertainties:
  1  0.934241
  2  78.1783
  3  6.72612
  4  2.62623e-05
  5  4.87729
  6  3.18011e-05
  7  1.72379e-05
  8  6.33761e-05
  9  5.72869e-07
  10  25.305
  11  13.5635
  12  9.80191e-06
  13  3.98248
  14  1.58103e-06
  15  8.76273e-07
  16  1.69769
  17  17.8934
  18  47.4844
  19  42.9283
  20  33.7081
  21  0.00022201
  22  0.259026
  23  0.0943723
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  6.338e-05  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.808e-01  9.437e-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.339e+00  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/660029/likelihoodResults_493603201_493862401_4FGL_J2304.6+3704_daily_bin981.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10419.5202179
delta logL = -8.60746968101e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10419.5202179
delta logL = -8.60718646436e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8489       1.0000          .0000       10.000    
     3 'Normalizat'    1.3385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88085       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.

 FCN=   10419.52     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      208 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.041        .90712E-02** at limit **
   2  Index         1.8554        5.8235        .50000       -.80104E-06
   3  Normalizat    1.3385        .24408E-02    .84607E-01    .95298E-05
   4  Prefactor     .88085        .92210E-03    .44760E-01   -.18031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.85545
  Normalizat = 1.33851
  Prefactor  = 0.880848
 **********
 **   18 **HESSE 
 **********

 FCN=   10419.52     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    144.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8554        5.7244        .50000       -.68015    
   3  Normalizat    1.3385        .92280E-02    .37459E-03   -.82424    
   4  Prefactor     .88085        .34915E-02    .16938E-03   -.96814    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.14436e-10
Minuit parameter uncertainties:
  1  0.00052076
  2  124.009
  3  0.009228
  4  0.00349154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660029': 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) = 10419.5201319
delta logL = 1.44245859701e-09

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  5.208e-04  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.855e+00  1.240e+02  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.808e-01  3.492e-03  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.339e+00  9.228e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/660029/cmap_HighResolution_493603201_493862401_4FGL_J2304.6+3704_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-09-29 06:50:45.931003', job_id='660029', GAL2='0.88', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1632923445.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.44e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='981' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:50:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 660029: <4FGL_J2304.6+3704_daily_bin981> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin981 346.173 37.0826 493603201 493862401 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 :                                   872.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             317.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            894 sec.

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

