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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin234
RA = 196.172, Dec = -3.8139
tmin = 299980801, tmax = 300240001
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='208446', job_status='RUN', time_executed='2021-09-06 20:51:01.005794', time_epoch_executed='1630986661.01' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208446

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208446/ft1_4FGL_J1304.6-0348_daily_bin234.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208446/ft2_4FGL_J1304.6-0348_daily_bin234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208446/ft1_4FGL_J1304.6-0348_daily_bin234.fits outfile=/scratch/kocevski/208446/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin234.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=299980801.0 tmax=300240001.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.41
user 3.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208446/ft1_filtered_4FGL_J1304.6-0348_daily_bin234.fits" evtable="EVENTS" scfile=/scratch/kocevski/208446/ft2_4FGL_J1304.6-0348_daily_bin234.fits sctable="SC_DATA" outfile=/scratch/kocevski/208446/ltcube_299980801_300240001_4FGL_J1304.6-0348_daily_bin234.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/208446/ft2_4FGL_J1304.6-0348_daily_bin234.fits
.....................!
real 16.14
user 15.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208446/ft1_filtered_4FGL_J1304.6-0348_daily_bin234.fits evtable="EVENTS" scfile=/scratch/kocevski/208446/ft2_4FGL_J1304.6-0348_daily_bin234.fits sctable="SC_DATA" expcube=/scratch/kocevski/208446/ltcube_299980801_300240001_4FGL_J1304.6-0348_daily_bin234.fits outfile=/scratch/kocevski/208446/expmap_299980801_300240001_4FGL_J1304.6-0348_daily_bin234.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/208446/ltcube_299980801_300240001_4FGL_J1304.6-0348_daily_bin234.fits
.....................!
real 192.79
user 186.78
sys 5.34

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/208446/ft1_filtered_4FGL_J1304.6-0348_daily_bin234.fits scfile=/scratch/kocevski/208446/ft2_4FGL_J1304.6-0348_daily_bin234.fits outfile=/scratch/kocevski/208446/cmap_299980801_300240001_4FGL_J1304.6-0348_daily_bin234.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208446/ft1_filtered_4FGL_J1304.6-0348_daily_bin234.fits scfile=/scratch/kocevski/208446/ft2_4FGL_J1304.6-0348_daily_bin234.fits outfile=/scratch/kocevski/208446/cmap_HighResolution_299980801_300240001_4FGL_J1304.6-0348_daily_bin234.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.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208446/ft1_filtered_4FGL_J1304.6-0348_daily_bin234.fits evtable="EVENTS" scfile=/scratch/kocevski/208446/ft2_4FGL_J1304.6-0348_daily_bin234.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208446/Model_4FGL_J1304.6-0348_daily_bin234.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/208446/ft1_filtered_4FGL_J1304.6-0348_daily_bin234.fits.....................!
real 57.26
user 55.80
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62128E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3372       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.721       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8313       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.654       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .67601       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.658       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1296       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4104       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.778       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.479       1.0000         .10000E-03   10000.    
    18 'norm      '    23.238       1.0000         .10000E-03   10000.    
    19 'norm      '    .81644E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    40.088       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83334       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2185       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=   6880.036     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2471 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1.8440        .61950E-06** at limit **
   2  norm          2.3371        .71051        .16611E-07   -.37236E-03
   3  Prefactor     .10000E-03    5.4707        .37197E-07** at limit **
   4  Prefactor     13.714        11.640       -.11763E-06   -.26604E-04
   5  norm          4.8312        1.9798        .95759E-07    .19825E-03
   6  Prefactor     .10000E-03    6.2533        .14656E-06** at limit **
   7  Prefactor     .10000E-03    14.455        .26231E-06** at limit **
   8  Prefactor     49.660        48.845       -.75207E-06   -.27153E-04
   9  norm          .10000E-03    7.2796       -.24898E-06** at limit **
  10  norm          .67602        .27443       -.23745E-07   -.22947E-03
  11  Prefactor     12.611        87.824        .10003E-04    .34040E-04
  12  norm          3.1306        9.0328        .43737E-05    .55998E-03
  13  norm          .10000E-03    10.977       -.22299E-06** at limit **
  14  Prefactor     .10000E-03    4.0180       -.55878E-08** at limit **
  15  Prefactor     6.4111        10.856       -.44389E-07   -.13160E-05
  16  Prefactor     11.779        11.321        .21650E-06    .20250E-03
  17  Prefactor     24.591        34.008       -.39064E-06    .38877E-03
  18  norm          23.238        3.2430       -.32100E-07    .16801E-03
  19  norm          .10005E-03    5.6346       -.27206E-05** at limit **
  20  norm          40.044        40.212        .38470E-05    .78089E-04
  21  Normalizat    .83341        .24395       -.11513E-05    .46817E-04
  22  Prefactor     1.2185        .16783       -.31940E-06    .10352E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100013
  norm       = 2.33709
  Prefactor  = 0.0001
  Prefactor  = 13.7142
  norm       = 4.83119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.6596
  norm       = 0.0001
  norm       = 0.67602
  Prefactor  = 12.6111
  norm       = 3.13065
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.41111
  Prefactor  = 11.779
  Prefactor  = 24.5905
  norm       = 23.2377
  norm       = 0.000100054
  norm       = 40.0438
  Normalizat = 0.833408
  Prefactor  = 1.21854
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.036     FROM HESSE     STATUS=OK           342 CALLS     2813 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    15.664        .21366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3371        .70952        .36373E-04   -1.5402    
   3  Prefactor     .10000E-03    5.5109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.714        11.640        .10813E-03   -1.4967    
   5  norm          4.8312        1.9814        .35625E-03   -1.5268    
   6  Prefactor     .10000E-03    6.4558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.660        49.020        .56910E-04   -1.4297    
   9  norm          .10000E-03    7.2818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .67602        .27455        .24865E-04   -1.5544    
  11  Prefactor     12.611        88.428        .11259E-03   -1.4998    
  12  norm          3.1306        9.3500        .11459E-02   -1.5354    
  13  norm          .10000E-03    11.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0278        .16235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4111        10.847        .15852E-03   -1.5202    
  16  Prefactor     11.779        11.308        .11673E-03   -1.5021    
  17  Prefactor     24.591        28.215        .80963E-04   -1.4716    
  18  norm          23.238        3.2449        .52784E-04   -1.4743    
  19  norm          .10005E-03    11.570        .26569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          40.044        40.418        .63308E-04   -1.4442    
  21  Normalizat    .83341        .28251        .38476E-03   -.98841    
  22  Prefactor     1.2185        .19533        .23433E-03   -.85763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.59863e-09
