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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin307
RA = 196.172, Dec = -3.8139
tmin = 318902401, tmax = 319161601
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='209637', job_status='RUN', time_executed='2021-09-06 20:58:38.737700', time_epoch_executed='1630987118.74' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209637

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209637/ft1_4FGL_J1304.6-0348_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209637/ft2_4FGL_J1304.6-0348_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209637/ft1_4FGL_J1304.6-0348_daily_bin307.fits outfile=/scratch/kocevski/209637/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin307.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=318902401.0 tmax=319161601.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.57
user 3.30
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209637/ft1_filtered_4FGL_J1304.6-0348_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/209637/ft2_4FGL_J1304.6-0348_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/209637/ltcube_318902401_319161601_4FGL_J1304.6-0348_daily_bin307.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/209637/ft2_4FGL_J1304.6-0348_daily_bin307.fits
.....................!
real 20.04
user 19.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209637/ft1_filtered_4FGL_J1304.6-0348_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/209637/ft2_4FGL_J1304.6-0348_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/209637/ltcube_318902401_319161601_4FGL_J1304.6-0348_daily_bin307.fits outfile=/scratch/kocevski/209637/expmap_318902401_319161601_4FGL_J1304.6-0348_daily_bin307.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/209637/ltcube_318902401_319161601_4FGL_J1304.6-0348_daily_bin307.fits
.....................!
real 195.23
user 190.40
sys 4.29

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/209637/ft1_filtered_4FGL_J1304.6-0348_daily_bin307.fits scfile=/scratch/kocevski/209637/ft2_4FGL_J1304.6-0348_daily_bin307.fits outfile=/scratch/kocevski/209637/cmap_318902401_319161601_4FGL_J1304.6-0348_daily_bin307.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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209637/ft1_filtered_4FGL_J1304.6-0348_daily_bin307.fits scfile=/scratch/kocevski/209637/ft2_4FGL_J1304.6-0348_daily_bin307.fits outfile=/scratch/kocevski/209637/cmap_HighResolution_318902401_319161601_4FGL_J1304.6-0348_daily_bin307.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.60
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209637/ft1_filtered_4FGL_J1304.6-0348_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/209637/ft2_4FGL_J1304.6-0348_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209637/Model_4FGL_J1304.6-0348_daily_bin307.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/209637/ft1_filtered_4FGL_J1304.6-0348_daily_bin307.fits.....................!
real 54.51
user 52.83
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.8265       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.436       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.934       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2700       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.475       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.316       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.785       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .14380E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    28.739       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95337       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1650       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=   6462.906     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2335 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .76974        .90712E-02** at limit **
   2  norm          2.8266        .82594        .60476E-02    .22705E-03
   3  Prefactor     .10001E-03    6.1995        .90712E-02** at limit **
   4  Prefactor     .10000E-03    5.1979        .90712E-02** at limit **
   5  norm          11.436        2.7503        .29617E-02    .24892E-04
   6  Prefactor     .10000E-03    3.9496        .90712E-02** at limit **
   7  Prefactor     .10000E-03    15.689        .90712E-02** at limit **
   8  Prefactor     .10000E-03    50.703        .90712E-02** at limit **
   9  norm          14.929        28.301        .25911E-02    .10198E-02
  10  norm          1.2698        .32869        .50028E-02    .11414E-03
  11  Prefactor     .10000E-03    60.918        .90712E-02** at limit **
  12  norm          14.473        13.167        .26319E-02    .30693E-03
  13  norm          .10000E-03    4.7202        .90712E-02** at limit **
  14  Prefactor     .10000E-03    3.0664        .90712E-02** at limit **
  15  Prefactor     20.317        22.575        .22215E-02   -.88108E-04
  16  Prefactor     39.785        13.939        .15887E-02   -.90852E-04
  17  Prefactor     .10001E-03    6.3245        .90712E-02** at limit **
  18  norm          .10000E-03    .84403        .23723E-01** at limit **
  19  norm          .10000E-03    1.5720        .90712E-02** at limit **
  20  norm          28.739        27.134        .18683E-02    .10971E-03
  21  Normalizat    .95325        .24812        .81793E-01    .17555E-04
  22  Prefactor     1.1650        .16714        .52897E-01   -.11181E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.82664
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 11.436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.9294
  norm       = 1.2698
  Prefactor  = 0.0001
  norm       = 14.4734
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3173
  Prefactor  = 39.7853
  Prefactor  = 0.000100011
  norm       = 0.0001
  norm       = 0.0001
  norm       = 28.7387
  Normalizat = 0.953254
  Prefactor  = 1.16504
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.906     FROM HESSE     STATUS=OK           338 CALLS     2673 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .77013        .68880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8266        .82750        .37277E-04   -1.5372    
   3  Prefactor     .10001E-03    6.2399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2126        .17899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.436        2.7528        .62442E-04   -1.5031    
   6  Prefactor     .10000E-03    3.9589        .15599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    50.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.929        28.294        .10364E-03   -1.4935    
  10  norm          1.2698        .32856        .22144E-04   -1.5483    
  11  Prefactor     .10000E-03    61.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.473        13.161        .10528E-03   -1.4947    
  13  norm          .10000E-03    4.7239        .17058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0692        .13748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.317        22.670        .88861E-04   -1.4806    
  16  Prefactor     39.785        13.950        .63548E-04   -1.4446    
  17  Prefactor     .10001E-03    6.3303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6008        .14283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.5869        .98423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          28.739        27.145        .74733E-04   -1.4635    
  21  Normalizat    .95325        .29312        .36208E-03   -.94613    
  22  Prefactor     1.1650        .19821        .23386E-03   -.87414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72531e-09
