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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1594
RA = 57.4699, Dec = -21.0576
tmin = 652492801, tmax = 652752001
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='711579', job_status='RUN', time_executed='2021-09-08 00:08:10.455337', time_epoch_executed='1631084890.46' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711579

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711579/ft1_4FGL_J0349.8-2103_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711579/ft2_4FGL_J0349.8-2103_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711579/ft1_4FGL_J0349.8-2103_daily_bin1594.fits outfile=/scratch/kocevski/711579/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1594.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=652492801.0 tmax=652752001.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.94
user 4.25
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711579/ft2_4FGL_J0349.8-2103_daily_bin1594.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/711579/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1594.fits evtable="EVENTS" outfile="/scratch/kocevski/711579/ft1_filtered_4FGL_J0349.8-2103_daily_bin1594.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.49
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711579/ft1_filtered_4FGL_J0349.8-2103_daily_bin1594.fits" evtable="EVENTS" scfile=/scratch/kocevski/711579/ft2_4FGL_J0349.8-2103_daily_bin1594.fits sctable="SC_DATA" outfile=/scratch/kocevski/711579/ltcube_652492801_652752001_4FGL_J0349.8-2103_daily_bin1594.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/711579/ft2_4FGL_J0349.8-2103_daily_bin1594.fits
.....................!
real 16.22
user 14.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711579/ft1_filtered_4FGL_J0349.8-2103_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/711579/ft2_4FGL_J0349.8-2103_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/711579/ltcube_652492801_652752001_4FGL_J0349.8-2103_daily_bin1594.fits outfile=/scratch/kocevski/711579/expmap_652492801_652752001_4FGL_J0349.8-2103_daily_bin1594.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/711579/ltcube_652492801_652752001_4FGL_J0349.8-2103_daily_bin1594.fits
.....................!
real 197.53
user 186.87
sys 5.62

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/711579/ft1_filtered_4FGL_J0349.8-2103_daily_bin1594.fits scfile=/scratch/kocevski/711579/ft2_4FGL_J0349.8-2103_daily_bin1594.fits outfile=/scratch/kocevski/711579/cmap_652492801_652752001_4FGL_J0349.8-2103_daily_bin1594.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711579/ft1_filtered_4FGL_J0349.8-2103_daily_bin1594.fits scfile=/scratch/kocevski/711579/ft2_4FGL_J0349.8-2103_daily_bin1594.fits outfile=/scratch/kocevski/711579/cmap_HighResolution_652492801_652752001_4FGL_J0349.8-2103_daily_bin1594.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711579/ft1_filtered_4FGL_J0349.8-2103_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/711579/ft2_4FGL_J0349.8-2103_daily_bin1594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711579/Model_4FGL_J0349.8-2103_daily_bin1594.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/711579/ft1_filtered_4FGL_J0349.8-2103_daily_bin1594.fits.....................!
real 166.97
user 165.26
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6520       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64321E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    159.76       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.704       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .47574       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.0536       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9409       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16250E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4068       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5528       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69711       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2717       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=   7688.843     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2903 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6520        3.3426        .65328E-07    .11589E-03
   2  Prefactor     .10003E-03    7.8527        .97924E-06** at limit **
   3  Prefactor     159.75        139.71       -.40128E-05   -.11480E-03
   4  Prefactor     .10000E-03    1.1194        .12832E-07** at limit **
   5  Prefactor     .10000E-03    7.7799       -.18056E-06** at limit **
   6  Prefactor     .10000E-03    5.7396        .13686E-06** at limit **
   7  Prefactor     .10000E-03    24.022        .36475E-05** at limit **
   8  Prefactor     .10000E-03    13.007        .52745E-06** at limit **
   9  Prefactor     12.703        18.549        .36138E-06    .37682E-04
  10  Prefactor     .47465        1.1568        .42222E-06    .33578E-03
  11  Prefactor     .10000E-03    2.4096        .43071E-07** at limit **
  12  Prefactor     .10000E-03    .96014        .83893E-08** at limit **
  13  norm          9.0538        1.4204        .13258E-07   -.15340E-03
  14  Prefactor     1.9008        36.655       -.88955E-05   -.21043E-03
  15  norm          .10000E-03    .37794       -.11476E-07** at limit **
  16  Prefactor     .10000E-03    35.091        .30595E-05** at limit **
  17  Prefactor     .10000E-03    37.612       -.35880E-05** at limit **
  18  Prefactor     4.4069        2.4368        .21950E-07   -.18753E-04
  19  norm          .10000E-03    5.0343       -.26662E-07** at limit **
  20  Prefactor     .10000E-03    12.948        .47627E-06** at limit **
  21  Prefactor     6.5514        6.3733        .24257E-05   -.15038E-02
  22  Prefactor     .10000E-03    1.6265        .14234E-07** at limit **
  23  Prefactor     .10000E-03    19.028       -.38389E-05** at limit **
  24  Normalizat    .69708        .15543       -.76880E-06    .36293E-04
  25  Prefactor     1.2717        .14260        .12107E-06    .30384E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.65195
  Prefactor  = 0.000100033
  Prefactor  = 159.746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 12.7025
  Prefactor  = 0.474654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.05381
  Prefactor  = 1.90077
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 4.40686
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.5514
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.697078
  Prefactor  = 1.27168
 **********
 **   18 **HESSE 
 **********

 FCN=   7688.843     FROM HESSE     STATUS=OK           423 CALLS     3326 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6520        3.3451        .11037E-03   -1.5192    
   2  Prefactor     .10003E-03    38.824        .47497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     159.75        141.59        .15951E-03   -1.3173    
   4  Prefactor     .10000E-03    1.1226        .90592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.703        18.544        .11239E-03   -1.4995    
  10  Prefactor     .47465        .98601        .14302E-02   -1.5570    
  11  Prefactor     .10000E-03    2.4591        .13266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .96755        .83859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.0538        1.4255        .39278E-04   -1.5106    
  14  Prefactor     1.9008        39.913        .29800E-03   -1.5432    
  15  norm          .10000E-03    .63214        .10327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4069        2.4263        .96855E-04   -1.5288    
  19  norm          .10000E-03    5.0532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.5514        7.2649        .78386E-03   -1.5196    
  22  Prefactor     .10000E-03    1.6532        .10912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .69708        .17848        .29912E-03   -1.0401    
  25  Prefactor     1.2717        .16475        .21523E-03   -.84153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06352e-09
