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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin790
RA = 57.4699, Dec = -21.0576
tmin = 444096001, tmax = 444355201
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='30056', job_status='RUN', time_executed='2021-08-19 15:52:17.490939', time_epoch_executed='1629413537.49' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='790'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30056/ft1_4FGL_J0349.8-2103_daily_bin790.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30056/ft2_4FGL_J0349.8-2103_daily_bin790.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30056/ft1_4FGL_J0349.8-2103_daily_bin790.fits outfile=/scratch/kocevski/30056/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin790.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=444096001.0 tmax=444355201.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 10.18
user 3.54
sys 6.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30056/ft1_filtered_4FGL_J0349.8-2103_daily_bin790.fits" evtable="EVENTS" scfile=/scratch/kocevski/30056/ft2_4FGL_J0349.8-2103_daily_bin790.fits sctable="SC_DATA" outfile=/scratch/kocevski/30056/ltcube_444096001_444355201_4FGL_J0349.8-2103_daily_bin790.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/30056/ft2_4FGL_J0349.8-2103_daily_bin790.fits
.....................!
real 18.92
user 11.44
sys 7.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30056/ft1_filtered_4FGL_J0349.8-2103_daily_bin790.fits evtable="EVENTS" scfile=/scratch/kocevski/30056/ft2_4FGL_J0349.8-2103_daily_bin790.fits sctable="SC_DATA" expcube=/scratch/kocevski/30056/ltcube_444096001_444355201_4FGL_J0349.8-2103_daily_bin790.fits outfile=/scratch/kocevski/30056/expmap_444096001_444355201_4FGL_J0349.8-2103_daily_bin790.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/30056/ltcube_444096001_444355201_4FGL_J0349.8-2103_daily_bin790.fits
.....................!
real 198.71
user 185.12
sys 13.22

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/30056/ft1_filtered_4FGL_J0349.8-2103_daily_bin790.fits scfile=/scratch/kocevski/30056/ft2_4FGL_J0349.8-2103_daily_bin790.fits outfile=/scratch/kocevski/30056/cmap_444096001_444355201_4FGL_J0349.8-2103_daily_bin790.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 6.77
user 0.36
sys 6.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30056/ft1_filtered_4FGL_J0349.8-2103_daily_bin790.fits scfile=/scratch/kocevski/30056/ft2_4FGL_J0349.8-2103_daily_bin790.fits outfile=/scratch/kocevski/30056/cmap_HighResolution_444096001_444355201_4FGL_J0349.8-2103_daily_bin790.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 6.82
user 0.37
sys 6.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/30056/ft1_filtered_4FGL_J0349.8-2103_daily_bin790.fits evtable="EVENTS" scfile=/scratch/kocevski/30056/ft2_4FGL_J0349.8-2103_daily_bin790.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30056/Model_4FGL_J0349.8-2103_daily_bin790.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/30056/ft1_filtered_4FGL_J0349.8-2103_daily_bin790.fits.....................!
real 93.60
user 83.95
sys 9.46

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0125       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.031       1.0000         .10000E-03   10000.    
     3 'Prefactor '    324.64       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.492       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    108.75       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2553       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6932       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.006       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1688       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10448E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6302       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2081       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93106       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78678       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=   3735.188     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2843 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0124        4.1379        .69870E-07    .20961E-04
   2  Prefactor     32.031        28.748        .20326E-06   -.40941E-05
   3  Prefactor     324.57        394.01       -.18417E-05   -.18428E-04
   4  Prefactor     .10000E-03    2.6170       -.59476E-08** at limit **
   5  Prefactor     29.483        22.418       -.20068E-07   -.39601E-04
   6  Prefactor     .10000E-03    7.1575        .17465E-06** at limit **
   7  Prefactor     .10000E-03    29.337       -.10821E-05** at limit **
   8  Prefactor     .10000E-03    70.712       -.44247E-05** at limit **
   9  Prefactor     108.76        67.420        .71634E-06    .23377E-04
  10  Prefactor     5.2551        4.0550       -.93717E-07   -.10682E-03
  11  Prefactor     2.6933        6.6390        .19361E-06   -.15854E-04
  12  Prefactor     16.005        8.5792        .43660E-06   -.87261E-04
  13  norm          1.1685        1.0426       -.12894E-07   -.85557E-04
  14  Prefactor     .10000E-03    15.005        .26815E-06** at limit **
  15  norm          .10000E-03    2.0561        .12053E-06** at limit **
  16  Prefactor     .10000E-03    53.782        .39549E-05** at limit **
  17  Prefactor     .10000E-03    9.1455       -.67997E-07** at limit **
  18  Prefactor     .10000E-03    2.1393       -.63449E-07** at limit **
  19  norm          .10000E-03    5.4685        .54409E-07** at limit **
  20  Prefactor     .10000E-03    32.314        .10437E-05** at limit **
  21  Prefactor     7.6298        7.8380        .18635E-05   -.47551E-04
  22  Prefactor     1.2096        5.0518        .12182E-05   -.45061E-04
  23  Prefactor     .10000E-03    30.109       -.52358E-06** at limit **
  24  Normalizat    .93131        .22503       -.78480E-06   -.47971E-04
  25  Prefactor     .78652        .18977       -.75419E-06   -.49984E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.01236
  Prefactor  = 32.0307
  Prefactor  = 324.569
  Prefactor  = 0.0001
  Prefactor  = 29.4829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 108.756
  Prefactor  = 5.2551
  Prefactor  = 2.69329
  Prefactor  = 16.0047
  norm       = 1.16852
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.62983
  Prefactor  = 1.20961
  Prefactor  = 0.0001
  Normalizat = 0.931312
  Prefactor  = 0.786525
 **********
 **   18 **HESSE 
 **********

 FCN=   3735.188     FROM HESSE     STATUS=OK           427 CALLS     3270 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0124        4.1404        .10976E-03   -1.5260    
   2  Prefactor     32.031        28.748        .70799E-04   -1.4575    
   3  Prefactor     324.57        395.54        .11285E-03   -1.2085    
   4  Prefactor     .10000E-03    2.6841        .19304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.483        22.439        .73775E-04   -1.4621    
   6  Prefactor     .10000E-03    7.2053        .15972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    72.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     108.76        67.490        .19284E-03   -1.3618    
  10  Prefactor     5.2551        3.9507        .96530E-04   -1.5249    
  11  Prefactor     2.6933        6.5180        .20711E-03   -1.5380    
  12  Prefactor     16.005        8.4465        .50055E-03   -1.4908    
  13  norm          1.1685        1.0122        .55234E-04   -1.5492    
  14  Prefactor     .10000E-03    15.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.6353        .16093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    55.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1517        .18054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1647        .87183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.4711        .13959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.6298        7.9026        .72589E-03   -1.5155    
  22  Prefactor     1.2096        5.0966        .25764E-03   -1.5488    
  23  Prefactor     .10000E-03    30.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .93131        .25810        .25477E-03   -.95368    
  25  Prefactor     .78652        .21789        .23803E-03   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40492e-10
