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


Performing analysis on: 4FGL_J1304.0+3704_daily_bin686
RA = 196.008, Dec = 37.071
tmin = 417139201, tmax = 417398401
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='189626', job_status='RUN', time_executed='2021-09-06 19:49:56.603295', time_epoch_executed='1630982996.6' WHERE source_name='4FGL J1304.0+3704' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189626

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189626/ft1_4FGL_J1304.0+3704_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189626/ft2_4FGL_J1304.0+3704_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189626/ft1_4FGL_J1304.0+3704_daily_bin686.fits outfile=/scratch/kocevski/189626/ft1_filteredMKT_4FGL_J1304.0+3704_daily_bin686.fits ra=196.008 dec=37.071 rad=12.0 tmin=417139201.0 tmax=417398401.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 5.57
user 5.19
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189626/ft1_filtered_4FGL_J1304.0+3704_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/189626/ft2_4FGL_J1304.0+3704_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/189626/ltcube_417139201_417398401_4FGL_J1304.0+3704_daily_bin686.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/189626/ft2_4FGL_J1304.0+3704_daily_bin686.fits
.....................!
real 14.85
user 14.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189626/ft1_filtered_4FGL_J1304.0+3704_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/189626/ft2_4FGL_J1304.0+3704_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/189626/ltcube_417139201_417398401_4FGL_J1304.0+3704_daily_bin686.fits outfile=/scratch/kocevski/189626/expmap_417139201_417398401_4FGL_J1304.0+3704_daily_bin686.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/189626/ltcube_417139201_417398401_4FGL_J1304.0+3704_daily_bin686.fits
.....................!
real 191.52
user 186.02
sys 5.12

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/189626/ft1_filtered_4FGL_J1304.0+3704_daily_bin686.fits scfile=/scratch/kocevski/189626/ft2_4FGL_J1304.0+3704_daily_bin686.fits outfile=/scratch/kocevski/189626/cmap_417139201_417398401_4FGL_J1304.0+3704_daily_bin686.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189626/ft1_filtered_4FGL_J1304.0+3704_daily_bin686.fits scfile=/scratch/kocevski/189626/ft2_4FGL_J1304.0+3704_daily_bin686.fits outfile=/scratch/kocevski/189626/cmap_HighResolution_417139201_417398401_4FGL_J1304.0+3704_daily_bin686.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.327       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.164       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10758E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8377       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.248       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.334       1.0000         .10000E-03   10000.    
    13 'norm      '    .14599       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.580       1.0000         .10000E-03   10000.    
    16 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.4593       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8673       1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.587       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.0173       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .66704       1.0000         .10000E-03   10000.    
    28 'norm      '    .16163E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .51945       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4913       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=   4146.603     FROM MIGRAD    STATUS=CONVERGED   1418 CALLS     4586 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.324        6.4101        .96217E-04    .75242E-03
   2  Prefactor     10.164        10.301        .12568E-03    .60696E-04
   3  Prefactor     .10000E-03    2.5985        .19779E-02** at limit **
   4  Prefactor     .10000E-03    11.403        .18142E-02** at limit **
   5  Prefactor     .10000E-03    17.990        .18142E-02** at limit **
   6  Prefactor     .10000E-03    18.743        .18142E-02** at limit **
   7  Prefactor     .10000E-03    28.624        .18142E-02** at limit **
   8  Prefactor     .10000E-03    3.6110        .11937E-02** at limit **
   9  norm          3.8397        6.0378        .17683E-03    .13868E-03
  10  Prefactor     .10000E-03    63.929        .18142E-02** at limit **
  11  Prefactor     21.242        42.316        .86892E-04    .22504E-04
  12  Prefactor     13.437        23.513        .10969E-03    .86228E-04
  13  norm          .46540E-01    11.858        .51435E-01    .19543E-03
  14  norm          .10000E-03    10.522        .18142E-02** at limit **
  15  norm          13.585        9.0065        .10869E-03    .64220E-04
  16  norm          .10000E-03    5.3974        .14580E-02** at limit **
  17  norm          4.4597        7.3680        .19068E-03    .18858E-03
  18  Prefactor     .10000E-03    1.7356        .82660E-03** at limit **
  19  Prefactor     5.8465        30.300        .16579E-03    .12686E-04
  20  Prefactor     48.602        54.580        .57528E-04    .36164E-04
  21  Prefactor     .10000E-03    153.73        .18142E-02** at limit **
  22  Prefactor     .10000E-03    25.312        .18142E-02** at limit **
  23  Prefactor     .10000E-03    31.445        .18142E-02** at limit **
  24  Prefactor     .10000E-03    13.972        .18142E-02** at limit **
  25  Prefactor     .10000E-03    26.594        .18142E-02** at limit **
  26  norm          5.0174        2.1448        .59529E-04    .10351E-03
  27  Prefactor     .66105        11.531        .29099E-02    .12806E-03
  28  norm          .44604E-01    13.932        .71725E-01    .99401E-04
  29  Normalizat    .51898        .25123        .31497E-03    .10976E-03
  30  Prefactor     1.4918        .30947        .24656E-03    .24826E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 17.3243
  Prefactor  = 10.1643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.83967
  Prefactor  = 0.0001
  Prefactor  = 21.2418
  Prefactor  = 13.4365
  norm       = 0.0465401
  norm       = 0.0001
  norm       = 13.5853
  norm       = 0.0001
  norm       = 4.45969
  Prefactor  = 0.0001
  Prefactor  = 5.84653
  Prefactor  = 48.6017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.01741
  Prefactor  = 0.661047
  norm       = 0.0446036
  Normalizat = 0.518984
  Prefactor  = 1.49179
 **********
 **   18 **HESSE 
 **********

 FCN=   4146.603     FROM HESSE     STATUS=OK           578 CALLS     5164 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.324        6.4083        .19243E-04   -1.4875    
   2  Prefactor     10.164        10.299        .50273E-05   -1.5070    
   3  Prefactor     .10000E-03    2.6036        .39557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.408        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.990        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.624        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6111        .23874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8397        6.0358        .70731E-05   -1.5316    
  10  Prefactor     .10000E-03    63.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.242        42.296        .34757E-05   -1.4786    
  12  Prefactor     13.437        23.466        .43878E-05   -1.4975    
  13  norm          .46540E-01    11.538        .52285E-01   -1.5665    
  14  norm          .10000E-03    10.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.585        9.0035        .43478E-05   -1.4971    
  16  norm          .10000E-03    5.3975        .29160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.4597        7.3666        .76273E-05   -1.5286    
  18  Prefactor     .10000E-03    1.7356        .16532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.8465        30.277        .66317E-05   -1.5224    
  20  Prefactor     48.602        54.572        .11506E-04   -1.4313    
  21  Prefactor     .10000E-03    153.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.972        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.0174        2.1447        .23812E-05   -1.5260    
  27  Prefactor     .66105        11.499        .11639E-03   -1.5545    
  28  norm          .44604E-01    13.077        .75561E-01   -1.5666    
  29  Normalizat    .51898        .25118        .12599E-04   -1.1154    
  30  Prefactor     1.4918        .30962        .49312E-04   -.77770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24386e-10
