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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin935
RA = 196.172, Dec = -3.8139
tmin = 481680001, tmax = 481939201
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='212949', job_status='RUN', time_executed='2021-09-06 21:06:42.031339', time_epoch_executed='1630987602.03' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='935'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212949/ft1_4FGL_J1304.6-0348_daily_bin935.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212949/ft2_4FGL_J1304.6-0348_daily_bin935.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212949/ft1_4FGL_J1304.6-0348_daily_bin935.fits outfile=/scratch/kocevski/212949/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin935.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=481680001.0 tmax=481939201.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.63
user 3.42
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212949/ft1_filtered_4FGL_J1304.6-0348_daily_bin935.fits" evtable="EVENTS" scfile=/scratch/kocevski/212949/ft2_4FGL_J1304.6-0348_daily_bin935.fits sctable="SC_DATA" outfile=/scratch/kocevski/212949/ltcube_481680001_481939201_4FGL_J1304.6-0348_daily_bin935.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/212949/ft2_4FGL_J1304.6-0348_daily_bin935.fits
.....................!
real 13.34
user 13.00
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212949/ft1_filtered_4FGL_J1304.6-0348_daily_bin935.fits evtable="EVENTS" scfile=/scratch/kocevski/212949/ft2_4FGL_J1304.6-0348_daily_bin935.fits sctable="SC_DATA" expcube=/scratch/kocevski/212949/ltcube_481680001_481939201_4FGL_J1304.6-0348_daily_bin935.fits outfile=/scratch/kocevski/212949/expmap_481680001_481939201_4FGL_J1304.6-0348_daily_bin935.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/212949/ltcube_481680001_481939201_4FGL_J1304.6-0348_daily_bin935.fits
.....................!
real 191.08
user 186.32
sys 4.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/212949/ft1_filtered_4FGL_J1304.6-0348_daily_bin935.fits scfile=/scratch/kocevski/212949/ft2_4FGL_J1304.6-0348_daily_bin935.fits outfile=/scratch/kocevski/212949/cmap_481680001_481939201_4FGL_J1304.6-0348_daily_bin935.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212949/ft1_filtered_4FGL_J1304.6-0348_daily_bin935.fits scfile=/scratch/kocevski/212949/ft2_4FGL_J1304.6-0348_daily_bin935.fits outfile=/scratch/kocevski/212949/cmap_HighResolution_481680001_481939201_4FGL_J1304.6-0348_daily_bin935.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212949/ft1_filtered_4FGL_J1304.6-0348_daily_bin935.fits evtable="EVENTS" scfile=/scratch/kocevski/212949/ft2_4FGL_J1304.6-0348_daily_bin935.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212949/Model_4FGL_J1304.6-0348_daily_bin935.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/212949/ft1_filtered_4FGL_J1304.6-0348_daily_bin935.fits.....................!
real 70.50
user 69.15
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1580       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0745       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9132       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.069       1.0000         .10000E-03   10000.    
     5 'norm      '    1.0941       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15060E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.379       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2505       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .27193E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .23307E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9979       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20793E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.448       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0688       1.0000         .10000E-03   10000.    
    19 'norm      '    16.229       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1584       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94309       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=   9208.395     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2418 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1580        1.1820       -.73568E-08    .27293E-04
   2  norm          2.0745        .59360        .31858E-07    .60740E-03
   3  Prefactor     5.9131        5.1663        .29684E-07    .26583E-04
   4  Prefactor     18.071        10.473        .19859E-06   -.31714E-04
   5  norm          1.0939        1.1899        .85155E-07    .22562E-03
   6  Prefactor     .10000E-03    4.2677        .15307E-06** at limit **
   7  Prefactor     .10001E-03    188.06       -.12448E-05** at limit **
   8  Prefactor     .10000E-03    23.386       -.11061E-06** at limit **
   9  norm          12.373        18.671       -.29764E-06   -.39300E-04
  10  norm          2.2503        .30624       -.42565E-07   -.80740E-02
  11  Prefactor     .10006E-03    341.47        .12806E-04** at limit **
  12  norm          .10000E-03    14.329       -.60191E-06** at limit **
  13  norm          1.9978        4.9279        .60165E-05   -.24883E-04
  14  Prefactor     .10000E-03    7.3934       -.21913E-07** at limit **
  15  Prefactor     .10002E-03    10.035       -.14714E-05** at limit **
  16  Prefactor     .10000E-03    5.8029       -.59718E-07** at limit **
  17  Prefactor     29.459        28.361        .23142E-06   -.10024E-04
  18  norm          2.0692        1.2498        .31868E-07   -.18346E-03
  19  norm          16.226        6.4637        .12400E-07    .20918E-04
  20  norm          .10000E-03    11.337       -.24601E-08** at limit **
  21  Normalizat    1.1582        .19484       -.22386E-06   -.33165E-03
  22  Prefactor     .94315        .13042       -.73366E-06   -.41110E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15804
  norm       = 2.07451
  Prefactor  = 5.91313
  Prefactor  = 18.0707
  norm       = 1.09393
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 12.373
  norm       = 2.25028
  Prefactor  = 0.000100059
  norm       = 0.0001
  norm       = 1.99776
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 29.4592
  norm       = 2.06923
  norm       = 16.2264
  norm       = 0.0001
  Normalizat = 1.15822
  Prefactor  = 0.943146
 **********
 **   18 **HESSE 
 **********

 FCN=   9208.395     FROM HESSE     STATUS=OK           344 CALLS     2762 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1580        1.2024        .10282E-03   -1.5493    
   2  norm          2.0745        .59218        .37474E-04   -1.5420    
   3  Prefactor     5.9131        5.1676        .16514E-03   -1.5222    
   4  Prefactor     18.071        10.478        .94222E-04   -1.4858    
   5  norm          1.0939        1.1614        .10447E-03   -1.5499    
   6  Prefactor     .10000E-03    4.3317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    194.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.373        18.666        .11385E-03   -1.5004    
  10  norm          2.2503        .30849        .18544E-04   -1.5408    
  11  Prefactor     .10006E-03    346.45        .39865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9978        4.9347        .14652E-02   -1.5425    
  14  Prefactor     .10000E-03    7.6511        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    56.884        .57297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.459        28.667        .73831E-04   -1.4622    
  18  norm          2.0692        1.2468        .79252E-04   -1.5420    
  19  norm          16.226        6.5309        .99420E-04   -1.4902    
  20  norm          .10000E-03    11.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1582        .22666        .31174E-03   -.87904    
  22  Prefactor     .94315        .15271        .24072E-03   -.94649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39595e-09