Minuit parameter uncertainties:
  1  4.14066
  2  28.7606
  3  398.904
  4  2.09893e-06
  5  22.4453
  6  1.15936e-05
  7  0.000148035
  8  0.000957905
  9  67.5375
  10  3.95089
  11  6.51976
  12  8.44716
  13  1.01224
  14  1.90921e-05
  15  1.76256e-05
  16  0.000783552
  17  8.97381e-06
  18  2.94554e-06
  19  3.09005e-06
  20  0.000146355
  21  7.90368
  22  4.96638
  23  6.13833e-05
  24  0.258445
  25  0.218129
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  1.763e-05  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.339e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  7.865e-01  2.181e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  9.313e-01  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 57.470 -21.058
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30056/likelihoodResults_444096001_444355201_4FGL_J0349.8-2103_daily_bin790.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) = 3735.18884514
delta logL = -0.00131373337945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3735.1107399
delta logL = 0.076791514914

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .87698E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6561       1.0000          .0000       5.0000    
     3 'Normalizat'    .90551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79888       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=   3735.111     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      390 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87910E-01    29.380        .43707E-03   -.69075E-03
   2  alpha         4.6551        4.5887        .11382       -.54455E-05
   3  Normalizat    .90544        .16025        .25774E-03    .57916E-03
   4  Prefactor     .79884        .13295        .23627E-03    .69307E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0879103
  alpha      = 4.65507
  Normalizat = 0.905444
  Prefactor  = 0.798838
 **********
 **   18 **HESSE 
 **********

 FCN=   3735.111     FROM HESSE     STATUS=OK            27 CALLS      417 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87910E-01    1.6104        .17483E-04   -1.5649    
   2  alpha         4.6551        2.8508        .45527E-02    1.0393    
   3  Normalizat    .90544        .25560        .51549E-04   -.96269    
   4  Prefactor     .79884        .21778        .47254E-04   -.99771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77958e-10
Minuit parameter uncertainties:
  1  0.752111
  2  6.08393
  3  0.255943
  4  0.218019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30056': 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) = 3735.11073941
delta logL = 0.0767919958894

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  8.791e-02  7.521e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  4.655e+00  6.084e+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:  7.988e-01  2.180e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  9.054e-01  2.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 57.470 -21.058

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/30056/cmap_HighResolution_444096001_444355201_4FGL_J0349.8-2103_daily_bin790.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-05', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-08-19 16:03:06.070393', job_id='30056', GAL2='0.80', fit_tolerance='1e-08', EG2='0.91', EG='0.93', time_epoch_completed='1629414186.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='7.68e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='790' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:03:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 30056: <4FGL_J0349.8-2103_daily_bin790> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin790> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug 19 15:50:26 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 15:50:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 15:50:28 2021
Terminated at Thu Aug 19 16:03:07 2021
Results reported at Thu Aug 19 16:03:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin790 57.4699 -21.0576 444096001 444355201 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 :                                   742.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            761 sec.

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

