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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin1280
RA = 196.008, Dec = 37.071
tmin = 571104001, tmax = 571363201
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='193770', job_status='RUN', time_executed='2021-09-06 20:01:11.867312', time_epoch_executed='1630983671.87' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193770/ft1_4FGL_J1304.0+3704_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193770/ft2_4FGL_J1304.0+3704_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193770/ft1_4FGL_J1304.0+3704_daily_bin1280.fits outfile=/scratch/kocevski/193770/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1280.fits ra=196.008 dec=37.071 rad=12.0 tmin=571104001.0 tmax=571363201.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.00
user 2.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/193770/ft2_4FGL_J1304.0+3704_daily_bin1280.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/193770/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin1280.fits evtable="EVENTS" outfile="/scratch/kocevski/193770/ft1_filtered_4FGL_J1304.0+3704_daily_bin1280.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/193770/ft1_filtered_4FGL_J1304.0+3704_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/193770/ft2_4FGL_J1304.0+3704_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/193770/ltcube_571104001_571363201_4FGL_J1304.0+3704_daily_bin1280.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/193770/ft2_4FGL_J1304.0+3704_daily_bin1280.fits
.....................!
real 15.52
user 15.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193770/ft1_filtered_4FGL_J1304.0+3704_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/193770/ft2_4FGL_J1304.0+3704_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/193770/ltcube_571104001_571363201_4FGL_J1304.0+3704_daily_bin1280.fits outfile=/scratch/kocevski/193770/expmap_571104001_571363201_4FGL_J1304.0+3704_daily_bin1280.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/193770/ltcube_571104001_571363201_4FGL_J1304.0+3704_daily_bin1280.fits
.....................!
real 193.39
user 187.81
sys 5.16

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/193770/ft1_filtered_4FGL_J1304.0+3704_daily_bin1280.fits scfile=/scratch/kocevski/193770/ft2_4FGL_J1304.0+3704_daily_bin1280.fits outfile=/scratch/kocevski/193770/cmap_571104001_571363201_4FGL_J1304.0+3704_daily_bin1280.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/193770/ft1_filtered_4FGL_J1304.0+3704_daily_bin1280.fits scfile=/scratch/kocevski/193770/ft2_4FGL_J1304.0+3704_daily_bin1280.fits outfile=/scratch/kocevski/193770/cmap_HighResolution_571104001_571363201_4FGL_J1304.0+3704_daily_bin1280.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/193770/ft1_filtered_4FGL_J1304.0+3704_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/193770/ft2_4FGL_J1304.0+3704_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193770/Model_4FGL_J1304.0+3704_daily_bin1280.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/193770/ft1_filtered_4FGL_J1304.0+3704_daily_bin1280.fits.....................!
real 51.39
user 49.93
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6330       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0020       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.717       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.3942       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.631       1.0000         .10000E-03   10000.    
    13 'norm      '    .10767E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.516       1.0000         .10000E-03   10000.    
    15 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5550       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8338       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .43560       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.383       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4721       1.0000         .10000E-03   10000.    
    25 'Prefactor '    81.972       1.0000         .10000E-03   10000.    
    26 'norm      '    22.427       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11034E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    19.929       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2140       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74290       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=   6089.507     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3931 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6331        4.5491       -.27360E-06   -.35467E-04
   2  Prefactor     .10000E-03    6.7867        .88292E-07** at limit **
   3  Prefactor     4.0021        3.4138        .10951E-06    .23598E-05
   4  Prefactor     .10000E-03    13.652        .33095E-06** at limit **
   5  Prefactor     .10000E-03    22.690       -.73967E-06** at limit **
   6  Prefactor     .10000E-03    12.654       -.32829E-06** at limit **
   7  Prefactor     19.838        123.57       -.27801E-04   -.22364E-04
   8  Prefactor     .10000E-03    6.1543       -.11350E-06** at limit **
   9  norm          7.3938        5.2965        .56684E-06   -.21518E-03
  10  Prefactor     .10000E-03    28.855        .18151E-06** at limit **
  11  Prefactor     .10000E-03    8.0448       -.27392E-07** at limit **
  12  Prefactor     10.631        10.748        .67611E-07   -.11890E-04
  13  norm          .10000E-03    1.9012       -.86870E-08** at limit **
  14  norm          15.513        14.641       -.46029E-07    .49263E-05
  15  norm          .10000E-03    2.2185       -.42889E-06** at limit **
  16  norm          1.5559        3.6916        .38974E-05   -.17398E-03
  17  norm          1.8339        3.8354       -.13544E-06    .49832E-05
  18  Prefactor     .43567        1.6893       -.13238E-06   -.18320E-03
  19  Prefactor     .10000E-03    4.3735        .14786E-07** at limit **
  20  Prefactor     .10000E-03    14.991        .40536E-06** at limit **
  21  Prefactor     .10000E-03    13.891        .10766E-06** at limit **
  22  Prefactor     .10000E-03    18.794        .29649E-06** at limit **
  23  Prefactor     45.387        36.267       -.12834E-06   -.69063E-06
  24  Prefactor     2.4801        73.671       -.17530E-05   -.10573E-05
  25  Prefactor     81.988        69.002       -.72217E-06    .29026E-06
  26  norm          22.428        3.0214        .19531E-07   -.21145E-04
  27  Prefactor     .10000E-03    2.7889       -.59413E-06** at limit **
  28  norm          19.930        14.786        .93654E-07   -.91469E-06
  29  Normalizat    1.2136        .18890       -.24412E-05   -.98653E-04
  30  Prefactor     .74338        .22055        .37828E-05   -.62846E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.63314
  Prefactor  = 0.0001
  Prefactor  = 4.00208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8381
  Prefactor  = 0.0001
  norm       = 7.3938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6313
  norm       = 0.0001
  norm       = 15.5135
  norm       = 0.000100004
  norm       = 1.55588
  norm       = 1.83395
  Prefactor  = 0.43567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.3875
  Prefactor  = 2.48011
  Prefactor  = 81.9879
  norm       = 22.4278
  Prefactor  = 0.000100001
  norm       = 19.9303
  Normalizat = 1.2136
  Prefactor  = 0.743377
 **********
 **   18 **HESSE 
 **********

 FCN=   6089.507     FROM HESSE     STATUS=OK           588 CALLS     4519 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6331        4.5533        .78162E-03   -1.5277    
   2  Prefactor     .10000E-03    6.8127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.0021        3.4165        .12610E-03   -1.5308    
   4  Prefactor     .10000E-03    13.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.838        125.27        .90201E-04   -1.4817    
   8  Prefactor     .10000E-03    6.3680        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.3938        5.2625        .13762E-03   -1.5164    
  10  Prefactor     .10000E-03    28.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.0493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.631        10.693        .12288E-03   -1.5056    
  13  norm          .10000E-03    4.3639        .20862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.513        14.652        .10168E-03   -1.4920    
  15  norm          .10000E-03    4.8736        .21958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5559        3.7708        .11545E-02   -1.5458    
  17  norm          1.8339        3.8102        .21247E-03   -1.5437    
  18  Prefactor     .43567        1.6346        .19104E-03   -1.5576    
  19  Prefactor     .10000E-03    4.3817        .15933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     45.387        36.285        .59515E-04   -1.4360    
  24  Prefactor     2.4801        73.540        .26006E-03   -1.5393    
  25  Prefactor     81.988        69.197        .44363E-04   -1.3895    
  26  norm          22.428        3.0215        .47431E-04   -1.4760    
  27  Prefactor     .10000E-03    7.1819        .25067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          19.930        14.784        .89720E-04   -1.4815    
  29  Normalizat    1.2136        .22331        .22982E-03   -.86184    
  30  Prefactor     .74338        .26028        .34865E-03   -1.0185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50005e-10
