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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1654
RA = 346.173, Dec = 37.0826
tmin = 668044801, tmax = 668304001
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='101600', job_status='RUN', time_executed='2022-03-07 01:26:06.290393', time_epoch_executed='1646645166.29' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101600

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101600/ft1_4FGL_J2304.6+3704_daily_bin1654.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101600/ft2_4FGL_J2304.6+3704_daily_bin1654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101600/ft1_4FGL_J2304.6+3704_daily_bin1654.fits outfile=/scratch/kocevski/101600/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1654.fits ra=346.173 dec=37.0826 rad=12.0 tmin=668044801.0 tmax=668304001.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.70
user 3.48
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101600/ft2_4FGL_J2304.6+3704_daily_bin1654.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/101600/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1654.fits evtable="EVENTS" outfile="/scratch/kocevski/101600/ft1_filtered_4FGL_J2304.6+3704_daily_bin1654.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.50
user 0.34
sys 0.15
Number of photons that survived the gtmktime cut: 1034

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101600/ft1_filtered_4FGL_J2304.6+3704_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/101600/ft2_4FGL_J2304.6+3704_daily_bin1654.fits sctable="SC_DATA" expcube=/scratch/kocevski/101600/ltcube_668044801_668304001_4FGL_J2304.6+3704_daily_bin1654.fits outfile=/scratch/kocevski/101600/expmap_668044801_668304001_4FGL_J2304.6+3704_daily_bin1654.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/101600/ltcube_668044801_668304001_4FGL_J2304.6+3704_daily_bin1654.fits
.....................!
real 194.29
user 187.91
sys 5.57

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/101600/ft1_filtered_4FGL_J2304.6+3704_daily_bin1654.fits scfile=/scratch/kocevski/101600/ft2_4FGL_J2304.6+3704_daily_bin1654.fits outfile=/scratch/kocevski/101600/cmap_668044801_668304001_4FGL_J2304.6+3704_daily_bin1654.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101600/ft1_filtered_4FGL_J2304.6+3704_daily_bin1654.fits scfile=/scratch/kocevski/101600/ft2_4FGL_J2304.6+3704_daily_bin1654.fits outfile=/scratch/kocevski/101600/cmap_HighResolution_668044801_668304001_4FGL_J2304.6+3704_daily_bin1654.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.57
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9533       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.672       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7138       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.863       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4582       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.596       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6128       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.780       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .69328       1.0000         .10000E-03   10000.    
    18 'Prefactor '    113.31       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.739       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.311       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0805       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91885       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10706.11     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2578 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9534        1.4231         .0000        .77760E-03
   2  Prefactor     31.673        34.629         .0000       -.92865E-03
   3  Prefactor     1.7098        15.833         .0000        .18116E-01
   4  Prefactor     15.864        26.170         .0000       -.46672E-03
   5  norm          2.4593        5.2952         .0000        .11834E-02
   6  Prefactor     .10032E-03    33.593         .0000    ** at limit **
   7  Prefactor     .10000E-03    3.2233         .0000    ** at limit **
   8  Prefactor     10.595        17.131         .0000        .10363E-03
   9  norm          4.6130        1.5389         .0000       -.21927E-03
  10  Prefactor     29.297        21.155         .0000       -.41728E-03
  11  Prefactor     .10000E-03    11.605         .0000    ** at limit **
  12  Prefactor     .10000E-03    7.9988         .0000    ** at limit **
  13  norm          .10000E-03    4.0917         .0000    ** at limit **
  14  norm          11.781        8.0928         .0000        .13021E-04
  15  Prefactor     .10037E-03    34.388         .0000    ** at limit **
  16  norm          .10000E-03    .97891         .0000    ** at limit **
  17  Prefactor     .70442        9.8576         .0000        .11495E-03
  18  Prefactor     113.31        72.622         .0000       -.25100E-04
  19  Prefactor     23.739        40.968         .0000        .62712E-03
  20  Prefactor     15.312        24.484         .0000       -.65777E-03
  21  Prefactor     .10000E-03    2.7932         .0000    ** at limit **
  22  Normalizat    1.0803        .20215         .0000       -.21112E-03
  23  Prefactor     .91894        .75789E-01     .0000       -.10267E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.95339
  Prefactor  = 31.6731
  Prefactor  = 1.70977
  Prefactor  = 15.8637
  norm       = 2.45934
  Prefactor  = 0.000100317
  Prefactor  = 0.0001
  Prefactor  = 10.5951
  norm       = 4.61297
  Prefactor  = 29.2974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.7805
  Prefactor  = 0.000100374
  norm       = 0.0001
  Prefactor  = 0.704415
  Prefactor  = 113.307
  Prefactor  = 23.7385
  Prefactor  = 15.3115
  Prefactor  = 0.0001
  Normalizat = 1.08032
  Prefactor  = 0.918938
 **********
 **   18 **HESSE 
 **********

 FCN=   10706.11     FROM HESSE     STATUS=OK           364 CALLS     2942 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9534        1.4217        .75606E-04   -1.5364    
   2  Prefactor     31.673        34.630        .71197E-04   -1.4582    
   3  Prefactor     1.7098        12.526        .16052E-02   -1.5446    
   4  Prefactor     15.864        26.191        .10056E-03   -1.4911    
   5  norm          2.4593        4.6937        .21714E-03   -1.5394    
   6  Prefactor     .10032E-03    34.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2450        .18123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.595        17.131        .12309E-03   -1.5057    
   9  norm          4.6130        1.5397        .71006E-04   -1.5278    
  10  Prefactor     29.297        21.170        .74020E-04   -1.4625    
  11  Prefactor     .10000E-03    11.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.781        8.0934        .11672E-03   -1.5021    
  15  Prefactor     .10037E-03    35.432        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0248        .19987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .70442        70.850        .62763E-02   -1.5540    
  18  Prefactor     113.31        72.634        .37793E-04   -1.3575    
  19  Prefactor     23.739        41.217        .82214E-04   -1.4733    
  20  Prefactor     15.312        24.475        .10236E-03   -1.4925    
  21  Prefactor     .10000E-03    2.8107        .16881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0803        .23363        .38115E-03   -.90386    
  23  Prefactor     .91894        .88356E-01    .15970E-03   -.95482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18711e-08
