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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1287
RA = 346.173, Dec = 37.0826
tmin = 572918401, tmax = 573177601
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='662427', job_status='RUN', time_executed='2021-09-29 06:43:43.086829', time_epoch_executed='1632923023.09' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/662427

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/662427/ft1_4FGL_J2304.6+3704_daily_bin1287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/662427/ft2_4FGL_J2304.6+3704_daily_bin1287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/662427/ft1_4FGL_J2304.6+3704_daily_bin1287.fits outfile=/scratch/kocevski/662427/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1287.fits ra=346.173 dec=37.0826 rad=12.0 tmin=572918401.0 tmax=573177601.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 4.93
user 4.68
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/662427/ft1_filtered_4FGL_J2304.6+3704_daily_bin1287.fits" evtable="EVENTS" scfile=/scratch/kocevski/662427/ft2_4FGL_J2304.6+3704_daily_bin1287.fits sctable="SC_DATA" outfile=/scratch/kocevski/662427/ltcube_572918401_573177601_4FGL_J2304.6+3704_daily_bin1287.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/662427/ft2_4FGL_J2304.6+3704_daily_bin1287.fits
.....................!
real 12.08
user 11.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/662427/ft1_filtered_4FGL_J2304.6+3704_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/662427/ft2_4FGL_J2304.6+3704_daily_bin1287.fits sctable="SC_DATA" expcube=/scratch/kocevski/662427/ltcube_572918401_573177601_4FGL_J2304.6+3704_daily_bin1287.fits outfile=/scratch/kocevski/662427/expmap_572918401_573177601_4FGL_J2304.6+3704_daily_bin1287.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/662427/ltcube_572918401_573177601_4FGL_J2304.6+3704_daily_bin1287.fits
.....................!
real 190.88
user 185.25
sys 5.28

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/662427/ft1_filtered_4FGL_J2304.6+3704_daily_bin1287.fits scfile=/scratch/kocevski/662427/ft2_4FGL_J2304.6+3704_daily_bin1287.fits outfile=/scratch/kocevski/662427/cmap_572918401_573177601_4FGL_J2304.6+3704_daily_bin1287.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.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/662427/ft1_filtered_4FGL_J2304.6+3704_daily_bin1287.fits scfile=/scratch/kocevski/662427/ft2_4FGL_J2304.6+3704_daily_bin1287.fits outfile=/scratch/kocevski/662427/cmap_HighResolution_572918401_573177601_4FGL_J2304.6+3704_daily_bin1287.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1193       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8355       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0015       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5229       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.528       1.0000         .10000E-03   10000.    
     9 'norm      '    .15643       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15216E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17063E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .18251E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8543       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14686E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1440       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1282       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87526       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=   9196.074     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2226 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1154        1.8672        .27555E-07    .35571E-04
   2  Prefactor     .10000E-03    58.083        .11711E-05** at limit **
   3  Prefactor     .10000E-03    3.3138       -.49390E-07** at limit **
   4  Prefactor     3.9399        42.735        .12356E-05    .74346E-04
   5  norm          2.0028        2.2859        .14218E-07    .38165E-05
   6  Prefactor     .10000E-03    6.4146       -.14272E-07** at limit **
   7  Prefactor     2.5243        3.8006        .29479E-06    .62404E-04
   8  Prefactor     23.518        21.284       -.39298E-06   -.72722E-04
   9  norm          .15715        .91746        .17333E-05    .34833E-03
  10  Prefactor     .10000E-03    14.782       -.84579E-07** at limit **
  11  Prefactor     .10000E-03    4.7383       -.12285E-06** at limit **
  12  Prefactor     .10000E-03    9.4531        .41433E-08** at limit **
  13  norm          .10000E-03    2.3574        .42854E-06** at limit **
  14  norm          .10000E-03    4.5789        .11411E-07** at limit **
  15  Prefactor     .10043E-03    11.073        .16964E-05** at limit **
  16  norm          .10000E-03    1.5589       -.84564E-07** at limit **
  17  Prefactor     .10000E-03    5.8900       -.56602E-07** at limit **
  18  Prefactor     .10000E-03    22.716        .19348E-06** at limit **
  19  Prefactor     5.8582        25.777        .53387E-06   -.30075E-05
  20  Prefactor     .10000E-03    38.733       -.80363E-06** at limit **
  21  Prefactor     9.1531        7.0466       -.66849E-07   -.29834E-04
  22  Normalizat    1.1279        .20307       -.10187E-05   -.26310E-03
  23  Prefactor     .87532        .77483E-01    .27453E-06   -.45785E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.11537
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 3.93989
  norm       = 2.00283
  Prefactor  = 0.0001
  Prefactor  = 2.52428
  Prefactor  = 23.5184
  norm       = 0.15715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100429
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.85822
  Prefactor  = 0.000100001
  Prefactor  = 9.15311
  Normalizat = 1.12789
  Prefactor  = 0.87532
 **********
 **   18 **HESSE 
 **********

 FCN=   9196.074     FROM HESSE     STATUS=OK           370 CALLS     2596 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1154        1.8591        .62016E-04   -1.5213    
   2  Prefactor     .10000E-03    58.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.3622        .17027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9399        42.285        .20608E-03   -1.5311    
   5  norm          2.0028        2.2773        .14961E-03   -1.5425    
   6  Prefactor     .10000E-03    6.4206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.5243        3.7849        .22190E-03   -1.5390    
   8  Prefactor     23.518        21.305        .82580E-04   -1.4738    
   9  norm          .15715        .93337        .17518E-03   -1.5629    
  10  Prefactor     .10000E-03    14.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.4617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.4371        .27381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.5862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10043E-03    70.313        .54432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7599        .23156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.8582        25.840        .16598E-03   -1.5224    
  20  Prefactor     .10000E-03    38.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.1531        7.0449        .13254E-03   -1.5103    
  22  Normalizat    1.1279        .23156        .35210E-03   -.88861    
  23  Prefactor     .87532        .90254E-01    .15615E-03   -.97009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63748e-09
