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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin587
RA = 196.172, Dec = -3.8139
tmin = 391478401, tmax = 391737601
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='211261', job_status='RUN', time_executed='2021-09-06 21:01:40.180833', time_epoch_executed='1630987300.18' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211261

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211261/ft1_4FGL_J1304.6-0348_daily_bin587.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211261/ft2_4FGL_J1304.6-0348_daily_bin587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211261/ft1_4FGL_J1304.6-0348_daily_bin587.fits outfile=/scratch/kocevski/211261/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin587.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=391478401.0 tmax=391737601.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 4.44
user 4.13
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/211261/ft2_4FGL_J1304.6-0348_daily_bin587.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211261/ft2_4FGL_J1304.6-0348_daily_bin587.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/211261/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin587.fits evtable="EVENTS" outfile="/scratch/kocevski/211261/ft1_filtered_4FGL_J1304.6-0348_daily_bin587.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.50
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211261/ft1_filtered_4FGL_J1304.6-0348_daily_bin587.fits" evtable="EVENTS" scfile=/scratch/kocevski/211261/ft2_4FGL_J1304.6-0348_daily_bin587.fits sctable="SC_DATA" outfile=/scratch/kocevski/211261/ltcube_391478401_391737601_4FGL_J1304.6-0348_daily_bin587.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/211261/ft2_4FGL_J1304.6-0348_daily_bin587.fits
.....................!
real 16.50
user 16.03
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211261/ft1_filtered_4FGL_J1304.6-0348_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/211261/ft2_4FGL_J1304.6-0348_daily_bin587.fits sctable="SC_DATA" expcube=/scratch/kocevski/211261/ltcube_391478401_391737601_4FGL_J1304.6-0348_daily_bin587.fits outfile=/scratch/kocevski/211261/expmap_391478401_391737601_4FGL_J1304.6-0348_daily_bin587.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/211261/ltcube_391478401_391737601_4FGL_J1304.6-0348_daily_bin587.fits
.....................!
real 193.27
user 187.86
sys 4.90

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1304.6-0348 @ 196.172 -3.8139

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/211261/ft1_filtered_4FGL_J1304.6-0348_daily_bin587.fits scfile=/scratch/kocevski/211261/ft2_4FGL_J1304.6-0348_daily_bin587.fits outfile=/scratch/kocevski/211261/cmap_391478401_391737601_4FGL_J1304.6-0348_daily_bin587.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.172 yref=-3.8139 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211261/ft1_filtered_4FGL_J1304.6-0348_daily_bin587.fits scfile=/scratch/kocevski/211261/ft2_4FGL_J1304.6-0348_daily_bin587.fits outfile=/scratch/kocevski/211261/cmap_HighResolution_391478401_391737601_4FGL_J1304.6-0348_daily_bin587.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.172 yref=-3.8139 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211261/ft1_filtered_4FGL_J1304.6-0348_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/211261/ft2_4FGL_J1304.6-0348_daily_bin587.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211261/Model_4FGL_J1304.6-0348_daily_bin587.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/211261/ft1_filtered_4FGL_J1304.6-0348_daily_bin587.fits.....................!
real 51.03
user 49.65
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/211261/ft1_filtered_4FGL_J1304.6-0348_daily_bin587.fits', '/scratch/kocevski/211261/ft2_4FGL_J1304.6-0348_daily_bin587.fits', expMap='/scratch/kocevski/211261/expmap_391478401_391737601_4FGL_J1304.6-0348_daily_bin587.fits', expCube='/scratch/kocevski/211261/ltcube_391478401_391737601_4FGL_J1304.6-0348_daily_bin587.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/211261/Model_4FGL_J1304.6-0348_daily_bin587.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1304.6-0348'

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  2.667e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/211261/ft1_filtered_4FGL_J1304.6-0348_daily_bin587.fits
Spacecraft file(s): /scratch/kocevski/211261/ft2_4FGL_J1304.6-0348_daily_bin587.fits
Exposure map: /scratch/kocevski/211261/expmap_391478401_391737601_4FGL_J1304.6-0348_daily_bin587.fits
Exposure cube: /scratch/kocevski/211261/ltcube_391478401_391737601_4FGL_J1304.6-0348_daily_bin587.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/211261/Model_4FGL_J1304.6-0348_daily_bin587.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) = 6239.70423995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6060       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6724       1.0000         .10000E-03   10000.    
     5 'norm      '    .81835       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3557       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12160E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.9820       1.0000         .10000E-03   10000.    
    10 'norm      '    .78741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.615       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1220       1.0000         .10000E-03   10000.    
    13 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6407       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4685       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.034       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4929       1.0000         .10000E-03   10000.    
    19 'norm      '    .22545E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    20.001       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1639       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0623       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6070E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6239.696     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2382 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9541       -.11827E-07** at limit **
   2  norm          1.6060        .62779        .30318E-07    .14244E-03
   3  Prefactor     .10000E-03    2.4841       -.79050E-08** at limit **
   4  Prefactor     2.6737        11.368        .11935E-06    .16151E-04
   5  norm          .81833        1.1301       -.12207E-07   -.18012E-03
   6  Prefactor     6.3530        7.0584        .10860E-06    .23062E-04
   7  Prefactor     .10000E-03    10.409       -.36930E-07** at limit **
   8  Prefactor     .10000E-03    30.593       -.21283E-05** at limit **
   9  norm          4.9825        20.614        .27537E-06    .67513E-05
  10  norm          .78736        .27947        .31759E-07    .79605E-03
  11  Prefactor     33.657        58.481       -.66885E-05    .34026E-04
  12  norm          2.1197        15.326        .94945E-05    .32643E-03
  13  norm          .10000E-03    6.3660        .33096E-07** at limit **
  14  Prefactor     7.6416        7.7805       -.38483E-07    .16387E-03
  15  Prefactor     .10000E-03    5.8710        .59026E-07** at limit **
  16  Prefactor     9.4525        11.091        .46857E-06    .29998E-03
  17  Prefactor     19.998        21.460        .19614E-05    .77982E-03
  18  norm          4.4926        2.1819       -.64264E-07    .22860E-03
  19  norm          .10063E-03    4.0012       -.31498E-05** at limit **
  20  norm          19.973        28.917        .24439E-05   -.32476E-04
  21  Normalizat    1.1641        .24777       -.11473E-05    .24490E-03
  22  Prefactor     1.0621        .16748        .35957E-06    .35527E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.60599
  Prefactor  = 0.0001
  Prefactor  = 2.6737
  norm       = 0.818332
  Prefactor  = 6.35302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.98249
  norm       = 0.787357
  Prefactor  = 33.6565
  norm       = 2.1197
  norm       = 0.0001
  Prefactor  = 7.64163
  Prefactor  = 0.0001
  Prefactor  = 9.4525
  Prefactor  = 19.9983
  norm       = 4.49264
  norm       = 0.000100629
  norm       = 19.9727
  Normalizat = 1.16411
  Prefactor  = 1.06214
 **********
 **   18 **HESSE 
 **********

 FCN=   6239.696     FROM HESSE     STATUS=OK           350 CALLS     2732 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0190        .21561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6060        .62436        .37151E-04   -1.5455    
   3  Prefactor     .10000E-03    2.4867        .12158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6737        11.364        .24929E-03   -1.5381    
   5  norm          .81833        .98385        .95177E-03   -1.5527    
   6  Prefactor     6.3530        7.0472        .15921E-03   -1.5204    
   7  Prefactor     .10000E-03    10.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.9825        20.521        .18017E-03   -1.5262    
  10  norm          .78736        .27917        .23313E-04   -1.5531    
  11  Prefactor     33.657        58.392        .69115E-04   -1.4547    
  12  norm          2.1197        15.580        .14155E-02   -1.5417    
  13  norm          .10000E-03    6.3943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.6416        7.7785        .14508E-03   -1.5155    
  15  Prefactor     .10000E-03    5.8766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4525        11.103        .13024E-03   -1.5093    
  17  Prefactor     19.998        20.326        .89485E-04   -1.4813    
  18  norm          4.4926        2.1841        .75982E-04   -1.5284    
  19  norm          .10063E-03    28.198        .22891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          19.973        28.876        .89559E-04   -1.4814    
  21  Normalizat    1.1641        .29381        .31166E-03   -.87719    
  22  Prefactor     1.0621        .19866        .23136E-03   -.90686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29585e-08
