/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 173 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1304.0+3704_daily_bin110
RA = 196.008, Dec = 37.071
tmin = 267840001, tmax = 268099201
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='183994', job_status='RUN', time_executed='2021-09-06 19:29:06.691830', time_epoch_executed='1630981746.69' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/183994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/183994/ft1_4FGL_J1304.0+3704_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/183994/ft2_4FGL_J1304.0+3704_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/183994/ft1_4FGL_J1304.0+3704_daily_bin110.fits outfile=/scratch/kocevski/183994/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin110.fits ra=196.008 dec=37.071 rad=12.0 tmin=267840001.0 tmax=268099201.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 1.48
user 1.31
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/183994/ft1_filtered_4FGL_J1304.0+3704_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/183994/ft2_4FGL_J1304.0+3704_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/183994/ltcube_267840001_268099201_4FGL_J1304.0+3704_daily_bin110.fits outfile=/scratch/kocevski/183994/expmap_267840001_268099201_4FGL_J1304.0+3704_daily_bin110.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/183994/ltcube_267840001_268099201_4FGL_J1304.0+3704_daily_bin110.fits
.....................!
real 192.19
user 186.95
sys 4.24

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/183994/ft1_filtered_4FGL_J1304.0+3704_daily_bin110.fits scfile=/scratch/kocevski/183994/ft2_4FGL_J1304.0+3704_daily_bin110.fits outfile=/scratch/kocevski/183994/cmap_267840001_268099201_4FGL_J1304.0+3704_daily_bin110.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/183994/ft1_filtered_4FGL_J1304.0+3704_daily_bin110.fits scfile=/scratch/kocevski/183994/ft2_4FGL_J1304.0+3704_daily_bin110.fits outfile=/scratch/kocevski/183994/cmap_HighResolution_267840001_268099201_4FGL_J1304.0+3704_daily_bin110.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5995       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5414       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.489       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7026       1.0000         .10000E-03   10000.    
     7 'Prefactor '    103.27       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.3418       1.0000         .10000E-03   10000.    
    14 'norm      '    19.112       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.784       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .99504       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.785       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11873E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .66130E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11097E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    11.241       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0396       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80122       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=   4484.181     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3902 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6001        3.7444       -.14775E-05    .50744E-04
   2  Prefactor     .10000E-03    4.7857        .42499E-08** at limit **
   3  Prefactor     1.5415        1.5818        .19729E-06    .16141E-03
   4  Prefactor     11.491        10.273       -.24330E-06   -.11923E-05
   5  Prefactor     .10000E-03    48.837        .21078E-04** at limit **
   6  Prefactor     1.7089        35.345       -.26688E-05   -.12566E-03
   7  Prefactor     103.31        80.638        .30557E-04    .12003E-04
   8  Prefactor     .10000E-03    2.6384       -.27933E-07** at limit **
   9  norm          .10000E-03    2.0610       -.47434E-06** at limit **
  10  Prefactor     .10000E-03    27.299       -.15068E-04** at limit **
  11  Prefactor     38.293        26.904        .44647E-05    .11668E-03
  12  Prefactor     .10000E-03    6.9416       -.10768E-06** at limit **
  13  norm          5.3425        5.0437        .70439E-06    .25468E-04
  14  norm          19.114        15.913        .25300E-06    .33755E-04
  15  norm          .10000E-03    1.3631       -.10042E-06** at limit **
  16  norm          .10000E-03    1.6831       -.22902E-07** at limit **
  17  norm          13.785        6.5939        .11108E-06   -.19623E-04
  18  Prefactor     .10000E-03    2.1078       -.10028E-06** at limit **
  19  Prefactor     1.0144        17.330       -.22944E-05   -.93409E-04
  20  Prefactor     41.783        43.262       -.10906E-05    .15976E-04
  21  Prefactor     .10000E-03    19.133        .85601E-05** at limit **
  22  Prefactor     .10000E-03    8.7563        .51537E-06** at limit **
  23  Prefactor     .10000E-03    59.823       -.38089E-05** at limit **
  24  Prefactor     .10000E-03    13.107       -.87899E-06** at limit **
  25  Prefactor     .10001E-03    210.41       -.14158E-03** at limit **
  26  norm          .10000E-03    1.0917        .21300E-06** at limit **
  27  Prefactor     .10000E-03    1.2228        .14214E-07** at limit **
  28  norm          11.235        12.605        .39471E-06    .13631E-03
  29  Normalizat    1.0395        .18209       -.15488E-05    .63082E-03
  30  Prefactor     .80112        .21842       -.60863E-06    .25623E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.60014
  Prefactor  = 0.0001
  Prefactor  = 1.54152
  Prefactor  = 11.4907
  Prefactor  = 0.0001
  Prefactor  = 1.70889
  Prefactor  = 103.307
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 38.2932
  Prefactor  = 0.0001
  norm       = 5.34252
  norm       = 19.1141
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.7847
  Prefactor  = 0.000100004
  Prefactor  = 1.01436
  Prefactor  = 41.7828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2349
  Normalizat = 1.03949
  Prefactor  = 0.80112
 **********
 **   18 **HESSE 
 **********

 FCN=   4484.181     FROM HESSE     STATUS=OK           586 CALLS     4488 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6001        3.7456        .10233E-03   -1.5235    
   2  Prefactor     .10000E-03    4.8074        .14305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5415        1.5952        .82541E-04   -1.5460    
   4  Prefactor     11.491        10.271        .11819E-03   -1.5030    
   5  Prefactor     .10000E-03    49.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7089        35.538        .32234E-03   -1.5447    
   7  Prefactor     103.31        80.517        .19783E-03   -1.3672    
   8  Prefactor     .10000E-03    2.6439        .10617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.0694        .93781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.293        26.909        .64780E-04   -1.4470    
  12  Prefactor     .10000E-03    6.9533        .17227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.3425        5.0259        .13999E-03   -1.5246    
  14  norm          19.114        15.915        .91617E-04   -1.4833    
  15  norm          .10000E-03    1.3706        .76249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6837        .84835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.785        6.5934        .10789E-03   -1.4965    
  18  Prefactor     .10000E-03    13.056        .16516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0144        42.774        .45894E-02   -1.5507    
  20  Prefactor     41.783        43.227        .62014E-04   -1.4414    
  21  Prefactor     .10000E-03    19.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.7926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    59.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    210.41        .21011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.5519        .13527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.2240        .72317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          11.235        12.609        .11949E-03   -1.5037    
  29  Normalizat    1.0395        .21637        .20907E-03   -.91719    
  30  Prefactor     .80112        .25945        .29122E-03   -.99687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3127e-08
