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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1595
RA = 57.4699, Dec = -21.0576
tmin = 652752001, tmax = 653011201
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='49908', job_status='RUN', time_executed='2021-09-11 00:03:34.404010', time_epoch_executed='1631343814.4' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49908

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49908/ft1_4FGL_J0349.8-2103_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49908/ft2_4FGL_J0349.8-2103_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49908/ft1_4FGL_J0349.8-2103_daily_bin1595.fits outfile=/scratch/kocevski/49908/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1595.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=652752001.0 tmax=653011201.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.25
user 3.03
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/49908/ft2_4FGL_J0349.8-2103_daily_bin1595.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49908/ft2_4FGL_J0349.8-2103_daily_bin1595.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/49908/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1595.fits evtable="EVENTS" outfile="/scratch/kocevski/49908/ft1_filtered_4FGL_J0349.8-2103_daily_bin1595.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49908/ft1_filtered_4FGL_J0349.8-2103_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/49908/ft2_4FGL_J0349.8-2103_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/49908/ltcube_652752001_653011201_4FGL_J0349.8-2103_daily_bin1595.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/49908/ft2_4FGL_J0349.8-2103_daily_bin1595.fits
.....................!
real 12.48
user 12.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49908/ft1_filtered_4FGL_J0349.8-2103_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/49908/ft2_4FGL_J0349.8-2103_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/49908/ltcube_652752001_653011201_4FGL_J0349.8-2103_daily_bin1595.fits outfile=/scratch/kocevski/49908/expmap_652752001_653011201_4FGL_J0349.8-2103_daily_bin1595.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/49908/ltcube_652752001_653011201_4FGL_J0349.8-2103_daily_bin1595.fits
.....................!
real 192.03
user 186.64
sys 5.02

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 151 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0349.8-2103 @ 57.4699 -21.0576

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/49908/ft1_filtered_4FGL_J0349.8-2103_daily_bin1595.fits scfile=/scratch/kocevski/49908/ft2_4FGL_J0349.8-2103_daily_bin1595.fits outfile=/scratch/kocevski/49908/cmap_652752001_653011201_4FGL_J0349.8-2103_daily_bin1595.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=57.4699 yref=-21.0576 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49908/ft1_filtered_4FGL_J0349.8-2103_daily_bin1595.fits scfile=/scratch/kocevski/49908/ft2_4FGL_J0349.8-2103_daily_bin1595.fits outfile=/scratch/kocevski/49908/cmap_HighResolution_652752001_653011201_4FGL_J0349.8-2103_daily_bin1595.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=57.4699 yref=-21.0576 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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/49908/ft1_filtered_4FGL_J0349.8-2103_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/49908/ft2_4FGL_J0349.8-2103_daily_bin1595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/49908/Model_4FGL_J0349.8-2103_daily_bin1595.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/49908/ft1_filtered_4FGL_J0349.8-2103_daily_bin1595.fits.....................!
real 151.86
user 150.22
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49908/ft1_filtered_4FGL_J0349.8-2103_daily_bin1595.fits', '/scratch/kocevski/49908/ft2_4FGL_J0349.8-2103_daily_bin1595.fits', expMap='/scratch/kocevski/49908/expmap_652752001_653011201_4FGL_J0349.8-2103_daily_bin1595.fits', expCube='/scratch/kocevski/49908/ltcube_652752001_653011201_4FGL_J0349.8-2103_daily_bin1595.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49908/Model_4FGL_J0349.8-2103_daily_bin1595.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0349.8-2103'

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.092e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.339e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/49908/ft1_filtered_4FGL_J0349.8-2103_daily_bin1595.fits
Spacecraft file(s): /scratch/kocevski/49908/ft2_4FGL_J0349.8-2103_daily_bin1595.fits
Exposure map: /scratch/kocevski/49908/expmap_652752001_653011201_4FGL_J0349.8-2103_daily_bin1595.fits
Exposure cube: /scratch/kocevski/49908/ltcube_652752001_653011201_4FGL_J0349.8-2103_daily_bin1595.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49908/Model_4FGL_J0349.8-2103_daily_bin1595.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) = 6459.5273896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.355       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .70922       1.0000         .10000E-03   10000.    
     8 'Prefactor '    69.666       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.1431       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.105       1.0000         .10000E-03   10000.    
    15 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6249       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9560       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5543       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8119       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.954       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3556       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81305       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6459.524     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     2956 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8475       -.19199E-07** at limit **
   2  Prefactor     .10000E-03    8.3675       -.16202E-07** at limit **
   3  Prefactor     .10000E-03    44.818        .24493E-07** at limit **
   4  Prefactor     .10000E-03    1.1589       -.53337E-08** at limit **
   5  Prefactor     .10000E-03    4.4401       -.79008E-08** at limit **
   6  Prefactor     14.352        13.441        .13731E-05    .40039E-04
   7  Prefactor     .13157E-03    69.620        .87893E-05** at limit **
   8  Prefactor     69.834        70.095        .12670E-06   -.10529E-03
   9  Prefactor     .10000E-03    11.547       -.15057E-07** at limit **
  10  Prefactor     .10000E-03    1.4269        .78722E-09** at limit **
  11  Prefactor     .10000E-03    1.1561        .21783E-06** at limit **
  12  Prefactor     .10000E-03    1.3891        .72246E-07** at limit **
  13  norm          9.1423        1.6730       -.23503E-06   -.23197E-02
  14  Prefactor     13.103        17.257        .40943E-06   -.30875E-04
  15  norm          .10000E-03    .69887        .14251E-07** at limit **
  16  Prefactor     .10000E-03    161.60       -.63629E-05** at limit **
  17  Prefactor     9.6221        18.483        .12745E-05   -.21451E-04
  18  Prefactor     5.9562        3.0127        .30531E-06   -.16641E-03
  19  norm          .10000E-03    4.6770       -.52541E-07** at limit **
  20  Prefactor     .10000E-03    10.443       -.71321E-07** at limit **
  21  Prefactor     4.5531        5.2538        .52967E-06   -.26215E-04
  22  Prefactor     2.8113        4.1471        .99266E-06   -.13316E-04
  23  Prefactor     14.940        23.087        .21464E-05   -.40860E-04
  24  Normalizat    1.3559        .21450       -.73563E-05   -.37198E-03
  25  Prefactor     .81292        .17203        .32837E-05   -.65837E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3515
  Prefactor  = 0.000131573
  Prefactor  = 69.8343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.14235
  Prefactor  = 13.103
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.62209
  Prefactor  = 5.9562
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.55306
  Prefactor  = 2.81126
  Prefactor  = 14.9402
  Normalizat = 1.35591
  Prefactor  = 0.812919
 **********
 **   18 **HESSE 
 **********

 FCN=   6459.524     FROM HESSE     STATUS=OK           429 CALLS     3385 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8621        .10667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    44.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.1609        .84493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4444        .16539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.352        13.461        .10572E-03   -1.4950    
   7  Prefactor     .13157E-03    66.297        .16187       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     69.834        72.307        .24046E-03   -1.4035    
   9  Prefactor     .10000E-03    11.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4721        .18706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.1632        .84483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4002        .92504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.1423        1.6978        .41573E-04   -1.5103    
  14  Prefactor     13.103        17.241        .11065E-03   -1.4984    
  15  norm          .10000E-03    1.1576        .12909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    161.89        .21404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.6221        18.455        .12917E-03   -1.5087    
  18  Prefactor     5.9562        2.9934        .93628E-04   -1.5220    
  19  norm          .10000E-03    4.7001        .16974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.5531        5.2509        .18863E-03   -1.5281    
  22  Prefactor     2.8113        4.1316        .18574E-03   -1.5373    
  23  Prefactor     14.940        23.087        .10357E-03   -1.4935    
  24  Normalizat    1.3559        .22854        .24954E-03   -.81912    
  25  Prefactor     .81292        .18792        .27279E-03   -.99254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60102e-09
