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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin501
RA = 196.172, Dec = -3.8139
tmin = 369187201, tmax = 369446401
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='209915', job_status='RUN', time_executed='2021-09-06 21:00:31.301406', time_epoch_executed='1630987231.3' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209915

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209915/ft1_4FGL_J1304.6-0348_daily_bin501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209915/ft2_4FGL_J1304.6-0348_daily_bin501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209915/ft1_4FGL_J1304.6-0348_daily_bin501.fits outfile=/scratch/kocevski/209915/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin501.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=369187201.0 tmax=369446401.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.51
user 3.26
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209915/ft1_filtered_4FGL_J1304.6-0348_daily_bin501.fits" evtable="EVENTS" scfile=/scratch/kocevski/209915/ft2_4FGL_J1304.6-0348_daily_bin501.fits sctable="SC_DATA" outfile=/scratch/kocevski/209915/ltcube_369187201_369446401_4FGL_J1304.6-0348_daily_bin501.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/209915/ft2_4FGL_J1304.6-0348_daily_bin501.fits
.....................!
real 16.36
user 15.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209915/ft1_filtered_4FGL_J1304.6-0348_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/209915/ft2_4FGL_J1304.6-0348_daily_bin501.fits sctable="SC_DATA" expcube=/scratch/kocevski/209915/ltcube_369187201_369446401_4FGL_J1304.6-0348_daily_bin501.fits outfile=/scratch/kocevski/209915/expmap_369187201_369446401_4FGL_J1304.6-0348_daily_bin501.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/209915/ltcube_369187201_369446401_4FGL_J1304.6-0348_daily_bin501.fits
.....................!
real 192.46
user 187.08
sys 4.79

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/209915/ft1_filtered_4FGL_J1304.6-0348_daily_bin501.fits scfile=/scratch/kocevski/209915/ft2_4FGL_J1304.6-0348_daily_bin501.fits outfile=/scratch/kocevski/209915/cmap_369187201_369446401_4FGL_J1304.6-0348_daily_bin501.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.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209915/ft1_filtered_4FGL_J1304.6-0348_daily_bin501.fits scfile=/scratch/kocevski/209915/ft2_4FGL_J1304.6-0348_daily_bin501.fits outfile=/scratch/kocevski/209915/cmap_HighResolution_369187201_369446401_4FGL_J1304.6-0348_daily_bin501.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=196.172 yref=-3.8139 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209915/ft1_filtered_4FGL_J1304.6-0348_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/209915/ft2_4FGL_J1304.6-0348_daily_bin501.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209915/Model_4FGL_J1304.6-0348_daily_bin501.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/209915/ft1_filtered_4FGL_J1304.6-0348_daily_bin501.fits.....................!
real 50.45
user 49.02
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8023       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0366       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1986       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.6489       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8237       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.972       1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.462       1.0000         .10000E-03   10000.    
     9 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12942       1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.597       1.0000         .10000E-03   10000.    
    12 'norm      '    5.0937       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4140       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.919       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.3746       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3385       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1501       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=   6134.161     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2339 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8026        3.5344        .34985E-07    .10715E-04
   2  norm          2.0367        .69782       -.79674E-08    .41378E-04
   3  Prefactor     2.1980        12.897        .14624E-05   -.39744E-04
   4  Prefactor     .10000E-03    4.3316        .68341E-07** at limit **
   5  norm          8.6492        2.5464       -.69746E-08    .58723E-05
   6  Prefactor     7.8215        9.1241       -.15573E-06    .37998E-04
   7  Prefactor     18.973        31.142        .41701E-08    .37747E-05
   8  Prefactor     70.304        77.579        .41564E-05   -.21379E-04
   9  norm          .10000E-03    43.299        .36415E-08** at limit **
  10  norm          .13019        .31228       -.43089E-06   -.93653E-03
  11  Prefactor     43.489        84.223        .30790E-05   -.11233E-04
  12  norm          5.0940        9.0537       -.25165E-06    .69452E-05
  13  norm          .10000E-03    4.7002        .45302E-07** at limit **
  14  Prefactor     .10000E-03    9.2519        .16076E-06** at limit **
  15  Prefactor     1.4110        46.871        .59786E-06    .38878E-05
  16  Prefactor     .10000E-03    9.6413        .48490E-06** at limit **
  17  Prefactor     19.920        35.797       -.19456E-06   -.23118E-05
  18  norm          .10000E-03    .79210        .21091E-06** at limit **
  19  norm          5.3745        7.4785        .14527E-06   -.15138E-04
  20  norm          .10000E-03    11.637        .10977E-07** at limit **
  21  Normalizat    1.3383        .26847        .19060E-05   -.31782E-04
  22  Prefactor     1.1502        .18827       -.20863E-05    .84862E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.80263
  norm       = 2.03666
  Prefactor  = 2.19803
  Prefactor  = 0.0001
  norm       = 8.64923
  Prefactor  = 7.8215
  Prefactor  = 18.9727
  Prefactor  = 70.3045
  norm       = 0.0001
  norm       = 0.130192
  Prefactor  = 43.4887
  norm       = 5.09399
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41104
  Prefactor  = 0.0001
  Prefactor  = 19.92
  norm       = 0.0001
  norm       = 5.37447
  norm       = 0.0001
  Normalizat = 1.33833
  Prefactor  = 1.15015
 **********
 **   18 **HESSE 
 **********

 FCN=   6134.161     FROM HESSE     STATUS=OK           348 CALLS     2687 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8026        3.5378        .13764E-03   -1.5318    
   2  norm          2.0367        .69698        .36512E-04   -1.5423    
   3  Prefactor     2.1980        12.595        .13875E-02   -1.5411    
   4  Prefactor     .10000E-03    4.3418        .15921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.6492        2.5482        .64921E-04   -1.5120    
   6  Prefactor     7.8215        9.0808        .14336E-03   -1.5149    
   7  Prefactor     18.973        31.135        .91953E-04   -1.4837    
   8  Prefactor     70.304        77.899        .23911E-03   -1.4029    
   9  norm          .10000E-03    43.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .13019        .31165        .51388E-04   -1.5636    
  11  Prefactor     43.489        84.710        .60717E-04   -1.4388    
  12  norm          5.0940        9.0300        .17815E-03   -1.5257    
  13  norm          .10000E-03    4.7056        .16584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.3181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4110        47.413        .36415E-03   -1.5470    
  16  Prefactor     .10000E-03    9.8547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.920        35.972        .89742E-04   -1.4815    
  18  norm          .10000E-03    .81686        .13616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3745        7.5087        .17334E-03   -1.5244    
  20  norm          .10000E-03    11.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3383        .30612        .32085E-03   -.82429    
  22  Prefactor     1.1502        .21123        .24451E-03   -.87879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22633e-10
