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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin439
RA = 196.172, Dec = -3.8139
tmin = 353116801, tmax = 353376001
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='209826', job_status='RUN', time_executed='2021-09-06 20:56:33.875901', time_epoch_executed='1630986993.88' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209826

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209826/ft1_4FGL_J1304.6-0348_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209826/ft2_4FGL_J1304.6-0348_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209826/ft1_4FGL_J1304.6-0348_daily_bin439.fits outfile=/scratch/kocevski/209826/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin439.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=353116801.0 tmax=353376001.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.47
user 3.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/209826/ft2_4FGL_J1304.6-0348_daily_bin439.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/209826/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin439.fits evtable="EVENTS" outfile="/scratch/kocevski/209826/ft1_filtered_4FGL_J1304.6-0348_daily_bin439.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209826/ft1_filtered_4FGL_J1304.6-0348_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/209826/ft2_4FGL_J1304.6-0348_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/209826/ltcube_353116801_353376001_4FGL_J1304.6-0348_daily_bin439.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/209826/ft2_4FGL_J1304.6-0348_daily_bin439.fits
.....................!
real 16.49
user 15.95
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209826/ft1_filtered_4FGL_J1304.6-0348_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/209826/ft2_4FGL_J1304.6-0348_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/209826/ltcube_353116801_353376001_4FGL_J1304.6-0348_daily_bin439.fits outfile=/scratch/kocevski/209826/expmap_353116801_353376001_4FGL_J1304.6-0348_daily_bin439.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/209826/ltcube_353116801_353376001_4FGL_J1304.6-0348_daily_bin439.fits
.....................!
real 192.26
user 187.51
sys 4.04

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/209826/ft1_filtered_4FGL_J1304.6-0348_daily_bin439.fits scfile=/scratch/kocevski/209826/ft2_4FGL_J1304.6-0348_daily_bin439.fits outfile=/scratch/kocevski/209826/cmap_353116801_353376001_4FGL_J1304.6-0348_daily_bin439.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209826/ft1_filtered_4FGL_J1304.6-0348_daily_bin439.fits scfile=/scratch/kocevski/209826/ft2_4FGL_J1304.6-0348_daily_bin439.fits outfile=/scratch/kocevski/209826/cmap_HighResolution_353116801_353376001_4FGL_J1304.6-0348_daily_bin439.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209826/ft1_filtered_4FGL_J1304.6-0348_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/209826/ft2_4FGL_J1304.6-0348_daily_bin439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209826/Model_4FGL_J1304.6-0348_daily_bin439.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/209826/ft1_filtered_4FGL_J1304.6-0348_daily_bin439.fits.....................!
real 55.25
user 53.83
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8617       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2653       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5938       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5167       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3162       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.251       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .64252       1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.905       1.0000         .10000E-03   10000.    
    12 'norm      '    4.2465       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9895       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11626E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3257       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0593       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75764       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=   6859.234     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2420 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8618        2.7613       -.73059E-06    .17568E-04
   2  norm          1.2653        .51807        .18442E-07    .40790E-03
   3  Prefactor     .10000E-03    5.6223       -.39671E-05** at limit **
   4  Prefactor     1.5937        2.0113        .17722E-06   -.83530E-03
   5  norm          1.5167        1.6244       -.10385E-07   -.31631E-04
   6  Prefactor     2.3166        5.9727        .24222E-07    .21399E-05
   7  Prefactor     12.252        17.103        .59979E-06    .57349E-05
   8  Prefactor     .10000E-03    12.888        .79653E-05** at limit **
   9  norm          .10000E-03    7.3090        .15603E-05** at limit **
  10  norm          .64249        .20168       -.13843E-07   -.65809E-03
  11  Prefactor     53.906        46.521        .57086E-06   -.76419E-05
  12  norm          4.2464        6.0243       -.26013E-07   -.28832E-03
  13  norm          .10000E-03    2.9162        .49372E-06** at limit **
  14  Prefactor     .10000E-03    1.2867        .30725E-07** at limit **
  15  Prefactor     .10000E-03    4.2879        .34663E-05** at limit **
  16  Prefactor     1.9897        3.3219       -.11449E-06   -.22550E-04
  17  Prefactor     .10000E-03    3.4254       -.19836E-05** at limit **
  18  norm          .10000E-03    .42684        .21797E-07** at limit **
  19  norm          1.3257        1.5785        .56019E-08    .44865E-04
  20  norm          .10000E-03    14.008       -.84271E-05** at limit **
  21  Normalizat    1.0594        .17628        .22230E-07    .22765E-04
  22  Prefactor     .75758        .12135        .84746E-08    .36224E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.86182
  norm       = 1.26534
  Prefactor  = 0.0001
  Prefactor  = 1.59372
  norm       = 1.51668
  Prefactor  = 2.31662
  Prefactor  = 12.2515
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.642491
  Prefactor  = 53.906
  norm       = 4.24638
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.98969
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.32571
  norm       = 0.0001
  Normalizat = 1.05937
  Prefactor  = 0.757577
 **********
 **   18 **HESSE 
 **********

 FCN=   6859.234     FROM HESSE     STATUS=OK           346 CALLS     2766 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8618        2.7525        .13080E-03   -1.5370    
   2  norm          1.2653        .51351        .35970E-04   -1.5483    
   3  Prefactor     .10000E-03    5.6427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5937        8.0948        .16801E-02   -1.5455    
   5  norm          1.5167        1.6093        .10315E-03   -1.5462    
   6  Prefactor     2.3166        5.9587        .26955E-03   -1.5404    
   7  Prefactor     12.252        17.098        .11445E-03   -1.5008    
   8  Prefactor     .10000E-03    12.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.3129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .64249        .20146        .19603E-04   -1.5548    
  11  Prefactor     53.906        46.538        .54631E-04   -1.4238    
  12  norm          4.2464        6.1217        .97765E-03   -1.5296    
  13  norm          .10000E-03    2.9211        .13812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2876        .91744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2961        .16747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9897        3.3007        .18894E-03   -1.5426    
  17  Prefactor     .10000E-03    3.4294        .14970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4343        .10507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3257        1.5631        .11052E-03   -1.5478    
  20  norm          .10000E-03    14.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0594        .21214        .25433E-03   -.91067    
  22  Prefactor     .75758        .14546        .20971E-03   -1.0131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24556e-09
