/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 8 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 = 7271
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1304.0+3704_daily_bin327
RA = 196.008, Dec = 37.071
tmin = 324086401, tmax = 324345601
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='186831', job_status='RUN', time_executed='2021-09-06 19:36:13.416423', time_epoch_executed='1630982173.42' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186831

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186831/ft1_4FGL_J1304.0+3704_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186831/ft2_4FGL_J1304.0+3704_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186831/ft1_4FGL_J1304.0+3704_daily_bin327.fits outfile=/scratch/kocevski/186831/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin327.fits ra=196.008 dec=37.071 rad=12.0 tmin=324086401.0 tmax=324345601.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 4.52
user 4.13
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/186831/ft2_4FGL_J1304.0+3704_daily_bin327.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/186831/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin327.fits evtable="EVENTS" outfile="/scratch/kocevski/186831/ft1_filtered_4FGL_J1304.0+3704_daily_bin327.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.58
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186831/ft1_filtered_4FGL_J1304.0+3704_daily_bin327.fits" evtable="EVENTS" scfile=/scratch/kocevski/186831/ft2_4FGL_J1304.0+3704_daily_bin327.fits sctable="SC_DATA" outfile=/scratch/kocevski/186831/ltcube_324086401_324345601_4FGL_J1304.0+3704_daily_bin327.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/186831/ft2_4FGL_J1304.0+3704_daily_bin327.fits
.....................!
real 16.57
user 16.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186831/ft1_filtered_4FGL_J1304.0+3704_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/186831/ft2_4FGL_J1304.0+3704_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/186831/ltcube_324086401_324345601_4FGL_J1304.0+3704_daily_bin327.fits outfile=/scratch/kocevski/186831/expmap_324086401_324345601_4FGL_J1304.0+3704_daily_bin327.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/186831/ltcube_324086401_324345601_4FGL_J1304.0+3704_daily_bin327.fits
.....................!
real 193.01
user 186.58
sys 5.48

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/186831/ft1_filtered_4FGL_J1304.0+3704_daily_bin327.fits scfile=/scratch/kocevski/186831/ft2_4FGL_J1304.0+3704_daily_bin327.fits outfile=/scratch/kocevski/186831/cmap_324086401_324345601_4FGL_J1304.0+3704_daily_bin327.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.56
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9352       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7582       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3510       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7682       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.121       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13930E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6401       1.0000         .10000E-03   10000.    
     9 'norm      '    11.162       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .76049E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5936       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6385       1.0000         .10000E-03   10000.    
    14 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.5025       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9721       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15334E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .19588E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    145.56       1.0000         .10000E-03   10000.    
    26 'norm      '    6.3246       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2037       1.0000         .10000E-03   10000.    
    28 'norm      '    19.341       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1888       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .66729       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5509.916     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     3304 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9329        4.1032       -.16721E-05    .13979E-03
   2  Prefactor     1.7565        5.0644        .20342E-04    .13159E-03
   3  Prefactor     2.3510        1.9297        .24823E-05   -.22722E-03
   4  Prefactor     5.7671        1.0403       -.22343E-05   -.26295E-02
   5  Prefactor     38.154        15.634       -.53462E-04   -.18180E-01
   6  Prefactor     .10000E-03    5.2222       -.27099E-05** at limit **
   7  Prefactor     .10002E-03    57.658        .44649E-05** at limit **
   8  Prefactor     3.6387        3.5240       -.16974E-05    .15701E-03
   9  norm          11.156        6.0471        .16537E-04    .97579E-03
  10  Prefactor     .26397E-03    1012.7       -.14748E-02** at limit **
  11  Prefactor     7.6026        5.7764       -.42940E-04   -.36950E-02
  12  Prefactor     .10000E-03    9.4329        .61422E-05** at limit **
  13  norm          2.6380        3.8880       -.36130E-05   -.72360E-04
  14  norm          .10000E-03    8.8044        .34694E-05** at limit **
  15  norm          .10000E-03    1.4543        .13279E-05** at limit **
  16  norm          .10000E-03    2.1410       -.41610E-06** at limit **
  17  norm          4.5032        3.8332        .44536E-05    .15654E-03
  18  Prefactor     2.9701        2.8931        .30483E-05   -.23932E-03
  19  Prefactor     .10000E-03    5.0358       -.82033E-05** at limit **
  20  Prefactor     .10038E-03    84.233       -.65969E-04** at limit **
  21  Prefactor     .10000E-03    34.117        .81311E-05** at limit **
  22  Prefactor     .10000E-03    14.647       -.10693E-04** at limit **
  23  Prefactor     .19580E-03    236.95        .25742E-03** at limit **
  24  Prefactor     .10000E-03    12.807       -.37361E-05** at limit **
  25  Prefactor     145.54        2.2089       -.39468E-05    .18837E-02
  26  norm          6.3255        1.8675       -.14637E-05    .20416E-03
  27  Prefactor     1.2037        3.4621       -.15885E-05    .31644E-04
  28  norm          19.333        1.4156       -.38279E-05   -.30369E-03
  29  Normalizat    1.1888        .20472        .72040E-05    .10126E-02
  30  Prefactor     .66747        .24775       -.20918E-05    .52883E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.93289
  Prefactor  = 1.75652
  Prefactor  = 2.35096
  Prefactor  = 5.76708
  Prefactor  = 38.1539
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 3.6387
  norm       = 11.1561
  Prefactor  = 0.000263971
  Prefactor  = 7.60258
  Prefactor  = 0.0001
  norm       = 2.63799
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.50323
  Prefactor  = 2.9701
  Prefactor  = 0.0001
  Prefactor  = 0.000100377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000195802
  Prefactor  = 0.0001
  Prefactor  = 145.545
  norm       = 6.32547
  Prefactor  = 1.20371
  norm       = 19.3326
  Normalizat = 1.18885
  Prefactor  = 0.667467
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.916     FROM HESSE     STATUS=OK           664 CALLS     3968 TOTAL
                     EDM=   .95E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9329        4.0945        .33522E-02   -1.5110    
   2  Prefactor     1.7565        5.1081        .79012E-02   -1.5443    
   3  Prefactor     2.3510        1.9223        .66834E-02   -1.5401    
   4  Prefactor     5.7671        7.0980        .41808E-02   -1.5228    
   5  Prefactor     38.154        28.719        .16229E-02   -1.4472    
   6  Prefactor     .10000E-03    5.2218        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    57.611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6387        3.5208        .52935E-02   -1.5326    
   9  norm          11.156        6.9018        .29979E-02   -1.5040    
  10  Prefactor     .26397E-03    71.320        .14289       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.6026        26.557        .36382E-02   -1.5156    
  12  Prefactor     .10000E-03    9.3827        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6380        3.9231        .62754E-02   -1.5383    
  14  norm          .10000E-03    8.7857        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4448        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1370        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.5032        3.8499        .47435E-02   -1.5284    
  18  Prefactor     2.9701        2.9220        .58879E-02   -1.5363    
  19  Prefactor     .10000E-03    5.0210        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10038E-03    83.587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.030        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.514        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .19580E-03    26.184        .12786       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.786        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     145.54        86.601        .83496E-03   -1.3289    
  26  norm          6.3255        1.8730        .39902E-02   -1.5205    
  27  Prefactor     1.2037        3.5210        .10333E-01   -1.5489    
  28  norm          19.333        20.448        .22768E-02   -1.4828    
  29  Normalizat    1.1888        .18314        .35172E-01   -.86948    
  30  Prefactor     .66747        .21595        .74977E-01   -1.0482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.53438e-07