Minuit parameter uncertainties:
  1  3.34516
  2  0.0022797
  3  141.89
  4  7.70353e-07
  5  6.67631e-06
  6  1.1144e-05
  7  0.000603166
  8  6.46711e-05
  9  18.5522
  10  0.986045
  11  3.13721e-07
  12  4.40444e-08
  13  1.4255
  14  17.433
  15  1.60019e-06
  16  0.000633469
  17  0.000105704
  18  2.42637
  19  4.24801e-06
  20  5.10803e-05
  21  7.26584
  22  1.51746e-07
  23  0.00055665
  24  0.178626
  25  0.164822
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  1.600e-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:  1.272e+00  1.648e-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:  6.971e-01  1.786e-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: 4.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711579/likelihoodResults_652492801_652752001_4FGL_J0349.8-2103_daily_bin1594.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) = 7688.85079875
delta logL = -0.00750573253936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7688.84329543
delta logL = -2.40869849222e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3387       1.0000          .0000       5.0000    
     3 'Normalizat'    .69723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2717       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=   7688.843     FROM MIGRAD    STATUS=FAILED        88 CALLS      246 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    .88747        .10329E-02** at limit **
   2  alpha         2.2750        3.6271        .16504        .19994E-05
   3  Normalizat    .69708        .17166        .29912E-03    .40910E-03
   4  Prefactor     1.2717        .16309        .21523E-03    .55941E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7688.843     FROM SIMPLEX   STATUS=UNCHANGED    121 CALLS      367 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    .88747        .11206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2750        3.6271        .99540E-03   -.90106E-01
   3  Normalizat    .69708        .17166        .77502E-04   -1.0401    
   4  Prefactor     1.2717        .16309        .57865E-04   -.84153    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7688.843     FROM MIGRAD    STATUS=CONVERGED      7 CALLS      374 TOTAL
                     EDM=   .90E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .62940        .54574E-06** at limit **
   2  alpha         2.2262        2.8798       -.80644E-02    .53801E-08
   3  Normalizat    .69708        .17166        .25489E-07   -.96347E-04
   4  Prefactor     1.2717        .16309       -.70844E-08   -.13311E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.22616
  Normalizat = 0.697078
  Prefactor  = 1.27168
 **********
 **   18 **HESSE 
 **********

 FCN=   7688.843     FROM HESSE     STATUS=OK            27 CALLS      401 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .63437        .20658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2262        3.6112        .66017E-01   -.10976    
   3  Normalizat    .69708        .17177        .11965E-04   -1.0401    
   4  Prefactor     1.2717        .16320        .43046E-04   -.84153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68314e-11
Minuit parameter uncertainties:
  1  2.67082e-06
  2  253.31
  3  0.171906
  4  0.163264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711579': 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) = 7688.84329291
delta logL = 1.07645973912e-07

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  2.671e-06  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.226e+00  2.533e+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.272e+00  1.633e-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:  6.971e-01  1.719e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/711579/cmap_HighResolution_652492801_652752001_4FGL_J0349.8-2103_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-05', job_status='DONE', photon_flux_upper_limit='4.89e-08', time_completed='2021-09-08 00:22:28.637657', job_id='711579', GAL2='1.27', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1631085748.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1594' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:22:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 711579: <4FGL_J0349.8-2103_daily_bin1594> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1594> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 00:05:59 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:06:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:06:16 2021
Terminated at Wed Sep  8 00:22:29 2021
Results reported at Wed Sep  8 00:22:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1594 57.4699 -21.0576 652492801 652752001 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 :                                   852.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            990 sec.

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

