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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1056
RA = 57.4699, Dec = -21.0576
tmin = 513043201, tmax = 513302401
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='32051', job_status='RUN', time_executed='2021-08-19 15:57:01.764358', time_epoch_executed='1629413821.76' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32051

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32051/ft1_4FGL_J0349.8-2103_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32051/ft2_4FGL_J0349.8-2103_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32051/ft1_4FGL_J0349.8-2103_daily_bin1056.fits outfile=/scratch/kocevski/32051/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1056.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.87
user 6.07
sys 0.77

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32051/ft2_4FGL_J0349.8-2103_daily_bin1056.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/32051/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/32051/ft1_filtered_4FGL_J0349.8-2103_daily_bin1056.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 1.07
user 0.32
sys 0.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32051/ft1_filtered_4FGL_J0349.8-2103_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/32051/ft2_4FGL_J0349.8-2103_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/32051/ltcube_513043201_513302401_4FGL_J0349.8-2103_daily_bin1056.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/32051/ft2_4FGL_J0349.8-2103_daily_bin1056.fits
.....................!
real 13.05
user 12.03
sys 0.98

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32051/ft1_filtered_4FGL_J0349.8-2103_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/32051/ft2_4FGL_J0349.8-2103_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/32051/ltcube_513043201_513302401_4FGL_J0349.8-2103_daily_bin1056.fits outfile=/scratch/kocevski/32051/expmap_513043201_513302401_4FGL_J0349.8-2103_daily_bin1056.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/32051/ltcube_513043201_513302401_4FGL_J0349.8-2103_daily_bin1056.fits
.....................!
real 193.89
user 187.57
sys 5.98

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/32051/ft1_filtered_4FGL_J0349.8-2103_daily_bin1056.fits scfile=/scratch/kocevski/32051/ft2_4FGL_J0349.8-2103_daily_bin1056.fits outfile=/scratch/kocevski/32051/cmap_513043201_513302401_4FGL_J0349.8-2103_daily_bin1056.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 1.05
user 0.35
sys 0.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32051/ft1_filtered_4FGL_J0349.8-2103_daily_bin1056.fits scfile=/scratch/kocevski/32051/ft2_4FGL_J0349.8-2103_daily_bin1056.fits outfile=/scratch/kocevski/32051/cmap_HighResolution_513043201_513302401_4FGL_J0349.8-2103_daily_bin1056.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 1.11
user 0.40
sys 0.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32051/ft1_filtered_4FGL_J0349.8-2103_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/32051/ft2_4FGL_J0349.8-2103_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32051/Model_4FGL_J0349.8-2103_daily_bin1056.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/32051/ft1_filtered_4FGL_J0349.8-2103_daily_bin1056.fits.....................!
real 97.61
user 95.44
sys 1.99

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/32051/ft1_filtered_4FGL_J0349.8-2103_daily_bin1056.fits', '/scratch/kocevski/32051/ft2_4FGL_J0349.8-2103_daily_bin1056.fits', expMap='/scratch/kocevski/32051/expmap_513043201_513302401_4FGL_J0349.8-2103_daily_bin1056.fits', expCube='/scratch/kocevski/32051/ltcube_513043201_513302401_4FGL_J0349.8-2103_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/32051/Model_4FGL_J0349.8-2103_daily_bin1056.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/32051/ft1_filtered_4FGL_J0349.8-2103_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/32051/ft2_4FGL_J0349.8-2103_daily_bin1056.fits
Exposure map: /scratch/kocevski/32051/expmap_513043201_513302401_4FGL_J0349.8-2103_daily_bin1056.fits
Exposure cube: /scratch/kocevski/32051/ltcube_513043201_513302401_4FGL_J0349.8-2103_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/32051/Model_4FGL_J0349.8-2103_daily_bin1056.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) = 4135.44691105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9659       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.185       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-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 '    10.093       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11399E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8359       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.3550       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.648       1.0000         .10000E-03   10000.    
    15 'norm      '    .14177E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    109.19       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.7360       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .30814E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98810       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1424       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=   4135.438     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2939 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9658        4.2270        .22791E-07   -.63876E-04
   2  Prefactor     13.185        23.170        .41643E-06    .28104E-04
   3  Prefactor     .10000E-03    84.966       -.24701E-05** at limit **
   4  Prefactor     .10000E-03    1.3567       -.17727E-07** at limit **
   5  Prefactor     .10000E-03    6.7921       -.71666E-08** at limit **
   6  Prefactor     10.093        13.932        .33848E-06    .92585E-04
   7  Prefactor     .10003E-03    317.79        .89617E-05** at limit **
   8  Prefactor     .10000E-03    80.523        .90967E-06** at limit **
   9  Prefactor     .10000E-03    26.517       -.80264E-06** at limit **
  10  Prefactor     1.8351        2.9285        .10401E-05    .14199E-02
  11  Prefactor     .10000E-03    4.2797       -.14202E-06** at limit **
  12  Prefactor     .10000E-03    3.4371       -.18593E-06** at limit **
  13  norm          8.3548        2.1500        .10929E-06   -.20038E-03
  14  Prefactor     29.648        34.073       -.10785E-05   -.63516E-04
  15  norm          .10000E-03    1.2588        .10802E-06** at limit **
  16  Prefactor     109.32        206.89       -.10124E-04    .10652E-04
  17  Prefactor     .10000E-03    60.776        .38003E-06** at limit **
  18  Prefactor     .10000E-03    2.0111       -.14310E-06** at limit **
  19  norm          .10000E-03    6.6953       -.51131E-07** at limit **
  20  Prefactor     8.7327        36.092        .23788E-05    .60747E-04
  21  Prefactor     .10000E-03    33.913       -.36755E-04** at limit **
  22  Prefactor     .10000E-03    4.1177       -.30360E-06** at limit **
  23  Prefactor     .10000E-03    14.903       -.21642E-06** at limit **
  24  Normalizat    .98806        .24369       -.33879E-05    .48472E-04
  25  Prefactor     1.1424        .20852        .81343E-06    .13962E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.96582
  Prefactor  = 13.1849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0933
  Prefactor  = 0.000100032
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.83509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.35483
  Prefactor  = 29.6479
  norm       = 0.0001
  Prefactor  = 109.32
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.73265
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.988061
  Prefactor  = 1.14241
 **********
 **   18 **HESSE 
 **********

 FCN=   4135.438     FROM HESSE     STATUS=OK           421 CALLS     3360 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9658        4.2275        .10831E-03   -1.5219    
   2  Prefactor     13.185        23.167        .11031E-03   -1.4982    
   3  Prefactor     .10000E-03    84.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.3573        .73153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8032        .16368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.093        13.940        .12612E-03   -1.5072    
   7  Prefactor     .10003E-03    322.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    80.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8351        2.8496        .13021E-03   -1.5437    
  11  Prefactor     .10000E-03    4.3103        .12974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4816        .11630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.3548        2.1540        .44879E-04   -1.5130    
  14  Prefactor     29.648        34.047        .73581E-04   -1.4618    
  15  norm          .10000E-03    6.0613        .13387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.32        206.58        .19245E-03   -1.3613    
  17  Prefactor     .10000E-03    61.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0348        .88971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.6978        .16251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.7327        35.998        .13562E-03   -1.5117    
  21  Prefactor     .10000E-03    33.521        .38001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2561        .25472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .98806        .27883        .28734E-03   -.93431    
  25  Prefactor     1.1424        .24219        .23880E-03   -.88122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21688e-09