Minuit parameter uncertainties:
  1  4.09463
  2  5.10938
  3  1.92235
  4  7.09904
  5  28.729
  6  1.5639e-05
  7  0.00212134
  8  3.52105
  9  6.90233
  10  0.21654
  11  26.5984
  12  1.50321e-05
  13  3.92351
  14  6.33883e-05
  15  1.71125e-06
  16  1.2976e-05
  17  3.85011
  18  2.92215
  19  1.6824e-05
  20  0.0112493
  21  9.40695e-05
  22  1.30643e-05
  23  0.100212
  24  1.2001e-05
  25  86.6766
  26  1.87305
  27  3.52162
  28  20.4551
  29  0.183239
  30  0.216215
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.503e-05  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:  6.675e-01  2.162e-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.189e+00  1.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186831/likelihoodResults_324086401_324345601_4FGL_J1304.0+3704_daily_bin327.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) = 5509.91658134
delta logL = -0.000505008245455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5509.91607644
delta logL = -1.04410901258e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4419       1.0000          .0000       10.000    
     3 'Normalizat'    1.1888       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66755       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=   5509.916     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    988.18        .90712E-02** at limit **
   2  Index         2.4479        8.7759        .50000       -.57554E-05
   3  Normalizat    1.1888        .50566E-01    .35172E-01    .13899E-04
   4  Prefactor     .66747        .62096E-01    .74977E-01    .30961E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44791
  Normalizat = 1.18884
  Prefactor  = 0.667468
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.916     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4479        6.2140        .50000       -.53567    
   3  Normalizat    1.1888        .19975        .20867E-03   -.86948    
   4  Prefactor     .66747        .24514        .33191E-03   -1.0482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81486e-11
Minuit parameter uncertainties:
  1  1.40517e-05
  2  4.8335
  3  0.199882
  4  0.245531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186831': 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) = 5509.91607632
delta logL = 1.64327502716e-08

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.405e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.448e+00  4.834e+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:  6.675e-01  2.455e-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.189e+00  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 196.008 37.071

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/186831/cmap_HighResolution_324086401_324345601_4FGL_J1304.0+3704_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-09-06 19:49:37.409471', job_id='186831', GAL2='0.67', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630982977.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='327' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:49:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 186831: <4FGL_J1304.0+3704_daily_bin327> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin327> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 19:35:51 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:35:54 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:35:54 2021
Terminated at Mon Sep  6 19:49:38 2021
Results reported at Mon Sep  6 19:49:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin327 196.008 37.071 324086401 324345601 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 :                                   791.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            827 sec.

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

