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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin854
RA = 196.008, Dec = 37.071
tmin = 460684801, tmax = 460944001
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='190931', job_status='RUN', time_executed='2021-09-06 19:53:29.753947', time_epoch_executed='1630983209.75' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190931

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190931/ft1_4FGL_J1304.0+3704_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190931/ft2_4FGL_J1304.0+3704_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190931/ft1_4FGL_J1304.0+3704_daily_bin854.fits outfile=/scratch/kocevski/190931/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin854.fits ra=196.008 dec=37.071 rad=12.0 tmin=460684801.0 tmax=460944001.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.39
user 3.17
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/190931/ft2_4FGL_J1304.0+3704_daily_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/190931/ft2_4FGL_J1304.0+3704_daily_bin854.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/190931/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin854.fits evtable="EVENTS" outfile="/scratch/kocevski/190931/ft1_filtered_4FGL_J1304.0+3704_daily_bin854.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190931/ft1_filtered_4FGL_J1304.0+3704_daily_bin854.fits" evtable="EVENTS" scfile=/scratch/kocevski/190931/ft2_4FGL_J1304.0+3704_daily_bin854.fits sctable="SC_DATA" outfile=/scratch/kocevski/190931/ltcube_460684801_460944001_4FGL_J1304.0+3704_daily_bin854.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/190931/ft2_4FGL_J1304.0+3704_daily_bin854.fits
.....................!
real 15.75
user 15.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190931/ft1_filtered_4FGL_J1304.0+3704_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/190931/ft2_4FGL_J1304.0+3704_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/190931/ltcube_460684801_460944001_4FGL_J1304.0+3704_daily_bin854.fits outfile=/scratch/kocevski/190931/expmap_460684801_460944001_4FGL_J1304.0+3704_daily_bin854.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/190931/ltcube_460684801_460944001_4FGL_J1304.0+3704_daily_bin854.fits
.....................!
real 191.20
user 185.89
sys 4.79

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
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1304.0+3704 @ 196.008 37.071

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/190931/ft1_filtered_4FGL_J1304.0+3704_daily_bin854.fits scfile=/scratch/kocevski/190931/ft2_4FGL_J1304.0+3704_daily_bin854.fits outfile=/scratch/kocevski/190931/cmap_460684801_460944001_4FGL_J1304.0+3704_daily_bin854.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=196.008 yref=37.071 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/190931/ft1_filtered_4FGL_J1304.0+3704_daily_bin854.fits scfile=/scratch/kocevski/190931/ft2_4FGL_J1304.0+3704_daily_bin854.fits outfile=/scratch/kocevski/190931/cmap_HighResolution_460684801_460944001_4FGL_J1304.0+3704_daily_bin854.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=196.008 yref=37.071 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/190931/ft1_filtered_4FGL_J1304.0+3704_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/190931/ft2_4FGL_J1304.0+3704_daily_bin854.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/190931/Model_4FGL_J1304.0+3704_daily_bin854.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/190931/ft1_filtered_4FGL_J1304.0+3704_daily_bin854.fits.....................!
real 45.04
user 43.64
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/190931/ft1_filtered_4FGL_J1304.0+3704_daily_bin854.fits', '/scratch/kocevski/190931/ft2_4FGL_J1304.0+3704_daily_bin854.fits', expMap='/scratch/kocevski/190931/expmap_460684801_460944001_4FGL_J1304.0+3704_daily_bin854.fits', expCube='/scratch/kocevski/190931/ltcube_460684801_460944001_4FGL_J1304.0+3704_daily_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/190931/Model_4FGL_J1304.0+3704_daily_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.0+3704'

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.111e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/190931/ft1_filtered_4FGL_J1304.0+3704_daily_bin854.fits
Spacecraft file(s): /scratch/kocevski/190931/ft2_4FGL_J1304.0+3704_daily_bin854.fits
Exposure map: /scratch/kocevski/190931/expmap_460684801_460944001_4FGL_J1304.0+3704_daily_bin854.fits
Exposure cube: /scratch/kocevski/190931/ltcube_460684801_460944001_4FGL_J1304.0+3704_daily_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/190931/Model_4FGL_J1304.0+3704_daily_bin854.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) = 5238.03893315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8919       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4764       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0200       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    96.549       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5554       1.0000         .10000E-03   10000.    
     9 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    68.309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.073       1.0000         .10000E-03   10000.    
    13 'norm      '    8.0208       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10489E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.917       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0163       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21359E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9478       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    49.481       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    42.226       1.0000         .10000E-03   10000.    
    26 'norm      '    3.9247       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.0610       1.0000         .10000E-03   10000.    
    28 'norm      '    16.906       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1928       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .51442       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5238.014     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     3954 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8919        2.7983       -.21729E-08    .40255E-05
   2  Prefactor     7.4758        7.2600        .27210E-06   -.51216E-04
   3  Prefactor     .10000E-03    .74430       -.45822E-07** at limit **
   4  Prefactor     6.0199        6.3805        .12674E-07    .16513E-04
   5  Prefactor     .10000E-03    32.852       -.27035E-06** at limit **
   6  Prefactor     .10000E-03    5.6203       -.31101E-07** at limit **
   7  Prefactor     96.560        69.761        .51195E-07    .57301E-04
   8  Prefactor     3.5559        4.1002        .25308E-07    .63915E-04
   9  norm          .10000E-03    1.1939        .46961E-07** at limit **
  10  Prefactor     68.314        47.921        .12359E-08   -.51332E-05
  11  Prefactor     .10000E-03    7.5380        .95263E-08** at limit **
  12  Prefactor     20.073        13.389        .19936E-06    .15701E-03
  13  norm          8.0208        5.0077        .17883E-06    .39175E-03
  14  norm          .10000E-03    40.588       -.15482E-06** at limit **
  15  norm          .10000E-03    2.6003       -.49074E-06** at limit **
  16  norm          19.922        8.6988        .23027E-06    .84514E-03
  17  norm          .10000E-03    1.4700       -.15549E-07** at limit **
  18  Prefactor     .10000E-03    1.4075        .65002E-06** at limit **
  19  Prefactor     9.0155        12.774        .19554E-05    .68892E-03
  20  Prefactor     .10032E-03    29.646        .49890E-05** at limit **
  21  Prefactor     2.0149        412.93       -.18324E-04   -.11138E-04
  22  Prefactor     .10000E-03    9.4942       -.96123E-07** at limit **
  23  Prefactor     49.448        36.594       -.10264E-05   -.28794E-03
  24  Prefactor     .10000E-03    86.165       -.10271E-05** at limit **
  25  Prefactor     42.215        58.257        .15415E-05    .65368E-04
  26  norm          3.9246        1.6953        .15511E-07   -.12955E-03
  27  Prefactor     2.0602        5.0126        .51677E-05   -.44222E-03
  28  norm          16.905        14.100        .18442E-07    .21154E-04
  29  Normalizat    1.1928        .17431       -.10997E-05    .45617E-03
  30  Prefactor     .51440        .20488        .13974E-05    .33485E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.89189
  Prefactor  = 7.4758
  Prefactor  = 0.0001
  Prefactor  = 6.0199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 96.5597
  Prefactor  = 3.55594
  norm       = 0.0001
  Prefactor  = 68.3135
  Prefactor  = 0.0001
  Prefactor  = 20.0727
  norm       = 8.02082
  norm       = 0.0001
  norm       = 0.0001
  norm       = 19.9221
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.01553
  Prefactor  = 0.000100316
  Prefactor  = 2.01486
  Prefactor  = 0.0001
  Prefactor  = 49.4476
  Prefactor  = 0.000100002
  Prefactor  = 42.2149
  norm       = 3.92456
  Prefactor  = 2.0602
  norm       = 16.9053
  Normalizat = 1.19283
  Prefactor  = 0.514404
 **********
 **   18 **HESSE 
 **********

 FCN=   5238.014     FROM HESSE     STATUS=OK           590 CALLS     4544 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8919        2.7997        .89224E-04   -1.5266    
   2  Prefactor     7.4758        7.2471        .14668E-03   -1.5161    
   3  Prefactor     .10000E-03    .75549        .60950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0199        6.3821        .16365E-03   -1.5217    
   5  Prefactor     .10000E-03    33.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6221        .16758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     96.560        69.796        .40907E-04   -1.3739    
   8  Prefactor     3.5559        4.0949        .15163E-03   -1.5331    
   9  norm          .10000E-03    1.1956        .77208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     68.314        47.924        .24282E-03   -1.4053    
  11  Prefactor     .10000E-03    7.5453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.073        13.387        .89398E-04   -1.4812    
  13  norm          8.0208        5.0057        .12330E-03   -1.5141    
  14  norm          .10000E-03    41.821        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    18.750        .19649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.922        7.7754        .89746E-04   -1.4815    
  17  norm          .10000E-03    1.4807        .85675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4308        .83921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.0155        12.846        .13348E-03   -1.5107    
  20  Prefactor     .10032E-03    29.604        .11942       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.0149        413.89        .29738E-03   -1.5424    
  22  Prefactor     .10000E-03    9.5379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     49.448        36.836        .57008E-04   -1.4300    
  24  Prefactor     .10000E-03    89.366        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     42.215        58.331        .61691E-04   -1.4408    
  26  norm          3.9246        1.6945        .59763E-04   -1.5312    
  27  Prefactor     2.0602        5.0786        .12224E-02   -1.5421    
  28  norm          16.905        14.101        .97410E-04   -1.4885    
  29  Normalizat    1.1928        .19324        .19708E-03   -.86825    
  30  Prefactor     .51440        .22681        .35286E-03   -1.1132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25526e-09