Minuit parameter uncertainties:
  1  4.22771
  2  23.1823
  3  0.000196557
  4  1.81988e-06
  5  1.60217e-05
  6  13.945
  7  0.00642661
  8  0.000434466
  9  2.9777e-05
  10  2.84978
  11  1.66045e-05
  12  2.17143e-05
  13  2.15404
  14  34.0689
  15  7.45453e-05
  16  207.959
  17  0.000198331
  18  8.56391e-06
  19  4.77016e-06
  20  35.4972
  21  0.000400404
  22  2.3759e-05
  23  3.59624e-05
  24  0.279246
  25  0.242425
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  7.455e-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:  1.142e+00  2.424e-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:  9.881e-01  2.792e-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: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32051/likelihoodResults_513043201_513302401_4FGL_J0349.8-2103_daily_bin1056.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4135.43905141
delta logL = -0.000792065517999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4135.43826111
delta logL = -1.7648553694e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11097E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3682       1.0000          .0000       5.0000    
     3 'Normalizat'    .98842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1421       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=   4135.438     FROM MIGRAD    STATUS=FAILED        91 CALLS      258 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10122E-03    1127.5        .13193E-02** at limit **
   2  alpha         2.5449        3.7036        .16490       -.30786E-05
   3  Normalizat    .98806        .10788        .28734E-03   -.59517E-03
   4  Prefactor     1.1424        .96119E-01    .23880E-03   -.69366E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4135.438     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      409 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10122E-03    1127.5        .44599E-03** at limit **
   2  alpha         2.5449        3.7036        .10645E-04   -.30786E-05
   3  Normalizat    .98806        .10788        .57466E-06   -.59517E-03
   4  Prefactor     1.1424        .96119E-01    .57057E-06   -.69366E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4135.438     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      447 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.0611        .26385E-03** at limit **
   2  alpha         2.5751        2.5809        .65959E-02   -.10342E-08
   3  Normalizat    .98806        .26648        .57469E-04   -.49060E-05
   4  Prefactor     1.1424        .23739        .47761E-04   -.19043E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.57506
  Normalizat = 0.988062
  Prefactor  = 1.14241
 **********
 **   18 **HESSE 
 **********

 FCN=   4135.438     FROM HESSE     STATUS=OK            23 CALLS      470 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0609        .52770E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5751        2.5544        .13192E-02    .30029E-01
   3  Normalizat    .98806        .26651        .11494E-04   -.93431    
   4  Prefactor     1.1424        .23741        .95522E-05   -.88122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89621e-13
Minuit parameter uncertainties:
  1  5.10121e-07
  2  157.118
  3  0.266865
  4  0.237634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32051': 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) = 4135.43825823
delta logL = 1.12090401672e-06

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  5.101e-07  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.575e+00  1.571e+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:  1.142e+00  2.376e-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:  9.881e-01  2.669e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/32051/cmap_HighResolution_513043201_513302401_4FGL_J0349.8-2103_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-05', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-08-19 16:07:22.845551', job_id='32051', GAL2='1.14', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1629414442.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1056' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:07:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 32051: <4FGL_J0349.8-2103_daily_bin1056> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1056> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 15:55:43 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 15:55:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 15:55:44 2021
Terminated at Thu Aug 19 16:07:23 2021
Results reported at Thu Aug 19 16:07:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1056 57.4699 -21.0576 513043201 513302401 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 :                                   621.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             323.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            700 sec.

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

