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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin478
RA = 196.172, Dec = -3.8139
tmin = 363225601, tmax = 363484801
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='209881', job_status='RUN', time_executed='2021-09-06 21:00:39.770548', time_epoch_executed='1630987239.77' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209881/ft1_4FGL_J1304.6-0348_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209881/ft2_4FGL_J1304.6-0348_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209881/ft1_4FGL_J1304.6-0348_daily_bin478.fits outfile=/scratch/kocevski/209881/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin478.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=363225601.0 tmax=363484801.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 7.07
user 6.73
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/209881/ft2_4FGL_J1304.6-0348_daily_bin478.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/209881/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin478.fits evtable="EVENTS" outfile="/scratch/kocevski/209881/ft1_filtered_4FGL_J1304.6-0348_daily_bin478.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.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209881/ft1_filtered_4FGL_J1304.6-0348_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/209881/ft2_4FGL_J1304.6-0348_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/209881/ltcube_363225601_363484801_4FGL_J1304.6-0348_daily_bin478.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/209881/ft2_4FGL_J1304.6-0348_daily_bin478.fits
.....................!
real 14.69
user 14.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209881/ft1_filtered_4FGL_J1304.6-0348_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/209881/ft2_4FGL_J1304.6-0348_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/209881/ltcube_363225601_363484801_4FGL_J1304.6-0348_daily_bin478.fits outfile=/scratch/kocevski/209881/expmap_363225601_363484801_4FGL_J1304.6-0348_daily_bin478.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/209881/ltcube_363225601_363484801_4FGL_J1304.6-0348_daily_bin478.fits
.....................!
real 194.16
user 188.36
sys 4.26

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/209881/ft1_filtered_4FGL_J1304.6-0348_daily_bin478.fits scfile=/scratch/kocevski/209881/ft2_4FGL_J1304.6-0348_daily_bin478.fits outfile=/scratch/kocevski/209881/cmap_363225601_363484801_4FGL_J1304.6-0348_daily_bin478.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/209881/ft1_filtered_4FGL_J1304.6-0348_daily_bin478.fits scfile=/scratch/kocevski/209881/ft2_4FGL_J1304.6-0348_daily_bin478.fits outfile=/scratch/kocevski/209881/cmap_HighResolution_363225601_363484801_4FGL_J1304.6-0348_daily_bin478.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/209881/ft1_filtered_4FGL_J1304.6-0348_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/209881/ft2_4FGL_J1304.6-0348_daily_bin478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209881/Model_4FGL_J1304.6-0348_daily_bin478.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/209881/ft1_filtered_4FGL_J1304.6-0348_daily_bin478.fits.....................!
real 31.45
user 29.98
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.2246       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.994       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.398       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1123       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9720       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    36.308       1.0000         .10000E-03   10000.    
    10 'norm      '    .30467       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    63.373       1.0000         .10000E-03   10000.    
    13 'norm      '    7.8881       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5436       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8881       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5953       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4332       1.0000         .10000E-03   10000.    
    19 'norm      '    .22944E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    26.558       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84908       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2465       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=   2834.451     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2406 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2032        .90712E-02** at limit **
   2  norm          2.2249        1.4986        .68919E-02    .20613E-03
   3  Prefactor     22.995        22.677        .20883E-02    .22212E-03
   4  Prefactor     12.399        23.514        .28441E-02    .44926E-03
   5  norm          1.1123        2.8265        .11184E-01    .43901E-03
   6  Prefactor     2.9713        13.528        .58881E-02   -.24416E-03
   7  Prefactor     .10000E-03    33.608        .90712E-02** at limit **
   8  Prefactor     .10000E-03    48.553        .90712E-02** at limit **
   9  norm          36.300        36.195        .16628E-02   -.18458E-03
  10  norm          .30467        .29571        .61448E-02    .14162E-03
  11  Prefactor     .10000E-03    63.508        .90712E-02** at limit **
  12  norm          63.378        27.747        .12602E-02    .21450E-02
  13  norm          7.8873        12.518        .35692E-02    .20692E-03
  14  Prefactor     .10000E-03    5.8945        .90712E-02** at limit **
  15  Prefactor     3.5466        88.607        .53681E-02    .40983E-03
  16  Prefactor     2.8937        28.243        .59784E-02    .30467E-03
  17  Prefactor     2.4846        241.08        .63317E-02    .66847E-04
  18  norm          3.4332        2.8140        .54574E-02    .13637E-03
  19  norm          .10000E-03    8.3892        .63734E-01** at limit **
  20  norm          26.557        58.087        .19434E-02    .52462E-03
  21  Normalizat    .84869        .38678        .84674E-01    .10794E-04
  22  Prefactor     1.2468        .25857        .50150E-01    .70253E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.22487
  Prefactor  = 22.9945
  Prefactor  = 12.3986
  norm       = 1.11234
  Prefactor  = 2.97127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 36.3004
  norm       = 0.304669
  Prefactor  = 0.0001
  norm       = 63.378
  norm       = 7.88727
  Prefactor  = 0.0001
  Prefactor  = 3.54659
  Prefactor  = 2.89369
  Prefactor  = 2.48464
  norm       = 3.43316
  norm       = 0.0001
  norm       = 26.5572
  Normalizat = 0.84869
  Prefactor  = 1.24676
 **********
 **   18 **HESSE 
 **********

 FCN=   2834.451     FROM HESSE     STATUS=OK           342 CALLS     2748 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2044        .77177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2249        1.4894        .48432E-04   -1.5410    
   3  Prefactor     22.995        22.636        .83533E-04   -1.4749    
   4  Prefactor     12.399        23.534        .11376E-03   -1.5004    
   5  norm          1.1123        2.7606        .13385E-03   -1.5497    
   6  Prefactor     2.9713        13.420        .23552E-03   -1.5363    
   7  Prefactor     .10000E-03    33.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    48.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          36.300        36.177        .66511E-04   -1.4502    
  10  norm          .30467        .29366        .27232E-04   -1.5598    
  11  Prefactor     .10000E-03    63.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          63.378        27.713        .50408E-04   -1.4114    
  13  norm          7.8873        12.515        .14277E-03   -1.5146    
  14  Prefactor     .10000E-03    5.8964        .12623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5466        88.055        .21472E-03   -1.5331    
  16  Prefactor     2.8937        27.187        .23914E-03   -1.5368    
  17  Prefactor     2.4846        152.12        .25327E-03   -1.5393    
  18  norm          3.4332        2.8049        .75981E-04   -1.5337    
  19  norm          .10000E-03    17.331        .23434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          26.557        58.159        .77735E-04   -1.4677    
  21  Normalizat    .84869        .45193        .37494E-03   -.98287    
  22  Prefactor     1.2468        .30789        .22170E-03   -.84904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74131e-08
