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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1162
RA = 57.4699, Dec = -21.0576
tmin = 540518401, tmax = 540777601
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='32253', job_status='RUN', time_executed='2021-08-19 15:58:27.411514', time_epoch_executed='1629413907.41' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32253

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32253/ft1_4FGL_J0349.8-2103_daily_bin1162.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32253/ft2_4FGL_J0349.8-2103_daily_bin1162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32253/ft1_4FGL_J0349.8-2103_daily_bin1162.fits outfile=/scratch/kocevski/32253/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1162.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=540518401.0 tmax=540777601.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.19
user 3.42
sys 4.74

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32253/ft2_4FGL_J0349.8-2103_daily_bin1162.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/32253/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1162.fits evtable="EVENTS" outfile="/scratch/kocevski/32253/ft1_filtered_4FGL_J0349.8-2103_daily_bin1162.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 4.98
user 0.33
sys 4.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32253/ft1_filtered_4FGL_J0349.8-2103_daily_bin1162.fits" evtable="EVENTS" scfile=/scratch/kocevski/32253/ft2_4FGL_J0349.8-2103_daily_bin1162.fits sctable="SC_DATA" outfile=/scratch/kocevski/32253/ltcube_540518401_540777601_4FGL_J0349.8-2103_daily_bin1162.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/32253/ft2_4FGL_J0349.8-2103_daily_bin1162.fits
.....................!
real 17.31
user 11.64
sys 5.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32253/ft1_filtered_4FGL_J0349.8-2103_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/32253/ft2_4FGL_J0349.8-2103_daily_bin1162.fits sctable="SC_DATA" expcube=/scratch/kocevski/32253/ltcube_540518401_540777601_4FGL_J0349.8-2103_daily_bin1162.fits outfile=/scratch/kocevski/32253/expmap_540518401_540777601_4FGL_J0349.8-2103_daily_bin1162.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/32253/ltcube_540518401_540777601_4FGL_J0349.8-2103_daily_bin1162.fits
.....................!
real 196.85
user 185.92
sys 10.59

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/32253/ft1_filtered_4FGL_J0349.8-2103_daily_bin1162.fits scfile=/scratch/kocevski/32253/ft2_4FGL_J0349.8-2103_daily_bin1162.fits outfile=/scratch/kocevski/32253/cmap_540518401_540777601_4FGL_J0349.8-2103_daily_bin1162.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.02
user 0.39
sys 4.56

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32253/ft1_filtered_4FGL_J0349.8-2103_daily_bin1162.fits scfile=/scratch/kocevski/32253/ft2_4FGL_J0349.8-2103_daily_bin1162.fits outfile=/scratch/kocevski/32253/cmap_HighResolution_540518401_540777601_4FGL_J0349.8-2103_daily_bin1162.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.08
user 0.38
sys 4.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32253/ft1_filtered_4FGL_J0349.8-2103_daily_bin1162.fits evtable="EVENTS" scfile=/scratch/kocevski/32253/ft2_4FGL_J0349.8-2103_daily_bin1162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32253/Model_4FGL_J0349.8-2103_daily_bin1162.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/32253/ft1_filtered_4FGL_J0349.8-2103_daily_bin1162.fits.....................!
real 99.27
user 91.72
sys 7.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36139       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    124.27       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6813       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    86.826       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.2194       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .17962       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.170       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .88884       1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.851       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3507       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.925       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4958       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .38946       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=   4034.078     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     3423 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36141        4.9228        .27502E-05    .37813E-04
   2  Prefactor     .10000E-03    7.4438        .21303E-07** at limit **
   3  Prefactor     124.41        289.52        .19068E-05    .69185E-05
   4  Prefactor     .10000E-03    2.3654       -.82729E-07** at limit **
   5  Prefactor     3.6857        31.221        .95320E-06   -.77157E-05
   6  Prefactor     .10000E-03    5.9852       -.24046E-07** at limit **
   7  Prefactor     .10000E-03    120.62        .22882E-06** at limit **
   8  Prefactor     .10000E-03    74.754        .69123E-07** at limit **
   9  Prefactor     86.752        61.827       -.26646E-06   -.96391E-04
  10  Prefactor     .10000E-03    1.3529       -.32156E-07** at limit **
  11  Prefactor     .10000E-03    3.4880        .68822E-07** at limit **
  12  Prefactor     .10000E-03    1.6784        .34472E-07** at limit **
  13  norm          8.2196        1.9940        .57596E-07   -.17196E-03
  14  Prefactor     .10000E-03    19.162       -.40223E-06** at limit **
  15  norm          .17942        1.8988        .24542E-06   -.40666E-03
  16  Prefactor     .10000E-03    73.322       -.44923E-07** at limit **
  17  Prefactor     26.176        29.478        .10917E-06   -.38418E-04
  18  Prefactor     .88778        3.6550        .15687E-05    .84570E-05
  19  norm          .10000E-03    5.1549        .36745E-07** at limit **
  20  Prefactor     41.862        33.790        .53054E-07   -.34139E-04
  21  Prefactor     .10000E-03    2.1184        .41537E-08** at limit **
  22  Prefactor     7.3507        5.3989       -.14076E-07   -.12214E-03
  23  Prefactor     23.927        28.670        .28288E-06   -.16064E-04
  24  Normalizat    1.4959        .23654       -.21398E-05   -.77813E-04
  25  Prefactor     .38944        .18414        .17851E-05   -.11271E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.361413
  Prefactor  = 0.0001
  Prefactor  = 124.41
  Prefactor  = 0.0001
  Prefactor  = 3.6857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.7517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.21961
  Prefactor  = 0.0001
  norm       = 0.179422
  Prefactor  = 0.0001
  Prefactor  = 26.1758
  Prefactor  = 0.887779
  norm       = 0.0001
  Prefactor  = 41.8625
  Prefactor  = 0.0001
  Prefactor  = 7.3507
  Prefactor  = 23.9272
  Normalizat = 1.49586
  Prefactor  = 0.389444
 **********
 **   18 **HESSE 
 **********

 FCN=   4034.078     FROM HESSE     STATUS=OK           421 CALLS     3844 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36141        5.0392        .27082E-03   -1.5588    
   2  Prefactor     .10000E-03    7.4451        .16926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     124.41        289.11        .18054E-03   -1.3473    
   4  Prefactor     .10000E-03    2.3735        .95279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6857        30.953        .21051E-03   -1.5324    
   6  Prefactor     .10000E-03    6.0029        .15175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    121.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    74.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     86.752        61.720        .21558E-03   -1.3842    
  10  Prefactor     .10000E-03    1.3621        .71996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5401        .11574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6832        .80326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.2196        2.0004        .41874E-04   -1.5134    
  14  Prefactor     .10000E-03    19.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .17942        3.7626        .15454E-02   -1.5623    
  16  Prefactor     .10000E-03    73.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.176        29.434        .78308E-04   -1.4684    
  18  Prefactor     .88778        3.5901        .22025E-03   -1.5520    
  19  norm          .10000E-03    5.1557        .14084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.862        33.781        .61965E-04   -1.4413    
  21  Prefactor     .10000E-03    2.1209        .90279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.3507        5.3842        .11978E-03   -1.5166    
  23  Prefactor     23.927        28.650        .81893E-04   -1.4729    
  24  Normalizat    1.4959        .25942        .22194E-03   -.77895    
  25  Prefactor     .38944        .19953        .32897E-03   -1.1735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72902e-10
