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


Performing analysis on: 4FGL_J1304.6-0348_daily_bin894
RA = 196.172, Dec = -3.8139
tmin = 471052801, tmax = 471312001
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='212903', job_status='RUN', time_executed='2021-09-06 21:09:03.241870', time_epoch_executed='1630987743.24' WHERE source_name='4FGL J1304.6-0348' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212903/ft1_4FGL_J1304.6-0348_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212903/ft2_4FGL_J1304.6-0348_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212903/ft1_4FGL_J1304.6-0348_daily_bin894.fits outfile=/scratch/kocevski/212903/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin894.fits ra=196.172 dec=-3.8139 rad=12.0 tmin=471052801.0 tmax=471312001.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.02
user 3.76
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212903/ft2_4FGL_J1304.6-0348_daily_bin894.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/212903/ft1_filteredMKT_4FGL_J1304.6-0348_daily_bin894.fits evtable="EVENTS" outfile="/scratch/kocevski/212903/ft1_filtered_4FGL_J1304.6-0348_daily_bin894.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212903/ft1_filtered_4FGL_J1304.6-0348_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/212903/ft2_4FGL_J1304.6-0348_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/212903/ltcube_471052801_471312001_4FGL_J1304.6-0348_daily_bin894.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/212903/ft2_4FGL_J1304.6-0348_daily_bin894.fits
.....................!
real 14.49
user 14.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212903/ft1_filtered_4FGL_J1304.6-0348_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/212903/ft2_4FGL_J1304.6-0348_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/212903/ltcube_471052801_471312001_4FGL_J1304.6-0348_daily_bin894.fits outfile=/scratch/kocevski/212903/expmap_471052801_471312001_4FGL_J1304.6-0348_daily_bin894.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/212903/ltcube_471052801_471312001_4FGL_J1304.6-0348_daily_bin894.fits
.....................!
real 192.05
user 186.20
sys 5.21

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/212903/ft1_filtered_4FGL_J1304.6-0348_daily_bin894.fits scfile=/scratch/kocevski/212903/ft2_4FGL_J1304.6-0348_daily_bin894.fits outfile=/scratch/kocevski/212903/cmap_471052801_471312001_4FGL_J1304.6-0348_daily_bin894.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212903/ft1_filtered_4FGL_J1304.6-0348_daily_bin894.fits scfile=/scratch/kocevski/212903/ft2_4FGL_J1304.6-0348_daily_bin894.fits outfile=/scratch/kocevski/212903/cmap_HighResolution_471052801_471312001_4FGL_J1304.6-0348_daily_bin894.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212903/ft1_filtered_4FGL_J1304.6-0348_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/212903/ft2_4FGL_J1304.6-0348_daily_bin894.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212903/Model_4FGL_J1304.6-0348_daily_bin894.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/212903/ft1_filtered_4FGL_J1304.6-0348_daily_bin894.fits.....................!
real 63.57
user 62.07
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9567       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6615       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .20456       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11577E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.990       1.0000         .10000E-03   10000.    
     9 'norm      '    .10282E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7930       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .28945E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.8556       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7386       1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.112       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0583       1.0000         .10000E-03   10000.    
    19 'norm      '    .18776E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5301       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97824       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=   7944.993     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2088 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9567        2.7794        .16795E-07    .29155E-04
   2  norm          1.6615        .67270       -.34015E-08    .16065E-03
   3  Prefactor     .10000E-03    7.9974        .20723E-05** at limit **
   4  Prefactor     .10000E-03    8.1188       -.93137E-06** at limit **
   5  norm          .20473        .81598       -.75336E-06   -.10239E-02
   6  Prefactor     .10000E-03    4.3282        .11782E-06** at limit **
   7  Prefactor     .10000E-03    174.00        .82178E-05** at limit **
   8  Prefactor     50.918        48.006       -.50699E-04    .77045E-04
   9  norm          .10000E-03    36.615       -.11577E-05** at limit **
  10  norm          1.7936        .34887        .58756E-06   -.90386E-02
  11  Prefactor     .10000E-03    16.122       -.89471E-06** at limit **
  12  norm          .10000E-03    19.502        .11367E-04** at limit **
  13  norm          7.8553        11.504       -.57564E-06   -.63864E-04
  14  Prefactor     .10000E-03    3.1320       -.65724E-07** at limit **
  15  Prefactor     .10000E-03    7.3516       -.52096E-06** at limit **
  16  Prefactor     1.7437        10.896       -.72441E-05   -.50323E-03
  17  Prefactor     56.088        22.824        .75481E-05    .15652E-03
  18  norm          2.0586        1.7584       -.22697E-06   -.80655E-03
  19  norm          .10000E-03    3.1446       -.93386E-06** at limit **
  20  norm          .10000E-03    9.0807       -.83542E-06** at limit **
  21  Normalizat    1.5300        .23671        .14505E-05    .82433E-05
  22  Prefactor     .97824        .15564        .45037E-06    .63382E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.9567
  norm       = 1.66153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.204728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.9181
  norm       = 0.0001
  norm       = 1.79364
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 7.85528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74373
  Prefactor  = 56.0884
  norm       = 2.05858
  norm       = 0.000100002
  norm       = 0.0001
  Normalizat = 1.53004
  Prefactor  = 0.978243
 **********
 **   18 **HESSE 
 **********

 FCN=   7944.993     FROM HESSE     STATUS=OK           342 CALLS     2430 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9567        2.7792        .12118E-03   -1.5310    
   2  norm          1.6615        .66633        .44062E-04   -1.5450    
   3  Prefactor     .10000E-03    8.0542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20473        1.4582        .15376E-02   -1.5617    
   6  Prefactor     .10000E-03    4.3500        .18107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    177.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     50.918        47.864        .28081E-03   -1.4280    
   9  norm          .10000E-03    36.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7936        .35000        .20865E-04   -1.5440    
  11  Prefactor     .10000E-03    16.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    20.213        .42810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.8553        11.489        .14306E-03   -1.5147    
  14  Prefactor     .10000E-03    3.1399        .15404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.3623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7437        10.969        .31822E-03   -1.5444    
  17  Prefactor     56.088        22.763        .53552E-04   -1.4209    
  18  norm          2.0586        1.7514        .10207E-03   -1.5421    
  19  norm          .10000E-03    3.2166        .30729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.0822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5300        .28426        .30983E-03   -.76938    
  22  Prefactor     .97824        .18659        .25848E-03   -.93458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99461e-09
