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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin971
RA = 196.172, Dec = -3.8139
tmin = 491011201, tmax = 491270401
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='214902', job_status='RUN', time_executed='2021-09-06 21:13:40.574070', time_epoch_executed='1630988020.57' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214902

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214902/ft1_4FGL_J1304.6-0348_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214902/ft2_4FGL_J1304.6-0348_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214902/ft1_4FGL_J1304.6-0348_daily_bin971.fits outfile=/scratch/kocevski/214902/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin971.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=491011201.0 tmax=491270401.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.68
user 3.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214902/ft2_4FGL_J1304.6-0348_daily_bin971.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/214902/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin971.fits evtable="EVENTS" outfile="/scratch/kocevski/214902/ft1_filtered_4FGL_J1304.6-0348_daily_bin971.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214902/ft1_filtered_4FGL_J1304.6-0348_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/214902/ft2_4FGL_J1304.6-0348_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/214902/ltcube_491011201_491270401_4FGL_J1304.6-0348_daily_bin971.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/214902/ft2_4FGL_J1304.6-0348_daily_bin971.fits
.....................!
real 15.78
user 15.35
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214902/ft1_filtered_4FGL_J1304.6-0348_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/214902/ft2_4FGL_J1304.6-0348_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/214902/ltcube_491011201_491270401_4FGL_J1304.6-0348_daily_bin971.fits outfile=/scratch/kocevski/214902/expmap_491011201_491270401_4FGL_J1304.6-0348_daily_bin971.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/214902/ltcube_491011201_491270401_4FGL_J1304.6-0348_daily_bin971.fits
.....................!
real 193.64
user 187.46
sys 5.59

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/214902/ft1_filtered_4FGL_J1304.6-0348_daily_bin971.fits scfile=/scratch/kocevski/214902/ft2_4FGL_J1304.6-0348_daily_bin971.fits outfile=/scratch/kocevski/214902/cmap_491011201_491270401_4FGL_J1304.6-0348_daily_bin971.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.70
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214902/ft1_filtered_4FGL_J1304.6-0348_daily_bin971.fits scfile=/scratch/kocevski/214902/ft2_4FGL_J1304.6-0348_daily_bin971.fits outfile=/scratch/kocevski/214902/cmap_HighResolution_491011201_491270401_4FGL_J1304.6-0348_daily_bin971.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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214902/ft1_filtered_4FGL_J1304.6-0348_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/214902/ft2_4FGL_J1304.6-0348_daily_bin971.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214902/Model_4FGL_J1304.6-0348_daily_bin971.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/214902/ft1_filtered_4FGL_J1304.6-0348_daily_bin971.fits.....................!
real 66.25
user 64.83
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/214902/ft1_filtered_4FGL_J1304.6-0348_daily_bin971.fits', '/scratch/kocevski/214902/ft2_4FGL_J1304.6-0348_daily_bin971.fits', expMap='/scratch/kocevski/214902/expmap_491011201_491270401_4FGL_J1304.6-0348_daily_bin971.fits', expCube='/scratch/kocevski/214902/ltcube_491011201_491270401_4FGL_J1304.6-0348_daily_bin971.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/214902/Model_4FGL_J1304.6-0348_daily_bin971.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/214902/ft1_filtered_4FGL_J1304.6-0348_daily_bin971.fits
Spacecraft file(s): /scratch/kocevski/214902/ft2_4FGL_J1304.6-0348_daily_bin971.fits
Exposure map: /scratch/kocevski/214902/expmap_491011201_491270401_4FGL_J1304.6-0348_daily_bin971.fits
Exposure cube: /scratch/kocevski/214902/ltcube_491011201_491270401_4FGL_J1304.6-0348_daily_bin971.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/214902/Model_4FGL_J1304.6-0348_daily_bin971.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) = 8452.69442359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4081       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7365       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0245       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .58875       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .38383       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4644       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9748       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.830       1.0000         .10000E-03   10000.    
    18 'norm      '    .10103       1.0000         .10000E-03   10000.    
    19 'norm      '    12.378       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5546       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92827       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=   8452.686     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2381 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4086        2.8515        .91306E-02    .11977E-02
   2  norm          1.7365        .64145        .79613E-02    .50999E-03
   3  Prefactor     8.0245        6.9612        .35385E-02   -.54484E-04
   4  Prefactor     .58840        4.3675        .61907E-01    .86520E-03
   5  norm          .10000E-03    .60668        .90712E-02** at limit **
   6  Prefactor     .10000E-03    2.5926        .90712E-02** at limit **
   7  Prefactor     .10000E-03    40.756        .90712E-02** at limit **
   8  Prefactor     .10000E-03    12.704        .90712E-02** at limit **
   9  norm          .10000E-03    16.189        .90712E-02** at limit **
  10  norm          .38379        .17226        .54940E-02    .83877E-03
  11  Prefactor     .10001E-03    72.599        .90712E-02** at limit **
  12  norm          .10000E-03    4.9505        .90712E-02** at limit **
  13  norm          .10000E-03    5.2318        .90712E-02** at limit **
  14  Prefactor     .10000E-03    3.9319        .90712E-02** at limit **
  15  Prefactor     7.4638        9.2613        .36698E-02    .37949E-04
  16  Prefactor     6.9740        7.0383        .37976E-02    .32850E-03
  17  Prefactor     36.818        25.640        .16510E-02    .31786E-02
  18  norm          .10244        .57237        .43088E-01    .86316E-03
  19  norm          12.381        5.7779        .28464E-02    .88820E-03
  20  norm          .10000E-03    7.8255        .90712E-02** at limit **
  21  Normalizat    1.5547        .20847        .64083E-01    .79290E-05
  22  Prefactor     .92813        .14080        .45364E-01    .12135E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40856
  norm       = 1.73648
  Prefactor  = 8.02447
  Prefactor  = 0.5884
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.383786
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.46381
  Prefactor  = 6.97396
  Prefactor  = 36.8184
  norm       = 0.10244
  norm       = 12.3807
  norm       = 0.0001
  Normalizat = 1.55471
  Prefactor  = 0.92813
 **********
 **   18 **HESSE 
 **********

 FCN=   8452.686     FROM HESSE     STATUS=OK           346 CALLS     2727 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4086        2.8278        .21301E-03   -1.5471    
   2  norm          1.7365        .64019        .42280E-04   -1.5444    
   3  Prefactor     8.0245        6.9626        .14154E-03   -1.5141    
   4  Prefactor     .58840        11.122        .36855E-02   -1.5555    
   5  norm          .10000E-03    .62037        .69859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6015        .14454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    16.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .38379        .17096        .24469E-04   -1.5584    
  11  Prefactor     .10001E-03    73.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.0038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.2779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9608        .17799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4638        9.2642        .14679E-03   -1.5161    
  16  Prefactor     6.9740        7.0403        .15191E-03   -1.5180    
  17  Prefactor     36.818        25.822        .66039E-04   -1.4494    
  18  norm          .10244        4.0552        .13099E-02   -1.5644    
  19  norm          12.381        5.8177        .11386E-03   -1.5004    
  20  norm          .10000E-03    7.8259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5547        .25023        .28344E-03   -.76253    
  22  Prefactor     .92813        .16822        .24844E-03   -.95165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38813e-08
