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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin588
RA = 196.172, Dec = -3.8139
tmin = 391737601, tmax = 391996801
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='211262', job_status='RUN', time_executed='2021-09-06 21:03:43.692923', time_epoch_executed='1630987423.69' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211262

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211262/ft1_4FGL_J1304.6-0348_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211262/ft2_4FGL_J1304.6-0348_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211262/ft1_4FGL_J1304.6-0348_daily_bin588.fits outfile=/scratch/kocevski/211262/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin588.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=391737601.0 tmax=391996801.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.53
user 3.20
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211262/ft2_4FGL_J1304.6-0348_daily_bin588.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/211262/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin588.fits evtable="EVENTS" outfile="/scratch/kocevski/211262/ft1_filtered_4FGL_J1304.6-0348_daily_bin588.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/211262/ft1_filtered_4FGL_J1304.6-0348_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/211262/ft2_4FGL_J1304.6-0348_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/211262/ltcube_391737601_391996801_4FGL_J1304.6-0348_daily_bin588.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/211262/ft2_4FGL_J1304.6-0348_daily_bin588.fits
.....................!
real 19.89
user 19.20
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211262/ft1_filtered_4FGL_J1304.6-0348_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/211262/ft2_4FGL_J1304.6-0348_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/211262/ltcube_391737601_391996801_4FGL_J1304.6-0348_daily_bin588.fits outfile=/scratch/kocevski/211262/expmap_391737601_391996801_4FGL_J1304.6-0348_daily_bin588.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/211262/ltcube_391737601_391996801_4FGL_J1304.6-0348_daily_bin588.fits
.....................!
real 196.93
user 190.68
sys 5.53

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/211262/ft1_filtered_4FGL_J1304.6-0348_daily_bin588.fits scfile=/scratch/kocevski/211262/ft2_4FGL_J1304.6-0348_daily_bin588.fits outfile=/scratch/kocevski/211262/cmap_391737601_391996801_4FGL_J1304.6-0348_daily_bin588.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211262/ft1_filtered_4FGL_J1304.6-0348_daily_bin588.fits scfile=/scratch/kocevski/211262/ft2_4FGL_J1304.6-0348_daily_bin588.fits outfile=/scratch/kocevski/211262/cmap_HighResolution_391737601_391996801_4FGL_J1304.6-0348_daily_bin588.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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211262/ft1_filtered_4FGL_J1304.6-0348_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/211262/ft2_4FGL_J1304.6-0348_daily_bin588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211262/Model_4FGL_J1304.6-0348_daily_bin588.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/211262/ft1_filtered_4FGL_J1304.6-0348_daily_bin588.fits.....................!
real 50.07
user 48.54
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30491       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6122       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.893       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2937       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15073E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    22.389       1.0000         .10000E-03   10000.    
    10 'norm      '    .83524       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43740E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.7145       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0197       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14021E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7769       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24955E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5247       1.0000         .10000E-03   10000.    
    20 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3101       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76117       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=   5861.643     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2129 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30767        3.1318        .26819E-06    .10338E-02
   2  norm          1.6122        .62454       -.23078E-07    .13906E-02
   3  Prefactor     22.878        11.457       -.19356E-07    .28431E-03
   4  Prefactor     .10000E-03    8.0997       -.16611E-07** at limit **
   5  norm          .10000E-03    .53663        .17528E-08** at limit **
   6  Prefactor     1.2889        4.4699       -.44484E-06   -.75124E-03
   7  Prefactor     .10000E-03    8.4713        .16467E-06** at limit **
   8  Prefactor     .10000E-03    54.746       -.18699E-05** at limit **
   9  norm          22.404        17.709       -.13873E-07    .35390E-04
  10  norm          .83518        .26673       -.70601E-07    .48411E-02
  11  Prefactor     .10000E-03    36.271       -.28699E-06** at limit **
  12  norm          7.7787        10.734       -.69174E-07    .29869E-04
  13  norm          .10000E-03    3.3259       -.12351E-06** at limit **
  14  Prefactor     1.0157        3.5471       -.87569E-06   -.87425E-03
  15  Prefactor     .10006E-03    58.982       -.91986E-05** at limit **
  16  Prefactor     4.7483        7.9535        .20528E-06    .79811E-04
  17  Prefactor     .10000E-03    16.954       -.29807E-05** at limit **
  18  norm          .10000E-03    .53386       -.10463E-06** at limit **
  19  norm          1.5300        3.1656        .21594E-05    .28757E-03
  20  norm          .10000E-03    8.8881       -.93129E-08** at limit **
  21  Normalizat    1.3101        .21313        .40566E-06    .52976E-03
  22  Prefactor     .76115        .14431       -.20772E-06    .63723E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.307666
  norm       = 1.61222
  Prefactor  = 22.8776
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.28894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.404
  norm       = 0.835184
  Prefactor  = 0.0001
  norm       = 7.77868
  norm       = 0.0001
  Prefactor  = 1.01573
  Prefactor  = 0.000100061
  Prefactor  = 4.74829
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 1.53002
  norm       = 0.0001
  Normalizat = 1.31011
  Prefactor  = 0.761147
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.643     FROM HESSE     STATUS=OK           348 CALLS     2477 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30767        5.8906        .24088E-02   -1.5597    
   2  norm          1.6122        .61914        .35619E-04   -1.5454    
   3  Prefactor     22.878        11.434        .83717E-04   -1.4751    
   4  Prefactor     .10000E-03    8.1583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .93103        .10899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2889        5.6914        .17567E-02   -1.5481    
   7  Prefactor     .10000E-03    8.4733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    54.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          22.404        17.712        .84652E-04   -1.4761    
  10  norm          .83518        .26484        .20951E-04   -1.5525    
  11  Prefactor     .10000E-03    36.322        .21222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.7787        10.737        .14438E-03   -1.5150    
  13  norm          .10000E-03    3.3258        .13634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0157        8.0860        .20952E-02   -1.5506    
  15  Prefactor     .10006E-03    66.129        .41771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7483        7.9553        .18408E-03   -1.5272    
  17  Prefactor     .10000E-03    82.678        .54724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .86417        .10728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5300        3.3949        .10133E-02   -1.5461    
  20  norm          .10000E-03    8.8889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3101        .24871        .26321E-03   -.83265    
  22  Prefactor     .76115        .17002        .23514E-03   -1.0118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74801e-09