Minuit parameter uncertainties:
  1  2.69896
  2  9.77657e-07
  3  292.493
  4  1.67931e-06
  5  21.3767
  6  2.16004e-06
  7  0.000204451
  8  4.46473e-05
  9  61.7661
  10  1.61587e-06
  11  1.03371e-06
  12  3.34187e-07
  13  2.00046
  14  1.3711e-05
  15  1.64295
  16  3.41492e-05
  17  29.4499
  18  3.57071
  19  5.83285e-07
  20  33.7967
  21  6.09338e-07
  22  5.38459
  23  28.6664
  24  0.259656
  25  0.199887
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.794e-01  1.643e+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:  3.894e-01  1.999e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.496e+00  2.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/32253/likelihoodResults_540518401_540777601_4FGL_J0349.8-2103_daily_bin1162.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) = 4034.05823569
delta logL = 0.0199445521603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4034.05606206
delta logL = 0.0221181864326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24253       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2065       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39235       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=   4034.056     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      234 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24066        17.872        .27767E-01    .95721E-03
   2  alpha         3.2092        2.8108        .43449        .24690E-04
   3  Normalizat    1.4869        .31966E-01    .50326E-01   -.93370E-05
   4  Prefactor     .39297        .25953E-01    .73940E-01    .28245E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.240662
  alpha      = 3.20918
  Normalizat = 1.48685
  Prefactor  = 0.392974
 **********
 **   18 **HESSE 
 **********

 FCN=   4034.056     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      269 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24066        222.23        .97046E-03   -1.5610    
   2  alpha         3.2092        2.8236        .68968E-01    .28762    
   3  Normalizat    1.4869        .21647        .22248E-03   -.78148    
   4  Prefactor     .39297        .25473        .32752E-03   -1.1717    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15666e-06
Minuit parameter uncertainties:
  1  14.6781
  2  44.5029
  3  0.216605
  4  0.255463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32253': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4034.05605615
delta logL = 0.0221240975357

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  2.407e-01  1.468e+01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  3.209e+00  4.450e+01  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:  3.930e-01  2.555e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.487e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/32253/cmap_HighResolution_540518401_540777601_4FGL_J0349.8-2103_daily_bin1162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-08-19 16:10:27.854387', job_id='32253', GAL2='0.39', fit_tolerance='1e-08', EG2='1.49', EG='1.50', time_epoch_completed='1629414627.85', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.39', dlogl='2.21e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1162' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:10:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 32253: <4FGL_J0349.8-2103_daily_bin1162> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1162> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 15:55:57 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 15:55:58 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:55:58 2021
Terminated at Thu Aug 19 16:10:29 2021
Results reported at Thu Aug 19 16:10:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1162 57.4699 -21.0576 540518401 540777601 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 :                                   738.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

