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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin739
RA = 196.172, Dec = -3.8139
tmin = 430876801, tmax = 431136001
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='212651', job_status='RUN', time_executed='2021-09-06 21:08:41.025318', time_epoch_executed='1630987721.03' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212651/ft1_4FGL_J1304.6-0348_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212651/ft2_4FGL_J1304.6-0348_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212651/ft1_4FGL_J1304.6-0348_daily_bin739.fits outfile=/scratch/kocevski/212651/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin739.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=430876801.0 tmax=431136001.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 5.44
user 5.10
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212651/ft2_4FGL_J1304.6-0348_daily_bin739.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/212651/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin739.fits evtable="EVENTS" outfile="/scratch/kocevski/212651/ft1_filtered_4FGL_J1304.6-0348_daily_bin739.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/212651/ft1_filtered_4FGL_J1304.6-0348_daily_bin739.fits" evtable="EVENTS" scfile=/scratch/kocevski/212651/ft2_4FGL_J1304.6-0348_daily_bin739.fits sctable="SC_DATA" outfile=/scratch/kocevski/212651/ltcube_430876801_431136001_4FGL_J1304.6-0348_daily_bin739.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/212651/ft2_4FGL_J1304.6-0348_daily_bin739.fits
.....................!
real 14.14
user 13.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212651/ft1_filtered_4FGL_J1304.6-0348_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/212651/ft2_4FGL_J1304.6-0348_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/212651/ltcube_430876801_431136001_4FGL_J1304.6-0348_daily_bin739.fits outfile=/scratch/kocevski/212651/expmap_430876801_431136001_4FGL_J1304.6-0348_daily_bin739.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/212651/ltcube_430876801_431136001_4FGL_J1304.6-0348_daily_bin739.fits
.....................!
real 192.45
user 185.98
sys 5.01

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/212651/ft1_filtered_4FGL_J1304.6-0348_daily_bin739.fits scfile=/scratch/kocevski/212651/ft2_4FGL_J1304.6-0348_daily_bin739.fits outfile=/scratch/kocevski/212651/cmap_430876801_431136001_4FGL_J1304.6-0348_daily_bin739.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212651/ft1_filtered_4FGL_J1304.6-0348_daily_bin739.fits scfile=/scratch/kocevski/212651/ft2_4FGL_J1304.6-0348_daily_bin739.fits outfile=/scratch/kocevski/212651/cmap_HighResolution_430876801_431136001_4FGL_J1304.6-0348_daily_bin739.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212651/ft1_filtered_4FGL_J1304.6-0348_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/212651/ft2_4FGL_J1304.6-0348_daily_bin739.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212651/Model_4FGL_J1304.6-0348_daily_bin739.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/212651/ft1_filtered_4FGL_J1304.6-0348_daily_bin739.fits.....................!
real 53.86
user 52.60
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4571       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1001       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.935       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    76.013       1.0000         .10000E-03   10000.    
     9 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3604       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .57349E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.575       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8056       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0910       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.8731       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .62697       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=   6338.206     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2332 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4578        4.8393       -.14069E-07   -.14765E-03
   2  norm          2.1002        .71048       -.19809E-07   -.83860E-04
   3  Prefactor     .10000E-03    6.4440        .24785E-05** at limit **
   4  Prefactor     11.936        8.8259       -.80456E-06   -.11430E-02
   5  norm          .10000E-03    .57624        .62963E-08** at limit **
   6  Prefactor     .10000E-03    4.8789       -.34646E-06** at limit **
   7  Prefactor     .10000E-03    22.837       -.66293E-05** at limit **
   8  Prefactor     76.011        51.416       -.18788E-05    .60051E-04
   9  norm          .10000E-03    40.147        .11217E-04** at limit **
  10  norm          2.3596        .41095        .44599E-07    .53962E-02
  11  Prefactor     .10000E-03    198.28       -.17687E-03** at limit **
  12  norm          .10000E-03    9.1381       -.31897E-05** at limit **
  13  norm          .10000E-03    5.2911        .19203E-05** at limit **
  14  Prefactor     10.577        10.484        .36984E-07   -.33548E-04
  15  Prefactor     .10000E-03    5.7126       -.33118E-05** at limit **
  16  Prefactor     4.8094        12.078       -.70180E-06   -.84151E-04
  17  Prefactor     .10000E-03    12.551        .22644E-05** at limit **
  18  norm          .10000E-03    .87434       -.30426E-07** at limit **
  19  norm          2.0919        2.7322       -.52330E-07   -.19960E-03
  20  norm          .10000E-03    10.637        .19020E-05** at limit **
  21  Normalizat    1.8730        .24580        .10194E-05    .36242E-03
  22  Prefactor     .62691        .15691       -.16779E-06    .27064E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.45783
  norm       = 2.10018
  Prefactor  = 0.0001
  Prefactor  = 11.9363
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.011
  norm       = 0.0001
  norm       = 2.35964
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.5769
  Prefactor  = 0.0001
  Prefactor  = 4.80938
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.09188
  norm       = 0.0001
  Normalizat = 1.87297
  Prefactor  = 0.626914
 **********
 **   18 **HESSE 
 **********

 FCN=   6338.206     FROM HESSE     STATUS=OK           336 CALLS     2668 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4578        4.8370        .13578E-03   -1.5162    
   2  norm          2.1002        .70967        .37354E-04   -1.5418    
   3  Prefactor     .10000E-03    6.4859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.936        8.8590        .57979E-03   -1.5017    
   5  norm          .10000E-03    .58623        .58990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9029        .17171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     76.011        51.598        .46056E-04   -1.3962    
   9  norm          .10000E-03    40.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3596        .41490        .19678E-04   -1.5401    
  11  Prefactor     .10000E-03    197.55        .21088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.1897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.3094        .17885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.577        10.460        .12321E-03   -1.5057    
  15  Prefactor     .10000E-03    5.7158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8094        12.152        .18352E-03   -1.5269    
  17  Prefactor     .10000E-03    12.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4472        .14298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0919        2.7168        .14562E-03   -1.5419    
  20  norm          .10000E-03    10.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.8730        .28820        .27437E-03   -.67774    
  22  Prefactor     .62691        .18254        .29722E-03   -1.0646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41807e-09
