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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1133
RA = 196.008, Dec = 37.071
tmin = 533001601, tmax = 533260801
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='192493', job_status='RUN', time_executed='2021-09-06 19:56:01.556600', time_epoch_executed='1630983361.56' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192493/ft1_4FGL_J1304.0+3704_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192493/ft2_4FGL_J1304.0+3704_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192493/ft1_4FGL_J1304.0+3704_daily_bin1133.fits outfile=/scratch/kocevski/192493/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1133.fits ra=196.008 dec=37.071 rad=12.0 tmin=533001601.0 tmax=533260801.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.55
user 3.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192493/ft1_filtered_4FGL_J1304.0+3704_daily_bin1133.fits" evtable="EVENTS" scfile=/scratch/kocevski/192493/ft2_4FGL_J1304.0+3704_daily_bin1133.fits sctable="SC_DATA" outfile=/scratch/kocevski/192493/ltcube_533001601_533260801_4FGL_J1304.0+3704_daily_bin1133.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/192493/ft2_4FGL_J1304.0+3704_daily_bin1133.fits
.....................!
real 16.52
user 16.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192493/ft1_filtered_4FGL_J1304.0+3704_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/192493/ft2_4FGL_J1304.0+3704_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/192493/ltcube_533001601_533260801_4FGL_J1304.0+3704_daily_bin1133.fits outfile=/scratch/kocevski/192493/expmap_533001601_533260801_4FGL_J1304.0+3704_daily_bin1133.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/192493/ltcube_533001601_533260801_4FGL_J1304.0+3704_daily_bin1133.fits
.....................!
real 193.08
user 187.47
sys 5.21

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/192493/ft1_filtered_4FGL_J1304.0+3704_daily_bin1133.fits scfile=/scratch/kocevski/192493/ft2_4FGL_J1304.0+3704_daily_bin1133.fits outfile=/scratch/kocevski/192493/cmap_533001601_533260801_4FGL_J1304.0+3704_daily_bin1133.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192493/ft1_filtered_4FGL_J1304.0+3704_daily_bin1133.fits scfile=/scratch/kocevski/192493/ft2_4FGL_J1304.0+3704_daily_bin1133.fits outfile=/scratch/kocevski/192493/cmap_HighResolution_533001601_533260801_4FGL_J1304.0+3704_daily_bin1133.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8027       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5896       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.158       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9939       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11997E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8387       1.0000         .10000E-03   10000.    
    13 'norm      '    .32047       1.0000         .10000E-03   10000.    
    14 'norm      '    9.1877       1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.4543       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.876       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2749       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.467       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.8915       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2835       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .52723       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=   6288.670     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     4449 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8027        4.7260       -.10103E-06   -.78621E-04
   2  Prefactor     2.5901        7.1420        .70668E-06    .27409E-04
   3  Prefactor     3.9107        2.5327        .15811E-07    .22387E-04
   4  Prefactor     .10000E-03    9.1644       -.21258E-06** at limit **
   5  Prefactor     51.182        32.254       -.34142E-06   -.12302E-05
   6  Prefactor     15.357        14.075        .18621E-06    .14316E-04
   7  Prefactor     6.8779        164.92        .58681E-05   -.40209E-04
   8  Prefactor     .10000E-03    3.0691        .83287E-08** at limit **
   9  norm          .10000E-03    2.1191       -.26674E-05** at limit **
  10  Prefactor     .10000E-03    16.445        .30490E-06** at limit **
  11  Prefactor     .10541E-03    18.772        .11296E-05** at limit **
  12  Prefactor     7.8364        8.4302        .15320E-07   -.62183E-04
  13  norm          .31926        4.4072        .46711E-05    .20038E-04
  14  norm          9.1882        9.2675       -.47784E-06   -.25709E-04
  15  norm          .10000E-03    2.1350       -.74898E-07** at limit **
  16  norm          .10000E-03    2.5094        .34685E-07** at limit **
  17  norm          9.4545        4.3364       -.49102E-07   -.31426E-04
  18  Prefactor     .10000E-03    1.8642       -.16541E-06** at limit **
  19  Prefactor     .10000E-03    7.9337       -.95321E-07** at limit **
  20  Prefactor     18.873        20.314       -.97337E-07    .23596E-04
  21  Prefactor     3.2690        185.25        .22346E-06   -.40712E-05
  22  Prefactor     31.472        19.905       -.30267E-06   -.42918E-04
  23  Prefactor     .10000E-03    11.910        .65963E-07** at limit **
  24  Prefactor     .10000E-03    24.783       -.46074E-06** at limit **
  25  Prefactor     .10000E-03    18.253       -.40456E-07** at limit **
  26  norm          2.8917        1.3271       -.33959E-07    .30572E-04
  27  Prefactor     .10000E-03    3.2856        .52174E-07** at limit **
  28  norm          .10000E-03    3.4767        .46910E-07** at limit **
  29  Normalizat    1.2835        .16412        .29308E-05   -.61254E-04
  30  Prefactor     .52714        .19409       -.37944E-05    .56839E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.80268
  Prefactor  = 2.59008
  Prefactor  = 3.91067
  Prefactor  = 0.0001
  Prefactor  = 51.1821
  Prefactor  = 15.3569
  Prefactor  = 6.87792
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000105409
  Prefactor  = 7.83643
  norm       = 0.31926
  norm       = 9.18815
  norm       = 0.0001
  norm       = 0.0001
  norm       = 9.45452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8731
  Prefactor  = 3.26904
  Prefactor  = 31.4725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.89167
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.28352
  Prefactor  = 0.527138
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.670     FROM HESSE     STATUS=OK           594 CALLS     5043 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8027        4.7457        .10857E-03   -1.5082    
   2  Prefactor     2.5901        7.1173        .25357E-03   -1.5386    
   3  Prefactor     3.9107        2.5432        .92502E-04   -1.5312    
   4  Prefactor     .10000E-03    9.3759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.182        32.288        .56071E-04   -1.4276    
   6  Prefactor     15.357        14.072        .10220E-03   -1.4924    
   7  Prefactor     6.8779        166.65        .15170E-03   -1.5183    
   8  Prefactor     .10000E-03    3.0893        .13554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1571        .11311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10541E-03    25.411        .91698E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8364        8.4116        .14322E-03   -1.5148    
  13  norm          .31926        4.4414        .31599E-03   -1.5595    
  14  norm          9.1882        9.2690        .66111E-03   -1.5102    
  15  norm          .10000E-03    2.2045        .22561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5304        .12261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.4545        4.3362        .10831E-03   -1.5093    
  18  Prefactor     .10000E-03    1.9131        .21051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.9834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.873        20.314        .92187E-04   -1.4839    
  21  Prefactor     3.2690        183.86        .22376E-03   -1.5346    
  22  Prefactor     31.472        19.941        .71428E-04   -1.4585    
  23  Prefactor     .10000E-03    11.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    18.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.8917        1.3261        .59973E-04   -1.5368    
  27  Prefactor     .10000E-03    3.3434        .14030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.4777        .14441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2835        .18120        .19467E-03   -.84060    
  30  Prefactor     .52714        .21099        .35368E-03   -1.1075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2628e-09
