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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1575
RA = 57.4699, Dec = -21.0576
tmin = 647568001, tmax = 647827201
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='34936', job_status='RUN', time_executed='2021-08-19 16:02:53.904323', time_epoch_executed='1629414173.9' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34936/ft1_4FGL_J0349.8-2103_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34936/ft2_4FGL_J0349.8-2103_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34936/ft1_4FGL_J0349.8-2103_daily_bin1575.fits outfile=/scratch/kocevski/34936/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1575.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=647568001.0 tmax=647827201.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 5.28
user 3.22
sys 2.04

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34936/ft2_4FGL_J0349.8-2103_daily_bin1575.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/34936/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1575.fits evtable="EVENTS" outfile="/scratch/kocevski/34936/ft1_filtered_4FGL_J0349.8-2103_daily_bin1575.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 2.44
user 0.34
sys 2.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34936/ft1_filtered_4FGL_J0349.8-2103_daily_bin1575.fits" evtable="EVENTS" scfile=/scratch/kocevski/34936/ft2_4FGL_J0349.8-2103_daily_bin1575.fits sctable="SC_DATA" outfile=/scratch/kocevski/34936/ltcube_647568001_647827201_4FGL_J0349.8-2103_daily_bin1575.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/34936/ft2_4FGL_J0349.8-2103_daily_bin1575.fits
.....................!
real 13.84
user 11.53
sys 2.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34936/ft1_filtered_4FGL_J0349.8-2103_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/34936/ft2_4FGL_J0349.8-2103_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/34936/ltcube_647568001_647827201_4FGL_J0349.8-2103_daily_bin1575.fits outfile=/scratch/kocevski/34936/expmap_647568001_647827201_4FGL_J0349.8-2103_daily_bin1575.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/34936/ltcube_647568001_647827201_4FGL_J0349.8-2103_daily_bin1575.fits
.....................!
real 192.11
user 184.84
sys 6.94

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/34936/ft1_filtered_4FGL_J0349.8-2103_daily_bin1575.fits scfile=/scratch/kocevski/34936/ft2_4FGL_J0349.8-2103_daily_bin1575.fits outfile=/scratch/kocevski/34936/cmap_647568001_647827201_4FGL_J0349.8-2103_daily_bin1575.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 2.36
user 0.39
sys 1.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34936/ft1_filtered_4FGL_J0349.8-2103_daily_bin1575.fits scfile=/scratch/kocevski/34936/ft2_4FGL_J0349.8-2103_daily_bin1575.fits outfile=/scratch/kocevski/34936/cmap_HighResolution_647568001_647827201_4FGL_J0349.8-2103_daily_bin1575.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 2.44
user 0.38
sys 2.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34936/ft1_filtered_4FGL_J0349.8-2103_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/34936/ft2_4FGL_J0349.8-2103_daily_bin1575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34936/Model_4FGL_J0349.8-2103_daily_bin1575.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/34936/ft1_filtered_4FGL_J0349.8-2103_daily_bin1575.fits.....................!
real 168.26
user 164.43
sys 3.53

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7228       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18249E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.281       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6463       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23335E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.9789       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10298E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6754       1.0000         .10000E-03   10000.    
    19 'norm      '    .17732E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0680       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .40866       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80536       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0942       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=   7651.779     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     2589 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7229        1.8237       -.15768E-07   -.17877E-03
   2  Prefactor     .10000E-03    3.4333        .83526E-08** at limit **
   3  Prefactor     .10000E-03    50.818       -.14162E-04** at limit **
   4  Prefactor     .10000E-03    1.3024       -.54297E-07** at limit **
   5  Prefactor     .10000E-03    4.3474       -.39203E-07** at limit **
   6  Prefactor     15.281        11.608        .65454E-07   -.34534E-04
   7  Prefactor     .10000E-03    16.850        .53980E-06** at limit **
   8  Prefactor     .10000E-03    10.926       -.70735E-07** at limit **
   9  Prefactor     6.6382        24.139        .13513E-04   -.14678E-04
  10  Prefactor     .10000E-03    1.0766       -.13251E-06** at limit **
  11  Prefactor     .15057E-01    1.4198        .11116E-05   -.22255E-02
  12  Prefactor     .10000E-03    1.0272       -.46391E-07** at limit **
  13  norm          3.9790        .99411       -.38870E-07   -.18491E-02
  14  Prefactor     .10000E-03    24.530       -.30186E-05** at limit **
  15  norm          .10000E-03    .69480       -.45776E-07** at limit **
  16  Prefactor     .10000E-03    35.039        .84148E-05** at limit **
  17  Prefactor     .10000E-03    5.4663        .56547E-06** at limit **
  18  Prefactor     6.6749        2.4972        .23882E-07    .22595E-05
  19  norm          .81980E-01    5.3493        .13864E-06   -.27798E-03
  20  Prefactor     .10000E-03    5.5624       -.63540E-06** at limit **
  21  Prefactor     3.0681        3.6270       -.77337E-07   -.13488E-03
  22  Prefactor     .41092        2.0541       -.88840E-06   -.59926E-03
  23  Prefactor     .10000E-03    6.2534        .13245E-06** at limit **
  24  Normalizat    .80541        .14518       -.44290E-07   -.20088E-03
  25  Prefactor     1.0941        .13424       -.42298E-06   -.51814E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.72286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.63822
  Prefactor  = 0.0001
  Prefactor  = 0.0150568
  Prefactor  = 0.0001
  norm       = 3.97899
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.67491
  norm       = 0.0819804
  Prefactor  = 0.0001
  Prefactor  = 3.06812
  Prefactor  = 0.410915
  Prefactor  = 0.0001
  Normalizat = 0.80541
  Prefactor  = 1.09415
 **********
 **   18 **HESSE 
 **********

 FCN=   7651.779     FROM HESSE     STATUS=OK           445 CALLS     3034 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7229        1.8160        .11832E-03   -1.5445    
   2  Prefactor     .10000E-03    3.4343        .15830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8930        .19443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3670        .17810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.281        11.606        .10246E-03   -1.4926    
   7  Prefactor     .10000E-03    16.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6382        23.790        .15565E-03   -1.5193    
  10  Prefactor     .10000E-03    2.3136        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15057E-01    3.9127        .32194E-01   -1.5684    
  12  Prefactor     .10000E-03    1.0355        .86441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.9790        .99889        .41090E-04   -1.5309    
  14  Prefactor     .10000E-03    24.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6484        .13768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6749        2.4783        .80323E-04   -1.5191    
  19  norm          .81980E-01    6.9552        .71669E-01   -1.5651    
  20  Prefactor     .10000E-03    5.5671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0681        3.6227        .17541E-03   -1.5358    
  22  Prefactor     .41092        4.3887        .23969E-02   -1.5580    
  23  Prefactor     .10000E-03    6.2738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .80541        .16283        .25645E-03   -.99868    
  25  Prefactor     1.0941        .15181        .21199E-03   -.89654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34586e-07
