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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1044
RA = 57.4699, Dec = -21.0576
tmin = 509932801, tmax = 510192001
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='32031', job_status='RUN', time_executed='2021-08-19 15:57:15.239345', time_epoch_executed='1629413835.24' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32031

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32031/ft1_4FGL_J0349.8-2103_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32031/ft2_4FGL_J0349.8-2103_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32031/ft1_4FGL_J0349.8-2103_daily_bin1044.fits outfile=/scratch/kocevski/32031/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1044.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=509932801.0 tmax=510192001.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.42
user 3.32
sys 5.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32031/ft1_filtered_4FGL_J0349.8-2103_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/32031/ft2_4FGL_J0349.8-2103_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/32031/ltcube_509932801_510192001_4FGL_J0349.8-2103_daily_bin1044.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/32031/ft2_4FGL_J0349.8-2103_daily_bin1044.fits
.....................!
real 17.60
user 11.64
sys 5.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32031/ft1_filtered_4FGL_J0349.8-2103_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/32031/ft2_4FGL_J0349.8-2103_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/32031/ltcube_509932801_510192001_4FGL_J0349.8-2103_daily_bin1044.fits outfile=/scratch/kocevski/32031/expmap_509932801_510192001_4FGL_J0349.8-2103_daily_bin1044.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/32031/ltcube_509932801_510192001_4FGL_J0349.8-2103_daily_bin1044.fits
.....................!
real 196.96
user 185.27
sys 11.34

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/32031/ft1_filtered_4FGL_J0349.8-2103_daily_bin1044.fits scfile=/scratch/kocevski/32031/ft2_4FGL_J0349.8-2103_daily_bin1044.fits outfile=/scratch/kocevski/32031/cmap_509932801_510192001_4FGL_J0349.8-2103_daily_bin1044.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.54
user 0.39
sys 5.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32031/ft1_filtered_4FGL_J0349.8-2103_daily_bin1044.fits scfile=/scratch/kocevski/32031/ft2_4FGL_J0349.8-2103_daily_bin1044.fits outfile=/scratch/kocevski/32031/cmap_HighResolution_509932801_510192001_4FGL_J0349.8-2103_daily_bin1044.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.52
user 0.40
sys 5.10

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32031/ft1_filtered_4FGL_J0349.8-2103_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/32031/ft2_4FGL_J0349.8-2103_daily_bin1044.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32031/Model_4FGL_J0349.8-2103_daily_bin1044.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/32031/ft1_filtered_4FGL_J0349.8-2103_daily_bin1044.fits.....................!
real 146.08
user 137.79
sys 7.91

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3354       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6795       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4413       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.559       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1745       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .55422E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3639       1.0000         .10000E-03   10000.    
    13 'norm      '    .86032       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.351       1.0000         .10000E-03   10000.    
    15 'norm      '    .34938       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4020       1.0000         .10000E-03   10000.    
    19 'norm      '    13.233       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8822       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79710       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93932       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6447.438     FROM MIGRAD    STATUS=CONVERGED     84 CALLS     2415 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3355        2.1205       -.26389E-06   -.20170E-03
   2  Prefactor     8.6810        1.0032       -.21989E-08    .91071E-04
   3  Prefactor     .10633E-03    21.104        .58005E-06** at limit **
   4  Prefactor     1.4429        3.0442        .41298E-06    .36926E-03
   5  Prefactor     .10005E-03    3.2604        .58508E-06** at limit **
   6  Prefactor     .10001E-03    3.2850        .41798E-06** at limit **
   7  Prefactor     .10015E-03    13.718        .24822E-06** at limit **
   8  Prefactor     47.559        1.0001       -.10635E-09    .60910E-04
   9  Prefactor     .10004E-03    12.567        .64332E-06** at limit **
  10  Prefactor     1.1748        1.5318        .57888E-06    .13462E-02
  11  Prefactor     .10000E-03    4.9498        .32738E-06** at limit **
  12  Prefactor     2.3587        3.1680        .54329E-06    .64336E-03
  13  norm          .85894        .64579       -.11598E-06   -.39085E-03
  14  Prefactor     32.350        1.0003        .30077E-09    .84423E-05
  15  norm          .34959        .83098        .25821E-06    .76296E-03
  16  Prefactor     .10744E-03    30.151       -.48949E-06** at limit **
  17  Prefactor     .10024E-03    6.8788        .34296E-06** at limit **
  18  Prefactor     1.4022        2.1387       -.63692E-06   -.41027E-03
  19  norm          13.234        1.0012        .43808E-09    .39464E-04
  20  Prefactor     .10002E-03    3.3048        .40507E-06** at limit **
  21  Prefactor     .10000E-03    2.6944        .77685E-06** at limit **
  22  Prefactor     .10000E-03    1.5766       -.10487E-06** at limit **
  23  Prefactor     2.8823        1.0168       -.35780E-08    .82725E-05
  24  Normalizat    .79735        .16336        .51876E-06    .47873E-03
  25  Prefactor     .93909        .14925        .59033E-06    .56750E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33549
  Prefactor  = 8.68102
  Prefactor  = 0.000106329
  Prefactor  = 1.4429
  Prefactor  = 0.000100046
  Prefactor  = 0.000100013
  Prefactor  = 0.000100146
  Prefactor  = 47.5593
  Prefactor  = 0.000100042
  Prefactor  = 1.17479
  Prefactor  = 0.0001
  Prefactor  = 2.35873
  norm       = 0.858938
  Prefactor  = 32.3503
  norm       = 0.349591
  Prefactor  = 0.000107437
  Prefactor  = 0.00010024
  Prefactor  = 1.40216
  norm       = 13.2339
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.88226
  Normalizat = 0.797346
  Prefactor  = 0.939088
 **********
 **   18 **HESSE 
 **********

 FCN=   6447.438     FROM HESSE     STATUS=OK           485 CALLS     2900 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3355        2.1584        .94918E-02   -1.5477    
   2  Prefactor     8.6810        14.029        .34015E-02   -1.5119    
   3  Prefactor     .10633E-03    41.537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4429        3.0698        .89827E-02   -1.5468    
   5  Prefactor     .10005E-03    9.2230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    9.1082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10015E-03    15.124        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     47.559        34.817        .14536E-02   -1.4328    
   9  Prefactor     .10004E-03    19.577        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1748        1.6005        .10571E-01   -1.5491    
  11  Prefactor     .10000E-03    1.9656        .52917E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3587        3.4901        .66633E-02   -1.5401    
  13  norm          .85894        .68286        .12092E-01   -1.5523    
  14  Prefactor     32.350        24.689        .17612E-02   -1.4570    
  15  norm          .34959        .92984        .25179E-01   -1.5590    
  16  Prefactor     .10744E-03    53.345        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10024E-03    17.670        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4022        2.2145        .91592E-02   -1.5471    
  19  norm          13.234        8.7510        .27528E-02   -1.4980    
  20  Prefactor     .10002E-03    9.1927        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6623        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.5520        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.8823        12.960        .59849E-02   -1.5368    
  24  Normalizat    .79735        .14561        .43572E-01   -1.0017    
  25  Prefactor     .93909        .13050        .45504E-01   -.94788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27818e-07