Minuit parameter uncertainties:
  1  1.85908
  2  0.000828292
  3  2.02211e-06
  4  25.8375
  5  2.27739
  6  6.67977e-07
  7  3.78526
  8  21.3115
  9  0.765749
  10  2.62117e-05
  11  1.3186e-05
  12  2.38836e-06
  13  0.000256655
  14  5.64326e-06
  15  0.0110028
  16  1.94292e-05
  17  1.14568e-05
  18  9.82772e-05
  19  24.6248
  20  0.0004719
  21  7.04552
  22  0.231773
  23  0.090269
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  2.352e+01  2.131e+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.753e-01  9.027e-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.128e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.92
Ra Dec: 346.173 37.083
Photon Index (Fixed Index): 1.85 +/- 0.00
Photon Flux (Fixed Index): 2.33e-08 +/- 2.11e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 2.19e-05

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

Saving results to:
/scratch/kocevski/662427/likelihoodResults_572918401_573177601_4FGL_J2304.6+3704_daily_bin1287.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) = 9195.97968633
delta logL = 0.0943602623374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9195.97963106
delta logL = 0.0944155287561

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.468       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5659       1.0000          .0000       10.000    
     3 'Normalizat'    1.1351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87482       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=   9195.980     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      312 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.446        27.926        .37544E-03    .12355E-04
   2  Index         1.5651        .66112        .13781E-01    .30947E-03
   3  Normalizat    1.1349        .22453        .35115E-03    .28037E-04
   4  Prefactor     .87489        .89467E-01    .15619E-03   -.60442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.446
  Index      = 1.56514
  Normalizat = 1.13487
  Prefactor  = 0.874888
 **********
 **   18 **HESSE 
 **********

 FCN=   9195.980     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.446        27.625        .15017E-04   -1.4641    
   2  Index         1.5651        .65455        .27562E-02   -.75732    
   3  Normalizat    1.1349        .22462        .14046E-04   -.88640    
   4  Prefactor     .87489        .89526E-01    .31238E-04   -.97024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50007e-11
Minuit parameter uncertainties:
  1  27.6375
  2  0.65814
  3  0.224806
  4  0.0895411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/662427': 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) = 9195.97962918
delta logL = 0.0944174111646

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  2.845e+01  2.764e+01  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.565e+00  6.581e-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:  8.749e-01  8.954e-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.135e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.10
Ra Dec: 346.173 37.083
Photon Index (Free Index): 1.57 +/- 0.66
Photon Flux (Free Index): 1.48e-08 +/- 2.21e-08
Energy Flux (Free Index): 3.76e-05 +/- 5.33e-05

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/662427/cmap_HighResolution_572918401_573177601_4FGL_J2304.6+3704_daily_bin1287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', comment='SUCCESS', photon_flux='2.33e-08', energy_flux2='3.76e-05', photon_flux_error='2.11e-08', dlogl='9.44e-02', energy_flux='2.41e-05', photon_flux2='1.48e-08', job_status='DONE', time_completed='2021-09-29 06:57:04.472502', photon_index_error2='0.66', photon_index2='1.57', ts='3.92', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='7.92e-08', energy_flux_error2='5.33e-05', EG='1.13', time_epoch_completed='1632923824.47', return_code='0', job_id='662427', GAL2='0.87', EG2='1.13', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='2.21e-08', ts2='4.10', photon_index='1.85' WHERE bin_id='1287' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:57:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 662427: <4FGL_J2304.6+3704_daily_bin1287> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1287 346.173 37.0826 572918401 573177601 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 :                                   794.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            932 sec.

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

