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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1147
RA = 196.008, Dec = 37.071
tmin = 536630401, tmax = 536889601
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='192512', job_status='RUN', time_executed='2021-09-06 19:56:03.606046', time_epoch_executed='1630983363.61' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192512

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192512/ft1_4FGL_J1304.0+3704_daily_bin1147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192512/ft2_4FGL_J1304.0+3704_daily_bin1147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192512/ft1_4FGL_J1304.0+3704_daily_bin1147.fits outfile=/scratch/kocevski/192512/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1147.fits ra=196.008 dec=37.071 rad=12.0 tmin=536630401.0 tmax=536889601.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.56
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192512/ft1_filtered_4FGL_J1304.0+3704_daily_bin1147.fits" evtable="EVENTS" scfile=/scratch/kocevski/192512/ft2_4FGL_J1304.0+3704_daily_bin1147.fits sctable="SC_DATA" outfile=/scratch/kocevski/192512/ltcube_536630401_536889601_4FGL_J1304.0+3704_daily_bin1147.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/192512/ft2_4FGL_J1304.0+3704_daily_bin1147.fits
.....................!
real 17.14
user 16.40
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192512/ft1_filtered_4FGL_J1304.0+3704_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/192512/ft2_4FGL_J1304.0+3704_daily_bin1147.fits sctable="SC_DATA" expcube=/scratch/kocevski/192512/ltcube_536630401_536889601_4FGL_J1304.0+3704_daily_bin1147.fits outfile=/scratch/kocevski/192512/expmap_536630401_536889601_4FGL_J1304.0+3704_daily_bin1147.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/192512/ltcube_536630401_536889601_4FGL_J1304.0+3704_daily_bin1147.fits
.....................!
real 193.21
user 187.50
sys 5.27

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/192512/ft1_filtered_4FGL_J1304.0+3704_daily_bin1147.fits scfile=/scratch/kocevski/192512/ft2_4FGL_J1304.0+3704_daily_bin1147.fits outfile=/scratch/kocevski/192512/cmap_536630401_536889601_4FGL_J1304.0+3704_daily_bin1147.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.60
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192512/ft1_filtered_4FGL_J1304.0+3704_daily_bin1147.fits scfile=/scratch/kocevski/192512/ft2_4FGL_J1304.0+3704_daily_bin1147.fits outfile=/scratch/kocevski/192512/cmap_HighResolution_536630401_536889601_4FGL_J1304.0+3704_daily_bin1147.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/192512/ft1_filtered_4FGL_J1304.0+3704_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/192512/ft2_4FGL_J1304.0+3704_daily_bin1147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/192512/Model_4FGL_J1304.0+3704_daily_bin1147.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/192512/ft1_filtered_4FGL_J1304.0+3704_daily_bin1147.fits.....................!
real 55.26
user 53.80
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2200       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9872       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.803       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11516E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0495       1.0000         .10000E-03   10000.    
     9 'norm      '    4.1014       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.001       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.2418       1.0000         .10000E-03   10000.    
    13 'norm      '    9.3628       1.0000         .10000E-03   10000.    
    14 'norm      '    26.470       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4694       1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23730E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.400       1.0000         .10000E-03   10000.    
    20 'Prefactor '    72.819       1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.150       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.9901       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .68252       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85461       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0328       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=   6738.761     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3903 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7411        4.3526        .37535E-07    .95821E-05
   2  Prefactor     7.2215        7.2990        .21387E-06    .92218E-05
   3  Prefactor     4.9869        2.9986        .22887E-07    .86872E-06
   4  Prefactor     .10000E-03    3.9513       -.81758E-07** at limit **
   5  Prefactor     37.812        32.844        .12350E-06    .81215E-04
   6  Prefactor     .10000E-03    32.721       -.24165E-06** at limit **
   7  Prefactor     .10000E-03    29.602        .10819E-06** at limit **
   8  Prefactor     7.0476        7.6419        .19333E-06    .10398E-03
   9  norm          4.1016        4.0538       -.98884E-07    .51031E-04
  10  Prefactor     .10000E-03    37.217       -.29175E-06** at limit **
  11  Prefactor     21.001        27.682       -.10433E-05   -.82357E-05
  12  Prefactor     9.2429        21.993        .31714E-06    .66679E-05
  13  norm          9.3568        7.3102        .86773E-08   -.53208E-04
  14  norm          26.467        19.271       -.58954E-07   -.20560E-03
  15  norm          1.4686        2.8099        .33900E-05   -.81003E-03
  16  norm          .10000E-03    3.8676       -.27667E-06** at limit **
  17  norm          .10000E-03    2.5316       -.11894E-05** at limit **
  18  Prefactor     .10000E-03    2.0753        .13299E-05** at limit **
  19  Prefactor     24.393        16.600       -.57287E-06   -.47440E-04
  20  Prefactor     72.834        39.905       -.53018E-06    .78478E-04
  21  Prefactor     43.156        44.538        .53128E-06    .12088E-03
  22  Prefactor     .10000E-03    9.0423       -.58815E-08** at limit **
  23  Prefactor     .10004E-03    31.572        .49022E-05** at limit **
  24  Prefactor     .10000E-03    8.0761       -.15834E-06** at limit **
  25  Prefactor     .10000E-03    25.508       -.16635E-06** at limit **
  26  norm          6.9902        1.8913        .46190E-07   -.21474E-03
  27  Prefactor     .66527        5.1307        .57790E-05    .17705E-03
  28  norm          .10000E-03    4.0610       -.56370E-07** at limit **
  29  Normalizat    .85426        .16479       -.23764E-05   -.27748E-03
  30  Prefactor     1.0331        .19437        .13414E-05   -.47861E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.7411
  Prefactor  = 7.2215
  Prefactor  = 4.98689
  Prefactor  = 0.0001
  Prefactor  = 37.8118
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.04756
  norm       = 4.10159
  Prefactor  = 0.000100002
  Prefactor  = 21.001
  Prefactor  = 9.24285
  norm       = 9.35678
  norm       = 26.4666
  norm       = 1.46857
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 24.3925
  Prefactor  = 72.8339
  Prefactor  = 43.1563
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.9902
  Prefactor  = 0.665275
  norm       = 0.0001
  Normalizat = 0.85426
  Prefactor  = 1.0331
 **********
 **   18 **HESSE 
 **********

 FCN=   6738.761     FROM HESSE     STATUS=OK           588 CALLS     4491 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7411        4.3951        .12042E-03   -1.5189    
   2  Prefactor     7.2215        7.2970        .14928E-03   -1.5170    
   3  Prefactor     4.9869        3.0274        .96449E-04   -1.5261    
   4  Prefactor     .10000E-03    3.9630        .15936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.812        32.948        .65187E-04   -1.4477    
   6  Prefactor     .10000E-03    33.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0476        7.6025        .15109E-03   -1.5177    
   9  norm          4.1016        4.0409        .15076E-03   -1.5303    
  10  Prefactor     .10000E-03    37.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.001        27.773        .87401E-04   -1.4791    
  12  Prefactor     9.2429        21.837        .13183E-03   -1.5100    
  13  norm          9.3568        7.2236        .13097E-03   -1.5096    
  14  norm          26.467        19.294        .77863E-04   -1.4679    
  15  norm          1.4686        3.3213        .10236E-02   -1.5466    
  16  norm          .10000E-03    3.9760        .15800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.972        .24505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.0423        .19955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.393        16.128        .81093E-04   -1.4720    
  20  Prefactor     72.834        39.951        .47047E-04   -1.3999    
  21  Prefactor     43.156        44.320        .61029E-04   -1.4393    
  22  Prefactor     .10000E-03    9.0941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10004E-03    33.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.0991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.9902        1.8934        .56556E-04   -1.5179    
  27  Prefactor     .66527        9.4060        .26377E-02   -1.5545    
  28  norm          .10000E-03    4.0650        .16157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .85426        .19457        .24807E-03   -.98087    
  30  Prefactor     1.0331        .23074        .28283E-03   -.91634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90343e-09
