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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin189
RA = 196.172, Dec = -3.8139
tmin = 288316801, tmax = 288576001
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='208377', job_status='RUN', time_executed='2021-09-06 20:52:42.604071', time_epoch_executed='1630986762.6' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208377/ft1_4FGL_J1304.6-0348_daily_bin189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208377/ft2_4FGL_J1304.6-0348_daily_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208377/ft1_4FGL_J1304.6-0348_daily_bin189.fits outfile=/scratch/kocevski/208377/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin189.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=288316801.0 tmax=288576001.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.03
user 2.82
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208377/ft1_filtered_4FGL_J1304.6-0348_daily_bin189.fits" evtable="EVENTS" scfile=/scratch/kocevski/208377/ft2_4FGL_J1304.6-0348_daily_bin189.fits sctable="SC_DATA" outfile=/scratch/kocevski/208377/ltcube_288316801_288576001_4FGL_J1304.6-0348_daily_bin189.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/208377/ft2_4FGL_J1304.6-0348_daily_bin189.fits
.....................!
real 14.16
user 13.72
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208377/ft1_filtered_4FGL_J1304.6-0348_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/208377/ft2_4FGL_J1304.6-0348_daily_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/208377/ltcube_288316801_288576001_4FGL_J1304.6-0348_daily_bin189.fits outfile=/scratch/kocevski/208377/expmap_288316801_288576001_4FGL_J1304.6-0348_daily_bin189.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/208377/ltcube_288316801_288576001_4FGL_J1304.6-0348_daily_bin189.fits
.....................!
real 156.95
user 152.52
sys 4.10

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/208377/ft1_filtered_4FGL_J1304.6-0348_daily_bin189.fits scfile=/scratch/kocevski/208377/ft2_4FGL_J1304.6-0348_daily_bin189.fits outfile=/scratch/kocevski/208377/cmap_288316801_288576001_4FGL_J1304.6-0348_daily_bin189.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.49
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208377/ft1_filtered_4FGL_J1304.6-0348_daily_bin189.fits scfile=/scratch/kocevski/208377/ft2_4FGL_J1304.6-0348_daily_bin189.fits outfile=/scratch/kocevski/208377/cmap_HighResolution_288316801_288576001_4FGL_J1304.6-0348_daily_bin189.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.49
user 0.32
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208377/ft1_filtered_4FGL_J1304.6-0348_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/208377/ft2_4FGL_J1304.6-0348_daily_bin189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208377/Model_4FGL_J1304.6-0348_daily_bin189.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/208377/ft1_filtered_4FGL_J1304.6-0348_daily_bin189.fits.....................!
real 60.33
user 59.08
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88503       1.0000         .10000E-03   10000.    
     2 'norm      '    4.0361       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0261       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4670       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.865       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .91883       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.9212       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3658       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5227       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.563       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5339       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3308       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84343       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=   9675.087     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2333 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88521        2.2448        .79478E-06   -.19854E-03
   2  norm          4.0359        .76331       -.67408E-08   -.84256E-04
   3  Prefactor     12.666        8.6645        .57593E-06   -.20380E-03
   4  Prefactor     1.0132        6.0613        .75067E-07    .78470E-05
   5  norm          2.4670        1.4008        .26064E-07    .57105E-05
   6  Prefactor     .10000E-03    2.6403        .45989E-08** at limit **
   7  Prefactor     .10001E-03    31.286       -.38424E-05** at limit **
   8  Prefactor     41.868        40.644        .79122E-06    .63631E-04
   9  norm          .10000E-03    5.9353       -.18996E-07** at limit **
  10  norm          .91875        .24015       -.12040E-08   -.31519E-03
  11  Prefactor     .10001E-03    27.314        .38880E-05** at limit **
  12  norm          .10000E-03    4.4314        .11252E-07** at limit **
  13  norm          5.9215        6.3246        .65987E-07   -.26661E-04
  14  Prefactor     .10000E-03    1.8833        .14335E-07** at limit **
  15  Prefactor     7.3661        16.072        .35232E-05   -.18834E-03
  16  Prefactor     6.5232        6.5254        .19837E-06   -.67794E-04
  17  Prefactor     .10000E-03    7.9994       -.60188E-08** at limit **
  18  norm          12.563        2.0233        .10831E-07   -.56293E-04
  19  norm          1.5343        2.1222        .28766E-06   -.14766E-03
  20  norm          .10000E-03    16.423       -.38248E-06** at limit **
  21  Normalizat    1.3308        .19863       -.86362E-06    .86283E-05
  22  Prefactor     .84334        .12839       -.30922E-06   -.34500E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.885206
  norm       = 4.03594
  Prefactor  = 12.6663
  Prefactor  = 1.01321
  norm       = 2.46698
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 41.8685
  norm       = 0.0001
  norm       = 0.918753
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 5.92155
  Prefactor  = 0.0001
  Prefactor  = 7.36612
  Prefactor  = 6.52321
  Prefactor  = 0.0001
  norm       = 12.5631
  norm       = 1.53428
  norm       = 0.0001
  Normalizat = 1.33082
  Prefactor  = 0.84334
 **********
 **   18 **HESSE 
 **********

 FCN=   9675.087     FROM HESSE     STATUS=OK           348 CALLS     2681 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88521        2.2182        .23018E-03   -1.5520    
   2  norm          4.0359        .76591        .35180E-04   -1.5306    
   3  Prefactor     12.666        8.6920        .56274E-03   -1.4996    
   4  Prefactor     1.0132        18.839        .44776E-02   -1.5507    
   5  norm          2.4670        1.4020        .84304E-04   -1.5394    
   6  Prefactor     .10000E-03    2.6488        .15605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    33.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     41.868        41.015        .61955E-04   -1.4413    
   9  norm          .10000E-03    5.9376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .91875        .24183        .22210E-04   -1.5516    
  11  Prefactor     .10001E-03    29.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.4810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9215        6.3226        .16503E-03   -1.5221    
  14  Prefactor     .10000E-03    1.8871        .13181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.3661        16.542        .73891E-03   -1.5165    
  16  Prefactor     6.5232        6.5447        .15714E-03   -1.5197    
  17  Prefactor     .10000E-03    8.0396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.563        2.0283        .53322E-04   -1.4999    
  19  norm          1.5343        2.1017        .16297E-03   -1.5460    
  20  norm          .10000E-03    16.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3308        .23635        .29937E-03   -.82651    
  22  Prefactor     .84334        .15204        .25366E-03   -.98150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21056e-10