Minuit parameter uncertainties:
  1  4.7459
  2  7.11962
  3  2.54328
  4  6.82764e-06
  5  32.2986
  6  14.0754
  7  67.9244
  8  1.51515e-05
  9  4.44642e-05
  10  6.69852e-05
  11  0.0234577
  12  8.41288
  13  2.38141
  14  9.27046
  15  2.14304e-05
  16  8.38239e-06
  17  4.33633
  18  2.5119e-05
  19  3.23212e-05
  20  20.3214
  21  49.1913
  22  19.9457
  23  1.52126e-05
  24  2.00118e-05
  25  7.40285e-05
  26  1.32608
  27  7.44404e-06
  28  6.53632e-07
  29  0.181288
  30  0.211301
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  7.836e+00  8.413e+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

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  5.271e-01  2.113e-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.284e+00  1.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 196.008 37.071
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.61e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 5.03e-06 +/- 5.40e-06

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

Saving results to:
/scratch/kocevski/192493/likelihoodResults_533001601_533260801_4FGL_J1304.0+3704_daily_bin1133.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) = 6288.00091667
delta logL = 0.668741634181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6287.8353831
delta logL = 0.834275208522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.064       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6071       1.0000          .0000       10.000    
     3 'Normalizat'    1.2962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51386       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=   6287.835     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      222 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.057        16.193        .26701E-02    .26292E-04
   2  Index         1.6070        .58543        .25139       -.15706E-03
   3  Normalizat    1.2962        .15663        .32874E-01   -.52008E-05
   4  Prefactor     .51388        .19023        .80700E-01    .28848E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0568
  Index      = 1.60705
  Normalizat = 1.29616
  Prefactor  = 0.513881
 **********
 **   18 **HESSE 
 **********

 FCN=   6287.835     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.057        12.416        .10680E-03   -1.4958    
   2  Index         1.6070        .53135        .93846E-02   -.74584    
   3  Normalizat    1.2962        .17258        .19376E-03   -.83681    
   4  Prefactor     .51388        .20928        .35745E-03   -1.1134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90314e-10
Minuit parameter uncertainties:
  1  12.4188
  2  0.533226
  3  0.172655
  4  0.209596
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192493': 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) = 6287.83538291
delta logL = 0.834275398895

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.406e+01  1.242e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.607e+00  5.332e-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:  5.139e-01  2.096e-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.296e+00  1.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.38
Ra Dec: 196.008 37.071
Photon Index (Free Index): 1.61 +/- 0.53
Photon Flux (Free Index): 9.71e-09 +/- 9.99e-09
Energy Flux (Free Index): 2.15e-05 +/- 3.23e-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/192493/cmap_HighResolution_533001601_533260801_4FGL_J1304.0+3704_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', comment='SUCCESS', photon_flux='1.61e-08', energy_flux2='2.15e-05', photon_flux_error='1.72e-08', dlogl='8.34e-01', energy_flux='5.03e-06', photon_flux2='9.71e-09', job_status='DONE', time_completed='2021-09-06 20:11:58.531980', photon_index_error2='0.53', photon_index2='1.61', ts='1.70', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', photon_flux_upper_limit='6.44e-08', energy_flux_error2='3.23e-05', EG='1.28', time_epoch_completed='1630984318.53', return_code='0', job_id='192493', GAL2='0.51', EG2='1.30', return_code2='0', energy_flux_error='5.40e-06', photon_flux_error2='9.99e-09', ts2='3.38', photon_index='2.44' WHERE bin_id='1133' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:11:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 192493: <4FGL_J1304.0+3704_daily_bin1133> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin1133 196.008 37.071 533001601 533260801 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 :                                   947.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            977 sec.

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

