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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin895
RA = 196.172, Dec = -3.8139
tmin = 471312001, tmax = 471571201
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='212905', job_status='RUN', time_executed='2021-09-06 21:08:48.776245', time_epoch_executed='1630987728.78' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212905

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212905/ft1_4FGL_J1304.6-0348_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212905/ft2_4FGL_J1304.6-0348_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212905/ft1_4FGL_J1304.6-0348_daily_bin895.fits outfile=/scratch/kocevski/212905/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin895.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=471312001.0 tmax=471571201.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.11
user 4.83
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212905/ft1_filtered_4FGL_J1304.6-0348_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/212905/ft2_4FGL_J1304.6-0348_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/212905/ltcube_471312001_471571201_4FGL_J1304.6-0348_daily_bin895.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/212905/ft2_4FGL_J1304.6-0348_daily_bin895.fits
.....................!
real 16.87
user 16.26
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212905/ft1_filtered_4FGL_J1304.6-0348_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/212905/ft2_4FGL_J1304.6-0348_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/212905/ltcube_471312001_471571201_4FGL_J1304.6-0348_daily_bin895.fits outfile=/scratch/kocevski/212905/expmap_471312001_471571201_4FGL_J1304.6-0348_daily_bin895.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/212905/ltcube_471312001_471571201_4FGL_J1304.6-0348_daily_bin895.fits
.....................!
real 193.97
user 188.27
sys 5.08

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/212905/ft1_filtered_4FGL_J1304.6-0348_daily_bin895.fits scfile=/scratch/kocevski/212905/ft2_4FGL_J1304.6-0348_daily_bin895.fits outfile=/scratch/kocevski/212905/cmap_471312001_471571201_4FGL_J1304.6-0348_daily_bin895.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212905/ft1_filtered_4FGL_J1304.6-0348_daily_bin895.fits scfile=/scratch/kocevski/212905/ft2_4FGL_J1304.6-0348_daily_bin895.fits outfile=/scratch/kocevski/212905/cmap_HighResolution_471312001_471571201_4FGL_J1304.6-0348_daily_bin895.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.58
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212905/ft1_filtered_4FGL_J1304.6-0348_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/212905/ft2_4FGL_J1304.6-0348_daily_bin895.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212905/Model_4FGL_J1304.6-0348_daily_bin895.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/212905/ft1_filtered_4FGL_J1304.6-0348_daily_bin895.fits.....................!
real 62.43
user 60.95
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9265       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8889       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0318       1.0000         .10000E-03   10000.    
     5 'norm      '    6.2138       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.122       1.0000         .10000E-03   10000.    
     9 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1828       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.375       1.0000         .10000E-03   10000.    
    13 'norm      '    .11749E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4483       1.0000         .10000E-03   10000.    
    20 'norm      '    .24831E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.8152       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .58144       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=   7670.098     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2433 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5178        .41987E-01** at limit **
   2  norm          2.9265        .81091        .59365E-02   -.89245E-03
   3  Prefactor     1.8894        6.0613        .75695E-02    .61230E-03
   4  Prefactor     7.0335        9.6828        .37821E-02    .35115E-03
   5  norm          6.2140        2.1912        .40261E-02   -.44306E-04
   6  Prefactor     .10000E-03    2.6533        .90712E-02** at limit **
   7  Prefactor     .10005E-03    22.908        .90712E-02** at limit **
   8  Prefactor     13.121        50.504        .27644E-02    .63583E-04
   9  norm          .10000E-03    11.414        .90712E-02** at limit **
  10  norm          2.1828        .36297        .43189E-02   -.30432E-02
  11  Prefactor     .10006E-03    26.853        .90712E-02** at limit **
  12  norm          11.378        9.9536        .29696E-02    .16621E-03
  13  norm          .10026E-03    5.8114        .90712E-01** at limit **
  14  Prefactor     .10000E-03    6.4732        .90712E-02** at limit **
  15  Prefactor     .10000E-03    7.3244        .90712E-02** at limit **
  16  Prefactor     .10000E-03    2.7939        .90712E-02** at limit **
  17  Prefactor     .10000E-03    6.6054        .90712E-02** at limit **
  18  norm          .10000E-03    .34970        .90712E-02** at limit **
  19  norm          3.4479        2.7478        .54450E-02    .24386E-03
  20  norm          .10034E-03    19.692        .14035    ** at limit **
  21  Normalizat    1.8150        .21691        .61538E-01   -.45312E-04
  22  Prefactor     .58151        .14306        .67342E-01    .27083E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.92652
  Prefactor  = 1.88937
  Prefactor  = 7.03354
  norm       = 6.21401
  Prefactor  = 0.0001
  Prefactor  = 0.00010005
  Prefactor  = 13.1212
  norm       = 0.000100001
  norm       = 2.18279
  Prefactor  = 0.000100063
  norm       = 11.3776
  norm       = 0.000100264
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 3.44785
  norm       = 0.000100338
  Normalizat = 1.81501
  Prefactor  = 0.581512
 **********
 **   18 **HESSE 
 **********

 FCN=   7670.098     FROM HESSE     STATUS=OK           350 CALLS     2783 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9086        .20986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9265        .81246        .39201E-04   -1.5366    
   3  Prefactor     1.8894        6.0265        .30278E-03   -1.5433    
   4  Prefactor     7.0335        9.6764        .15128E-03   -1.5177    
   5  norm          6.2140        2.1921        .73715E-04   -1.5209    
   6  Prefactor     .10000E-03    2.6604        .13930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10005E-03    22.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.121        51.181        .11058E-03   -1.4983    
   9  norm          .10000E-03    11.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1828        .36892        .19091E-04   -1.5412    
  11  Prefactor     .10006E-03    26.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.378        9.9503        .11878E-03   -1.5033    
  13  norm          .10026E-03    24.595        .40999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.3453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8007        .14293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.6125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .35397        .50544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4479        2.7460        .12564E-03   -1.5337    
  20  norm          .10034E-03    20.592        .13456       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.8150        .25646        .27211E-03   -.69272    
  22  Prefactor     .58151        .16759        .29804E-03   -1.0837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70016e-08