Minuit parameter uncertainties:
  1  2.21836
  2  0.765915
  3  8.69287
  4  8.74076
  5  1.40202
  6  5.00283e-07
  7  0.000911773
  8  41.0431
  9  2.42758e-06
  10  0.241831
  11  0.000906054
  12  1.72957e-08
  13  6.32333
  14  9.9079e-07
  15  16.5525
  16  6.54539
  17  6.20623e-07
  18  2.02836
  19  2.10181
  20  6.50366e-05
  21  0.236541
  22  0.152114
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  9.061e-04  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:  8.433e-01  1.521e-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.331e+00  2.365e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208377/likelihoodResults_288316801_288576001_4FGL_J1304.6-0348_daily_bin189.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) = 9675.08754321
delta logL = -0.000160903344295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9675.08738243
delta logL = -1.27218299895e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1038       1.0000          .0000       10.000    
     3 'Normalizat'    1.3308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84335       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=   9675.087     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1430.9        .90712E-02** at limit **
   2  Index         2.1085        6.0540        .50000       -.13893E-05
   3  Normalizat    1.3308        .36109E-01    .67670E-01   -.25646E-03
   4  Prefactor     .84334        .25128E-01    .44279E-01   -.39137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10854
  Normalizat = 1.33082
  Prefactor  = 0.843339
 **********
 **   18 **HESSE 
 **********

 FCN=   9675.087     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      260 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6589.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1085        8.2508        .50000       -.61663    
   3  Normalizat    1.3308        .63089E-01    .29937E-03   -.82651    
   4  Prefactor     .84334        .43931E-01    .25366E-03   -.98150    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.36874e-09
Minuit parameter uncertainties:
  1  0.00246903
  2  45.454
  3  0.063093
  4  0.0439329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208377': 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) = 9675.08738233
delta logL = -2.34322214965e-08

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.469e-03  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.109e+00  4.545e+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:  8.433e-01  4.393e-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.331e+00  6.309e-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/208377/cmap_HighResolution_288316801_288576001_4FGL_J1304.6-0348_daily_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-06 21:04:46.256943', job_id='208377', GAL2='0.84', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630987486.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-2.34e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='189' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:04:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 208377: <4FGL_J1304.6-0348_daily_bin189> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin189> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 20:50:32 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:50: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 20:50:35 2021
Terminated at Mon Sep  6 21:04:47 2021
Results reported at Mon Sep  6 21:04:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin189 196.172 -3.8139 288316801 288576001 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 :                                   720.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            855 sec.

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