Minuit parameter uncertainties:
  1  2.69232
  2  0.619144
  3  11.4354
  4  1.96984e-05
  5  4.77135e-06
  6  5.41761
  7  7.06207e-06
  8  7.62652e-05
  9  17.7163
  10  0.264837
  11  0.000220743
  12  10.7395
  13  9.94016e-06
  14  5.7325
  15  0.00401495
  16  7.95709
  17  0.000719167
  18  3.56535e-05
  19  3.39528
  20  3.42935e-06
  21  0.248935
  22  0.170141
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.207e-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:  7.611e-01  1.701e-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.310e+00  2.489e-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: 7.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211262/likelihoodResults_391737601_391996801_4FGL_J1304.6-0348_daily_bin588.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) = 5861.64312505
delta logL = -0.000131115699332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5861.64299399
delta logL = -4.8004949349e-08

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     '    2.1090       1.0000          .0000       10.000    
     3 'Normalizat'    1.3101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76115       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=   5861.643     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      234 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    632.82        .90712E-02** at limit **
   2  Index         2.1195        8.8838        .50000       -.26774E-05
   3  Normalizat    1.3101        .23229E-01    .59515E-01   -.20926E-04
   4  Prefactor     .76115        .16375E-01    .43209E-01    .21805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11948
  Normalizat = 1.31011
  Prefactor  = 0.761146
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.643     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2057.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1195        5.4074        .50000       -.61395    
   3  Normalizat    1.3101        .45447E-01    .26321E-03   -.83265    
   4  Prefactor     .76115        .32043E-01    .23514E-03   -1.0118    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.15604e-09
Minuit parameter uncertainties:
  1  0.00177106
  2  32.6099
  3  0.0454485
  4  0.0320437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211262': 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) = 5861.64299398
delta logL = -4.1201019485e-08

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.771e-03  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.119e+00  3.261e+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:  7.611e-01  3.204e-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:  1.310e+00  4.545e-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/211262/cmap_HighResolution_391737601_391996801_4FGL_J1304.6-0348_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', job_status='DONE', photon_flux_upper_limit='7.96e-08', time_completed='2021-09-06 21:14:37.762771', job_id='211262', GAL2='0.76', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630988077.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='-4.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='588' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:14:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 211262: <4FGL_J1304.6-0348_daily_bin588> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin588> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 21:00:42 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:01:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 21:01:25 2021
Terminated at Mon Sep  6 21:14:38 2021
Results reported at Mon Sep  6 21:14:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin588 196.172 -3.8139 391737601 391996801 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 :                                   652.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            836 sec.

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