Minuit parameter uncertainties:
  1  2.77928
  2  0.666336
  3  2.044e-05
  4  5.90525e-06
  5  1.09253
  6  3.49503e-05
  7  0.000191513
  8  47.8998
  9  0.000146158
  10  0.349999
  11  1.11181e-05
  12  0.000344427
  13  11.4921
  14  9.74826e-06
  15  8.97823e-06
  16  8.74898
  17  22.7667
  18  1.75148
  19  0.000160823
  20  1.73323e-06
  21  0.284554
  22  0.186711
Done.

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

Extracting fit parameters...

4FGL J1304.6-0348
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.112e-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:  9.782e-01  1.867e-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.530e+00  2.846e-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.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/212903/likelihoodResults_471052801_471312001_4FGL_J1304.6-0348_daily_bin894.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) = 7944.99373083
delta logL = -0.000294687001769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7944.99344263
delta logL = -6.48972036288e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7631       1.0000          .0000       10.000    
     3 'Normalizat'    1.5300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97825       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=   7944.993     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      242 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.429        .90712E-02** at limit **
   2  Index         2.7309        6.4281        .50000        .33654E-04
   3  Normalizat    1.5300        .16029E-01    .70032E-01    .32247E-05
   4  Prefactor     .97824        .11074E-01    .45995E-01    .24419E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.73086
  Normalizat = 1.53004
  Prefactor  = 0.978242
 **********
 **   18 **HESSE 
 **********

 FCN=   7944.993     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7309        6.3594        .50000       -.47106    
   3  Normalizat    1.5300        .26633        .30983E-03   -.76938    
   4  Prefactor     .97824        .18415        .25848E-03   -.93458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38304e-09
Minuit parameter uncertainties:
  1  0.000130305
  2  4.59102
  3  0.266574
  4  0.18427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212903': 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) = 7944.99343876
delta logL = -2.62223056779e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  9.782e-01  1.843e-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.530e+00  2.666e-01  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/212903/cmap_HighResolution_471052801_471312001_4FGL_J1304.6-0348_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2021-09-06 21:21:33.562601', job_id='212903', GAL2='0.98', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1630988493.56', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-2.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='894' AND source_name='4FGL J1304.6-0348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 21:21:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 212903: <4FGL_J1304.6-0348_daily_bin894> in cluster <slac> Done

Job <4FGL_J1304.6-0348_daily_bin894> 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) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 21:06:24 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:24 2021
Terminated at Mon Sep  6 21:21:34 2021
Results reported at Mon Sep  6 21:21:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1304.6-0348_daily_bin894 196.172 -3.8139 471052801 471312001 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 :                                   744.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            939 sec.

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

