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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1222
RA = 346.173, Dec = 37.0826
tmin = 556070401, tmax = 556329601
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='662319', job_status='RUN', time_executed='2021-09-29 06:43:29.590698', time_epoch_executed='1632923009.59' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/662319

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/662319/ft1_4FGL_J2304.6+3704_daily_bin1222.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/662319/ft2_4FGL_J2304.6+3704_daily_bin1222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/662319/ft1_4FGL_J2304.6+3704_daily_bin1222.fits outfile=/scratch/kocevski/662319/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1222.fits ra=346.173 dec=37.0826 rad=12.0 tmin=556070401.0 tmax=556329601.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.72
user 3.49
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/662319/ft1_filtered_4FGL_J2304.6+3704_daily_bin1222.fits" evtable="EVENTS" scfile=/scratch/kocevski/662319/ft2_4FGL_J2304.6+3704_daily_bin1222.fits sctable="SC_DATA" outfile=/scratch/kocevski/662319/ltcube_556070401_556329601_4FGL_J2304.6+3704_daily_bin1222.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/662319/ft2_4FGL_J2304.6+3704_daily_bin1222.fits
.....................!
real 12.01
user 11.68
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/662319/ft1_filtered_4FGL_J2304.6+3704_daily_bin1222.fits evtable="EVENTS" scfile=/scratch/kocevski/662319/ft2_4FGL_J2304.6+3704_daily_bin1222.fits sctable="SC_DATA" expcube=/scratch/kocevski/662319/ltcube_556070401_556329601_4FGL_J2304.6+3704_daily_bin1222.fits outfile=/scratch/kocevski/662319/expmap_556070401_556329601_4FGL_J2304.6+3704_daily_bin1222.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/662319/ltcube_556070401_556329601_4FGL_J2304.6+3704_daily_bin1222.fits
.....................!
real 190.94
user 185.61
sys 4.82

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/662319/ft1_filtered_4FGL_J2304.6+3704_daily_bin1222.fits scfile=/scratch/kocevski/662319/ft2_4FGL_J2304.6+3704_daily_bin1222.fits outfile=/scratch/kocevski/662319/cmap_556070401_556329601_4FGL_J2304.6+3704_daily_bin1222.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.52
user 0.36
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/662319/ft1_filtered_4FGL_J2304.6+3704_daily_bin1222.fits', '/scratch/kocevski/662319/ft2_4FGL_J2304.6+3704_daily_bin1222.fits', expMap='/scratch/kocevski/662319/expmap_556070401_556329601_4FGL_J2304.6+3704_daily_bin1222.fits', expCube='/scratch/kocevski/662319/ltcube_556070401_556329601_4FGL_J2304.6+3704_daily_bin1222.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/662319/Model_4FGL_J2304.6+3704_daily_bin1222.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/662319/ft1_filtered_4FGL_J2304.6+3704_daily_bin1222.fits
Spacecraft file(s): /scratch/kocevski/662319/ft2_4FGL_J2304.6+3704_daily_bin1222.fits
Exposure map: /scratch/kocevski/662319/expmap_556070401_556329601_4FGL_J2304.6+3704_daily_bin1222.fits
Exposure cube: /scratch/kocevski/662319/ltcube_556070401_556329601_4FGL_J2304.6+3704_daily_bin1222.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/662319/Model_4FGL_J2304.6+3704_daily_bin1222.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 157.471096388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 155.130958632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2516       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4118       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11763E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    8.0602       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0658       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0929       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1380       1.0000         .10000E-03   10000.    
     9 'norm      '    .19353E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    119.19       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8001       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.654       1.0000         .10000E-03   10000.    
    13 'norm      '    .23003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.1542       1.0000         .10000E-03   10000.    
    15 'Prefactor '    208.65       1.0000         .10000E-03   10000.    
    16 'norm      '    .98683E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29322E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5677       1.0000         .10000E-03   10000.    
    19 'Prefactor '    164.47       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9572       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .59351E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .22093       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   155.1205     FROM MIGRAD    STATUS=CONVERGED    146 CALLS      505 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8377       -.19568E-04** at limit **
   2  Prefactor     2.2516        1.0271         .0000         .0000    
   3  Prefactor     1.4118        1.0828         .0000         .0000    
   4  Prefactor     .10000E-03    94.341       -.69689E-04** at limit **
   5  norm          8.0602        1.0019         .0000         .0000    
   6  Prefactor     3.0658        1.0140         .0000         .0000    
   7  Prefactor     2.0929        1.0318         .0000         .0000    
   8  Prefactor     .20870E-03    1035.8       -.81692E-03** at limit **
   9  norm          .10000E-03    9.4297       -.96898E-05** at limit **
  10  Prefactor     114.86        97.453       -.92697E-04   -.18977E-01
  11  Prefactor     .40343E-02    252.46       -.91684E-03   -.13509E-02
  12  Prefactor     53.588        155.32        .64655E-03   -.23901E-02
  13  norm          .10000E-03    27.755        .14394E-04** at limit **
  14  norm          5.1542        1.0048         .0000         .0000    
  15  Prefactor     203.73        92.426       -.84096E-04    .18115E-01
  16  norm          .10001E-03    435.01       -.72973E-04** at limit **
  17  Prefactor     .10000E-03    74.782        .99931E-04** at limit **
  18  Prefactor     5.5677        1.0041         .0000         .0000    
  19  Prefactor     166.28        75.055        .29399E-04   -.11067E-01
  20  Prefactor     .10028E-03    411.39        .36739E-03** at limit **
  21  Prefactor     .10000E-03    75.804       -.68154E-04** at limit **
  22  Normalizat    .10000E-01    1.9331       -.11751E-02** at limit **
  23  Prefactor     .20983        .32308       -.17961E-04    .69380E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.25161
  Prefactor  = 1.41184
  Prefactor  = 0.000100001
  norm       = 8.0602
  Prefactor  = 3.06575
  Prefactor  = 2.09286
  Prefactor  = 0.000208697
  norm       = 0.0001
  Prefactor  = 114.863
  Prefactor  = 0.00403428
  Prefactor  = 53.5881
  norm       = 0.0001
  norm       = 5.15417
  Prefactor  = 203.727
  norm       = 0.00010001
  Prefactor  = 0.000100002
  Prefactor  = 5.5677
  Prefactor  = 166.284
  Prefactor  = 0.000100285
  Prefactor  = 0.000100001
  Normalizat = 0.01
  Prefactor  = 0.209835
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   155.1205     FROM HESSE     STATUS=FAILED        13 CALLS      518 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8331        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     565.00        562.63         .0000       -1.5408    
   3  Prefactor     1.4118        1.0828         .0000       -1.5470    
   4  Prefactor     .10000E-03    .20619       -.69689E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.0602        1.0019         .0000       -1.5140    
   6  Prefactor     3.0658        1.0140         .0000       -1.5358    
   7  Prefactor     2.0929        1.0318         .0000       -1.5419    
   8  Prefactor     .20870E-03    .12417       -.81692E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20571       -.96898E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     114.86        .98191       -.92697E-04   -1.3560    
  11  Prefactor     .40343E-02    .92357E-01   -.91684E-03   -1.5721    
  12  Prefactor     53.588        1.1921        .64655E-03   -1.4243    
  13  norm          .10000E-03    .20571        .14394E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.1542        1.0048         .0000       -1.5254    
  15  Prefactor     203.73        .98838       -.84096E-04   -1.2844    
  16  norm          .10001E-03    .20577       -.72973E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .21016        .99931E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5677        1.0041         .0000       -1.5236    
  19  Prefactor     166.28        1.0054        .29399E-04   -1.3122    
  20  Prefactor     .10028E-03    .87133E-01    .36739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .27746       -.68154E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .25511       -.11751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .20983        .49950       -.17961E-04   -1.2801    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.83168e-10
