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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin343
RA = 196.172, Dec = -3.8139
tmin = 328233601, tmax = 328492801
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='209686', job_status='RUN', time_executed='2021-09-06 20:57:54.229623', time_epoch_executed='1630987074.23' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209686/ft1_4FGL_J1304.6-0348_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209686/ft2_4FGL_J1304.6-0348_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209686/ft1_4FGL_J1304.6-0348_daily_bin343.fits outfile=/scratch/kocevski/209686/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin343.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=328233601.0 tmax=328492801.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 4.06
user 3.80
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209686/ft1_filtered_4FGL_J1304.6-0348_daily_bin343.fits" evtable="EVENTS" scfile=/scratch/kocevski/209686/ft2_4FGL_J1304.6-0348_daily_bin343.fits sctable="SC_DATA" outfile=/scratch/kocevski/209686/ltcube_328233601_328492801_4FGL_J1304.6-0348_daily_bin343.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/209686/ft2_4FGL_J1304.6-0348_daily_bin343.fits
.....................!
real 15.98
user 15.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209686/ft1_filtered_4FGL_J1304.6-0348_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/209686/ft2_4FGL_J1304.6-0348_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/209686/ltcube_328233601_328492801_4FGL_J1304.6-0348_daily_bin343.fits outfile=/scratch/kocevski/209686/expmap_328233601_328492801_4FGL_J1304.6-0348_daily_bin343.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/209686/ltcube_328233601_328492801_4FGL_J1304.6-0348_daily_bin343.fits
.....................!
real 192.74
user 186.53
sys 4.88

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/209686/ft1_filtered_4FGL_J1304.6-0348_daily_bin343.fits scfile=/scratch/kocevski/209686/ft2_4FGL_J1304.6-0348_daily_bin343.fits outfile=/scratch/kocevski/209686/cmap_328233601_328492801_4FGL_J1304.6-0348_daily_bin343.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.55
user 0.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209686/ft1_filtered_4FGL_J1304.6-0348_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/209686/ft2_4FGL_J1304.6-0348_daily_bin343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209686/Model_4FGL_J1304.6-0348_daily_bin343.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/209686/ft1_filtered_4FGL_J1304.6-0348_daily_bin343.fits.....................!
real 57.57
user 55.97
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3431       1.0000         .10000E-03   10000.    
     2 'norm      '    3.2065       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5485       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.140       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.750       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1734       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.4898       1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.579       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5177       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52391       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.868       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7472       1.0000         .10000E-03   10000.    
    19 'norm      '    .12198E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1883       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0585       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0846       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=   6936.053     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2337 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3437        3.0654       -.16706E-06    .63152E-04
   2  norm          3.2065        .90510       -.38047E-07    .20329E-03
   3  Prefactor     6.5516        7.5287       -.13823E-06    .15732E-04
   4  Prefactor     .10000E-03    8.1271       -.10505E-05** at limit **
   5  norm          17.140        3.3507       -.14456E-07    .27812E-03
   6  Prefactor     11.750        8.5148       -.12071E-06    .30972E-04
   7  Prefactor     .10000E-03    19.487       -.11064E-05** at limit **
   8  Prefactor     8.1647        50.616        .29221E-05    .72563E-04
   9  norm          .10000E-03    14.626       -.74756E-06** at limit **
  10  norm          3.4898        .47422       -.17454E-07    .76978E-03
  11  Prefactor     39.588        53.046       -.16949E-05   -.89407E-04
  12  norm          .10000E-03    3.3724        .10030E-06** at limit **
  13  norm          2.5183        14.571       -.98917E-06   -.56534E-04
  14  Prefactor     .10000E-03    4.1635       -.23153E-07** at limit **
  15  Prefactor     .10000E-03    9.8997        .15285E-05** at limit **
  16  Prefactor     .45721        43.142       -.17417E-04    .69576E-04
  17  Prefactor     21.880        19.805        .84315E-06    .49035E-03
  18  norm          1.7472        1.5873       -.66713E-07    .10292E-03
  19  norm          .10000E-03    3.5620       -.21894E-05** at limit **
  20  norm          4.1928        27.099       -.16479E-05   -.33745E-04
  21  Normalizat    1.0586        .25180        .17549E-05    .21129E-03
  22  Prefactor     1.0846        .17116        .41549E-06    .17619E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.3437
  norm       = 3.20646
  Prefactor  = 6.55156
  Prefactor  = 0.000100001
  norm       = 17.1396
  Prefactor  = 11.7503
  Prefactor  = 0.000100001
  Prefactor  = 8.16468
  norm       = 0.0001
  norm       = 3.48984
  Prefactor  = 39.5878
  norm       = 0.0001
  norm       = 2.51827
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.457211
  Prefactor  = 21.8803
  norm       = 1.74719
  norm       = 0.0001
  norm       = 4.19278
  Normalizat = 1.05857
  Prefactor  = 1.08457
 **********
 **   18 **HESSE 
 **********

 FCN=   6936.053     FROM HESSE     STATUS=OK           342 CALLS     2679 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3437        3.0516        .16176E-03   -1.5402    
   2  norm          3.2065        .90660        .39541E-04   -1.5350    
   3  Prefactor     6.5516        7.5227        .15682E-03   -1.5196    
   4  Prefactor     .10000E-03    8.2410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.140        3.3543        .63982E-04   -1.4880    
   6  Prefactor     11.750        8.5128        .11687E-03   -1.5022    
   7  Prefactor     .10000E-03    19.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.1647        51.497        .14023E-03   -1.5136    
   9  norm          .10000E-03    14.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4898        .47678        .19563E-04   -1.5334    
  11  Prefactor     39.588        53.282        .63712E-04   -1.4449    
  12  norm          .10000E-03    3.3799        .14939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5183        14.598        .25748E-03   -1.5391    
  14  Prefactor     .10000E-03    4.1729        .16599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .45721        43.470        .42713E-02   -1.5573    
  17  Prefactor     21.880        20.021        .85654E-04   -1.4772    
  18  norm          1.7472        1.5737        .94850E-04   -1.5444    
  19  norm          .10000E-03    3.5948        .30408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1928        27.167        .19692E-03   -1.5298    
  21  Normalizat    1.0586        .30082        .36985E-03   -.91093    
  22  Prefactor     1.0846        .20557        .25492E-03   -.89961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21688e-09
