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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin1126
RA = 196.172, Dec = -3.8139
tmin = 531187201, tmax = 531446401
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='215153', job_status='RUN', time_executed='2021-09-06 21:12:46.256618', time_epoch_executed='1630987966.26' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215153

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215153/ft1_4FGL_J1304.6-0348_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215153/ft2_4FGL_J1304.6-0348_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215153/ft1_4FGL_J1304.6-0348_daily_bin1126.fits outfile=/scratch/kocevski/215153/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin1126.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=531187201.0 tmax=531446401.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.05
user 3.78
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/215153/ft2_4FGL_J1304.6-0348_daily_bin1126.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/215153/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/215153/ft1_filtered_4FGL_J1304.6-0348_daily_bin1126.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/215153/ft1_filtered_4FGL_J1304.6-0348_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/215153/ft2_4FGL_J1304.6-0348_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/215153/ltcube_531187201_531446401_4FGL_J1304.6-0348_daily_bin1126.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/215153/ft2_4FGL_J1304.6-0348_daily_bin1126.fits
.....................!
real 15.42
user 14.95
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215153/ft1_filtered_4FGL_J1304.6-0348_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/215153/ft2_4FGL_J1304.6-0348_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/215153/ltcube_531187201_531446401_4FGL_J1304.6-0348_daily_bin1126.fits outfile=/scratch/kocevski/215153/expmap_531187201_531446401_4FGL_J1304.6-0348_daily_bin1126.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/215153/ltcube_531187201_531446401_4FGL_J1304.6-0348_daily_bin1126.fits
.....................!
real 193.86
user 187.34
sys 5.95

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/215153/ft1_filtered_4FGL_J1304.6-0348_daily_bin1126.fits scfile=/scratch/kocevski/215153/ft2_4FGL_J1304.6-0348_daily_bin1126.fits outfile=/scratch/kocevski/215153/cmap_531187201_531446401_4FGL_J1304.6-0348_daily_bin1126.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215153/ft1_filtered_4FGL_J1304.6-0348_daily_bin1126.fits scfile=/scratch/kocevski/215153/ft2_4FGL_J1304.6-0348_daily_bin1126.fits outfile=/scratch/kocevski/215153/cmap_HighResolution_531187201_531446401_4FGL_J1304.6-0348_daily_bin1126.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/215153/ft1_filtered_4FGL_J1304.6-0348_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/215153/ft2_4FGL_J1304.6-0348_daily_bin1126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/215153/Model_4FGL_J1304.6-0348_daily_bin1126.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/215153/ft1_filtered_4FGL_J1304.6-0348_daily_bin1126.fits.....................!
real 66.97
user 65.45
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5881       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3418       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4911       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3272       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    67.565       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4902       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.341       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14509E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.209       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18919E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.5719       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3140       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78344       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=   8470.099     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2396 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5880        2.5323       -.17218E-07   -.12779E-03
   2  norm          1.3418        .59237       -.44609E-07   -.16379E-02
   3  Prefactor     .10000E-03    6.0136        .45152E-06** at limit **
   4  Prefactor     1.4908        2.4359        .16377E-05   -.59949E-03
   5  norm          2.3272        1.5567       -.53042E-07   -.51468E-03
   6  Prefactor     .10000E-03    5.2459       -.12452E-06** at limit **
   7  Prefactor     .10000E-03    19.111        .26630E-05** at limit **
   8  Prefactor     .10000E-03    29.578       -.38654E-05** at limit **
   9  norm          67.565        31.236       -.65612E-07   -.34764E-04
  10  norm          4.4902        .42670        .17134E-07    .48212E-02
  11  Prefactor     .10000E-03    19.836        .75353E-06** at limit **
  12  norm          21.341        10.616       -.86148E-07   -.10763E-04
  13  norm          .10000E-03    3.2861       -.23040E-07** at limit **
  14  Prefactor     .10002E-03    14.996        .16172E-04** at limit **
  15  Prefactor     10.209        16.738        .81403E-07   -.63940E-05
  16  Prefactor     .10004E-03    15.287       -.15425E-04** at limit **
  17  Prefactor     .10000E-03    6.3793       -.31762E-06** at limit **
  18  norm          .10000E-03    .44737        .76632E-07** at limit **
  19  norm          6.5723        3.4503        .12922E-06    .46363E-03
  20  norm          .10000E-03    7.3918       -.19221E-06** at limit **
  21  Normalizat    1.3139        .20885        .65412E-06    .12276E-03
  22  Prefactor     .78349        .13717       -.72924E-06   -.14454E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.588
  norm       = 1.34181
  Prefactor  = 0.0001
  Prefactor  = 1.49082
  norm       = 2.3272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 67.5652
  norm       = 4.49022
  Prefactor  = 0.0001
  norm       = 21.3409
  norm       = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 10.2092
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.5723
  norm       = 0.0001
  Normalizat = 1.31394
  Prefactor  = 0.783494
 **********
 **   18 **HESSE 
 **********

 FCN=   8470.099     FROM HESSE     STATUS=OK           346 CALLS     2742 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5880        2.5282        .14062E-03   -1.5386    
   2  norm          1.3418        .58842        .44526E-04   -1.5476    
   3  Prefactor     .10000E-03    6.0597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4908        11.437        .17552E-02   -1.5464    
   5  norm          2.3272        1.5565        .89713E-04   -1.5403    
   6  Prefactor     .10000E-03    5.2883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          67.565        31.228        .48830E-04   -1.4062    
  10  norm          4.4902        .42877        .17574E-04   -1.5284    
  11  Prefactor     .10000E-03    19.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.341        10.618        .86704E-04   -1.4784    
  13  norm          .10000E-03    3.2891        .16293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    21.921        .35481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.209        16.807        .12540E-03   -1.5069    
  16  Prefactor     .10004E-03    33.639        .35866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.3843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .75303        .11851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.5723        3.4333        .11915E-03   -1.5195    
  20  norm          .10000E-03    7.3928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3139        .24531        .30360E-03   -.83151    
  22  Prefactor     .78349        .16182        .26305E-03   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09048e-09