Minuit parameter uncertainties:
  1  7.06284e-07
  2  0.827507
  3  0.000574981
  4  8.81598e-05
  5  2.75279
  6  2.09076e-06
  7  2.07036e-05
  8  0.000225433
  9  28.3197
  10  0.32856
  11  0.000302097
  12  13.164
  13  4.07277e-05
  14  1.52657e-06
  15  22.6793
  16  13.9511
  17  0.00053898
  18  1.90368e-06
  19  1.58315e-06
  20  27.1562
  21  0.293612
  22  0.198335
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.021e-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.165e+00  1.983e-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:  9.533e-01  2.936e-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: 9.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209637/likelihoodResults_318902401_319161601_4FGL_J1304.6-0348_daily_bin307.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) = 6462.90645498
delta logL = -7.80011441748e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6462.90637725
delta logL = -2.76277205558e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4480       1.0000          .0000       10.000    
     3 'Normalizat'    .95325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1650       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=   6462.906     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      251 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.330        .90712E-02** at limit **
   2  Index         2.4182        5.8691        .50000        .50438E-05
   3  Normalizat    .95325        .40455E-02    .81793E-01    .28605E-04
   4  Prefactor     1.1650        .28697E-02    .52897E-01    .17876E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.41818
  Normalizat = 0.953254
  Prefactor  = 1.16504
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.906     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      284 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    273.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4182        5.0304        .50000       -.54260    
   3  Normalizat    .95325        .14244E-01    .36208E-03   -.94613    
   4  Prefactor     1.1650        .10122E-01    .23386E-03   -.87414    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.13546e-07
Minuit parameter uncertainties:
  1  0.000809622
  2  385.395
  3  0.0142441
  4  0.0101217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209637': 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) = 6462.90637716
delta logL = -1.8790615286e-07

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.096e-04  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.418e+00  3.854e+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.165e+00  1.012e-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:  9.533e-01  1.424e-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/209637/cmap_HighResolution_318902401_319161601_4FGL_J1304.6-0348_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', job_status='DONE', photon_flux_upper_limit='9.78e-08', time_completed='2021-09-06 21:10:07.135971', job_id='209637', GAL2='1.17', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630987807.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='-1.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='307' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:10:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 209637: <4FGL_J1304.6-0348_daily_bin307> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin307> 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) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:55:22 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:22 2021
Terminated at Mon Sep  6 21:10:07 2021
Results reported at Mon Sep  6 21:10:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin307 196.172 -3.8139 318902401 319161601 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 :                                   687.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

