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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1517
RA = 57.4699, Dec = -21.0576
tmin = 632534401, tmax = 632793601
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='34854', job_status='RUN', time_executed='2021-08-19 16:03:40.168489', time_epoch_executed='1629414220.17' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34854/ft1_4FGL_J0349.8-2103_daily_bin1517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34854/ft2_4FGL_J0349.8-2103_daily_bin1517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34854/ft1_4FGL_J0349.8-2103_daily_bin1517.fits outfile=/scratch/kocevski/34854/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1517.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=632534401.0 tmax=632793601.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 8.85
user 3.33
sys 5.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34854/ft2_4FGL_J0349.8-2103_daily_bin1517.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/34854/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1517.fits evtable="EVENTS" outfile="/scratch/kocevski/34854/ft1_filtered_4FGL_J0349.8-2103_daily_bin1517.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 5.56
user 0.33
sys 5.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34854/ft1_filtered_4FGL_J0349.8-2103_daily_bin1517.fits" evtable="EVENTS" scfile=/scratch/kocevski/34854/ft2_4FGL_J0349.8-2103_daily_bin1517.fits sctable="SC_DATA" outfile=/scratch/kocevski/34854/ltcube_632534401_632793601_4FGL_J0349.8-2103_daily_bin1517.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/34854/ft2_4FGL_J0349.8-2103_daily_bin1517.fits
.....................!
real 17.64
user 11.63
sys 5.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34854/ft1_filtered_4FGL_J0349.8-2103_daily_bin1517.fits evtable="EVENTS" scfile=/scratch/kocevski/34854/ft2_4FGL_J0349.8-2103_daily_bin1517.fits sctable="SC_DATA" expcube=/scratch/kocevski/34854/ltcube_632534401_632793601_4FGL_J0349.8-2103_daily_bin1517.fits outfile=/scratch/kocevski/34854/expmap_632534401_632793601_4FGL_J0349.8-2103_daily_bin1517.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/34854/ltcube_632534401_632793601_4FGL_J0349.8-2103_daily_bin1517.fits
.....................!
real 197.25
user 185.40
sys 11.52

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/34854/ft1_filtered_4FGL_J0349.8-2103_daily_bin1517.fits scfile=/scratch/kocevski/34854/ft2_4FGL_J0349.8-2103_daily_bin1517.fits outfile=/scratch/kocevski/34854/cmap_632534401_632793601_4FGL_J0349.8-2103_daily_bin1517.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 5.40
user 0.35
sys 5.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34854/ft1_filtered_4FGL_J0349.8-2103_daily_bin1517.fits scfile=/scratch/kocevski/34854/ft2_4FGL_J0349.8-2103_daily_bin1517.fits outfile=/scratch/kocevski/34854/cmap_HighResolution_632534401_632793601_4FGL_J0349.8-2103_daily_bin1517.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 5.48
user 0.37
sys 5.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34854/ft1_filtered_4FGL_J0349.8-2103_daily_bin1517.fits evtable="EVENTS" scfile=/scratch/kocevski/34854/ft2_4FGL_J0349.8-2103_daily_bin1517.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34854/Model_4FGL_J0349.8-2103_daily_bin1517.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/34854/ft1_filtered_4FGL_J0349.8-2103_daily_bin1517.fits.....................!
real 121.91
user 113.84
sys 7.80

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6498       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .91898E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2215       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9269       1.0000         .10000E-03   10000.    
    13 'norm      '    11.387       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.345       1.0000         .10000E-03   10000.    
    15 'norm      '    .78962       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.825       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7081       1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .76044E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.400       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85523       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97754       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=   5029.966     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2925 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6431        .77191E-06** at limit **
   2  Prefactor     9.6373        15.050       -.41055E-07   -.14394E-04
   3  Prefactor     .10000E-03    152.26        .33391E-05** at limit **
   4  Prefactor     .10000E-03    1.9445        .43454E-06** at limit **
   5  Prefactor     .10000E-03    27.708        .27304E-05** at limit **
   6  Prefactor     .10000E-03    70.230        .13750E-04** at limit **
   7  Prefactor     .10000E-03    45.136        .25401E-05** at limit **
   8  Prefactor     .10000E-03    20.241        .58995E-06** at limit **
   9  Prefactor     .10000E-03    13.663        .16665E-06** at limit **
  10  Prefactor     .10000E-03    .75380        .30744E-06** at limit **
  11  Prefactor     2.2226        3.2931       -.78330E-06   -.38610E-04
  12  Prefactor     3.9238        3.5195       -.14930E-06    .57565E-06
  13  norm          11.387        1.9333        .11212E-06    .12502E-04
  14  Prefactor     22.332        19.647       -.16673E-06   -.42107E-04
  15  norm          .78977        1.1745       -.30078E-06   -.61840E-03
  16  Prefactor     29.998        89.477       -.90979E-05   -.16847E-04
  17  Prefactor     .10000E-03    11.754        .54830E-06** at limit **
  18  Prefactor     6.7097        3.3976       -.30224E-06   -.27497E-03
  19  norm          .10000E-03    4.8778        .92969E-07** at limit **
  20  Prefactor     .10000E-03    22.897       -.20206E-06** at limit **
  21  Prefactor     .10000E-03    2.5237        .48050E-06** at limit **
  22  Prefactor     .10011E-03    2.5143        .12982E-05** at limit **
  23  Prefactor     40.395        25.211       -.56295E-06   -.98619E-04
  24  Normalizat    .85518        .19962        .23106E-05   -.54712E-03
  25  Prefactor     .97776        .17578       -.44069E-05   -.23018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 9.63735
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.22263
  Prefactor  = 3.92385
  norm       = 11.3867
  Prefactor  = 22.3318
  norm       = 0.789771
  Prefactor  = 29.998
  Prefactor  = 0.0001
  Prefactor  = 6.70969
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100112
  Prefactor  = 40.3946
  Normalizat = 0.855182
  Prefactor  = 0.977758
 **********
 **   18 **HESSE 
 **********

 FCN=   5029.966     FROM HESSE     STATUS=OK           423 CALLS     3348 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6838        .11269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6373        15.046        .12900E-03   -1.5087    
   3  Prefactor     .10000E-03    152.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9542        .96659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    69.013        .41850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    45.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .76120        .60203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2226        3.2592        .14881E-03   -1.5410    
  12  Prefactor     3.9238        3.4978        .11998E-03   -1.5312    
  13  norm          11.387        1.9439        .38618E-04   -1.5033    
  14  Prefactor     22.332        19.644        .84735E-04   -1.4762    
  15  norm          .78977        1.0418        .89483E-03   -1.5530    
  16  Prefactor     29.998        89.266        .36682E-03   -1.4612    
  17  Prefactor     .10000E-03    11.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7097        3.3690        .88215E-04   -1.5190    
  19  norm          .10000E-03    4.8820        .15299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5328        .11011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10011E-03    58.652        .20702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     40.395        25.146        .63064E-04   -1.4436    
  24  Normalizat    .85518        .21820        .28195E-03   -.98053    
  25  Prefactor     .97776        .18805        .23275E-03   -.93475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71754e-09