Minuit parameter uncertainties:
  1  2.75263
  2  0.513507
  3  8.62441e-06
  4  7.18484
  5  1.60937
  6  5.96026
  7  17.1048
  8  7.10596e-06
  9  5.1889e-07
  10  0.20146
  11  46.5692
  12  6.12265
  13  7.73662e-08
  14  9.62263e-08
  15  6.05558e-08
  16  3.30103
  17  5.47678e-07
  18  6.92727e-06
  19  1.56319
  20  1.29729e-05
  21  0.212312
  22  0.145532
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  5.391e+01  4.657e+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:  7.576e-01  1.455e-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.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.09
Ra Dec: 196.172 -3.814
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/209826/likelihoodResults_353116801_353376001_4FGL_J1304.6-0348_daily_bin439.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) = 6858.87162583
delta logL = 0.362782951008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6858.85880725
delta logL = 0.375601535407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.424       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7179       1.0000          .0000       10.000    
     3 'Normalizat'    1.0358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76789       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=   6858.859     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      274 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.378        422.78        .20263E-02    .26978E-03
   2  Index         2.7191        2.8934        .98408E-01    .18099E-03
   3  Normalizat    1.0357        .75040E-01    .41629E-01    .10661E-04
   4  Prefactor     .76783        .46543E-01    .43298E-01    .10665E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.3783
  Index      = 2.71915
  Normalizat = 1.03566
  Prefactor  = 0.76783
 **********
 **   18 **HESSE 
 **********

 FCN=   6858.859     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.378        50.048        .40527E-03   -1.4720    
   2  Index         2.7191        .90882        .48248E-02   -.47369    
   3  Normalizat    1.0357        .20675        .25657E-03   -.91845    
   4  Prefactor     .76783        .14541        .20837E-03   -1.0093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2846e-08
Minuit parameter uncertainties:
  1  50.134
  2  0.915259
  3  0.206911
  4  0.145478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209826': 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) = 6858.85880342
delta logL = 0.375605369104

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  2.438e+01  5.013e+01  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.719e+00  9.153e-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.678e-01  1.455e-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.036e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 196.172 -3.814
Photon Index (Free Index): 2.72 +/- 0.92
Photon Flux (Free Index): 5.42e-08 +/- 4.30e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.05e-05

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/209826/cmap_HighResolution_353116801_353376001_4FGL_J1304.6-0348_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='1.28e-05', photon_flux_error='2.91e-08', dlogl='3.76e-01', energy_flux='1.58e-05', photon_flux2='5.42e-08', job_status='DONE', time_completed='2021-09-06 21:08:31.840513', photon_index_error2='0.92', photon_index2='2.72', ts='2.09', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='9.83e-08', energy_flux_error2='1.05e-05', EG='1.06', time_epoch_completed='1630987711.84', return_code='0', job_id='209826', GAL2='0.77', EG2='1.04', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='4.30e-08', ts2='2.88', photon_index='2.18' WHERE bin_id='439' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:08:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 209826: <4FGL_J1304.6-0348_daily_bin439> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin439> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 20:55:34 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 20:56:20 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:56:20 2021
Terminated at Mon Sep  6 21:08:32 2021
Results reported at Mon Sep  6 21:08:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin439 196.172 -3.8139 353116801 353376001 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 :                                   713.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            778 sec.

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

