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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1581
RA = 57.4699, Dec = -21.0576
tmin = 649123201, tmax = 649382401
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='34945', job_status='RUN', time_executed='2021-08-19 16:03:34.749230', time_epoch_executed='1629414214.75' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34945

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34945/ft1_4FGL_J0349.8-2103_daily_bin1581.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34945/ft2_4FGL_J0349.8-2103_daily_bin1581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34945/ft1_4FGL_J0349.8-2103_daily_bin1581.fits outfile=/scratch/kocevski/34945/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1581.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=649123201.0 tmax=649382401.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 7.16
user 2.75
sys 4.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34945/ft2_4FGL_J0349.8-2103_daily_bin1581.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/34945/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1581.fits evtable="EVENTS" outfile="/scratch/kocevski/34945/ft1_filtered_4FGL_J0349.8-2103_daily_bin1581.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 4.64
user 0.31
sys 4.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34945/ft1_filtered_4FGL_J0349.8-2103_daily_bin1581.fits" evtable="EVENTS" scfile=/scratch/kocevski/34945/ft2_4FGL_J0349.8-2103_daily_bin1581.fits sctable="SC_DATA" outfile=/scratch/kocevski/34945/ltcube_649123201_649382401_4FGL_J0349.8-2103_daily_bin1581.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/34945/ft2_4FGL_J0349.8-2103_daily_bin1581.fits
.....................!
real 17.33
user 12.33
sys 4.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34945/ft1_filtered_4FGL_J0349.8-2103_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/34945/ft2_4FGL_J0349.8-2103_daily_bin1581.fits sctable="SC_DATA" expcube=/scratch/kocevski/34945/ltcube_649123201_649382401_4FGL_J0349.8-2103_daily_bin1581.fits outfile=/scratch/kocevski/34945/expmap_649123201_649382401_4FGL_J0349.8-2103_daily_bin1581.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/34945/ltcube_649123201_649382401_4FGL_J0349.8-2103_daily_bin1581.fits
.....................!
real 197.97
user 185.93
sys 10.73

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/34945/ft1_filtered_4FGL_J0349.8-2103_daily_bin1581.fits scfile=/scratch/kocevski/34945/ft2_4FGL_J0349.8-2103_daily_bin1581.fits outfile=/scratch/kocevski/34945/cmap_649123201_649382401_4FGL_J0349.8-2103_daily_bin1581.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 4.53
user 0.36
sys 4.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34945/ft1_filtered_4FGL_J0349.8-2103_daily_bin1581.fits scfile=/scratch/kocevski/34945/ft2_4FGL_J0349.8-2103_daily_bin1581.fits outfile=/scratch/kocevski/34945/cmap_HighResolution_649123201_649382401_4FGL_J0349.8-2103_daily_bin1581.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 4.54
user 0.37
sys 4.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34945/ft1_filtered_4FGL_J0349.8-2103_daily_bin1581.fits evtable="EVENTS" scfile=/scratch/kocevski/34945/ft2_4FGL_J0349.8-2103_daily_bin1581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34945/Model_4FGL_J0349.8-2103_daily_bin1581.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/34945/ft1_filtered_4FGL_J0349.8-2103_daily_bin1581.fits.....................!
real 155.72
user 148.29
sys 6.45

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.750       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.332       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .42246E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.608       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9022       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7602       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0878       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4186       1.0000         .10000E-03   10000.    
    19 'norm      '    17.961       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.417       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3940       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0667       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94607       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=   6633.417     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2979 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.750        4.4480       -.39880E-07    .11323E-04
   2  Prefactor     11.332        16.658       -.43736E-06    .56288E-05
   3  Prefactor     .10000E-03    123.63        .33719E-05** at limit **
   4  Prefactor     .58657E-01    23.358       -.35516E-05    .76193E-05
   5  Prefactor     3.9808        13.723       -.10003E-05    .42450E-05
   6  Prefactor     .10000E-03    10.963       -.91471E-06** at limit **
   7  Prefactor     .10000E-03    9.7312       -.30629E-07** at limit **
   8  Prefactor     50.607        37.632       -.60311E-07    .48884E-05
   9  Prefactor     .10000E-03    15.947        .90631E-06** at limit **
  10  Prefactor     2.9023        1.8906        .49947E-07    .15701E-03
  11  Prefactor     .10000E-03    2.4774       -.28601E-06** at limit **
  12  Prefactor     2.7606        2.5535        .80041E-07    .83747E-04
  13  norm          4.0879        1.1184       -.73167E-08    .12871E-03
  14  Prefactor     .10000E-03    34.025        .40491E-05** at limit **
  15  norm          .10000E-03    .73351       -.11989E-06** at limit **
  16  Prefactor     .10000E-03    47.379       -.39249E-05** at limit **
  17  Prefactor     .10000E-03    30.612        .15443E-05** at limit **
  18  Prefactor     3.4186        2.8184       -.40309E-06    .57648E-04
  19  norm          17.961        15.423       -.33252E-06    .36668E-05
  20  Prefactor     23.413        29.419       -.35276E-07    .21376E-04
  21  Prefactor     7.3949        6.0740       -.11629E-06    .24263E-04
  22  Prefactor     .10000E-03    2.0648       -.30424E-06** at limit **
  23  Prefactor     .10000E-03    6.8313       -.23263E-06** at limit **
  24  Normalizat    1.0670        .18080       -.67298E-06    .23094E-03
  25  Prefactor     .94577        .16342        .25043E-05    .29704E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7499
  Prefactor  = 11.3324
  Prefactor  = 0.0001
  Prefactor  = 0.058657
  Prefactor  = 3.98076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.6069
  Prefactor  = 0.0001
  Prefactor  = 2.90232
  Prefactor  = 0.0001
  Prefactor  = 2.7606
  norm       = 4.08786
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.41858
  norm       = 17.9613
  Prefactor  = 23.4125
  Prefactor  = 7.39488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06698
  Prefactor  = 0.945772
 **********
 **   18 **HESSE 
 **********

 FCN=   6633.417     FROM HESSE     STATUS=OK           433 CALLS     3412 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.750        4.4530        .10716E-03   -1.5052    
   2  Prefactor     11.332        16.658        .11901E-03   -1.5035    
   3  Prefactor     .10000E-03    124.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .58657E-01    2.4746        .42971E-01   -1.5660    
   5  Prefactor     3.9808        13.847        .20173E-03   -1.5309    
   6  Prefactor     .10000E-03    11.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.7347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     50.607        37.670        .56373E-04   -1.4284    
   9  Prefactor     .10000E-03    15.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9023        1.8769        .86363E-04   -1.5367    
  11  Prefactor     .10000E-03    2.5450        .25026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7606        2.5524        .11991E-03   -1.5376    
  13  norm          4.0879        1.1209        .42854E-04   -1.5304    
  14  Prefactor     .10000E-03    34.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3899        .13238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    48.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4186        2.7860        .11658E-03   -1.5338    
  19  norm          17.961        15.409        .94506E-04   -1.4860    
  20  Prefactor     23.413        29.437        .82776E-04   -1.4740    
  21  Prefactor     7.3949        6.0839        .14750E-03   -1.5164    
  22  Prefactor     .10000E-03    2.1057        .11441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.8487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0670        .21024        .25265E-03   -.90819    
  25  Prefactor     .94577        .18297        .24150E-03   -.94560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47587e-10
