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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin424
RA = 196.172, Dec = -3.8139
tmin = 349228801, tmax = 349488001
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='209804', job_status='RUN', time_executed='2021-09-06 20:56:28.664000', time_epoch_executed='1630986988.66' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209804

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209804/ft1_4FGL_J1304.6-0348_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209804/ft2_4FGL_J1304.6-0348_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209804/ft1_4FGL_J1304.6-0348_daily_bin424.fits outfile=/scratch/kocevski/209804/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin424.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=349228801.0 tmax=349488001.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.45
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209804/ft1_filtered_4FGL_J1304.6-0348_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/209804/ft2_4FGL_J1304.6-0348_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/209804/ltcube_349228801_349488001_4FGL_J1304.6-0348_daily_bin424.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/209804/ft2_4FGL_J1304.6-0348_daily_bin424.fits
.....................!
real 16.74
user 15.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209804/ft1_filtered_4FGL_J1304.6-0348_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/209804/ft2_4FGL_J1304.6-0348_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/209804/ltcube_349228801_349488001_4FGL_J1304.6-0348_daily_bin424.fits outfile=/scratch/kocevski/209804/expmap_349228801_349488001_4FGL_J1304.6-0348_daily_bin424.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/209804/ltcube_349228801_349488001_4FGL_J1304.6-0348_daily_bin424.fits
.....................!
real 191.16
user 186.21
sys 4.48

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/209804/ft1_filtered_4FGL_J1304.6-0348_daily_bin424.fits scfile=/scratch/kocevski/209804/ft2_4FGL_J1304.6-0348_daily_bin424.fits outfile=/scratch/kocevski/209804/cmap_349228801_349488001_4FGL_J1304.6-0348_daily_bin424.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209804/ft1_filtered_4FGL_J1304.6-0348_daily_bin424.fits scfile=/scratch/kocevski/209804/ft2_4FGL_J1304.6-0348_daily_bin424.fits outfile=/scratch/kocevski/209804/cmap_HighResolution_349228801_349488001_4FGL_J1304.6-0348_daily_bin424.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209804/ft1_filtered_4FGL_J1304.6-0348_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/209804/ft2_4FGL_J1304.6-0348_daily_bin424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209804/Model_4FGL_J1304.6-0348_daily_bin424.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/209804/ft1_filtered_4FGL_J1304.6-0348_daily_bin424.fits....................!
real 66.61
user 65.09
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.4339       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .92664       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1313       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1699       1.0000         .10000E-03   10000.    
    11 'Prefactor '    105.68       1.0000         .10000E-03   10000.    
    12 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.191       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9911       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.678       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27523E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0839       1.0000         .10000E-03   10000.    
    20 'norm      '    22.627       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4613       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90567       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=   8431.032     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2405 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .94071         .0000    ** at limit **
   2  norm          1.4340        .60020         .0000        .65442E-03
   3  Prefactor     .10000E-03    2.5819         .0000    ** at limit **
   4  Prefactor     .10000E-03    2.4361         .0000    ** at limit **
   5  norm          .92667        1.2503         .0000        .10498E-02
   6  Prefactor     5.1313        7.0409         .0000        .53640E-02
   7  Prefactor     .10000E-03    30.733         .0000    ** at limit **
   8  Prefactor     .10000E-03    11.642         .0000    ** at limit **
   9  norm          .10000E-03    6.7938         .0000    ** at limit **
  10  norm          1.1699        .25851         .0000        .15977E-03
  11  Prefactor     105.68        61.589         .0000        .40751E-03
  12  norm          .10000E-03    8.0939         .0000    ** at limit **
  13  norm          16.191        9.3473         .0000       -.10504E-03
  14  Prefactor     6.9879        8.9268         .0000        .24965E-02
  15  Prefactor     .10000E-03    16.924         .0000    ** at limit **
  16  Prefactor     11.675        9.1984         .0000        .18950E-02
  17  Prefactor     .10000E-03    18.325         .0000    ** at limit **
  18  norm          .10000E-03    .40131         .0000    ** at limit **
  19  norm          1.0828        3.0813         .0000        .11427E-02
  20  norm          22.627        22.518         .0000       -.40913E-04
  21  Normalizat    1.4612        .20157         .0000        .11001E-04
  22  Prefactor     .90570        .13530         .0000        .15560E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.43398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.926666
  Prefactor  = 5.13134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.16991
  Prefactor  = 105.684
  norm       = 0.0001
  norm       = 16.1907
  Prefactor  = 6.98791
  Prefactor  = 0.0001
  Prefactor  = 11.6747
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.0828
  norm       = 22.6269
  Normalizat = 1.46121
  Prefactor  = 0.905702
 **********
 **   18 **HESSE 
 **********

 FCN=   8431.032     FROM HESSE     STATUS=OK           346 CALLS     2751 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .94697        .86961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4340        .59119        .43141E-04   -1.5468    
   3  Prefactor     .10000E-03    2.5853        .14407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4470        .13995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .92667        1.0858        .11351E-02   -1.5515    
   6  Prefactor     5.1313        7.0323        .88740E-03   -1.5255    
   7  Prefactor     .10000E-03    30.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.7966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1699        .25879        .20704E-04   -1.5492    
  11  Prefactor     105.68        61.653        .39117E-04   -1.3648    
  12  norm          .10000E-03    8.3604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.191        9.3488        .99538E-04   -1.4903    
  14  Prefactor     6.9879        8.8816        .75863E-03   -1.5179    
  15  Prefactor     .10000E-03    17.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.675        9.1938        .58615E-03   -1.5024    
  17  Prefactor     .10000E-03    75.170        .62797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .40920        .56750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0828        2.5355        .21894E-03   -1.5500    
  20  norm          22.627        22.521        .84207E-04   -1.4756    
  21  Normalizat    1.4612        .23575        .28927E-03   -.78874    
  22  Prefactor     .90570        .15794        .24754E-03   -.95942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91992e-09
