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


Performing analysis on: 4FGL_J2304.6+3704_daily_bin1289
RA = 346.173, Dec = 37.0826
tmin = 573436801, tmax = 573696001
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='662430', job_status='RUN', time_executed='2021-09-29 06:41:49.424939', time_epoch_executed='1632922909.42' WHERE source_name='4FGL J2304.6+3704' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/662430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/662430/ft1_4FGL_J2304.6+3704_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/662430/ft2_4FGL_J2304.6+3704_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/662430/ft1_4FGL_J2304.6+3704_daily_bin1289.fits outfile=/scratch/kocevski/662430/ft1_filteredMKT_4FGL_J2304.6+3704_daily_bin1289.fits ra=346.173 dec=37.0826 rad=12.0 tmin=573436801.0 tmax=573696001.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.47
user 5.15
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/662430/ft1_filtered_4FGL_J2304.6+3704_daily_bin1289.fits" evtable="EVENTS" scfile=/scratch/kocevski/662430/ft2_4FGL_J2304.6+3704_daily_bin1289.fits sctable="SC_DATA" outfile=/scratch/kocevski/662430/ltcube_573436801_573696001_4FGL_J2304.6+3704_daily_bin1289.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/662430/ft2_4FGL_J2304.6+3704_daily_bin1289.fits
.....................!
real 12.06
user 11.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/662430/ft1_filtered_4FGL_J2304.6+3704_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/662430/ft2_4FGL_J2304.6+3704_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/662430/ltcube_573436801_573696001_4FGL_J2304.6+3704_daily_bin1289.fits outfile=/scratch/kocevski/662430/expmap_573436801_573696001_4FGL_J2304.6+3704_daily_bin1289.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/662430/ltcube_573436801_573696001_4FGL_J2304.6+3704_daily_bin1289.fits
.....................!
real 192.74
user 185.85
sys 5.09

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/662430/ft1_filtered_4FGL_J2304.6+3704_daily_bin1289.fits scfile=/scratch/kocevski/662430/ft2_4FGL_J2304.6+3704_daily_bin1289.fits outfile=/scratch/kocevski/662430/cmap_573436801_573696001_4FGL_J2304.6+3704_daily_bin1289.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/662430/ft1_filtered_4FGL_J2304.6+3704_daily_bin1289.fits scfile=/scratch/kocevski/662430/ft2_4FGL_J2304.6+3704_daily_bin1289.fits outfile=/scratch/kocevski/662430/cmap_HighResolution_573436801_573696001_4FGL_J2304.6+3704_daily_bin1289.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.61
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9976       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6795       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11765       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4130       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19184E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11242E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0369       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.298       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6501       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9144       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6602       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0827       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88594       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=   10411.40     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2589 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9977        1.4884        .49686E-08   -.11196E-04
   2  Prefactor     36.007        71.279       -.23866E-05   -.75214E-04
   3  Prefactor     9.6888        8.5238        .63807E-07   -.26815E-03
   4  Prefactor     .10000E-03    5.5323       -.22887E-07** at limit **
   5  norm          .10368        2.3440        .25072E-06   -.39468E-03
   6  Prefactor     5.4104        11.746        .13431E-06   -.27831E-04
   7  Prefactor     .10000E-03    4.9957       -.16656E-06** at limit **
   8  Prefactor     .10000E-03    15.154        .12039E-05** at limit **
   9  norm          .10000E-03    .54010        .32734E-07** at limit **
  10  Prefactor     7.0370        20.460        .74657E-06    .28685E-04
  11  Prefactor     .10000E-03    1.9110        .16783E-07** at limit **
  12  Prefactor     27.280        25.469       -.90368E-06   -.14274E-03
  13  norm          .10000E-03    1.4910       -.24130E-07** at limit **
  14  norm          3.7528        6.0251       -.85222E-08   -.13579E-03
  15  Prefactor     .10000E-03    16.242       -.12567E-05** at limit **
  16  norm          .10000E-03    .72967       -.32925E-08** at limit **
  17  Prefactor     .10000E-03    3.8979       -.26467E-07** at limit **
  18  Prefactor     .10000E-03    13.390       -.29503E-06** at limit **
  19  Prefactor     4.6522        31.707        .65575E-05   -.95305E-04
  20  Prefactor     6.9082        52.670       -.20001E-05   -.59573E-04
  21  Prefactor     8.6609        7.2668       -.55582E-07   -.22218E-03
  22  Normalizat    1.0823        .19087       -.46168E-06   -.47748E-04
  23  Prefactor     .88607        .73688E-01    .13289E-06   -.18047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.99771
  Prefactor  = 36.0072
  Prefactor  = 9.68882
  Prefactor  = 0.0001
  norm       = 0.103681
  Prefactor  = 5.41042
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 7.03697
  Prefactor  = 0.0001
  Prefactor  = 27.2795
  norm       = 0.0001
  norm       = 3.75284
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.65222
  Prefactor  = 6.9082
  Prefactor  = 8.66088
  Normalizat = 1.08227
  Prefactor  = 0.886068
 **********
 **   18 **HESSE 
 **********

 FCN=   10411.40     FROM HESSE     STATUS=OK           380 CALLS     2969 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9977        1.4900        .59907E-04   -1.5218    
   2  Prefactor     36.007        72.929        .66777E-04   -1.4507    
   3  Prefactor     9.6888        8.7734        .12880E-03   -1.5085    
   4  Prefactor     .10000E-03    5.5371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10368        31.636        .24331E-02   -1.5644    
   6  Prefactor     5.4104        11.735        .17272E-03   -1.5243    
   7  Prefactor     .10000E-03    6.7705        .58764E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.0476        .14511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.0370        20.495        .15123E-03   -1.5177    
  11  Prefactor     .10000E-03    1.9131        .13774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.280        25.882        .76677E-04   -1.4663    
  13  norm          .10000E-03    1.5025        .12164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7528        6.0468        .20840E-03   -1.5320    
  15  Prefactor     .10000E-03    16.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .74213        .85097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.6522        34.177        .93317E-03   -1.5277    
  20  Prefactor     6.9082        53.346        .15257E-03   -1.5182    
  21  Prefactor     8.6609        7.2435        .13621E-03   -1.5119    
  22  Normalizat    1.0823        .22081        .36033E-03   -.90323    
  23  Prefactor     .88607        .85902E-01    .15684E-03   -.96630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38198e-09