Minuit parameter uncertainties:
  1  4.55361
  2  3.13926e-07
  3  3.41666
  4  2.60684e-05
  5  1.16357e-07
  6  1.20637e-06
  7  100.011
  8  4.0736e-06
  9  5.2628
  10  2.28216e-05
  11  2.18046e-05
  12  10.6952
  13  4.99961e-06
  14  14.6558
  15  0.000267223
  16  3.77138
  17  3.81071
  18  1.63476
  19  7.62044e-07
  20  6.11228e-06
  21  2.31843e-07
  22  6.10755e-05
  23  36.3023
  24  27.0462
  25  69.2652
  26  3.02148
  27  0.000177009
  28  14.787
  29  0.223482
  30  0.260706
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.063e+01  1.070e+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:  7.434e-01  2.607e-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.214e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 196.008 37.071
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 6.83e-06 +/- 6.87e-06

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

Saving results to:
/scratch/kocevski/193770/likelihoodResults_571104001_571363201_4FGL_J1304.0+3704_daily_bin1280.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) = 6089.11305042
delta logL = 0.393892087924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6089.09536026
delta logL = 0.411582244396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.943       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7987       1.0000          .0000       10.000    
     3 'Normalizat'    1.2269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73153       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=   6089.095     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      274 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.937        15.339        .50153E-03   -.72084E-05
   2  Index         1.7978        .63209        .97279E-02   -.16376E-04
   3  Normalizat    1.2269        .21063        .22869E-03   -.24359E-05
   4  Prefactor     .73175        .25675        .35097E-03    .32392E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9368
  Index      = 1.79781
  Normalizat = 1.22689
  Prefactor  = 0.731747
 **********
 **   18 **HESSE 
 **********

 FCN=   6089.095     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.937        15.350        .20061E-04   -1.4909    
   2  Index         1.7978        .63267        .19456E-02   -.69507    
   3  Normalizat    1.2269        .21082        .91476E-05   -.85776    
   4  Prefactor     .73175        .25699        .14039E-04   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52513e-13
Minuit parameter uncertainties:
  1  15.354
  2  0.635564
  3  0.210967
  4  0.257413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193770': 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) = 6089.09535718
delta logL = 0.411585322183

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.594e+01  1.535e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.798e+00  6.356e-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:  7.317e-01  2.574e-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.227e+00  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.81
Ra Dec: 196.008 37.071
Photon Index (Free Index): 1.80 +/- 0.64
Photon Flux (Free Index): 1.32e-08 +/- 1.61e-08
Energy Flux (Free Index): 1.59e-05 +/- 2.41e-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/193770/cmap_HighResolution_571104001_571363201_4FGL_J1304.0+3704_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='1.59e-05', photon_flux_error='2.19e-08', dlogl='4.12e-01', energy_flux='6.83e-06', photon_flux2='1.32e-08', job_status='DONE', time_completed='2021-09-06 20:16:04.311863', photon_index_error2='0.64', photon_index2='1.80', ts='1.99', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='8.02e-08', energy_flux_error2='2.41e-05', EG='1.21', time_epoch_completed='1630984564.31', return_code='0', job_id='193770', GAL2='0.73', EG2='1.23', return_code2='0', energy_flux_error='6.87e-06', photon_flux_error2='1.61e-08', ts2='2.81', photon_index='2.44' WHERE bin_id='1280' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:16:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 193770: <4FGL_J1304.0+3704_daily_bin1280> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin1280> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 20:00:23 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:00:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 20:00:58 2021
Terminated at Mon Sep  6 20:16:05 2021
Results reported at Mon Sep  6 20:16:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin1280 196.008 37.071 571104001 571363201 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 :                                   886.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            942 sec.

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

