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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin758
RA = 196.008, Dec = 37.071
tmin = 435801601, tmax = 436060801
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='190795', job_status='RUN', time_executed='2021-09-06 19:54:18.211856', time_epoch_executed='1630983258.21' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190795

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190795/ft1_4FGL_J1304.0+3704_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190795/ft2_4FGL_J1304.0+3704_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190795/ft1_4FGL_J1304.0+3704_daily_bin758.fits outfile=/scratch/kocevski/190795/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin758.fits ra=196.008 dec=37.071 rad=12.0 tmin=435801601.0 tmax=436060801.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.66
user 5.38
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/190795/ft2_4FGL_J1304.0+3704_daily_bin758.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/190795/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin758.fits evtable="EVENTS" outfile="/scratch/kocevski/190795/ft1_filtered_4FGL_J1304.0+3704_daily_bin758.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190795/ft1_filtered_4FGL_J1304.0+3704_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/190795/ft2_4FGL_J1304.0+3704_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/190795/ltcube_435801601_436060801_4FGL_J1304.0+3704_daily_bin758.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/190795/ft2_4FGL_J1304.0+3704_daily_bin758.fits
.....................!
real 16.89
user 16.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190795/ft1_filtered_4FGL_J1304.0+3704_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/190795/ft2_4FGL_J1304.0+3704_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/190795/ltcube_435801601_436060801_4FGL_J1304.0+3704_daily_bin758.fits outfile=/scratch/kocevski/190795/expmap_435801601_436060801_4FGL_J1304.0+3704_daily_bin758.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/190795/ltcube_435801601_436060801_4FGL_J1304.0+3704_daily_bin758.fits
.....................!
real 192.00
user 187.46
sys 4.14

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/190795/ft1_filtered_4FGL_J1304.0+3704_daily_bin758.fits scfile=/scratch/kocevski/190795/ft2_4FGL_J1304.0+3704_daily_bin758.fits outfile=/scratch/kocevski/190795/cmap_435801601_436060801_4FGL_J1304.0+3704_daily_bin758.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190795/ft1_filtered_4FGL_J1304.0+3704_daily_bin758.fits scfile=/scratch/kocevski/190795/ft2_4FGL_J1304.0+3704_daily_bin758.fits outfile=/scratch/kocevski/190795/cmap_HighResolution_435801601_436060801_4FGL_J1304.0+3704_daily_bin758.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/190795/ft1_filtered_4FGL_J1304.0+3704_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/190795/ft2_4FGL_J1304.0+3704_daily_bin758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/190795/Model_4FGL_J1304.0+3704_daily_bin758.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/190795/ft1_filtered_4FGL_J1304.0+3704_daily_bin758.fits.....................!
real 37.61
user 36.29
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/190795/ft1_filtered_4FGL_J1304.0+3704_daily_bin758.fits', '/scratch/kocevski/190795/ft2_4FGL_J1304.0+3704_daily_bin758.fits', expMap='/scratch/kocevski/190795/expmap_435801601_436060801_4FGL_J1304.0+3704_daily_bin758.fits', expCube='/scratch/kocevski/190795/ltcube_435801601_436060801_4FGL_J1304.0+3704_daily_bin758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/190795/Model_4FGL_J1304.0+3704_daily_bin758.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/190795/ft1_filtered_4FGL_J1304.0+3704_daily_bin758.fits
Spacecraft file(s): /scratch/kocevski/190795/ft2_4FGL_J1304.0+3704_daily_bin758.fits
Exposure map: /scratch/kocevski/190795/expmap_435801601_436060801_4FGL_J1304.0+3704_daily_bin758.fits
Exposure cube: /scratch/kocevski/190795/ltcube_435801601_436060801_4FGL_J1304.0+3704_daily_bin758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/190795/Model_4FGL_J1304.0+3704_daily_bin758.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) = 4008.82308581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88157E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0888       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7647       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.167       1.0000         .10000E-03   10000.    
     7 'Prefactor '    212.04       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.580       1.0000         .10000E-03   10000.    
     9 'norm      '    5.4439       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22128E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.6236       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.4278       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6293       1.0000         .10000E-03   10000.    
    17 'norm      '    .35994       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2725       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.741       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    57.666       1.0000         .10000E-03   10000.    
    24 'Prefactor '    63.727       1.0000         .10000E-03   10000.    
    25 'Prefactor '    40.324       1.0000         .10000E-03   10000.    
    26 'norm      '    3.9222       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.6654       1.0000         .10000E-03   10000.    
    28 'norm      '    .80497E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .80961       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0283       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=   4008.760     FROM MIGRAD    STATUS=CONVERGED    819 CALLS     4007 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    2.5996        .87203E-07** at limit **
   2  Prefactor     4.0896        5.8525        .32607E-05   -.14420E-03
   3  Prefactor     5.7645        3.1889       -.66470E-07   -.66358E-04
   4  Prefactor     .10000E-03    5.5733        .39246E-07** at limit **
   5  Prefactor     .10000E-03    40.766        .11705E-05** at limit **
   6  Prefactor     10.177        22.477        .10903E-04   -.67538E-05
   7  Prefactor     212.06        116.79        .11455E-04   -.10944E-04
   8  Prefactor     10.578        9.5447       -.53951E-06   -.43179E-06
   9  norm          5.4379        6.5180       -.13500E-05   -.25975E-03
  10  Prefactor     .10000E-03    31.937        .92178E-07** at limit **
  11  Prefactor     .10000E-03    147.15        .21857E-05** at limit **
  12  Prefactor     5.6322        39.075       -.53879E-05   -.16658E-04
  13  norm          .10000E-03    5.4825        .33576E-06** at limit **
  14  norm          6.4339        18.844        .54736E-05   -.19824E-04
  15  norm          .10000E-03    3.8341        .53548E-06** at limit **
  16  norm          5.6139        6.0502       -.68548E-07   -.16515E-03
  17  norm          .36287        4.1578       -.26332E-05    .37817E-03
  18  Prefactor     2.2690        5.7426       -.61467E-05   -.92567E-03
  19  Prefactor     .10000E-03    7.6423       -.18792E-06** at limit **
  20  Prefactor     .10000E-03    17.558       -.18637E-06** at limit **
  21  Prefactor     52.906        92.222        .49400E-04    .37381E-04
  22  Prefactor     .10000E-03    45.613        .10761E-05** at limit **
  23  Prefactor     57.688        49.341       -.13777E-04    .35538E-04
  24  Prefactor     63.740        41.007       -.56745E-05   -.86668E-05
  25  Prefactor     40.574        76.404       -.11570E-04    .10198E-04
  26  norm          3.9228        2.3679        .40506E-06   -.26998E-05
  27  Prefactor     6.6670        5.7581       -.66605E-06    .68083E-05
  28  norm          .10006E-03    9.1704       -.72874E-06** at limit **
  29  Normalizat    .80920        .21372        .15491E-05    .10202E-04
  30  Prefactor     1.0285        .24908       -.26431E-05    .14855E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100006
  Prefactor  = 4.08955
  Prefactor  = 5.76454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1774
  Prefactor  = 212.062
  Prefactor  = 10.5784
  norm       = 5.43792
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.63217
  norm       = 0.0001
  norm       = 6.43392
  norm       = 0.000100001
  norm       = 5.61387
  norm       = 0.362874
  Prefactor  = 2.26901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.9059
  Prefactor  = 0.000100002
  Prefactor  = 57.6879
  Prefactor  = 63.7402
  Prefactor  = 40.574
  norm       = 3.92283
  Prefactor  = 6.667
  norm       = 0.000100062
  Normalizat = 0.809196
  Prefactor  = 1.02851
 **********
 **   18 **HESSE 
 **********

 FCN=   4008.760     FROM HESSE     STATUS=OK           596 CALLS     4603 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    24.396        .18867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0896        5.8294        .17753E-03   -1.5303    
   3  Prefactor     5.7645        3.0374        .77634E-04   -1.5228    
   4  Prefactor     .10000E-03    5.5852        .14598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.177        22.420        .12567E-03   -1.5070    
   7  Prefactor     212.06        116.72        .13883E-03   -1.2785    
   8  Prefactor     10.578        9.4629        .12318E-03   -1.5057    
   9  norm          5.4379        6.4243        .16088E-03   -1.5242    
  10  Prefactor     .10000E-03    31.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    150.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.6322        37.849        .16940E-03   -1.5233    
  13  norm          .10000E-03    5.5023        .14435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.4339        18.837        .15831E-03   -1.5201    
  15  norm          .10000E-03    14.784        .20992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6139        5.5111        .14165E-03   -1.5234    
  17  norm          .36287        8.8342        .24897E-02   -1.5588    
  18  Prefactor     2.2690        5.6736        .19990E-03   -1.5407    
  19  Prefactor     .10000E-03    7.6499        .17088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     52.906        92.703        .55227E-04   -1.4252    
  22  Prefactor     .10000E-03    46.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     57.688        49.203        .52829E-04   -1.4187    
  24  Prefactor     63.740        40.966        .50269E-04   -1.4110    
  25  Prefactor     40.574        76.411        .63123E-04   -1.4433    
  26  norm          3.9228        2.3652        .72216E-04   -1.5312    
  27  Prefactor     6.6670        5.7604        .13641E-03   -1.5191    
  28  norm          .10006E-03    48.968        .37280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .80920        .25261        .25457E-03   -.99728    
  30  Prefactor     1.0285        .29566        .27819E-03   -.91785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92843e-09
