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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin310
RA = 196.172, Dec = -3.8139
tmin = 319680001, tmax = 319939201
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='209639', job_status='RUN', time_executed='2021-09-06 20:57:36.491211', time_epoch_executed='1630987056.49' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209639

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209639/ft1_4FGL_J1304.6-0348_daily_bin310.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209639/ft2_4FGL_J1304.6-0348_daily_bin310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209639/ft1_4FGL_J1304.6-0348_daily_bin310.fits outfile=/scratch/kocevski/209639/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin310.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=319680001.0 tmax=319939201.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.49
user 3.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209639/ft1_filtered_4FGL_J1304.6-0348_daily_bin310.fits" evtable="EVENTS" scfile=/scratch/kocevski/209639/ft2_4FGL_J1304.6-0348_daily_bin310.fits sctable="SC_DATA" outfile=/scratch/kocevski/209639/ltcube_319680001_319939201_4FGL_J1304.6-0348_daily_bin310.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/209639/ft2_4FGL_J1304.6-0348_daily_bin310.fits
.....................!
real 15.14
user 14.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209639/ft1_filtered_4FGL_J1304.6-0348_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/209639/ft2_4FGL_J1304.6-0348_daily_bin310.fits sctable="SC_DATA" expcube=/scratch/kocevski/209639/ltcube_319680001_319939201_4FGL_J1304.6-0348_daily_bin310.fits outfile=/scratch/kocevski/209639/expmap_319680001_319939201_4FGL_J1304.6-0348_daily_bin310.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/209639/ltcube_319680001_319939201_4FGL_J1304.6-0348_daily_bin310.fits
.....................!
real 194.69
user 188.57
sys 5.47

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/209639/ft1_filtered_4FGL_J1304.6-0348_daily_bin310.fits scfile=/scratch/kocevski/209639/ft2_4FGL_J1304.6-0348_daily_bin310.fits outfile=/scratch/kocevski/209639/cmap_319680001_319939201_4FGL_J1304.6-0348_daily_bin310.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209639/ft1_filtered_4FGL_J1304.6-0348_daily_bin310.fits scfile=/scratch/kocevski/209639/ft2_4FGL_J1304.6-0348_daily_bin310.fits outfile=/scratch/kocevski/209639/cmap_HighResolution_319680001_319939201_4FGL_J1304.6-0348_daily_bin310.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209639/ft1_filtered_4FGL_J1304.6-0348_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/209639/ft2_4FGL_J1304.6-0348_daily_bin310.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209639/Model_4FGL_J1304.6-0348_daily_bin310.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/209639/ft1_filtered_4FGL_J1304.6-0348_daily_bin310.fits....................!
real 58.20
user 56.85
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9016       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.757       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12861E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3473       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10548       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33393E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.272       1.0000         .10000E-03   10000.    
     9 'norm      '    6.4281       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6026       1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.278       1.0000         .10000E-03   10000.    
    12 'norm      '    .21346E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.530       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2541       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.832       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24341E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.1496       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3878       1.0000         .10000E-03   10000.    
    20 'norm      '    .14843E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4469       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .63036       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=   7010.255     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2375 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .88430        .25188E-08** at limit **
   2  norm          2.9017        .82895       -.70152E-07    .49156E-03
   3  Prefactor     14.756        11.876        .68815E-06    .15494E-03
   4  Prefactor     .10000E-03    7.7644       -.39872E-06** at limit **
   5  norm          3.3467        1.8518       -.20798E-07   -.65320E-04
   6  Prefactor     .21185E-02    4.4830       -.85577E-06** at limit **
   7  Prefactor     .10000E-03    80.871       -.10887E-04** at limit **
   8  Prefactor     25.099        33.657        .39972E-04    .33886E-04
   9  norm          6.4351        13.255       -.35752E-05    .81362E-06
  10  norm          1.6034        .33500        .22255E-07    .22510E-02
  11  Prefactor     25.098        46.148       -.90886E-04    .10285E-04
  12  norm          .10000E-03    3.4514        .40286E-06** at limit **
  13  norm          10.524        9.5582        .19483E-05   -.12393E-04
  14  Prefactor     8.2453        8.2946        .48217E-05   -.46780E-04
  15  Prefactor     .10000E-03    7.9631        .29060E-06** at limit **
  16  Prefactor     31.827        10.978       -.34870E-06    .10238E-04
  17  Prefactor     .10000E-03    17.376       -.15497E-06** at limit **
  18  norm          2.1446        1.4576       -.28255E-07   -.32713E-03
  19  norm          1.3850        2.1007       -.34069E-06   -.55251E-03
  20  norm          .10000E-03    15.710        .10342E-06** at limit **
  21  Normalizat    1.4473        .21793        .18593E-05    .74431E-04
  22  Prefactor     .63056        .13964       -.34487E-06    .17363E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.90166
  Prefactor  = 14.7562
  Prefactor  = 0.0001
  norm       = 3.34669
  Prefactor  = 0.00211847
  Prefactor  = 0.0001
  Prefactor  = 25.0989
  norm       = 6.43508
  norm       = 1.60341
  Prefactor  = 25.0978
  norm       = 0.0001
  norm       = 10.5241
  Prefactor  = 8.24525
  Prefactor  = 0.0001
  Prefactor  = 31.8275
  Prefactor  = 0.0001
  norm       = 2.14462
  norm       = 1.38499
  norm       = 0.0001
  Normalizat = 1.44732
  Prefactor  = 0.630563
 **********
 **   18 **HESSE 
 **********

 FCN=   7010.255     FROM HESSE     STATUS=OK           358 CALLS     2733 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .88673        .76886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9017        .83059        .38150E-04   -1.5367    
   3  Prefactor     14.756        11.864        .10426E-03   -1.4940    
   4  Prefactor     .10000E-03    7.8391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3467        1.8499        .80932E-04   -1.5342    
   6  Prefactor     .21185E-02    7.6759        .60107E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    82.470        .19709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.099        33.775        .79684E-04   -1.4706    
   9  norm          6.4351        13.246        .15830E-03   -1.5201    
  10  norm          1.6034        .33752        .20256E-04   -1.5455    
  11  Prefactor     25.098        46.223        .79675E-04   -1.4706    
  12  norm          .10000E-03    3.4593        .15191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.524        9.5637        .12347E-03   -1.5059    
  14  Prefactor     8.2453        8.2870        .13954E-03   -1.5134    
  15  Prefactor     .10000E-03    7.9859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.827        10.999        .71019E-04   -1.4579    
  17  Prefactor     .10000E-03    17.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.1446        1.4538        .78989E-04   -1.5415    
  19  norm          1.3850        2.0634        .14476E-03   -1.5473    
  20  norm          .10000E-03    15.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4473        .26001        .28094E-03   -.79270    
  22  Prefactor     .63056        .16504        .27129E-03   -1.0631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95652e-10