Minuit parameter uncertainties:
  1  4.45313
  2  16.6643
  3  0.000249794
  4  0.761364
  5  13.8578
  6  4.92139e-05
  7  1.11165e-06
  8  37.6873
  9  1.09946e-05
  10  1.87696
  11  6.75903e-06
  12  2.55247
  13  1.1209
  14  1.63072e-05
  15  3.63488e-06
  16  0.000222767
  17  7.38284e-05
  18  2.78607
  19  15.4126
  20  29.4549
  21  6.08442
  22  5.75639e-06
  23  8.11594e-06
  24  0.210402
  25  0.183093
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  3.635e-06  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:  9.458e-01  1.831e-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.067e+00  2.104e-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: 6.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34945/likelihoodResults_649123201_649382401_4FGL_J0349.8-2103_daily_bin1581.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) = 6633.42038662
delta logL = -0.00344127164954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6633.41694339
delta logL = 1.95855227503e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3835       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94582       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.

 FCN=   6633.417     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      233 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .47826        .31022E-01** at limit **
   2  alpha         3.0378        3.6116        .41208        .28223E-05
   3  Normalizat    1.0670        .51447E-02    .57134E-01    .19441E-04
   4  Prefactor     .94577        .46832E-02    .45586E-01    .21257E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.03775
  Normalizat = 1.06697
  Prefactor  = 0.945774
 **********
 **   18 **HESSE 
 **********

 FCN=   6633.417     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    190.90        .93407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0378        3.3118        .50000        .21680    
   3  Normalizat    1.0670        .29488E-01    .25265E-03   -.90819    
   4  Prefactor     .94577        .26844E-01    .24150E-03   -.94559    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.35094e-07
Minuit parameter uncertainties:
  1  3.04366e-06
  2  504.209
  3  0.0294886
  4  0.0268442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34945': 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) = 6633.41692012
delta logL = 2.52378013101e-05

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  3.044e-06  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  3.038e+00  5.042e+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:  9.458e-01  2.684e-02  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.067e+00  2.949e-02  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/34945/cmap_HighResolution_649123201_649382401_4FGL_J0349.8-2103_daily_bin1581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-05', job_status='DONE', photon_flux_upper_limit='6.69e-08', time_completed='2021-08-19 16:17:40.927233', job_id='34945', GAL2='0.95', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1629415060.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.52e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1581' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:17:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 34945: <4FGL_J0349.8-2103_daily_bin1581> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1581> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Aug 19 16:01:06 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:01:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 16:01:09 2021
Terminated at Thu Aug 19 16:17:42 2021
Results reported at Thu Aug 19 16:17:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1581 57.4699 -21.0576 649123201 649382401 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 :                                   896.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            996 sec.

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