Minuit parameter uncertainties:
  1  1.49004
  2  73.1106
  3  8.77458
  4  2.72596e-06
  5  3.62236
  6  11.7399
  7  0.000221584
  8  0.000199166
  9  6.66069e-06
  10  20.5152
  11  8.89577e-07
  12  25.8927
  13  7.34395e-07
  14  6.04774
  15  0.000153804
  16  1.61374e-07
  17  2.20343e-06
  18  4.73169e-05
  19  25.2391
  20  38.4411
  21  7.24423
  22  0.221002
  23  0.0859148
Done.

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

Extracting fit parameters...

4FGL J2304.6+3704
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  1.992e-04  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.861e-01  8.591e-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.082e+00  2.210e-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: 4.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/662430/likelihoodResults_573436801_573696001_4FGL_J2304.6+3704_daily_bin1289.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) = 10411.4051179
delta logL = -0.000306706404444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10411.4048115
delta logL = -2.45121555054e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8232       1.0000          .0000       10.000    
     3 'Normalizat'    1.0821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88611       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=   10411.40     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      232 TOTAL
                     EDM=   .53E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8362        .18142E-01** at limit **
   2  Index         1.4496        8.2270        .50000        .22283E-07
   3  Normalizat    1.0823        .19076E-02    .36033E-03   -.51175E-04
   4  Prefactor     .88607        .76436E-03    .15684E-03   -.11401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.44961
  Normalizat = 1.08227
  Prefactor  = 0.886068
 **********
 **   18 **HESSE 
 **********

 FCN=   10411.40     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.056        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4496        7.0171        .20000E-01   -.78961    
   3  Normalizat    1.0823        .21129        .14413E-04   -.90323    
   4  Prefactor     .88607        .84716E-01    .31368E-04   -.96630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17177e-11
Minuit parameter uncertainties:
  1  1.74139e-05
  2  672.243
  3  0.211457
  4  0.0847289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/662430': 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) = 10411.4048106
delta logL = 6.63923856337e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.861e-01  8.473e-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.082e+00  2.115e-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/662430/cmap_HighResolution_573436801_573696001_4FGL_J2304.6+3704_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.92e-08', time_completed='2021-09-29 06:57:08.199125', job_id='662430', GAL2='0.89', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632923828.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.85' WHERE bin_id='1289' AND source_name='4FGL J2304.6+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 06:57:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 662430: <4FGL_J2304.6+3704_daily_bin1289> in cluster <slac> Done

Job <4FGL_J2304.6+3704_daily_bin1289> 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) <bullet0290>, 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:08 2021
Results reported at Wed Sep 29 06:57:08 2021

Your job looked like:

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

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