Minuit parameter uncertainties:
  1  9.97169e-07
  2  0.830594
  3  11.8662
  4  3.61181e-05
  5  1.8499
  6  0.248978
  7  0.000232254
  8  33.8009
  9  13.2519
  10  0.337517
  11  46.2894
  12  7.33065e-05
  13  9.56506
  14  8.28812
  15  3.40386e-05
  16  11.0002
  17  3.27316e-05
  18  1.45386
  19  2.06353
  20  3.69793e-06
  21  0.260251
  22  0.165165
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  2.510e+01  4.629e+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:  6.306e-01  1.652e-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.447e+00  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 9.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209639/likelihoodResults_319680001_319939201_4FGL_J1304.6-0348_daily_bin310.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): 0
logL (Free Index) = 7010.24330941
delta logL = 0.0115354546133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7010.23650705
delta logL = 0.0183378123584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.219       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4461       1.0000          .0000       10.000    
     3 'Normalizat'    1.4410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63294       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=   7010.237     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      285 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.209        62.976        .91361E-04   -.27384E-03
   2  Index         2.4459        1.8005        .11473E-01   -.14206E-03
   3  Normalizat    1.4404        .24902        .28146E-03   -.70448E-03
   4  Prefactor     .63338        .16426        .27071E-03   -.80698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.2095
  Index      = 2.44591
  Normalizat = 1.4404
  Prefactor  = 0.633384
 **********
 **   18 **HESSE 
 **********

 FCN=   7010.237     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.209        49.404        .18272E-04   -1.4831    
   2  Index         2.4459        1.4272        .45892E-03   -.53614    
   3  Normalizat    1.4404        .24723        .56291E-04   -.79467    
   4  Prefactor     .63338        .16358        .54142E-04   -1.0620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80062e-09
Minuit parameter uncertainties:
  1  49.5092
  2  1.45482
  3  0.247437
  4  0.163702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209639': 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) = 7010.23650301
delta logL = 0.018341853217

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.921e+01  4.951e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.446e+00  1.455e+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:  6.334e-01  1.637e-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.440e+00  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
Ra Dec: 196.172 -3.814

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/209639/cmap_HighResolution_319680001_319939201_4FGL_J1304.6-0348_daily_bin310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.38e-03', job_status='DONE', photon_flux_upper_limit='9.71e-08', time_completed='2021-09-06 21:09:30.091958', job_id='209639', GAL2='0.63', fit_tolerance='1e-08', EG2='1.44', EG='1.45', time_epoch_completed='1630987770.09', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.83e-02', ts2='0.48', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='310' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:09:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 209639: <4FGL_J1304.6-0348_daily_bin310> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin310 196.172 -3.8139 319680001 319939201 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            850 sec.

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

