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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin330
RA = 196.172, Dec = -3.8139
tmin = 324864001, tmax = 325123201
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='209668', job_status='RUN', time_executed='2021-09-06 20:55:50.217501', time_epoch_executed='1630986950.22' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209668/ft1_4FGL_J1304.6-0348_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209668/ft2_4FGL_J1304.6-0348_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209668/ft1_4FGL_J1304.6-0348_daily_bin330.fits outfile=/scratch/kocevski/209668/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin330.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=324864001.0 tmax=325123201.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.67
user 5.41
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209668/ft1_filtered_4FGL_J1304.6-0348_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/209668/ft2_4FGL_J1304.6-0348_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/209668/ltcube_324864001_325123201_4FGL_J1304.6-0348_daily_bin330.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/209668/ft2_4FGL_J1304.6-0348_daily_bin330.fits
.....................!
real 14.04
user 13.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209668/ft1_filtered_4FGL_J1304.6-0348_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/209668/ft2_4FGL_J1304.6-0348_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/209668/ltcube_324864001_325123201_4FGL_J1304.6-0348_daily_bin330.fits outfile=/scratch/kocevski/209668/expmap_324864001_325123201_4FGL_J1304.6-0348_daily_bin330.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/209668/ltcube_324864001_325123201_4FGL_J1304.6-0348_daily_bin330.fits
.....................!
real 191.58
user 187.20
sys 3.97

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/209668/ft1_filtered_4FGL_J1304.6-0348_daily_bin330.fits scfile=/scratch/kocevski/209668/ft2_4FGL_J1304.6-0348_daily_bin330.fits outfile=/scratch/kocevski/209668/cmap_324864001_325123201_4FGL_J1304.6-0348_daily_bin330.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209668/ft1_filtered_4FGL_J1304.6-0348_daily_bin330.fits scfile=/scratch/kocevski/209668/ft2_4FGL_J1304.6-0348_daily_bin330.fits outfile=/scratch/kocevski/209668/cmap_HighResolution_324864001_325123201_4FGL_J1304.6-0348_daily_bin330.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/209668/ft1_filtered_4FGL_J1304.6-0348_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/209668/ft2_4FGL_J1304.6-0348_daily_bin330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209668/Model_4FGL_J1304.6-0348_daily_bin330.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/209668/ft1_filtered_4FGL_J1304.6-0348_daily_bin330.fits.....................!
real 57.32
user 56.04
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7488       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.701       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.936       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8268       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .36381       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.223       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2942       1.0000         .10000E-03   10000.    
     9 'norm      '    .10637E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6591       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11633E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7774       1.0000         .10000E-03   10000.    
    13 'norm      '    6.5840       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6098       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.606       1.0000         .10000E-03   10000.    
    18 'norm      '    .42482       1.0000         .10000E-03   10000.    
    19 'norm      '    .15066E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10693E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0664       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0533       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=   7367.118     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2359 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .97224        .47342E-07** at limit **
   2  norm          1.7488        .65324        .18717E-07   -.27517E-03
   3  Prefactor     12.700        9.2448       -.22793E-05   -.74798E-04
   4  Prefactor     21.932        13.591        .71092E-06   -.55602E-05
   5  norm          4.8267        2.1616       -.78840E-07   -.18893E-03
   6  Prefactor     .35524        6.1535        .62059E-06   -.20346E-03
   7  Prefactor     10.232        22.012        .92219E-05   -.17569E-04
   8  Prefactor     4.2761        202.98       -.76723E-04   -.41835E-05
   9  norm          .10000E-03    23.151       -.33840E-05** at limit **
  10  norm          2.6591        .41030        .25898E-06   -.34587E-02
  11  Prefactor     .10000E-03    42.498        .49049E-04** at limit **
  12  norm          2.7724        6.7407        .23886E-05   -.42526E-03
  13  norm          6.5835        6.8482        .71235E-07   -.14460E-04
  14  Prefactor     .10000E-03    4.5066        .19944E-07** at limit **
  15  Prefactor     4.6091        8.5406       -.39019E-06   -.10281E-03
  16  Prefactor     15.486        8.0669        .12342E-05   -.59834E-05
  17  Prefactor     24.618        16.141        .11315E-05    .21547E-04
  18  norm          .42480        .93168       -.45747E-06   -.21614E-02
  19  norm          .10000E-03    2.6492       -.17214E-06** at limit **
  20  norm          .10000E-03    50.188       -.52530E-04** at limit **
  21  Normalizat    1.0664        .23026        .19528E-06    .11095E-03
  22  Prefactor     1.0533        .15550       -.46544E-08    .22256E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.74878
  Prefactor  = 12.7002
  Prefactor  = 21.9319
  norm       = 4.82665
  Prefactor  = 0.355236
  Prefactor  = 10.2322
  Prefactor  = 4.27605
  norm       = 0.0001
  norm       = 2.65908
  Prefactor  = 0.0001
  norm       = 2.77242
  norm       = 6.58353
  Prefactor  = 0.0001
  Prefactor  = 4.60907
  Prefactor  = 15.4856
  Prefactor  = 24.6184
  norm       = 0.4248
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.06641
  Prefactor  = 1.05332
 **********
 **   18 **HESSE 
 **********

 FCN=   7367.118     FROM HESSE     STATUS=OK           350 CALLS     2709 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .97707        .82647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7488        .65153        .40378E-04   -1.5443    
   3  Prefactor     12.700        9.2222        .11240E-03   -1.4995    
   4  Prefactor     21.932        13.591        .85520E-04   -1.4771    
   5  norm          4.8267        2.1612        .80647E-04   -1.5269    
   6  Prefactor     .35524        36.497        .39940E-02   -1.5589    
   7  Prefactor     10.232        21.979        .12532E-03   -1.5068    
   8  Prefactor     4.2761        205.84        .19441E-03   -1.5294    
   9  norm          .10000E-03    23.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6591        .41361        .18648E-04   -1.5382    
  11  Prefactor     .10000E-03    42.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7724        6.7052        .24418E-03   -1.5375    
  13  norm          6.5835        6.8485        .15640E-03   -1.5195    
  14  Prefactor     .10000E-03    4.5431        .17790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6091        8.5329        .18747E-03   -1.5279    
  16  Prefactor     15.486        8.0692        .10178E-03   -1.4921    
  17  Prefactor     24.618        15.970        .80754E-04   -1.4715    
  18  norm          .42480        .89988        .11618E-03   -1.5578    
  19  norm          .10000E-03    2.7109        .26990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    50.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0664        .26553        .33393E-03   -.90838    
  22  Prefactor     1.0533        .18105        .23831E-03   -.90973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79012e-09