Minuit parameter uncertainties:
  1  1.39878e-07
  2  0.591193
  3  2.52248e-07
  4  4.26475e-07
  5  1.08582
  6  7.03341
  7  1.38319e-05
  8  1.23146e-06
  9  9.05621e-07
  10  0.258793
  11  61.6904
  12  2.75296e-08
  13  9.34962
  14  8.88328
  15  2.52117e-06
  16  9.19488
  17  8.42098e-05
  18  6.48197e-08
  19  2.53576
  20  22.5293
  21  0.235924
  22  0.158017
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.057e+02  6.169e+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:  9.057e-01  1.580e-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.461e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.83
Ra Dec: 196.172 -3.814
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 6.60e-08 +/- 3.85e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 1.81e-05

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): 0
logL (Free Index) = 8430.97114311
delta logL = 0.0608856777053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8430.96593557
delta logL = 0.0660932104183

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.725       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3465       1.0000          .0000       10.000    
     3 'Normalizat'    1.4479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91107       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=   8430.966     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      288 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.706        82.185        .43389E-04    .40539E-03
   2  Index         2.3463        .52178        .52526E-02    .28835E-03
   3  Normalizat    1.4479        .22844        .29029E-03   -.78124E-03
   4  Prefactor     .91118        .15696        .24686E-03   -.11083E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.7056
  Index      = 2.34627
  Normalizat = 1.4479
  Prefactor  = 0.911181
 **********
 **   18 **HESSE 
 **********

 FCN=   8430.966     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.706        74.962        .86779E-05   -1.3854    
   2  Index         2.3463        .47546        .21010E-03   -.55948    
   3  Normalizat    1.4479        .22802        .58058E-04   -.79253    
   4  Prefactor     .91118        .15687        .49372E-04   -.95752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62385e-09
Minuit parameter uncertainties:
  1  75.0447
  2  0.476468
  3  0.228178
  4  0.156944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209804': 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) = 8430.96593422
delta logL = 0.066094567137

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  8.571e+01  7.504e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.346e+00  4.765e-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.112e-01  1.569e-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.448e+00  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.99
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 2.35 +/- 0.48
Photon Flux (Free Index): 7.84e-08 +/- 5.48e-08
Energy Flux (Free Index): 2.77e-05 +/- 1.72e-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/209804/cmap_HighResolution_349228801_349488001_4FGL_J1304.6-0348_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.60e-08', energy_flux2='2.77e-05', photon_flux_error='3.85e-08', dlogl='6.61e-02', energy_flux='3.10e-05', photon_flux2='7.84e-08', job_status='DONE', time_completed='2021-09-06 21:08:26.536115', photon_index_error2='0.48', photon_index2='2.35', ts='5.83', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.46', time_epoch_completed='1630987706.54', return_code='0', job_id='209804', GAL2='0.91', EG2='1.45', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='5.48e-08', ts2='5.99', photon_index='2.18' WHERE bin_id='424' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:08:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 209804: <4FGL_J1304.6-0348_daily_bin424> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin424 196.172 -3.8139 349228801 349488001 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 :                                   715.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            775 sec.

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