Minuit parameter uncertainties:
  1  0.000768845
  2  5.83022
  3  3.0375
  4  5.74686e-06
  5  7.52941e-05
  6  22.4381
  7  116.847
  8  9.46426
  9  6.42512
  10  1.14635e-06
  11  0.00120378
  12  29.2275
  13  7.17466e-05
  14  18.8548
  15  0.000206162
  16  5.51156
  17  3.58099
  18  5.67492
  19  3.07449e-05
  20  7.50811e-05
  21  92.9574
  22  0.000557
  23  49.2376
  24  40.9843
  25  76.5961
  26  2.36528
  27  5.7609
  28  0.00347657
  29  0.252982
  30  0.296127
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  5.632e+00  2.923e+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:  1.029e+00  2.961e-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:  8.092e-01  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190795/likelihoodResults_435801601_436060801_4FGL_J1304.0+3704_daily_bin758.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) = 4008.27088039
delta logL = 0.489098823577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4008.237448
delta logL = 0.522531212977

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19253       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1711       1.0000          .0000       10.000    
     3 'Normalizat'    .72530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0997       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.

 FCN=   4008.237     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      324 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19152        3.1901        .60818E-02   -.82496E-03
   2  Index         5.1736        2.7489        .13174       -.87680E-05
   3  Normalizat    .72549        .43077E-01    .42627E-01    .65810E-04
   4  Prefactor     1.0995        .52790E-01    .61077E-01    .24211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.191523
  Index      = 5.17362
  Normalizat = 0.725489
  Prefactor  = 1.09949
 **********
 **   18 **HESSE 
 **********

 FCN=   4008.237     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      357 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19152        9.5065        .27667E-03   -1.5620    
   2  Index         5.1736        7.5029        .45109E-02    .34731E-01
   3  Normalizat    .72549        .17960        .26729E-03   -1.0290    
   4  Prefactor     1.0995        .21552        .27011E-03   -.89483    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.74908e-10