Minuit parameter uncertainties:
  1  6.25743e-07
  2  1.48941
  3  22.644
  4  23.5514
  5  2.76095
  6  12.6335
  7  1.86606e-05
  8  0.000130814
  9  36.199
  10  0.293657
  11  0.000213937
  12  27.7184
  13  12.5191
  14  1.14522e-06
  15  35.4016
  16  17.7496
  17  38.9866
  18  2.80505
  19  7.24792e-06
  20  58.2835
  21  0.453959
  22  0.308335
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.139e-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.247e+00  3.083e-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:  8.487e-01  4.540e-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: 1.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209881/likelihoodResults_363225601_363484801_4FGL_J1304.6-0348_daily_bin478.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) = 2834.45090096
delta logL = -7.48362222112e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2834.45082651
delta logL = -3.94007201976e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4549       1.0000          .0000       10.000    
     3 'Normalizat'    .84868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2468       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=   2834.451     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      283 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10349E-03    10.099        .18142E-01** at limit **
   2  Index         2.3705        5.5966        .50000        .68295E-05
   3  Normalizat    .84869        .40759E-02    .37494E-03   -.56746E-04
   4  Prefactor     1.2468        .28800E-02    .22170E-03   -.89011E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103489
  Index      = 2.37054
  Normalizat = 0.848689
  Prefactor  = 1.24676
 **********
 **   18 **HESSE 
 **********

 FCN=   2834.451     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10349E-03    132.13        .36108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3705        8.6900        .50000       -.55376    
   3  Normalizat    .84869        .14797E-01    .14998E-04   -.98287    
   4  Prefactor     1.2468        .10456E-01    .44340E-04   -.84904    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.16184e-10
Minuit parameter uncertainties:
  1  0.0430361
  2  286.243
  3  0.0147973
  4  0.0104558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209881': 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) = 2834.45082641
delta logL = -2.85522219201e-07

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.035e-04  4.304e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.371e+00  2.862e+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.247e+00  1.046e-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:  8.487e-01  1.480e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/209881/cmap_HighResolution_363225601_363484801_4FGL_J1304.6-0348_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', job_status='DONE', photon_flux_upper_limit='1.61e-07', time_completed='2021-09-06 21:08:59.016827', job_id='209881', GAL2='1.25', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630987739.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='-2.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='478' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:08:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 209881: <4FGL_J1304.6-0348_daily_bin478> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin478 196.172 -3.8139 363225601 363484801 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 :                                   494.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             204.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            804 sec.

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