Minuit parameter uncertainties:
  1  0.000901289
  2  0.70952
  3  6.76316e-06
  4  11.6418
  5  1.98144
  6  1.00382e-05
  7  1.27801e-05
  8  49.06
  9  8.21619e-06
  10  0.274549
  11  66.9297
  12  9.35432
  13  3.68518e-06
  14  5.54666e-06
  15  10.8501
  16  11.3103
  17  28.2304
  18  3.24497
  19  0.00157704
  20  40.4454
  21  0.283015
  22  0.195442
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.261e+01  6.693e+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.219e+00  1.954e-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:  8.334e-01  2.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/208446/likelihoodResults_299980801_300240001_4FGL_J1304.6-0348_daily_bin234.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) = 6879.90560995
delta logL = 0.129988892744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6879.88391987
delta logL = 0.151678969587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7160       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1051       1.0000          .0000       10.000    
     3 'Normalizat'    .79852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2316       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6879.884     FROM MIGRAD    STATUS=FAILED       109 CALLS      294 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5944        891.41        .77417E-03   -.16593E-03
   2  Index         3.1131        5.4965        .87219E-02    .64782E-03
   3  Normalizat    .79776        .23747        .39237E-03   -.80635E-04
   4  Prefactor     1.2318        .16106        .23316E-03   -.13967E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6879.884     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      381 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5944        891.41        .43168E-03   -.16593E-03
   2  Index         3.1131        5.4965        .17978E-02    .64782E-03
   3  Normalizat    .79776        .23747        .22296E-03   -.80635E-04
   4  Prefactor     1.2318        .16106        .14443E-03   -.13967E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6879.884     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      410 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5945        76.574        .30967E-04   -.14714E-03
   2  Index         3.1131        2.6989        .17444E-02   -.43542E-04
   3  Normalizat    .79776        .28206        .15695E-04   -.73884E-04
   4  Prefactor     1.2318        .19894        .46633E-04   -.12633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.59446
  Index      = 3.11312
  Normalizat = 0.797761
  Prefactor  = 1.23184
 **********
 **   18 **HESSE 
 **********

 FCN=   6879.884     FROM HESSE     STATUS=OK            23 CALLS      433 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5945        42.126        .61934E-05   -1.5194    
   2  Index         3.1131        2.0585        .69775E-04   -.38696    
   3  Normalizat    .79776        .27948        .31390E-05   -1.0015    
   4  Prefactor     1.2318        .19730        .93266E-05   -.85357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27627e-11
Minuit parameter uncertainties:
  1  33.3686
  2  2.13313
  3  0.279985
  4  0.197415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208446': 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) = 6879.883908
delta logL = 0.151690840614

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  6.594e+00  3.337e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  3.113e+00  2.133e+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.232e+00  1.974e-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:  7.978e-01  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/208446/cmap_HighResolution_299980801_300240001_4FGL_J1304.6-0348_daily_bin234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-06 21:03:18.695877', job_id='208446', GAL2='1.23', fit_tolerance='1e-08', EG2='0.80', EG='0.83', time_epoch_completed='1630987398.7', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.52e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='234' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:03:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 208446: <4FGL_J1304.6-0348_daily_bin234> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin234> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 20:50:38 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:50:44 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:50:44 2021
Terminated at Mon Sep  6 21:03:19 2021
Results reported at Mon Sep  6 21:03:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin234 196.172 -3.8139 299980801 300240001 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 :                                   733.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            761 sec.

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