Minuit parameter uncertainties:
  1  2.69843
  2  6.72428
  3  0.179749
  4  0.215687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190795': 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) = 4008.23744743
delta logL = 0.522531791778

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.915e-01  2.698e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  5.174e+00  6.724e+00  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:  1.099e+00  2.157e-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:  7.255e-01  1.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 196.008 37.071
Photon Index (Free Index): 5.17 +/- 6.72
Photon Flux (Free Index): 8.10e-08 +/- 7.91e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.16e-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/190795/cmap_HighResolution_435801601_436060801_4FGL_J1304.0+3704_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='5.23e-01', photon_flux2='8.10e-08', job_status='DONE', time_completed='2021-09-06 20:05:44.191820', photon_index_error2='6.72', photon_index2='5.17', ts='0.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.16e-05', EG='0.81', time_epoch_completed='1630983944.19', return_code='0', job_id='190795', GAL2='1.10', EG2='0.73', return_code2='102', photon_flux_error2='7.91e-08', ts2='1.22', photon_index='2.44' WHERE bin_id='758' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 190795: <4FGL_J1304.0+3704_daily_bin758> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin758> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:50:20 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:50:37 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:50:37 2021
Terminated at Mon Sep  6 20:05:44 2021
Results reported at Mon Sep  6 20:05:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin758 196.008 37.071 435801601 436060801 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 :                                   685.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            924 sec.

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

