/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 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7536
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1304.6-0348_daily_bin686
RA = 196.172, Dec = -3.8139
tmin = 417139201, tmax = 417398401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='212568', job_status='RUN', time_executed='2021-09-06 21:05:51.104023', time_epoch_executed='1630987551.1' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212568

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212568/ft1_4FGL_J1304.6-0348_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212568/ft2_4FGL_J1304.6-0348_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212568/ft1_4FGL_J1304.6-0348_daily_bin686.fits outfile=/scratch/kocevski/212568/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin686.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=417139201.0 tmax=417398401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.64
user 5.37
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212568/ft2_4FGL_J1304.6-0348_daily_bin686.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/212568/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin686.fits evtable="EVENTS" outfile="/scratch/kocevski/212568/ft1_filtered_4FGL_J1304.6-0348_daily_bin686.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212568/ft1_filtered_4FGL_J1304.6-0348_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/212568/ft2_4FGL_J1304.6-0348_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/212568/ltcube_417139201_417398401_4FGL_J1304.6-0348_daily_bin686.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/212568/ft2_4FGL_J1304.6-0348_daily_bin686.fits
.....................!
real 17.10
user 16.75
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212568/ft1_filtered_4FGL_J1304.6-0348_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/212568/ft2_4FGL_J1304.6-0348_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/212568/ltcube_417139201_417398401_4FGL_J1304.6-0348_daily_bin686.fits outfile=/scratch/kocevski/212568/expmap_417139201_417398401_4FGL_J1304.6-0348_daily_bin686.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/212568/ltcube_417139201_417398401_4FGL_J1304.6-0348_daily_bin686.fits
.....................!
real 191.51
user 186.47
sys 4.65

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/212568/ft1_filtered_4FGL_J1304.6-0348_daily_bin686.fits scfile=/scratch/kocevski/212568/ft2_4FGL_J1304.6-0348_daily_bin686.fits outfile=/scratch/kocevski/212568/cmap_417139201_417398401_4FGL_J1304.6-0348_daily_bin686.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=196.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212568/ft1_filtered_4FGL_J1304.6-0348_daily_bin686.fits scfile=/scratch/kocevski/212568/ft2_4FGL_J1304.6-0348_daily_bin686.fits outfile=/scratch/kocevski/212568/cmap_HighResolution_417139201_417398401_4FGL_J1304.6-0348_daily_bin686.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=196.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212568/ft1_filtered_4FGL_J1304.6-0348_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/212568/ft2_4FGL_J1304.6-0348_daily_bin686.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212568/Model_4FGL_J1304.6-0348_daily_bin686.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/212568/ft1_filtered_4FGL_J1304.6-0348_daily_bin686.fits.....................!
real 51.81
user 50.46
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/212568/ft1_filtered_4FGL_J1304.6-0348_daily_bin686.fits', '/scratch/kocevski/212568/ft2_4FGL_J1304.6-0348_daily_bin686.fits', expMap='/scratch/kocevski/212568/expmap_417139201_417398401_4FGL_J1304.6-0348_daily_bin686.fits', expCube='/scratch/kocevski/212568/ltcube_417139201_417398401_4FGL_J1304.6-0348_daily_bin686.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/212568/Model_4FGL_J1304.6-0348_daily_bin686.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/212568/ft1_filtered_4FGL_J1304.6-0348_daily_bin686.fits
Spacecraft file(s): /scratch/kocevski/212568/ft2_4FGL_J1304.6-0348_daily_bin686.fits
Exposure map: /scratch/kocevski/212568/expmap_417139201_417398401_4FGL_J1304.6-0348_daily_bin686.fits
Exposure cube: /scratch/kocevski/212568/ltcube_417139201_417398401_4FGL_J1304.6-0348_daily_bin686.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/212568/Model_4FGL_J1304.6-0348_daily_bin686.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0833       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3459       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11442E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21933E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0798       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4481       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4539       1.0000         .10000E-03   10000.    
     8 'Prefactor '    120.67       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8884       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10932E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1724       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.223       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.004       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1691       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10395E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1621       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1752       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=   6396.112     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2404 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0839        2.9717        .87175E-06    .31727E-03
   2  norm          1.3458        .63016        .10990E-06    .14187E-02
   3  Prefactor     .10007E-03    6.5867       -.13201E-05** at limit **
   4  Prefactor     .10136E-03    10.969        .17505E-05** at limit **
   5  norm          2.0796        1.5886        .15659E-06    .37431E-03
   6  Prefactor     5.4456        11.503        .13504E-05    .22659E-03
   7  Prefactor     3.5475        121.05       -.48079E-05    .16616E-05
   8  Prefactor     120.76        78.650        .13249E-05    .72430E-04
   9  norm          .10000E-03    43.582        .53276E-06** at limit **
  10  norm          1.8882        .39846       -.88308E-07   -.14068E-02
  11  Prefactor     .10000E-03    19.927       -.82113E-07** at limit **
  12  norm          .10000E-03    9.9251       -.55453E-06** at limit **
  13  norm          .10000E-03    6.4075       -.15565E-06** at limit **
  14  Prefactor     8.1722        9.3353       -.41151E-08    .36316E-04
  15  Prefactor     10.225        13.126        .89343E-08    .20774E-04
  16  Prefactor     15.010        9.9904        .20904E-07    .45696E-04
  17  Prefactor     .10000E-03    4.9129       -.87202E-07** at limit **
  18  norm          4.1694        2.0301        .19194E-07    .18013E-03
  19  norm          .10000E-03    1.1654       -.10347E-06** at limit **
  20  norm          .10000E-03    12.718       -.88430E-07** at limit **
  21  Normalizat    1.1620        .26080       -.10068E-05    .17587E-03
  22  Prefactor     1.1752        .17952        .17708E-05    .19497E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08385
  norm       = 1.34582
  Prefactor  = 0.000100066
  Prefactor  = 0.000101359
  norm       = 2.07964
  Prefactor  = 5.44563
  Prefactor  = 3.5475
  Prefactor  = 120.758
  norm       = 0.0001
  norm       = 1.88817
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.17221
  Prefactor  = 10.2245
  Prefactor  = 15.0099
  Prefactor  = 0.0001
  norm       = 4.16945
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.162
  Prefactor  = 1.17518
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.112     FROM HESSE     STATUS=OK           352 CALLS     2756 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0839        2.9415        .22072E-03   -1.5500    
   2  norm          1.3458        .62096        .41275E-04   -1.5476    
   3  Prefactor     .10007E-03    52.575        .37095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10136E-03    108.39        .42875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0796        1.5860        .84377E-04   -1.5420    
   6  Prefactor     5.4456        11.407        .17215E-03   -1.5241    
   7  Prefactor     3.5475        119.65        .21761E-03   -1.5331    
   8  Prefactor     120.76        78.940        .18318E-03   -1.3506    
   9  norm          .10000E-03    43.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8882        .40303        .20465E-04   -1.5433    
  11  Prefactor     .10000E-03    19.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.4194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1722        9.3278        .14024E-03   -1.5136    
  15  Prefactor     10.225        13.122        .12532E-03   -1.5068    
  16  Prefactor     15.010        9.9981        .10340E-03   -1.4933    
  17  Prefactor     .10000E-03    4.9158        .17313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1694        2.0278        .75003E-04   -1.5300    
  19  norm          .10000E-03    1.1741        .84335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    12.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1620        .30686        .33485E-03   -.87785    
  22  Prefactor     1.1752        .20878        .23810E-03   -.87099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30444e-08