Minuit parameter uncertainties:
  1  1.42174
  2  34.652
  3  9.25793
  4  26.21
  5  4.69437
  6  0.00658331
  7  7.6831e-06
  8  17.1388
  9  1.53974
  10  21.1752
  11  2.49718e-08
  12  0.000107985
  13  6.87723e-05
  14  8.09414
  15  0.00728708
  16  5.88439e-06
  17  14.1453
  18  72.6913
  19  41.2669
  20  24.4912
  21  5.72948e-07
  22  0.233849
  23  0.0883694
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.060e+01  1.714e+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:  9.189e-01  8.837e-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.080e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/101600/likelihoodResults_668044801_668304001_4FGL_J2304.6+3704_daily_bin1654.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) = 10706.0995217
delta logL = 0.00923140379018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10706.0956185
delta logL = 0.0131345455593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9522       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9850       1.0000          .0000       10.000    
     3 'Normalizat'    1.0784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91914       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=   10706.10     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      230 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9418        653.70        .33490E-02    .34846E-03
   2  Index         1.9868        5.7346        .14372        .21255E-03
   3  Normalizat    1.0785        .86893E-01    .86140E-01   -.88805E-04
   4  Prefactor     .91913        .27906E-01    .45248E-01   -.78313E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.94181
  Index      = 1.98681
  Normalizat = 1.07851
  Prefactor  = 0.91913
 **********
 **   18 **HESSE 
 **********

 FCN=   10706.10     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9418        21.397        .13396E-03   -1.5110    
   2  Index         1.9868        .99936        .12612E-01   -.64680    
   3  Normalizat    1.0785        .22023        .38144E-03   -.90445    
   4  Prefactor     .91913        .86410E-01    .15969E-03   -.95476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72058e-10
Minuit parameter uncertainties:
  1  21.4155
  2  1.01011
  3  0.220413
  4  0.0864231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101600': 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) = 10706.0956155
delta logL = 0.0131375876135

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.191e-01  8.642e-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.079e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.53
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/101600/cmap_HighResolution_668044801_668304001_4FGL_J2304.6+3704_daily_bin1654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.80e-08', time_completed='2022-03-07 01:41:28.175924', job_id='101600', GAL2='0.92', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1646646088.18', return_code2='0', ts='0.53', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.31e-02', ts2='0.56', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1654' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar  7 01:41:28 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 101600: <4FGL_J2304.6+3704_daily_bin1654> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1654> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Mar  7 01:25:26 2022
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar  7 01:25:51 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar  7 01:25:51 2022
Terminated at Mon Mar  7 01:41:28 2022
Results reported at Mon Mar  7 01:41:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2304.6+3704_daily_bin1654 346.173 37.0826 668044801 668304001 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 :                                   922.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             348.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            962 sec.

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