Minuit parameter uncertainties:
  1  1.81608
  2  2.16891e-07
  3  1.74935e-06
  4  8.46786e-06
  5  7.27452e-06
  6  11.6077
  7  3.3429e-07
  8  1.71189e-06
  9  23.824
  10  2.13434e-05
  11  0.483858
  12  3.94499e-06
  13  0.998895
  14  5.54241e-05
  15  8.49374e-06
  16  1.02725e-06
  17  1.31784e-06
  18  2.47835
  19  1.50948
  20  3.24602e-07
  21  3.62293
  22  2.68572
  23  6.26719e-06
  24  0.162933
  25  0.15187
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  8.494e-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.094e+00  1.519e-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.054e-01  1.629e-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: 5.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34936/likelihoodResults_647568001_647827201_4FGL_J0349.8-2103_daily_bin1575.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7651.78148181
delta logL = -0.00291160985944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7651.63518221
delta logL = 0.143387986667

Fit tolerance = 1e-08

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

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

 FCN=   7651.635     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      398 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35498E-01    .85130E-01    .29915E-03    .26056E-01
   2  alpha         5.0000        4.8469        .50000    ** at limit **
   3  Normalizat    .78372        .16170        .25963E-03   -.52107E-05
   4  Prefactor     1.1048        .15041        .21107E-03    .19929E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.035498
  alpha      = 5
  Normalizat = 0.783724
  Prefactor  = 1.10482
 **********
 **   18 **HESSE 
 **********

 FCN=   7651.635     FROM HESSE     STATUS=OK            31 CALLS      429 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35498E-01    .79923E-01    .59829E-04   -1.5670    
   2  alpha         5.0000        4.7404        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .78372        .16193        .10385E-04   -1.0068    
   4  Prefactor     1.1048        .15057        .84429E-05   -.89313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02417e-12
Minuit parameter uncertainties:
  1  0.0799233
  2  3.84286e-05
  3  0.162034
  4  0.150627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34936': 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) = 7651.63517186
delta logL = 0.143398334369

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  3.550e-02  7.992e-02  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  5.000e+00  3.843e-05  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.105e+00  1.506e-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:  7.837e-01  1.620e-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/34936/cmap_HighResolution_647568001_647827201_4FGL_J0349.8-2103_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-05', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2021-08-19 16:17:01.953735', job_id='34936', GAL2='1.10', fit_tolerance='1e-08', EG2='0.78', EG='0.81', time_epoch_completed='1629415021.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.43e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1575' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:17:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 34936: <4FGL_J0349.8-2103_daily_bin1575> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1575 57.4699 -21.0576 647568001 647827201 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 :                                   875.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

