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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin968
RA = 196.008, Dec = 37.071
tmin = 490233601, tmax = 490492801
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='192261', job_status='RUN', time_executed='2021-09-06 19:57:48.824413', time_epoch_executed='1630983468.82' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192261

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192261/ft1_4FGL_J1304.0+3704_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192261/ft2_4FGL_J1304.0+3704_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192261/ft1_4FGL_J1304.0+3704_daily_bin968.fits outfile=/scratch/kocevski/192261/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin968.fits ra=196.008 dec=37.071 rad=12.0 tmin=490233601.0 tmax=490492801.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.80
user 3.53
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/192261/ft2_4FGL_J1304.0+3704_daily_bin968.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/192261/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin968.fits evtable="EVENTS" outfile="/scratch/kocevski/192261/ft1_filtered_4FGL_J1304.0+3704_daily_bin968.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.54
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192261/ft1_filtered_4FGL_J1304.0+3704_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/192261/ft2_4FGL_J1304.0+3704_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/192261/ltcube_490233601_490492801_4FGL_J1304.0+3704_daily_bin968.fits outfile=/scratch/kocevski/192261/expmap_490233601_490492801_4FGL_J1304.0+3704_daily_bin968.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/192261/ltcube_490233601_490492801_4FGL_J1304.0+3704_daily_bin968.fits
.....................!
real 193.35
user 188.49
sys 4.35

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/192261/ft1_filtered_4FGL_J1304.0+3704_daily_bin968.fits scfile=/scratch/kocevski/192261/ft2_4FGL_J1304.0+3704_daily_bin968.fits outfile=/scratch/kocevski/192261/cmap_490233601_490492801_4FGL_J1304.0+3704_daily_bin968.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192261/ft1_filtered_4FGL_J1304.0+3704_daily_bin968.fits scfile=/scratch/kocevski/192261/ft2_4FGL_J1304.0+3704_daily_bin968.fits outfile=/scratch/kocevski/192261/cmap_HighResolution_490233601_490492801_4FGL_J1304.0+3704_daily_bin968.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6847       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.933       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.5478       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21256E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0855       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4940       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6824       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6925       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3589       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.111       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.722       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .40850E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.6009       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    60.098       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2942       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70496       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=   5640.745     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     3937 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6849        4.0194        .59490E-07    .48422E-04
   2  Prefactor     .10000E-03    6.0538        .10222E-06** at limit **
   3  Prefactor     .10000E-03    .81890       -.37267E-07** at limit **
   4  Prefactor     .10000E-03    5.3002        .83608E-07** at limit **
   5  Prefactor     32.926        39.669        .14784E-04    .39271E-04
   6  Prefactor     17.676        16.427       -.77622E-07   -.59420E-05
   7  Prefactor     .10000E-03    28.836        .30012E-06** at limit **
   8  Prefactor     .10000E-03    2.4674        .60360E-07** at limit **
   9  norm          6.5477        5.2734        .38737E-07   -.21633E-03
  10  Prefactor     .11002E-03    69.803       -.56550E-05** at limit **
  11  Prefactor     .10000E-03    54.620       -.17269E-06** at limit **
  12  Prefactor     .10000E-03    12.004        .71681E-07** at limit **
  13  norm          .10000E-03    3.1759        .51774E-07** at limit **
  14  norm          3.0841        15.900       -.36722E-05   -.22405E-04
  15  norm          3.4950        7.5509        .33179E-06   -.52037E-03
  16  norm          6.6816        12.428       -.49011E-06   -.14522E-03
  17  norm          1.6925        2.1397       -.13469E-06   -.42260E-05
  18  Prefactor     1.3592        1.9357        .14003E-06   -.20640E-03
  19  Prefactor     .10000E-03    3.6703        .87972E-08** at limit **
  20  Prefactor     .10000E-03    19.828       -.26721E-06** at limit **
  21  Prefactor     35.115        36.324       -.10340E-04   -.47705E-04
  22  Prefactor     .10000E-03    5.5268        .11106E-07** at limit **
  23  Prefactor     .10000E-03    14.837        .16888E-06** at limit **
  24  Prefactor     10.723        14.440        .44370E-06   -.13359E-04
  25  Prefactor     .12494E-03    85.185        .15422E-04** at limit **
  26  norm          1.6011        1.4529        .57479E-07   -.53522E-03
  27  Prefactor     .10000E-03    3.6518        .38709E-07** at limit **
  28  norm          60.101        24.239       -.54192E-05   -.34502E-03
  29  Normalizat    1.2940        .18231       -.15042E-05   -.28476E-03
  30  Prefactor     .70501        .21245        .94837E-06   -.28874E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.68493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.9263
  Prefactor  = 17.6762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.54773
  Prefactor  = 0.000110024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.08415
  norm       = 3.49497
  norm       = 6.68161
  norm       = 1.6925
  Prefactor  = 1.3592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.1152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7229
  Prefactor  = 0.000124936
  norm       = 1.6011
  Prefactor  = 0.0001
  norm       = 60.1008
  Normalizat = 1.294
  Prefactor  = 0.705005
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.745     FROM HESSE     STATUS=OK           598 CALLS     4535 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6849        4.0168        .99677E-04   -1.5118    
   2  Prefactor     .10000E-03    6.0979        .18043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .82281        .66313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3234        .16886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.926        39.788        .69825E-04   -1.4560    
   6  Prefactor     17.676        16.427        .95266E-04   -1.4867    
   7  Prefactor     .10000E-03    28.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4733        .11520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.5477        5.2571        .14597E-03   -1.5196    
  10  Prefactor     .11002E-03    60.635        .16683       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    55.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.2032        .13065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0841        15.905        .23089E-03   -1.5357    
  15  norm          3.4950        7.9182        .15915E-03   -1.5334    
  16  norm          6.6816        13.076        .15523E-03   -1.5191    
  17  norm          1.6925        2.1295        .12044E-03   -1.5448    
  18  Prefactor     1.3592        1.9035        .12032E-03   -1.5475    
  19  Prefactor     .10000E-03    3.6736        .14052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.115        36.305        .67631E-04   -1.4522    
  22  Prefactor     .10000E-03    5.5388        .17244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.723        14.438        .12236E-03   -1.5053    
  25  Prefactor     .12494E-03    72.753        .17754       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.6011        1.4421        .83144E-04   -1.5455    
  27  Prefactor     .10000E-03    3.7484        .28026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          60.101        24.388        .25878E-03   -1.4156    
  29  Normalizat    1.2940        .21828        .21491E-03   -.83746    
  30  Prefactor     .70501        .25129        .33572E-03   -1.0333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21096e-09