Minuit parameter uncertainties:
  1  1.20245
  2  0.592179
  3  5.16801
  4  10.4786
  5  1.16139
  6  2.2966e-05
  7  0.00335471
  8  2.42806e-05
  9  18.6752
  10  0.308486
  11  0.009082
  12  0.000123057
  13  4.93575
  14  4.32611e-06
  15  0.00213075
  16  1.89209e-06
  17  28.6803
  18  1.24686
  19  6.53122
  20  2.89472e-06
  21  0.226848
  22  0.152779
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.001e-04  9.082e-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.431e-01  1.528e-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.158e+00  2.268e-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: 7.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212949/likelihoodResults_481680001_481939201_4FGL_J1304.6-0348_daily_bin935.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) = 9208.39466715
delta logL = -1.36190228659e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9208.3362643
delta logL = 0.0583892259237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4165       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0320       1.0000          .0000       10.000    
     3 'Normalizat'    1.1416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94832       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9208.336     FROM MIGRAD    STATUS=FAILED        83 CALLS      311 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4172        1424.3        .21886E-03    .17007E-03
   2  Index         3.0323        7.7121        .81976E-02    .16817E-03
   3  Normalizat    1.1415        .21951        .31365E-03    .41040E-03
   4  Prefactor     .94839        .15763        .24009E-03    .39514E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9208.336     FROM SIMPLEX   STATUS=UNCHANGED    100 CALLS      411 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4172        1424.3        .40850E-03    .17007E-03
   2  Index         3.0323        7.7121        .23829E-02    .16817E-03
   3  Normalizat    1.1415        .21951        .86077E-04    .41040E-03
   4  Prefactor     .94839        .15763        .15900E-03    .39514E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9208.336     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      441 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4184        32.301        .87542E-05    .44102E-03
   2  Index         3.0322        2.2590        .32790E-03    .97425E-04
   3  Normalizat    1.1415        .21995        .62730E-04    .43989E-03
   4  Prefactor     .94839        .15274        .48018E-04    .42370E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.41842
  Index      = 3.03215
  Normalizat = 1.1415
  Prefactor  = 0.94839
 **********
 **   18 **HESSE 
 **********

 FCN=   9208.336     FROM HESSE     STATUS=OK            23 CALLS      464 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4184        30.842        .17508E-05   -1.5338    
   2  Index         3.0322        2.2123        .13116E-04   -.40451    
   3  Normalizat    1.1415        .21994        .12546E-04   -.88430    
   4  Prefactor     .94839        .15273        .96037E-05   -.94470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71258e-10
Minuit parameter uncertainties:
  1  20.5498
  2  2.30803
  3  0.220121
  4  0.152803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212949': 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) = 9208.33626412
delta logL = 0.0583894034644

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  3.418e+00  2.055e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  3.032e+00  2.308e+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:  9.484e-01  1.528e-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.142e+00  2.201e-01  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/212949/cmap_HighResolution_481680001_481939201_4FGL_J1304.6-0348_daily_bin935.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='7.94e-08', time_completed='2021-09-06 21:21:20.461618', job_id='212949', GAL2='0.95', fit_tolerance='1e-08', EG2='1.14', EG='1.16', time_epoch_completed='1630988480.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='5.84e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='935' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:21:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 212949: <4FGL_J1304.6-0348_daily_bin935> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin935> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 21:06:00 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:06:31 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:06:31 2021
Terminated at Mon Sep  6 21:21:21 2021
Results reported at Mon Sep  6 21:21:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin935 196.172 -3.8139 481680001 481939201 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 :                                   871.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            921 sec.

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

