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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin207
RA = 196.008, Dec = 37.071
tmin = 292982401, tmax = 293241601
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='186642', job_status='RUN', time_executed='2021-09-06 19:37:32.641491', time_epoch_executed='1630982252.64' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186642

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186642/ft1_4FGL_J1304.0+3704_daily_bin207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186642/ft2_4FGL_J1304.0+3704_daily_bin207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186642/ft1_4FGL_J1304.0+3704_daily_bin207.fits outfile=/scratch/kocevski/186642/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin207.fits ra=196.008 dec=37.071 rad=12.0 tmin=292982401.0 tmax=293241601.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.66
user 3.43
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186642/ft1_filtered_4FGL_J1304.0+3704_daily_bin207.fits" evtable="EVENTS" scfile=/scratch/kocevski/186642/ft2_4FGL_J1304.0+3704_daily_bin207.fits sctable="SC_DATA" outfile=/scratch/kocevski/186642/ltcube_292982401_293241601_4FGL_J1304.0+3704_daily_bin207.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/186642/ft2_4FGL_J1304.0+3704_daily_bin207.fits
.....................!
real 14.62
user 14.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186642/ft1_filtered_4FGL_J1304.0+3704_daily_bin207.fits evtable="EVENTS" scfile=/scratch/kocevski/186642/ft2_4FGL_J1304.0+3704_daily_bin207.fits sctable="SC_DATA" expcube=/scratch/kocevski/186642/ltcube_292982401_293241601_4FGL_J1304.0+3704_daily_bin207.fits outfile=/scratch/kocevski/186642/expmap_292982401_293241601_4FGL_J1304.0+3704_daily_bin207.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/186642/ltcube_292982401_293241601_4FGL_J1304.0+3704_daily_bin207.fits
.....................!
real 191.33
user 186.57
sys 4.37

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/186642/ft1_filtered_4FGL_J1304.0+3704_daily_bin207.fits scfile=/scratch/kocevski/186642/ft2_4FGL_J1304.0+3704_daily_bin207.fits outfile=/scratch/kocevski/186642/cmap_292982401_293241601_4FGL_J1304.0+3704_daily_bin207.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.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8474       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3180       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.108       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .36745E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.720       1.0000         .10000E-03   10000.    
    13 'norm      '    .12991E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1643       1.0000         .10000E-03   10000.    
    15 'norm      '    .13148E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6292       1.0000         .10000E-03   10000.    
    17 'norm      '    30.961       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    64.632       1.0000         .10000E-03   10000.    
    26 'norm      '    1.6505       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3680       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82866       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=   6156.590     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3954 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8474        4.4457        .13614E-06   -.55047E-05
   2  Prefactor     .10000E-03    4.1420        .11949E-07** at limit **
   3  Prefactor     3.3180        2.3536       -.39556E-07   -.49967E-05
   4  Prefactor     27.111        13.305        .83004E-08   -.33037E-04
   5  Prefactor     .10000E-03    15.486        .22252E-05** at limit **
   6  Prefactor     .10000E-03    6.0198       -.42590E-06** at limit **
   7  Prefactor     .10000E-03    40.967        .38901E-05** at limit **
   8  Prefactor     .10001E-03    6.7768        .42469E-06** at limit **
   9  norm          .10000E-03    6.3059        .17230E-05** at limit **
  10  Prefactor     .10000E-03    62.801       -.39140E-05** at limit **
  11  Prefactor     7.3172        50.263       -.38335E-05   -.10887E-03
  12  Prefactor     22.694        25.222       -.57130E-06   -.24058E-03
  13  norm          .10001E-03    4.9994       -.44528E-06** at limit **
  14  norm          2.1650        10.824        .59300E-06   -.43746E-04
  15  norm          .10004E-03    3.2723        .19047E-05** at limit **
  16  norm          6.6331        5.3292       -.11164E-05   -.49461E-03
  17  norm          30.960        7.8196        .24331E-07   -.17014E-04
  18  Prefactor     .10000E-03    3.2102        .11615E-06** at limit **
  19  Prefactor     .10000E-03    9.4820        .39151E-06** at limit **
  20  Prefactor     .10000E-03    17.071        .63498E-06** at limit **
  21  Prefactor     .10000E-03    18.107       -.60883E-06** at limit **
  22  Prefactor     .10000E-03    55.200        .51789E-06** at limit **
  23  Prefactor     .10000E-03    17.617       -.26809E-07** at limit **
  24  Prefactor     .10000E-03    20.166       -.29408E-05** at limit **
  25  Prefactor     64.629        74.186       -.48300E-06   -.12932E-04
  26  norm          1.6504        1.1869        .12975E-07    .11384E-04
  27  Prefactor     .10000E-03    1.4300        .57178E-08** at limit **
  28  norm          .10000E-03    11.414       -.21715E-06** at limit **
  29  Normalizat    1.3683        .19160       -.93672E-06   -.26956E-03
  30  Prefactor     .82823        .21838        .48746E-06   -.19480E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.84739
  Prefactor  = 0.0001
  Prefactor  = 3.31805
  Prefactor  = 27.1105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.3172
  Prefactor  = 22.6942
  norm       = 0.000100012
  norm       = 2.165
  norm       = 0.000100038
  norm       = 6.6331
  norm       = 30.9605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.6292
  norm       = 1.65043
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.36834
  Prefactor  = 0.828232
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.590     FROM HESSE     STATUS=OK           576 CALLS     4530 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8474        4.4564        .10927E-03   -1.5113    
   2  Prefactor     .10000E-03    4.1643        .15594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3180        2.3605        .94554E-04   -1.5344    
   4  Prefactor     27.111        13.304        .76944E-04   -1.4666    
   5  Prefactor     .10000E-03    15.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    19.481        .35996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.3764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    62.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3172        50.888        .14837E-03   -1.5167    
  12  Prefactor     22.694        22.977        .84035E-04   -1.4755    
  13  norm          .10001E-03    10.928        .31529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1650        10.770        .27996E-03   -1.5414    
  15  norm          .10004E-03    17.488        .23285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6331        5.3054        .15538E-03   -1.5193    
  17  norm          30.960        7.8238        .72008E-04   -1.4595    
  18  Prefactor     .10000E-03    3.2926        .27382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.5191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    56.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     64.629        74.782        .49918E-04   -1.4098    
  26  norm          1.6504        1.1887        .70413E-04   -1.5451    
  27  Prefactor     .10000E-03    1.4314        .91634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    11.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3683        .23375        .22775E-03   -.81549    
  30  Prefactor     .82823        .26354        .33827E-03   -.98696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88038e-09