Minuit parameter uncertainties:
  1  3.29237e-05
  2  1.02707
  3  1.08278
  4  2.88229e-05
  5  1.00194
  6  1.01396
  7  1.03184
  8  0.00734773
  9  3.29199e-06
  10  0.981911
  11  0.0381239
  12  1.19212
  13  2.84001e-06
  14  1.00478
  15  0.988379
  16  9.11632e-05
  17  3.84088e-05
  18  1.00409
  19  1.00543
  20  0.000315143
  21  3.13812e-05
  22  5.58075e-06
  23  0.510212
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 155.120533871

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  2.087e-04  7.348e-03  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:  2.098e-01  5.102e-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:  1.000e-02  5.581e-06  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.06e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/662319/likelihoodResults_556070401_556329601_4FGL_J2304.6+3704_daily_bin1222.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) = 155.120538533
delta logL = -4.66267451316e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 155.120538257
delta logL = -4.38666134528e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96108E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8489       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .20983       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=   155.1205     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      215 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1036.3        .90737E-02** at limit **
   2  Index         1.8062        6.5163        .50000        .27496E-06
   3  Normalizat    .10000E-01    .25623E-02    .18250    ** at limit **
   4  Prefactor     .20983        .11156E-01    .35428E-01    .18259E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.80619
  Normalizat = 0.01
  Prefactor  = 0.209831
 **********
 **   18 **HESSE 
 **********

 FCN=   155.1205     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      248 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7225.2        .18147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8062        8.0779        .50000       -.69289    
   3  Normalizat    .10000E-01    .19156E-01    .90778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .20983        .24915E-01    .22059E-03   -1.2801    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.35976e-09
Minuit parameter uncertainties:
  1  0.00349358
  2  1179.3
  3  1.07906e-07
  4  0.0249167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/662319': 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) = 155.120533817
delta logL = 5.3484768614e-08

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  3.494e-03  1.000e-04  1.000e+04 ( 1.000e-14)
377        Index:  1.806e+00  1.179e+03  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:  2.098e-01  2.492e-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.000e-02  1.079e-07  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/662319/cmap_HighResolution_556070401_556329601_4FGL_J2304.6+3704_daily_bin1222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-01', job_status='DONE', photon_flux_upper_limit='6.06e-06', time_completed='2021-09-29 06:50:43.106785', job_id='662319', GAL2='0.21', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632923443.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.21', dlogl='5.35e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1222' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:50:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 662319: <4FGL_J2304.6+3704_daily_bin1222> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1222 346.173 37.0826 556070401 556329601 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 :                                   317.25 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            558 sec.

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

