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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1057
RA = 346.173, Dec = 37.0826
tmin = 513302401, tmax = 513561601
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='661770', job_status='RUN', time_executed='2021-09-29 06:43:02.168892', time_epoch_executed='1632922982.17' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1057'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/661770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/661770/ft1_4FGL_J2304.6+3704_daily_bin1057.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/661770/ft2_4FGL_J2304.6+3704_daily_bin1057.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/661770/ft1_4FGL_J2304.6+3704_daily_bin1057.fits outfile=/scratch/kocevski/661770/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1057.fits ra=346.173 dec=37.0826 rad=12.0 tmin=513302401.0 tmax=513561601.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.42
user 5.14
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/661770/ft2_4FGL_J2304.6+3704_daily_bin1057.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/661770/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1057.fits evtable="EVENTS" outfile="/scratch/kocevski/661770/ft1_filtered_4FGL_J2304.6+3704_daily_bin1057.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/661770/ft1_filtered_4FGL_J2304.6+3704_daily_bin1057.fits" evtable="EVENTS" scfile=/scratch/kocevski/661770/ft2_4FGL_J2304.6+3704_daily_bin1057.fits sctable="SC_DATA" outfile=/scratch/kocevski/661770/ltcube_513302401_513561601_4FGL_J2304.6+3704_daily_bin1057.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/661770/ft2_4FGL_J2304.6+3704_daily_bin1057.fits
.....................!
real 12.67
user 12.27
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/661770/ft1_filtered_4FGL_J2304.6+3704_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/661770/ft2_4FGL_J2304.6+3704_daily_bin1057.fits sctable="SC_DATA" expcube=/scratch/kocevski/661770/ltcube_513302401_513561601_4FGL_J2304.6+3704_daily_bin1057.fits outfile=/scratch/kocevski/661770/expmap_513302401_513561601_4FGL_J2304.6+3704_daily_bin1057.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/661770/ltcube_513302401_513561601_4FGL_J2304.6+3704_daily_bin1057.fits
.....................!
real 190.54
user 185.20
sys 4.77

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/661770/ft1_filtered_4FGL_J2304.6+3704_daily_bin1057.fits scfile=/scratch/kocevski/661770/ft2_4FGL_J2304.6+3704_daily_bin1057.fits outfile=/scratch/kocevski/661770/cmap_513302401_513561601_4FGL_J2304.6+3704_daily_bin1057.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/661770/ft1_filtered_4FGL_J2304.6+3704_daily_bin1057.fits scfile=/scratch/kocevski/661770/ft2_4FGL_J2304.6+3704_daily_bin1057.fits outfile=/scratch/kocevski/661770/cmap_HighResolution_513302401_513561601_4FGL_J2304.6+3704_daily_bin1057.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7198       1.0000         .10000E-03   10000.    
     2 'Prefactor '    50.294       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9562       1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.865       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4048       1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.166       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0351       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1803       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.512       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.173       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7483       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.669       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.688       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22266E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75666       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0348       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=   7748.977     FROM MIGRAD    STATUS=CONVERGED    893 CALLS     2617 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7198        1.4280        .87941E-04    .66487E-03
   2  Prefactor     50.292        56.998        .56548E-04   -.68355E-06
   3  Prefactor     4.9541        8.5072        .18065E-03    .32580E-03
   4  Prefactor     48.867        30.299        .57365E-04    .17638E-04
   5  norm          4.4050        4.4039        .15401E-03    .18137E-03
   6  Prefactor     51.163        27.157        .56067E-04    .56776E-06
   7  Prefactor     6.0351        6.1007        .16344E-03    .11435E-03
   8  Prefactor     .10000E-03    11.132        .18142E-02** at limit **
   9  norm          1.1800        1.3426        .10600E-03   -.11079E-03
  10  Prefactor     10.511        18.511        .12358E-03    .45538E-04
  11  Prefactor     13.175        12.659        .11036E-03    .19336E-03
  12  Prefactor     .10000E-03    14.423        .18142E-02** at limit **
  13  norm          .10000E-03    1.4864        .10459E-02** at limit **
  14  norm          .10000E-03    6.2259        .18142E-02** at limit **
  15  Prefactor     .10000E-03    4.2266        .17655E-02** at limit **
  16  norm          1.7481        2.2729        .14631E-03    .29637E-03
  17  Prefactor     13.671        18.272        .10834E-03    .26025E-04
  18  Prefactor     .10000E-03    28.898        .18142E-02** at limit **
  19  Prefactor     23.667        32.428        .82301E-04    .10728E-03
  20  Prefactor     .10000E-03    114.66        .18142E-02** at limit **
  21  Prefactor     .22334E-02    5.9155        .58893E-01** at limit **
  22  Normalizat    .75639        .26632        .43478E-03    .25727E-03
  23  Prefactor     1.0349        .10443        .15412E-03    .14012E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.71984
  Prefactor  = 50.2924
  Prefactor  = 4.95413
  Prefactor  = 48.8669
  norm       = 4.40497
  Prefactor  = 51.1632
  Prefactor  = 6.03511
  Prefactor  = 0.0001
  norm       = 1.18003
  Prefactor  = 10.5107
  Prefactor  = 13.175
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74808
  Prefactor  = 13.6709
  Prefactor  = 0.0001
  Prefactor  = 23.6673
  Prefactor  = 0.0001
  Prefactor  = 0.00223336
  Normalizat = 0.756388
  Prefactor  = 1.03492
 **********
 **   18 **HESSE 
 **********

 FCN=   7748.977     FROM HESSE     STATUS=OK           356 CALLS     2973 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7198        1.4278        .35176E-05   -1.5446    
   2  Prefactor     50.292        56.995        .11310E-04   -1.4288    
   3  Prefactor     4.9541        8.5039        .72261E-05   -1.5263    
   4  Prefactor     48.867        30.296        .22946E-05   -1.4309    
   5  norm          4.4050        4.4025        .61604E-05   -1.5288    
   6  Prefactor     51.163        27.157        .11213E-04   -1.4276    
   7  Prefactor     6.0351        6.1003        .65376E-05   -1.5217    
   8  Prefactor     .10000E-03    11.132        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1800        1.3426        .42401E-05   -1.5491    
  10  Prefactor     10.511        18.511        .49431E-05   -1.5059    
  11  Prefactor     13.175        12.657        .44145E-05   -1.4982    
  12  Prefactor     .10000E-03    14.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4865        .20918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.2271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2269        .35310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7481        2.2727        .58522E-05   -1.5444    
  17  Prefactor     13.671        18.271        .43335E-05   -1.4968    
  18  Prefactor     .10000E-03    28.898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.667        32.427        .16460E-04   -1.4735    
  20  Prefactor     .10000E-03    114.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .22334E-02    5.3323        .63797E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .75639        .26641        .17391E-04   -1.0171    
  23  Prefactor     1.0349        .10447        .30825E-04   -.91574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11843e-09