Minuit parameter uncertainties:
  1  3.53801
  2  0.696983
  3  10.5264
  4  3.1465e-06
  5  2.5482
  6  9.08237
  7  31.1615
  8  78.0127
  9  4.42989e-05
  10  0.311649
  11  84.9462
  12  9.03237
  13  2.464e-06
  14  2.02758e-05
  15  16.3722
  16  1.06055e-05
  17  36.0108
  18  2.14854e-06
  19  7.51005
  20  4.07459e-06
  21  0.306539
  22  0.21138
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  4.349e+01  8.495e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  1.150e+00  2.114e-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.338e+00  3.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209915/likelihoodResults_369187201_369446401_4FGL_J1304.6-0348_daily_bin501.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) = 6133.66649783
delta logL = 0.494608194422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6133.33455025
delta logL = 0.826555772221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.3949       1.0000          .0000       10.000    
     3 'Normalizat'    1.2403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2076       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=   6133.335     FROM MIGRAD    STATUS=CONVERGED    278 CALLS      686 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .31429E-02    .33342E-03** at limit **
   2  Index         7.3953        1.9842        .11069        .18141E-03
   3  Normalizat    1.2398        .61562E-01    .74845E-01   -.11899E-04
   4  Prefactor     1.2078        .43627E-01    .54169E-01   -.22856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.39527
  Normalizat = 1.23984
  Prefactor  = 1.20783
 **********
 **   18 **HESSE 
 **********

 FCN=   6133.335     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      727 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .22707E-01    .16446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.3953        3.4140        .41306E-02    .49958    
   3  Normalizat    1.2398        .14598        .33124E-03   -.85380    
   4  Prefactor     1.2078        .10404        .23951E-03   -.86091    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49072e-09
Minuit parameter uncertainties:
  1  1.29176e-07
  2  3.91168
  3  0.146032
  4  0.104055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209915': 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) = 6133.33454386
delta logL = 0.826562164908

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.292e-07  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  7.395e+00  3.912e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  1.208e+00  1.041e-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.240e+00  1.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 7.40 +/- 3.91
Photon Flux (Free Index): 8.74e-08 +/- 9.68e-07
Energy Flux (Free Index): 1.03e-05 +/- 1.14e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/209915/cmap_HighResolution_369187201_369446401_4FGL_J1304.6-0348_daily_bin501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='8.27e-01', photon_flux2='8.74e-08', job_status='DONE', time_completed='2021-09-06 21:12:11.769133', photon_index_error2='3.91', photon_index2='7.40', ts='0.33', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.14e-04', EG='1.34', time_epoch_completed='1630987931.77', return_code='0', job_id='209915', GAL2='1.21', EG2='1.24', return_code2='102', photon_flux_error2='9.68e-07', ts2='2.12', photon_index='2.18' WHERE bin_id='501' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:12:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 209915: <4FGL_J1304.6-0348_daily_bin501> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin501> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 20:55:39 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:56:39 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:56:39 2021
Terminated at Mon Sep  6 21:12:12 2021
Results reported at Mon Sep  6 21:12:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin501 196.172 -3.8139 369187201 369446401 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            993 sec.

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