Minuit parameter uncertainties:
  1  6.40854
  2  10.3011
  3  6.32132e-05
  4  2.59986e-05
  5  4.25025e-05
  6  5.75756e-05
  7  1.08327e-05
  8  1.01517e-05
  9  6.03678
  10  0.000295546
  11  42.356
  12  23.4819
  13  1.46429
  14  3.2136e-05
  15  9.00435
  16  2.03572e-05
  17  7.36813
  18  2.89346e-06
  19  26.6304
  20  54.6277
  21  0.000215769
  22  0.000220564
  23  3.61491e-05
  24  4.28278e-05
  25  5.56019e-05
  26  2.14477
  27  5.51503
  28  1.52607
  29  0.251728
  30  0.310015
Done.

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

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.344e+01  2.348e+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.492e+00  3.100e-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:  5.190e-01  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 196.008 37.071
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189626/likelihoodResults_417139201_417398401_4FGL_J1304.0+3704_daily_bin686.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) = 4146.59989727
delta logL = 0.00269513092007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4146.59719033
delta logL = 0.00540206917503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.509       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3004       1.0000          .0000       10.000    
     3 'Normalizat'    .52178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4888       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=   4146.597     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      259 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.501        31.492        .10170E-03   -.76012E-04
   2  Index         2.3003        1.3435        .89241E-02   -.39539E-04
   3  Normalizat    .52184        .24265        .31413E-03   -.69031E-03
   4  Prefactor     1.4888        .30721        .24676E-03   -.97119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5013
  Index      = 2.30032
  Normalizat = 0.521839
  Prefactor  = 1.48882
 **********
 **   18 **HESSE 
 **********

 FCN=   4146.597     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.501        29.502        .40682E-05   -1.4920    
   2  Index         2.3003        1.2604        .35696E-03   -.57036    
   3  Normalizat    .52184        .24257        .62827E-04   -1.1141    
   4  Prefactor     1.4888        .30713        .49353E-04   -.77853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53687e-09
Minuit parameter uncertainties:
  1  29.5294
  2  1.28006
  3  0.243064
  4  0.307514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189626': 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) = 4146.59719016
delta logL = 0.00540224281394

Extracting fit parameters...

4FGL J1304.0+3704
   Spectrum: PowerLaw
313    Prefactor:  1.550e+01  2.953e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.300e+00  1.280e+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.489e+00  3.075e-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:  5.218e-01  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.61
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/189626/cmap_HighResolution_417139201_417398401_4FGL_J1304.0+3704_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.98e-03', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-06 20:01:50.090848', job_id='189626', GAL2='1.49', fit_tolerance='1e-08', EG2='0.52', EG='0.52', time_epoch_completed='1630983710.09', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='1.49', dlogl='5.40e-03', ts2='0.61', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='686' AND source_name='4FGL J1304.0+3704' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 20:01:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 189626: <4FGL_J1304.0+3704_daily_bin686> in cluster <slac> Done

Job <4FGL_J1304.0+3704_daily_bin686> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 19:45:45 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 19:46:35 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:46:35 2021
Terminated at Mon Sep  6 20:01:50 2021
Results reported at Mon Sep  6 20:01:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.0+3704_daily_bin686 196.008 37.071 417139201 417398401 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 :                                   712.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             239.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            965 sec.

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