Minuit parameter uncertainties:
  1  3.74571
  2  5.77217e-06
  3  1.59527
  4  10.2727
  5  2.06672e-05
  6  15.596
  7  80.6026
  8  6.84782e-06
  9  6.84534e-05
  10  1.88446e-05
  11  26.9171
  12  2.0109e-05
  13  5.02629
  14  15.9182
  15  1.0297e-05
  16  2.23227e-06
  17  6.59376
  18  0.00044608
  19  13.1834
  20  43.2597
  21  1.45274e-05
  22  1.2849e-05
  23  0.000188101
  24  1.3689e-05
  25  0.0032238
  26  3.66842e-05
  27  1.36262e-06
  28  12.612
  29  0.216552
  30  0.259849
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.011e-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:  8.011e-01  2.598e-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.039e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/183994/likelihoodResults_267840001_268099201_4FGL_J1304.0+3704_daily_bin110.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): 102
logL (Free Index) = 4484.18127151
delta logL = -0.000684489952619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4484.18058702
delta logL = 7.88259058027e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4180       1.0000          .0000       10.000    
     3 'Normalizat'    1.0395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80110       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=   4484.181     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10152E-03    81.058        .17447E-02** at limit **
   2  Index         2.3534        5.0900        .50000        .18371E-04
   3  Normalizat    1.0395        .14578E-01    .20907E-03    .16422E-04
   4  Prefactor     .80112        .18128E-01    .29122E-03    .74173E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101516
  Index      = 2.35341
  Normalizat = 1.03949
  Prefactor  = 0.801124
 **********
 **   18 **HESSE 
 **********

 FCN=   4484.181     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10152E-03    337.59        .34894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3534        5.0418        .50000       -.55780    
   3  Normalizat    1.0395        .31141E-01    .83627E-05   -.91719    
   4  Prefactor     .80112        .38722E-01    .11649E-04   -.99687    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.52194e-08
Minuit parameter uncertainties:
  1  0.045503
  2  728.169
  3  0.0311413
  4  0.0387235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/183994': 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) = 4484.18058673
delta logL = 2.90178832074e-07

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.015e-04  4.550e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.353e+00  7.282e+02  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:  8.011e-01  3.872e-02  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.039e+00  3.114e-02  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/183994/cmap_HighResolution_267840001_268099201_4FGL_J1304.0+3704_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-06 19:41:05.439190', job_id='183994', GAL2='0.80', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630982465.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='110' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 19:41:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 183994: <4FGL_J1304.0+3704_daily_bin110> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin110> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 19:25:45 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:26:04 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:26:04 2021
Terminated at Mon Sep  6 19:41:06 2021
Results reported at Mon Sep  6 19:41:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin110 196.008 37.071 267840001 268099201 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 :                                   718.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            921 sec.

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