Minuit parameter uncertainties:
  1  4.83726
  2  0.709675
  3  7.37565e-06
  4  8.85998
  5  4.72613e-07
  6  1.85373e-06
  7  2.48092e-07
  8  51.6282
  9  4.49891e-05
  10  0.414898
  11  0.00139465
  12  4.76638e-05
  13  5.66954e-07
  14  10.4614
  15  1.50671e-06
  16  12.158
  17  2.47145e-06
  18  2.00784e-06
  19  2.71694
  20  9.27961e-07
  21  0.288462
  22  0.182714
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.395e-03  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.269e-01  1.827e-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.873e+00  2.885e-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: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212651/likelihoodResults_430876801_431136001_4FGL_J1304.6-0348_daily_bin739.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) = 6338.20625869
delta logL = -2.39756491283e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6338.20625869
delta logL = -2.39740293182e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96362E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1761       1.0000          .0000       10.000    
     3 'Normalizat'    1.8730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62691       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=   6335.275     FROM MIGRAD    STATUS=CONVERGED    169 CALLS      318 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19731E-01    .13709        .90712E-03    .10893E-01
   2  Index         5.8599        1.6529        .58311E-01    .34242E-03
   3  Normalizat    1.6466        .82237E-01    .64836E-01   -.65613E-04
   4  Prefactor     .72484        .55214E-01    .62871E-01    .39799E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0197306
  Index      = 5.85993
  Normalizat = 1.64661
  Prefactor  = 0.724839
 **********
 **   18 **HESSE 
 **********

 FCN=   6335.275     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      349 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19731E-01    .23495        .52287E-05   -1.5680    
   2  Index         5.8599        2.3114        .24144E-02    .17285    
   3  Normalizat    1.6466        .24984        .28677E-03   -.73738    
   4  Prefactor     .72484        .16520        .27812E-03   -1.0256    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.99583e-11
Minuit parameter uncertainties:
  1  0.135828
  2  2.40599
  3  0.250028
  4  0.16531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212651': 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) = 6335.27548673
delta logL = 2.93074798184

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.973e-02  1.358e-01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  5.860e+00  2.406e+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:  7.248e-01  1.653e-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.647e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.33
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 5.86 +/- 2.41
Photon Flux (Free Index): 2.14e-07 +/- 1.05e-07
Energy Flux (Free Index): 2.69e-05 +/- 1.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/212651/cmap_HighResolution_430876801_431136001_4FGL_J1304.6-0348_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', comment='SUCCESS', energy_flux2='2.69e-05', dlogl='2.93e+00', photon_flux2='2.14e-07', job_status='DONE', time_completed='2021-09-06 21:20:19.398343', photon_index_error2='2.41', photon_index2='5.86', ts='-0.00', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.40e-05', EG='1.87', time_epoch_completed='1630988419.4', return_code='0', job_id='212651', GAL2='0.72', EG2='1.65', return_code2='102', photon_flux_error2='1.05e-07', ts2='6.33', photon_index='2.18' WHERE bin_id='739' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:20:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 212651: <4FGL_J1304.6-0348_daily_bin739> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin739> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 21:05:34 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:05:48 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:05:48 2021
Terminated at Mon Sep  6 21:20:20 2021
Results reported at Mon Sep  6 21:20:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin739 196.172 -3.8139 430876801 431136001 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 :                                   694.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            886 sec.

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