Minuit parameter uncertainties:
  1  2.94185
  2  0.620959
  3  0.00372828
  4  0.024319
  5  1.58607
  6  11.4116
  7  41.2944
  8  79.0087
  9  8.52412e-06
  10  0.403026
  11  7.08387e-06
  12  4.41512e-05
  13  1.12443e-05
  14  9.32948
  15  13.1261
  16  9.99918
  17  5.13921e-06
  18  2.0278
  19  3.23226e-06
  20  9.46801e-06
  21  0.307338
  22  0.20893
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  7.084e-06  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.175e+00  2.089e-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.162e+00  3.073e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212568/likelihoodResults_417139201_417398401_4FGL_J1304.6-0348_daily_bin686.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6396.11205425
delta logL = -0.000238397376961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6396.11181827
delta logL = -2.42600253841e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14282E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3986       1.0000          .0000       10.000    
     3 'Normalizat'    1.1620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1752       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6396.112     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      283 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10240E-03    4.6492        .18142E-01** at limit **
   2  Index         2.3261        8.5483        .50000        .20178E-04
   3  Normalizat    1.1620        .32745E-02    .33486E-03   -.74352E-05
   4  Prefactor     1.1752        .23525E-02    .23810E-03   -.55864E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102398
  Index      = 2.32609
  Normalizat = 1.162
  Prefactor  = 1.17518
 **********
 **   18 **HESSE 
 **********

 FCN=   6396.112     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10240E-03    49.398        .31393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3261        8.8370        .50000       -.56425    
   3  Normalizat    1.1620        .10698E-01    .13394E-04   -.87785    
   4  Prefactor     1.1752        .76856E-02    .95242E-05   -.87099    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.00939e-09
Minuit parameter uncertainties:
  1  0.0217858
  2  150.259
  3  0.0106975
  4  0.0076856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212568': 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) = 6396.1118165
delta logL = -6.54282303003e-07

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.024e-04  2.179e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.326e+00  1.503e+02  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.175e+00  7.686e-03  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.162e+00  1.070e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/212568/cmap_HighResolution_417139201_417398401_4FGL_J1304.6-0348_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-06 21:17:38.134371', job_id='212568', GAL2='1.18', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630988258.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='-6.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='686' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:17:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 212568: <4FGL_J1304.6-0348_daily_bin686> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin686> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 21:05:26 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:05:33 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:05:33 2021
Terminated at Mon Sep  6 21:17:39 2021
Results reported at Mon Sep  6 21:17:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin686 196.172 -3.8139 417139201 417398401 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 :                                   704.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            733 sec.

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