Minuit parameter uncertainties:
  1  3.0518
  2  0.906607
  3  7.52382
  4  0.000133322
  5  3.35431
  6  8.51363
  7  0.000214528
  8  41.062
  9  0.000124242
  10  0.476778
  11  53.3463
  12  1.28949e-05
  13  12.1304
  14  1.42531e-05
  15  0.000186034
  16  8.92201
  17  20.0273
  18  1.57377
  19  7.17616e-05
  20  21.3593
  21  0.301304
  22  0.205722
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  3.959e+01  5.335e+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:  1.085e+00  2.057e-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.059e+00  3.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 196.172 -3.814
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209686/likelihoodResults_328233601_328492801_4FGL_J1304.6-0348_daily_bin343.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) = 6936.05285136
delta logL = 0.000216809007725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6936.0527314
delta logL = 0.00033676530802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.556       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1533       1.0000          .0000       10.000    
     3 'Normalizat'    1.0591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0845       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=   6936.053     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      277 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.625        71.578        .31471E-03    .90309E-06
   2  Index         2.1549        .85905        .10030E-01    .17637E-04
   3  Normalizat    1.0590        .28789        .36978E-03   -.40644E-04
   4  Prefactor     1.0844        .20160        .25494E-03    .68450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.6251
  Index      = 2.15486
  Normalizat = 1.05903
  Prefactor  = 1.08437
 **********
 **   18 **HESSE 
 **********

 FCN=   6936.053     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.625        66.908        .12589E-04   -1.4432    
   2  Index         2.1549        .80386        .40119E-03   -.60532    
   3  Normalizat    1.0590        .28805        .14791E-04   -.91078    
   4  Prefactor     1.0844        .20175        .10198E-04   -.89968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45922e-11
Minuit parameter uncertainties:
  1  67.0324
  2  0.809068
  3  0.288478
  4  0.201887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209686': 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) = 6936.05272534
delta logL = 0.000342827528584

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  4.063e+01  6.703e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.155e+00  8.091e-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:  1.084e+00  2.019e-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.059e+00  2.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.88
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/209686/cmap_HighResolution_328233601_328492801_4FGL_J1304.6-0348_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-06 21:09:43.243729', job_id='209686', GAL2='1.08', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630987783.24', return_code2='0', ts='0.88', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.43e-04', ts2='0.89', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='343' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:09:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 209686: <4FGL_J1304.6-0348_daily_bin343> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin343> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 20:55:23 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:55:45 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:45 2021
Terminated at Mon Sep  6 21:09:44 2021
Results reported at Mon Sep  6 21:09:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin343 196.172 -3.8139 328233601 328492801 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 :                                   705.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            861 sec.

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