Minuit parameter uncertainties:
  1  2.52828
  2  0.588427
  3  1.5261e-05
  4  8.26047
  5  1.55655
  6  1.3402e-06
  7  3.42243e-05
  8  5.04696e-05
  9  31.2359
  10  0.428771
  11  1.89493e-05
  12  10.6193
  13  8.42212e-07
  14  0.00128733
  15  16.8149
  16  0.0023297
  17  1.49882e-06
  18  1.10006e-05
  19  3.43342
  20  3.08127e-06
  21  0.24553
  22  0.161915
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.895e-05  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.835e-01  1.619e-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.314e+00  2.455e-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: 5.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/215153/likelihoodResults_531187201_531446401_4FGL_J1304.6-0348_daily_bin1126.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) = 8470.098788
delta logL = -0.000239582968788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8470.09854977
delta logL = -1.34834044729e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11221E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4122       1.0000          .0000       10.000    
     3 'Normalizat'    1.3139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78350       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=   8470.099     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      275 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10213E-03    86.275        .18142E-02** at limit **
   2  Index         2.3437        7.4284        .50000        .19143E-04
   3  Normalizat    1.3139        .11844E-01    .30360E-03    .29582E-04
   4  Prefactor     .78350        .81986E-02    .26305E-03    .66558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102127
  Index      = 2.34368
  Normalizat = 1.31394
  Prefactor  = 0.783497
 **********
 **   18 **HESSE 
 **********

 FCN=   8470.099     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10213E-03    371.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3437        8.7193        .50000       -.56009    
   3  Normalizat    1.3139        .25197E-01    .12144E-04   -.83151    
   4  Prefactor     .78350        .17442E-01    .10522E-04   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.99951e-08
Minuit parameter uncertainties:
  1  0.0566157
  2  415.572
  3  0.0251972
  4  0.0174422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215153': 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) = 8470.09854908
delta logL = -6.63994796923e-07

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.021e-04  5.662e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.344e+00  4.156e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  2.075e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  7.835e-01  1.744e-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.314e+00  2.520e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/215153/cmap_HighResolution_531187201_531446401_4FGL_J1304.6-0348_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2021-09-06 21:26:35.412873', job_id='215153', GAL2='0.78', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630988795.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='-6.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1126' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:26:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 215153: <4FGL_J1304.6-0348_daily_bin1126> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin1126> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 21:11:00 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:12:33 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:12:33 2021
Terminated at Mon Sep  6 21:26:36 2021
Results reported at Mon Sep  6 21:26:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin1126 196.172 -3.8139 531187201 531446401 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 :                                   820.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             337.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            936 sec.

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