Minuit parameter uncertainties:
  1  2.15854
  2  14.0339
  3  0.0324511
  4  3.0701
  5  0.00130531
  6  0.00067501
  7  0.00297064
  8  34.8321
  9  0.00181986
  10  1.60056
  11  8.54804e-06
  12  3.4904
  13  0.682863
  14  24.6966
  15  0.929879
  16  0.039871
  17  0.00412281
  18  2.21463
  19  8.75186
  20  0.00083179
  21  4.34521e-05
  22  4.30242e-06
  23  12.2278
  24  0.145682
  25  0.13054
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  3.496e-01  9.299e-01  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.391e-01  1.305e-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.973e-01  1.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/32031/likelihoodResults_509932801_510192001_4FGL_J0349.8-2103_daily_bin1044.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) = 6447.19313029
delta logL = 0.245360728485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6447.17129605
delta logL = 0.26719496978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21480       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9678       1.0000          .0000       5.0000    
     3 'Normalizat'    .77133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95313       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=   6447.171     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21436        5.1606        .10045E-01    .25233E-02
   2  alpha         3.9731        2.9391        .50000        .47687E-04
   3  Normalizat    .77132        .30141E-01    .43235E-01    .20864E-04
   4  Prefactor     .95308        .28381E-01    .45679E-01   -.98820E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.214365
  alpha      = 3.97311
  Normalizat = 0.771317
  Prefactor  = 0.953081
 **********
 **   18 **HESSE 
 **********

 FCN=   6447.171     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21436        13.054        .46220E-03   -1.5615    
   2  alpha         3.9731        2.8593        .40817E-02    .63012    
   3  Normalizat    .77132        .17805        .24062E-03   -1.0114    
   4  Prefactor     .95308        .16793        .20386E-03   -.94310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20231e-09
Minuit parameter uncertainties:
  1  3.3456
  2  13.3448
  3  0.178184
  4  0.168021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32031': 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) = 6447.1712893
delta logL = 0.267201723957

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  2.144e-01  3.346e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  3.973e+00  1.334e+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:  9.531e-01  1.680e-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.713e-01  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/32031/cmap_HighResolution_509932801_510192001_4FGL_J0349.8-2103_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='6.72e-08', time_completed='2021-08-19 16:10:28.747531', job_id='32031', GAL2='0.95', fit_tolerance='1e-08', EG2='0.77', EG='0.80', time_epoch_completed='1629414628.75', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.67e-01', ts2='0.79', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1044' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:10:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 32031: <4FGL_J0349.8-2103_daily_bin1044> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1044 57.4699 -21.0576 509932801 510192001 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 :                                   853.15 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             373.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            889 sec.

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