Minuit parameter uncertainties:
  1  1.42787
  2  57.0569
  3  8.50599
  4  30.3055
  5  4.40284
  6  27.1632
  7  6.10089
  8  5.00163e-06
  9  1.34261
  10  18.5208
  11  12.6599
  12  5.11663e-05
  13  3.75565e-06
  14  1.72339e-05
  15  3.15946e-05
  16  2.27283
  17  18.2781
  18  2.39922e-05
  19  32.4514
  20  0.000255235
  21  0.213334
  22  0.266872
  23  0.10449
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  5.002e-06  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:  1.035e+00  1.045e-01  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:  7.564e-01  2.669e-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: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/661770/likelihoodResults_513302401_513561601_4FGL_J2304.6+3704_daily_bin1057.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) = 7748.97713352
delta logL = -0.000428132206252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7748.97670537
delta logL = 1.08548192657e-08

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 'Index     '    1.8413       1.0000          .0000       10.000    
     3 'Normalizat'    .75639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0349       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=   7748.977     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    121.99        .90712E-02** at limit **
   2  Index         1.8336        8.4803        .50000        .51796E-05
   3  Normalizat    .75639        .19890E-01    .98112E-01    .35131E-04
   4  Prefactor     1.0349        .81859E-02    .40887E-01   -.99994E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8336
  Normalizat = 0.756392
  Prefactor  = 1.03492
 **********
 **   18 **HESSE 
 **********

 FCN=   7748.977     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2052.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8336        5.4277        .50000       -.68579    
   3  Normalizat    .75639        .12880        .43477E-03   -1.0171    
   4  Prefactor     1.0349        .53183E-01    .15412E-03   -.91574    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.05475e-09
Minuit parameter uncertainties:
  1  0.000208338
  2  54.5135
  3  0.128851
  4  0.0531858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/661770': 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) = 7748.97670536
delta logL = 2.13394741877e-08

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  2.083e-04  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.834e+00  5.451e+01  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:  1.035e+00  5.319e-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:  7.564e-01  1.289e-01  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/661770/cmap_HighResolution_513302401_513561601_4FGL_J2304.6+3704_daily_bin1057.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-09-29 06:55:47.150331', job_id='661770', GAL2='1.03', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632923747.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1057' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:55:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 661770: <4FGL_J2304.6+3704_daily_bin1057> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1057 346.173 37.0826 513302401 513561601 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 :                                   747.48 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