Minuit parameter uncertainties:
  1  1.82077e-06
  2  0.624366
  3  5.84717e-07
  4  11.0275
  5  0.983866
  6  7.0481
  7  6.93931e-07
  8  5.81602e-05
  9  20.2351
  10  0.279175
  11  58.4912
  12  11.4973
  13  2.63127e-06
  14  7.7795
  15  4.88855e-06
  16  11.1056
  17  20.3334
  18  2.18412
  19  0.00842431
  20  28.8963
  21  0.294226
  22  0.1988
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  3.366e+01  5.849e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  1.062e+00  1.988e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.164e+00  2.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211261/likelihoodResults_391478401_391737601_4FGL_J1304.6-0348_daily_bin587.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) = 6239.69471
delta logL = 0.00131945588782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6239.69402752
delta logL = 0.00200193667115

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6239.694     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      233 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.131        6020.5        .16668E-02   -.11993E-03
   2  Index         2.1125        5.6691        .18102       -.22317E-04
   3  Normalizat    1.1660        .92559E-01    .70385E-01   -.20118E-03
   4  Prefactor     1.0612        .52403E-01    .39288E-01   -.47066E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.1311
  Index      = 2.11251
  Normalizat = 1.166
  Prefactor  = 1.06125
 **********
 **   18 **HESSE 
 **********

 FCN=   6239.694     FROM HESSE     STATUS=OK            29 CALLS      262 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.131        75.539        .66673E-04   -1.4505    
   2  Index         2.1125        1.0473        .11031E-01   -.61566    
   3  Normalizat    1.1660        .27541        .31144E-03   -.87660    
   4  Prefactor     1.0612        .19660        .23144E-03   -.90715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2593e-10
Minuit parameter uncertainties:
  1  75.7395
  2  1.05916
  3  0.275755
  4  0.196735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211261': 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) = 6239.69402744
delta logL = 0.00200201072494

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  3.613e+01  7.574e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.113e+00  1.059e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  1.061e+00  1.967e-01  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
603   Normalization:  1.166e+00  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
Ra Dec: 196.172 -3.814

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/211261/cmap_HighResolution_391478401_391737601_4FGL_J1304.6-0348_daily_bin587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-06 21:12:55.259137', job_id='211261', GAL2='1.06', fit_tolerance='1e-08', EG2='1.17', EG='1.16', time_epoch_completed='1630987975.26', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.00e-03', ts2='0.45', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='587' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:12:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 211261: <4FGL_J1304.6-0348_daily_bin587> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin587> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 21:00:42 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:01:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 21:01:24 2021
Terminated at Mon Sep  6 21:12:56 2021
Results reported at Mon Sep  6 21:12:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin587 196.172 -3.8139 391478401 391737601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1304.6-0348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   672.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            734 sec.

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