Minuit parameter uncertainties:
  1  3.18517e-06
  2  0.812465
  3  6.02843
  4  9.67852
  5  2.19208
  6  4.64019e-05
  7  0.00213879
  8  51.3528
  9  0.000185081
  10  0.368918
  11  0.00260537
  12  9.95175
  13  0.00509746
  14  9.41049e-05
  15  0.000136934
  16  2.17643e-05
  17  0.000251035
  18  1.83977e-05
  19  2.74613
  20  0.00527643
  21  0.256647
  22  0.167729
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.001e-04  2.605e-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:  5.815e-01  1.677e-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.815e+00  2.566e-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: 6.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212905/likelihoodResults_471312001_471571201_4FGL_J1304.6-0348_daily_bin895.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) = 7670.09814684
delta logL = -0.000177086370059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7670.09797061
delta logL = -8.58319253894e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4192       1.0000          .0000       10.000    
     3 'Normalizat'    1.8150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58151       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=   7670.098     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      286 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10274E-03    4.9332        .18142E-01** at limit **
   2  Index         2.3420        8.0493        .50000        .16900E-04
   3  Normalizat    1.8150        .26607E-02    .27211E-03    .36766E-05
   4  Prefactor     .58151        .17715E-02    .29804E-03   -.18996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102744
  Index      = 2.34198
  Normalizat = 1.81502
  Prefactor  = 0.581509
 **********
 **   18 **HESSE 
 **********

 FCN=   7670.098     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10274E-03    53.937        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3420        6.3741        .50000       -.56049    
   3  Normalizat    1.8150        .88023E-02    .10885E-04   -.69272    
   4  Prefactor     .58151        .58607E-02    .11922E-04   -1.0837    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7597e-09
Minuit parameter uncertainties:
  1  0.0243534
  2  157.204
  3  0.00880233
  4  0.00586074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212905': 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) = 7670.09797035
delta logL = -5.97168764216e-07

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.027e-04  2.435e-02  1.000e-04  1.000e+04 ( 1.000e-14)
315        Index:  2.342e+00  1.572e+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:  5.815e-01  5.861e-03  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.815e+00  8.802e-03  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/212905/cmap_HighResolution_471312001_471571201_4FGL_J1304.6-0348_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.39e-08', time_completed='2021-09-06 21:21:46.119109', job_id='212905', GAL2='0.58', fit_tolerance='1e-08', EG2='1.82', EG='1.82', time_epoch_completed='1630988506.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='-5.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='895' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:21:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 212905: <4FGL_J1304.6-0348_daily_bin895> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin895 196.172 -3.8139 471312001 471571201 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 :                                   774.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            951 sec.

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