Minuit parameter uncertainties:
  1  4.39534
  2  7.29788
  3  3.0275
  4  9.83195e-06
  5  32.9637
  6  4.55474e-05
  7  0.00026125
  8  7.60355
  9  4.04116
  10  0.000502438
  11  27.7899
  12  21.8562
  13  7.22424
  14  19.299
  15  3.32168
  16  5.79986e-05
  17  6.85415e-05
  18  0.000353287
  19  16.1312
  20  39.9653
  21  44.3538
  22  4.60056e-05
  23  0.00225854
  24  8.92777e-05
  25  0.000185018
  26  1.89343
  27  5.0036
  28  1.38617e-05
  29  0.194729
  30  0.230957
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  9.243e+00  2.186e+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.033e+00  2.310e-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.543e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/192512/likelihoodResults_536630401_536889601_4FGL_J1304.0+3704_daily_bin1147.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) = 6738.71191323
delta logL = 0.049334892502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6738.69869483
delta logL = 0.0625532945587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6535       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8082       1.0000          .0000       10.000    
     3 'Normalizat'    .84621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6738.699     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      256 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6474        17.630        .15557E-03   -.83785E-03
   2  Index         2.8084        1.2636        .79097E-02   -.24434E-03
   3  Normalizat    .84627        .18620        .24908E-03    .22803E-03
   4  Prefactor     1.0394        .22916        .28205E-03    .37974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.64739
  Index      = 2.80838
  Normalizat = 0.846273
  Prefactor  = 1.0394
 **********
 **   18 **HESSE 
 **********

 FCN=   6738.699     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6474        15.295        .62227E-05   -1.5192    
   2  Index         2.8084        1.0988        .31639E-03   -.45373    
   3  Normalizat    .84627        .18641        .99633E-05   -.98375    
   4  Prefactor     1.0394        .22926        .56410E-04   -.91427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29331e-09
Minuit parameter uncertainties:
  1  15.3035
  2  1.11007
  3  0.186552
  4  0.229477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192512': 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) = 6738.69869471
delta logL = 0.0625534203555

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  6.647e+00  1.530e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.808e+00  1.110e+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.039e+00  2.295e-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.463e-01  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
Ra Dec: 196.008 37.071

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/192512/cmap_HighResolution_536630401_536889601_4FGL_J1304.0+3704_daily_bin1147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.71e-03', job_status='DONE', photon_flux_upper_limit='9.95e-08', time_completed='2021-09-06 20:11:35.225410', job_id='192512', GAL2='1.04', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630984295.23', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='6.26e-02', ts2='0.44', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1147' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:11:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 192512: <4FGL_J1304.0+3704_daily_bin1147> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin1147 196.008 37.071 536630401 536889601 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 :                                   923.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            953 sec.

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

