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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin176
RA = 196.172, Dec = -3.8139
tmin = 284947201, tmax = 285206401
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='208356', job_status='RUN', time_executed='2021-09-06 20:52:52.983210', time_epoch_executed='1630986772.98' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='176'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208356

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208356/ft1_4FGL_J1304.6-0348_daily_bin176.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208356/ft2_4FGL_J1304.6-0348_daily_bin176.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208356/ft1_4FGL_J1304.6-0348_daily_bin176.fits outfile=/scratch/kocevski/208356/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin176.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=284947201.0 tmax=285206401.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.55
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/208356/ft2_4FGL_J1304.6-0348_daily_bin176.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/208356/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin176.fits evtable="EVENTS" outfile="/scratch/kocevski/208356/ft1_filtered_4FGL_J1304.6-0348_daily_bin176.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/208356/ft1_filtered_4FGL_J1304.6-0348_daily_bin176.fits" evtable="EVENTS" scfile=/scratch/kocevski/208356/ft2_4FGL_J1304.6-0348_daily_bin176.fits sctable="SC_DATA" outfile=/scratch/kocevski/208356/ltcube_284947201_285206401_4FGL_J1304.6-0348_daily_bin176.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/208356/ft2_4FGL_J1304.6-0348_daily_bin176.fits
.....................!
real 16.60
user 16.23
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208356/ft1_filtered_4FGL_J1304.6-0348_daily_bin176.fits evtable="EVENTS" scfile=/scratch/kocevski/208356/ft2_4FGL_J1304.6-0348_daily_bin176.fits sctable="SC_DATA" expcube=/scratch/kocevski/208356/ltcube_284947201_285206401_4FGL_J1304.6-0348_daily_bin176.fits outfile=/scratch/kocevski/208356/expmap_284947201_285206401_4FGL_J1304.6-0348_daily_bin176.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/208356/ltcube_284947201_285206401_4FGL_J1304.6-0348_daily_bin176.fits
.....................!
real 194.08
user 189.19
sys 4.38

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/208356/ft1_filtered_4FGL_J1304.6-0348_daily_bin176.fits scfile=/scratch/kocevski/208356/ft2_4FGL_J1304.6-0348_daily_bin176.fits outfile=/scratch/kocevski/208356/cmap_284947201_285206401_4FGL_J1304.6-0348_daily_bin176.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.59
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208356/ft1_filtered_4FGL_J1304.6-0348_daily_bin176.fits scfile=/scratch/kocevski/208356/ft2_4FGL_J1304.6-0348_daily_bin176.fits outfile=/scratch/kocevski/208356/cmap_HighResolution_284947201_285206401_4FGL_J1304.6-0348_daily_bin176.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208356/ft1_filtered_4FGL_J1304.6-0348_daily_bin176.fits evtable="EVENTS" scfile=/scratch/kocevski/208356/ft2_4FGL_J1304.6-0348_daily_bin176.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208356/Model_4FGL_J1304.6-0348_daily_bin176.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/208356/ft1_filtered_4FGL_J1304.6-0348_daily_bin176.fits.....................!
real 61.20
user 59.88
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2590       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4085       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.980       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10288E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    6.7237       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1286       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8661       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.448       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5179       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.149       1.0000         .10000E-03   10000.    
    12 'norm      '    12.362       1.0000         .10000E-03   10000.    
    13 'norm      '    7.8876       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.827       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.8406       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0889       1.0000         .10000E-03   10000.    
    19 'norm      '    .46094       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5509       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82144       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=   7421.232     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2396 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2591        1.7219        .28310E-07    .18051E-05
   2  norm          3.4085        .86685        .19492E-08   -.12143E-03
   3  Prefactor     13.980        11.017        .73901E-07   -.13737E-04
   4  Prefactor     .10445E-03    8.4058        .25554E-05** at limit **
   5  norm          6.7236        2.3473        .16950E-07   -.70615E-05
   6  Prefactor     3.1284        5.6672        .26503E-06    .40346E-04
   7  Prefactor     7.8615        22.452        .23778E-06    .14324E-05
   8  Prefactor     50.411        67.490       -.30461E-05   -.67858E-04
   9  norm          .10000E-03    30.126       -.24434E-06** at limit **
  10  norm          1.5181        .38151        .11759E-06    .60892E-03
  11  Prefactor     17.053        56.427       -.14468E-05   -.57551E-04
  12  norm          12.363        13.651       -.17067E-06   -.42895E-04
  13  norm          7.8875        7.5241       -.26990E-07   -.23212E-04
  14  Prefactor     .10000E-03    2.6446        .30459E-07** at limit **
  15  Prefactor     15.824        24.514        .11615E-06   -.80755E-05
  16  Prefactor     9.8406        9.7641       -.87366E-07   -.68004E-04
  17  Prefactor     .10000E-03    6.2078       -.19087E-06** at limit **
  18  norm          6.0888        2.2295        .21849E-07   -.56925E-04
  19  norm          .46106        2.8073        .30516E-05    .49878E-03
  20  norm          .10000E-03    12.063        .35368E-07** at limit **
  21  Normalizat    1.5509        .24775        .63899E-06   -.31352E-03
  22  Prefactor     .82137        .15794       -.13450E-05   -.29765E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25915
  norm       = 3.40846
  Prefactor  = 13.9797
  Prefactor  = 0.000104451
  norm       = 6.72357
  Prefactor  = 3.12836
  Prefactor  = 7.86154
  Prefactor  = 50.4111
  norm       = 0.0001
  norm       = 1.51813
  Prefactor  = 17.0534
  norm       = 12.3634
  norm       = 7.88754
  Prefactor  = 0.0001
  Prefactor  = 15.8245
  Prefactor  = 9.84061
  Prefactor  = 0.0001
  norm       = 6.08884
  norm       = 0.461063
  norm       = 0.0001
  Normalizat = 1.55095
  Prefactor  = 0.821373
 **********
 **   18 **HESSE 
 **********

 FCN=   7421.232     FROM HESSE     STATUS=OK           358 CALLS     2754 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2591        1.6947        .12882E-03   -1.5484    
   2  norm          3.4085        .86857        .38290E-04   -1.5339    
   3  Prefactor     13.980        11.014        .10712E-03   -1.4960    
   4  Prefactor     .10445E-03    9.4255        .68997E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.7236        2.3502        .74606E-04   -1.5189    
   6  Prefactor     3.1284        5.6459        .22921E-03   -1.5354    
   7  Prefactor     7.8615        22.442        .14297E-03   -1.5147    
   8  Prefactor     50.411        68.393        .56462E-04   -1.4287    
   9  norm          .10000E-03    30.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5181        .38780        .22563E-04   -1.5462    
  11  Prefactor     17.053        56.730        .96717E-04   -1.4882    
  12  norm          12.363        13.630        .11393E-03   -1.5005    
  13  norm          7.8875        7.5270        .14277E-03   -1.5146    
  14  Prefactor     .10000E-03    2.6482        .13681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.824        24.641        .10068E-03   -1.4912    
  16  Prefactor     9.8406        9.7674        .12774E-03   -1.5080    
  17  Prefactor     .10000E-03    6.2211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0888        2.2354        .73442E-04   -1.5214    
  19  norm          .46106        2.8620        .28042E-03   -1.5572    
  20  norm          .10000E-03    12.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5509        .29472        .31845E-03   -.76357    
  22  Prefactor     .82137        .18503        .28045E-03   -.98945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92666e-09