Minuit parameter uncertainties:
  1  9.68908e-07
  2  0.651537
  3  9.22318
  4  13.5929
  5  2.16121
  6  7.20492
  7  21.9963
  8  59.5538
  9  1.36219e-05
  10  0.413615
  11  0.000115947
  12  6.70697
  13  6.84934
  14  1.3065e-05
  15  8.53511
  16  8.06977
  17  15.9732
  18  0.899909
  19  3.37451e-05
  20  0.000228427
  21  0.265863
  22  0.181155
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.159e-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:  1.053e+00  1.812e-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.066e+00  2.659e-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: 8.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209668/likelihoodResults_324864001_325123201_4FGL_J1304.6-0348_daily_bin330.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) = 7367.11806647
delta logL = -0.000112173510388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7367.11795435
delta logL = -4.95401764056e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1140       1.0000          .0000       10.000    
     3 'Normalizat'    1.0664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0533       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=   7367.118     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1999.4        .90712E-02** at limit **
   2  Index         2.1276        6.0618        .50000       -.28999E-05
   3  Normalizat    1.0664        .42290E-01    .75452E-01    .20457E-04
   4  Prefactor     1.0533        .30168E-01    .39719E-01    .93791E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12757
  Normalizat = 1.06641
  Prefactor  = 1.05332
 **********
 **   18 **HESSE 
 **********

 FCN=   7367.118     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6995.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1276        8.7814        .50000       -.61198    
   3  Normalizat    1.0664        .69135E-01    .33393E-03   -.90838    
   4  Prefactor     1.0533        .49396E-01    .23831E-03   -.90973    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10944e-09
Minuit parameter uncertainties:
  1  0.00017935
  2  43.9433
  3  0.0691405
  4  0.0493982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209668': 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) = 7367.11795433
delta logL = -3.63497747458e-08

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.794e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.128e+00  4.394e+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:  1.053e+00  4.940e-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.066e+00  6.914e-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/209668/cmap_HighResolution_324864001_325123201_4FGL_J1304.6-0348_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2021-09-06 21:08:15.373332', job_id='209668', GAL2='1.05', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630987695.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-3.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='330' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:08:15 PDT 2021


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

Job <4FGL_J1304.6-0348_daily_bin330> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 20:55:22 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:55:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 20:55:40 2021
Terminated at Mon Sep  6 21:08:16 2021
Results reported at Mon Sep  6 21:08:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin330 196.172 -3.8139 324864001 325123201 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 :                                   741.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            774 sec.

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