Minuit parameter uncertainties:
  1  7.2519e-06
  2  9.88083e-06
  3  1.28228e-05
  4  2.59332e-06
  5  1.07318e-05
  6  13.4636
  7  0.091605
  8  72.3982
  9  5.98285e-06
  10  1.6797e-05
  11  8.91969e-06
  12  1.05309e-05
  13  1.69778
  14  17.2476
  15  3.78433e-05
  16  0.0007518
  17  18.4658
  18  2.99349
  19  9.56857e-06
  20  3.26576e-05
  21  5.25143
  22  4.13202
  23  23.1004
  24  0.228713
  25  0.188067
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  3.784e-05  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.339e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  8.129e-01  1.881e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.356e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 57.470 -21.058
Photon Flux Upper Limit: 7.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49908/likelihoodResults_652752001_653011201_4FGL_J0349.8-2103_daily_bin1595.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) = 6459.52828144
delta logL = -0.00412402367601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6459.5241586
delta logL = -1.19081505545e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3272       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81294       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4870E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6459.524     FROM MIGRAD    STATUS=FAILED        98 CALLS      254 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    306.03        .12959E-02** at limit **
   2  alpha         1.9949        3.6153        .16511       -.92846E-06
   3  Normalizat    1.3559        .17733        .24954E-03   -.11610E-02
   4  Prefactor     .81292        .15621        .27279E-03   -.10763E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6459.524     FROM SIMPLEX   STATUS=UNCHANGED    210 CALLS      464 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    306.03        .19524E-03** at limit **
   2  alpha         1.9949        3.6153        .38003E-06   -.92846E-06
   3  Normalizat    1.3559        .17733        .20050E-07   -.11610E-02
   4  Prefactor     .81292        .15621        .39373E-08   -.10763E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6459.524     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      500 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2794        .25918E-03** at limit **
   2  alpha         1.9993        3.1174        .66042E-02   -.17214E-08
   3  Normalizat    1.3559        .21266        .49908E-04    .26879E-05
   4  Prefactor     .81292        .18625        .54558E-04    .40842E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.99931
  Normalizat = 1.35591
  Prefactor  = 0.812923
 **********
 **   18 **HESSE 
 **********

 FCN=   6459.524     FROM HESSE     STATUS=OK            23 CALLS      523 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2794        .51836E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9993        2.7288        .26417E-03   -.20164    
   3  Normalizat    1.3559        .21268        .99816E-05   -.81912    
   4  Prefactor     .81292        .18627        .10912E-04   -.99254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24941e-13
Minuit parameter uncertainties:
  1  7.94437e-07
  2  107.276
  3  0.212818
  4  0.186413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49908': 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) = 6459.52415339
delta logL = 4.02264868171e-06

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  7.944e-07  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.999e+00  1.073e+02  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  8.129e-01  1.864e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.356e+00  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 57.470 -21.058

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/49908/cmap_HighResolution_652752001_653011201_4FGL_J0349.8-2103_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-05', job_status='DONE', photon_flux_upper_limit='7.02e-08', time_completed='2021-09-11 00:16:31.829272', job_id='49908', GAL2='0.81', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631344591.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1595' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:16:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 49908: <4FGL_J0349.8-2103_daily_bin1595> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1595> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 00:01:50 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:01:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:01:52 2021
Terminated at Sat Sep 11 00:16:32 2021
Results reported at Sat Sep 11 00:16:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1595 57.4699 -21.0576 652752001 653011201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0349.8-2103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   779.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             339.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