Minuit parameter uncertainties:
  1  2.79973
  2  7.24797
  3  2.75283e-06
  4  6.38281
  5  9.72089e-05
  6  5.32107e-06
  7  69.8558
  8  4.09519
  9  3.41059e-06
  10  47.951
  11  1.09903e-06
  12  13.3893
  13  5.00598
  14  9.56897e-05
  15  7.86873e-05
  16  7.77576
  17  2.09153e-06
  18  5.06076e-05
  19  12.8495
  20  0.00611765
  21  58.1661
  22  2.33168e-05
  23  36.8528
  24  0.000741096
  25  58.4097
  26  1.69456
  27  5.07965
  28  14.1036
  29  0.193358
  30  0.227213
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.007e+01  1.339e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.436e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  5.144e-01  2.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.193e+00  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.85
Ra Dec: 196.008 37.071
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.12e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 8.60e-06

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) = 5237.03028563
delta logL = 0.983739765434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5236.81380655
delta logL = 1.20021885139

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.377       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6718       1.0000          .0000       10.000    
     3 'Normalizat'    1.2176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49288       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+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=   5236.814     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      243 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.386        21.505        .70421E-04   -.77620E-04
   2  Index         1.6719        .42629        .71532E-02   -.26044E-04
   3  Normalizat    1.2177        .18525        .19532E-03   -.64388E-03
   4  Prefactor     .49272        .22553        .35974E-03   -.30497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3858
  Index      = 1.67189
  Normalizat = 1.21774
  Prefactor  = 0.492718
 **********
 **   18 **HESSE 
 **********

 FCN=   5236.814     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.386        21.558        .14084E-04   -1.4569    
   2  Index         1.6719        .42736        .28613E-03   -.72833    
   3  Normalizat    1.2177        .18533        .39064E-04   -.86056    
   4  Prefactor     .49272        .22563        .14389E-04   -1.1231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21698e-10