Minuit parameter uncertainties:
  1  4.0169
  2  7.18456e-06
  3  1.80882e-07
  4  3.44516e-06
  5  39.8201
  6  16.4308
  7  7.75288e-06
  8  3.01568e-06
  9  5.25747
  10  0.0493561
  11  0.000115977
  12  2.30602e-05
  13  9.50703e-06
  14  14.0132
  15  7.92058
  16  13.0815
  17  2.12961
  18  1.9036
  19  6.24072e-06
  20  6.69649e-06
  21  36.3277
  22  3.14392e-06
  23  1.25675e-07
  24  14.4428
  25  0.0852899
  26  1.44216
  27  7.31704e-06
  28  24.3921
  29  0.218438
  30  0.251692
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.306e-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:  7.050e-01  2.517e-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.294e+00  2.184e-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: 7.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/192261/likelihoodResults_490233601_490492801_4FGL_J1304.0+3704_daily_bin968.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) = 5640.74580047
delta logL = -0.000394567391595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5640.7454064
delta logL = -4.96605935041e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4473       1.0000          .0000       10.000    
     3 'Normalizat'    1.2939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70520       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=   5640.745     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1565.3        .90712E-02** at limit **
   2  Index         2.4587        7.0672        .50000       -.82772E-05
   3  Normalizat    1.2940        .63716E-01    .48614E-01    .14266E-04
   4  Prefactor     .70501        .75856E-01    .75837E-01    .30160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45865
  Normalizat = 1.294
  Prefactor  = 0.705008
 **********
 **   18 **HESSE 
 **********

 FCN=   5640.745     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4587        6.2292        .50000       -.53317    
   3  Normalizat    1.2940        .20695        .21491E-03   -.83746    
   4  Prefactor     .70501        .24668        .33572E-03   -1.0333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06186e-11
Minuit parameter uncertainties:
  1  1.3155e-05
  2  4.42151
  3  0.207083
  4  0.247064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192261': 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) = 5640.74540586
delta logL = 4.39385985374e-08

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.316e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.459e+00  4.422e+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:  7.050e-01  2.471e-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.294e+00  2.071e-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/192261/cmap_HighResolution_490233601_490492801_4FGL_J1304.0+3704_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', job_status='DONE', photon_flux_upper_limit='7.21e-08', time_completed='2021-09-06 20:11:43.263460', job_id='192261', GAL2='0.71', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630984303.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='968' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:11:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 192261: <4FGL_J1304.0+3704_daily_bin968> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin968> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 19:55:26 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:55:30 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:55:30 2021
Terminated at Mon Sep  6 20:11:44 2021
Results reported at Mon Sep  6 20:11:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin968 196.008 37.071 490233601 490492801 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 :                                   829.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            978 sec.

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