Minuit parameter uncertainties:
  1  5.54603e-06
  2  15.052
  3  0.000200995
  4  6.13771e-06
  5  0.000124424
  6  0.000204753
  7  9.55482e-05
  8  1.54618e-05
  9  1.292e-05
  10  3.37348e-06
  11  3.25948
  12  3.498
  13  1.94396
  14  19.6501
  15  1.04178
  16  89.6669
  17  2.78716e-05
  18  3.36905
  19  4.08013e-06
  20  4.6676e-05
  21  6.44967e-06
  22  0.00513259
  23  25.1528
  24  0.218423
  25  0.188172
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  7.898e-01  1.042e+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

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  9.778e-01  1.882e-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:  8.552e-01  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/34854/likelihoodResults_632534401_632793601_4FGL_J0349.8-2103_daily_bin1517.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) = 5029.74572295
delta logL = 0.220088081232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5029.73523929
delta logL = 0.230571740513

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64230       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5399       1.0000          .0000       5.0000    
     3 'Normalizat'    .86474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97317       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=   5029.735     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64108        .83479        .11839E-01    .10398E-03
   2  alpha         1.5391        .78598        .45856       -.25353E-04
   3  Normalizat    .86448        .18800        .44449E-01    .15331E-04
   4  Prefactor     .97333        .16591        .45931E-01    .10668E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.641084
  alpha      = 1.53906
  Normalizat = 0.86448
  Prefactor  = 0.973331
 **********
 **   18 **HESSE 
 **********

 FCN=   5029.735     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64108        .99935        .71905E-03   -1.5548    
   2  alpha         1.5391        1.0869        .24011E-01   -.39453    
   3  Normalizat    .86448        .21153        .28040E-03   -.97720    
   4  Prefactor     .97333        .18678        .23317E-03   -.93624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46435e-09
Minuit parameter uncertainties:
  1  0.999373
  2  1.1317
  3  0.211732
  4  0.186906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34854': 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) = 5029.73523774
delta logL = 0.230573297284

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  6.411e-01  9.994e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.539e+00  1.132e+00  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.733e-01  1.869e-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:  8.645e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 57.470 -21.058
Photon Index (Free Index): 1.54 +/- 1.13
Photon Flux (Free Index): 1.04e-08 +/- 1.80e-08
Energy Flux (Free Index): 8.47e-06 +/- 1.19e-05

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/34854/cmap_HighResolution_632534401_632793601_4FGL_J0349.8-2103_daily_bin1517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-05', comment='SUCCESS', energy_flux2='8.47e-06', dlogl='2.31e-01', photon_flux2='1.04e-08', job_status='DONE', time_completed='2021-08-19 16:16:23.268381', photon_index_error2='1.13', photon_index2='1.54', ts='0.99', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='9.28e-08', energy_flux_error2='1.19e-05', EG='0.86', time_epoch_completed='1629414983.27', return_code='0', job_id='34854', GAL2='0.97', EG2='0.86', return_code2='0', photon_flux_error2='1.80e-08', ts2='1.45', photon_index='2.34' WHERE bin_id='1517' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:16:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 34854: <4FGL_J0349.8-2103_daily_bin1517> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1517> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Aug 19 16:01:00 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:01:02 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:02 2021
Terminated at Thu Aug 19 16:16:24 2021
Results reported at Thu Aug 19 16:16:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1517 57.4699 -21.0576 632534401 632793601 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 :                                   798.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             314.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