Minuit parameter uncertainties:
  1  21.5628
  2  0.428299
  3  0.185431
  4  0.22604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190931': 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) = 5236.81380619
delta logL = 1.20021920683

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  3.239e+01  2.156e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.672e+00  4.283e-01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.032e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  4.927e-01  2.260e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.218e+00  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.29
Ra Dec: 196.008 37.071
Photon Index (Free Index): 1.67 +/- 0.43
Photon Flux (Free Index): 2.36e-08 +/- 1.92e-08
Energy Flux (Free Index): 4.22e-05 +/- 4.77e-05

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/190931/cmap_HighResolution_460684801_460944001_4FGL_J1304.0+3704_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.12e-08', energy_flux2='4.22e-05', photon_flux_error='2.75e-08', dlogl='1.20e+00', energy_flux='1.29e-05', photon_flux2='2.36e-08', job_status='DONE', time_completed='2021-09-06 20:05:25.630566', photon_index_error2='0.43', photon_index2='1.67', ts='6.85', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', energy_flux_error2='4.77e-05', EG='1.19', time_epoch_completed='1630983925.63', return_code='0', job_id='190931', GAL2='0.49', EG2='1.22', return_code2='0', energy_flux_error='8.60e-06', photon_flux_error2='1.92e-08', ts2='9.29', photon_index='2.44' WHERE bin_id='854' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:05:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 190931: <4FGL_J1304.0+3704_daily_bin854> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin854> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:50:30 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:51:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 19:51:14 2021
Terminated at Mon Sep  6 20:05:26 2021
Results reported at Mon Sep  6 20:05:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin854 196.008 37.071 460684801 460944001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.0+3704 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   708.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            896 sec.

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