Minuit parameter uncertainties:
  1  4.45654
  2  2.48231e-06
  3  2.36055
  4  13.3052
  5  3.82141e-05
  6  1.5825e-06
  7  7.45685e-05
  8  0.000665122
  9  5.67816e-05
  10  6.65997e-05
  11  38.6399
  12  22.9861
  13  0.000725565
  14  9.66022
  15  0.00163923
  16  5.30578
  17  7.82406
  18  5.75667e-06
  19  3.38432e-06
  20  1.3381e-05
  21  4.98546e-06
  22  8.93139e-05
  23  4.25322e-06
  24  3.18136e-05
  25  74.8914
  26  1.18874
  27  6.49279e-07
  28  7.94372e-06
  29  0.233927
  30  0.263946
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  2.269e+01  2.299e+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:  8.282e-01  2.639e-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.368e+00  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 196.008 37.071
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 4.66e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/186642/likelihoodResults_292982401_293241601_4FGL_J1304.0+3704_daily_bin207.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) = 6155.27173688
delta logL = 1.31873501544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6155.26488985
delta logL = 1.32558204766

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6331       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8187       1.0000          .0000       10.000    
     3 'Normalizat'    1.2738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90520       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=   6155.265     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      283 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6579        45.748        .46746E-02    .44903E-03
   2  Index         3.8153        2.6793        .10237        .17343E-03
   3  Normalizat    1.2741        .67044E-01    .53023E-01   -.74620E-05
   4  Prefactor     .90493        .76635E-01    .73466E-01    .20900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.65789
  Index      = 3.81534
  Normalizat = 1.27413
  Prefactor  = 0.904927
 **********
 **   18 **HESSE 
 **********

 FCN=   6155.265     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      316 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6579        72.145        .91874E-04   -1.5276    
   2  Index         3.8153        3.6407        .39557E-02   -.23921    
   3  Normalizat    1.2741        .22883        .23444E-03   -.84342    
   4  Prefactor     .90493        .27203        .32509E-03   -.95969    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28408e-10
Minuit parameter uncertainties:
  1  36.7155
  2  4.11569
  3  0.229008
  4  0.272443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186642': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6155.26488373
delta logL = 1.32558816696

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  4.658e+00  3.672e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.815e+00  4.116e+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:  9.049e-01  2.724e-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.274e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.19
Ra Dec: 196.008 37.071
Photon Index (Free Index): 3.82 +/- 4.12
Photon Flux (Free Index): 1.22e-07 +/- 7.96e-08
Energy Flux (Free Index): 1.89e-05 +/- 1.49e-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/186642/cmap_HighResolution_292982401_293241601_4FGL_J1304.0+3704_daily_bin207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='4.66e-08', energy_flux2='1.89e-05', photon_flux_error='4.71e-08', dlogl='1.33e+00', energy_flux='1.46e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-06 19:52:06.042033', photon_index_error2='4.12', photon_index2='3.82', ts='1.32', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.49e-05', EG='1.37', time_epoch_completed='1630983126.04', return_code='0', job_id='186642', GAL2='0.90', EG2='1.27', return_code2='102', energy_flux_error='1.48e-05', photon_flux_error2='7.96e-08', ts2='4.19', photon_index='2.44' WHERE bin_id='207' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:52:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 186642: <4FGL_J1304.0+3704_daily_bin207> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin207 196.008 37.071 292982401 293241601 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 :                                   869.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

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