Minuit parameter uncertainties:
  1  2.82802
  2  0.64019
  3  6.96328
  4  5.11702
  5  1.16747e-07
  6  3.92779e-08
  7  0.000244265
  8  1.15058e-05
  9  2.63964e-05
  10  0.170958
  11  0.00126222
  12  1.63798e-06
  13  3.15525e-06
  14  1.07287e-07
  15  9.26595
  16  7.04111
  17  25.8298
  18  1.28852
  19  5.81793
  20  2.55474e-06
  21  0.250435
  22  0.168316
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.262e-03  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:  9.281e-01  1.683e-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.555e+00  2.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 6.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/214902/likelihoodResults_491011201_491270401_4FGL_J1304.6-0348_daily_bin971.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) = 8452.68606928
delta logL = -6.50666388538e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8452.68600424
delta logL = -3.25380824506e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2234       1.0000          .0000       10.000    
     3 'Normalizat'    1.5547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92813       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=   8452.686     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8394.3        .90712E-02** at limit **
   2  Index         2.2136        7.3268        .50000        .10761E-05
   3  Normalizat    1.5547        .72573E-01    .64083E-01    .78231E-05
   4  Prefactor     .92813        .51075E-01    .45363E-01    .18286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21357
  Normalizat = 1.5547
  Prefactor  = 0.92813
 **********
 **   18 **HESSE 
 **********

 FCN=   8452.686     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7424.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2136        7.2574        .50000       -.59111    
   3  Normalizat    1.5547        .52082E-01    .28344E-03   -.76253    
   4  Prefactor     .92813        .36689E-01    .24844E-03   -.95165    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01722e-10
Minuit parameter uncertainties:
  1  2.8873e-05
  2  38.1393
  3  0.0520833
  4  0.0366901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214902': 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) = 8452.68600422
delta logL = -8.83846951183e-09

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.887e-05  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.214e+00  3.814e+01  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:  9.281e-01  3.669e-02  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.555e+00  5.208e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/214902/cmap_HighResolution_491011201_491270401_4FGL_J1304.6-0348_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-03', job_status='DONE', photon_flux_upper_limit='6.60e-08', time_completed='2021-09-06 21:27:07.039992', job_id='214902', GAL2='0.93', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1630988827.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-8.84e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='971' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:27:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 214902: <4FGL_J1304.6-0348_daily_bin971> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin971> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 21:10:45 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:11:40 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:11:40 2021
Terminated at Mon Sep  6 21:27:07 2021
Results reported at Mon Sep  6 21:27:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin971 196.172 -3.8139 491011201 491270401 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 :                                   799.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            982 sec.

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