Minuit parameter uncertainties:
  1  1.69476
  2  0.868571
  3  11.0154
  4  0.0129566
  5  2.3502
  6  5.64682
  7  22.4664
  8  68.4996
  9  1.83173e-05
  10  0.387798
  11  56.9103
  12  13.6336
  13  7.52786
  14  1.50366e-07
  15  24.6565
  16  9.76899
  17  3.1331e-05
  18  2.23546
  19  2.29734
  20  4.1651e-06
  21  0.29505
  22  0.185167
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.705e+01  5.691e+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:  8.214e-01  1.852e-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.551e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208356/likelihoodResults_284947201_285206401_4FGL_J1304.6-0348_daily_bin176.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) = 7420.15073521
delta logL = 1.08162739533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7419.84350929
delta logL = 1.38885331808

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     '    7.6422       1.0000          .0000       10.000    
     3 'Normalizat'    1.3747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90469       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=   7419.844     FROM MIGRAD    STATUS=CONVERGED    177 CALLS      583 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .17442E-02    .32282E-03** at limit **
   2  Index         7.6420        1.6030        .95262E-01    .28244E-03
   3  Normalizat    1.3750        .62190E-01    .75414E-01    .44921E-03
   4  Prefactor     .90453        .40566E-01    .45065E-01    .65637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.64196
  Normalizat = 1.375
  Prefactor  = 0.904535
 **********
 **   18 **HESSE 
 **********

 FCN=   7419.844     FROM HESSE     STATUS=OK            31 CALLS      614 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .98133E-03    .78908E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.6420        .23513        .36549E-02    .55671    
   3  Normalizat    1.3750        .29326        .33374E-03   -.81354    
   4  Prefactor     .90453        .19114        .26859E-03   -.95983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48061e-10
Minuit parameter uncertainties:
  1  3.08853e-08
  2  0.235252
  3  0.293618
  4  0.191279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208356': 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) = 7419.8435064
delta logL = 1.38885620366

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.089e-08  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  7.642e+00  2.353e-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:  9.045e-01  1.913e-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.375e+00  2.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 7.64 +/- 0.24
Photon Flux (Free Index): 1.78e-07 +/- 1.19e-07
Energy Flux (Free Index): 2.09e-05 +/- 1.38e-05

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/208356/cmap_HighResolution_284947201_285206401_4FGL_J1304.6-0348_daily_bin176.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-03', comment='SUCCESS', energy_flux2='2.09e-05', dlogl='1.39e+00', photon_flux2='1.78e-07', job_status='DONE', time_completed='2021-09-06 21:05:43.837998', photon_index_error2='0.24', photon_index2='7.64', ts='0.11', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.38e-05', EG='1.55', time_epoch_completed='1630987543.84', return_code='0', job_id='208356', GAL2='0.90', EG2='1.37', return_code2='0', photon_flux_error2='1.19e-07', ts2='3.23', photon_index='2.18' WHERE bin_id='176' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:05:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 208356: <4FGL_J1304.6-0348_daily_bin176> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin176> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 20:50:31 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:50:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 20:50:33 2021
Terminated at Mon Sep  6 21:05:44 2021
Results reported at Mon Sep  6 21:05:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin176 196.172 -3.8139 284947201 285206401 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 :                                   769.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

