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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1487
RA = 57.4699, Dec = -21.0576
tmin = 624758401, tmax = 625017601
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='34821', job_status='RUN', time_executed='2021-08-19 16:01:26.491671', time_epoch_executed='1629414086.49' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34821/ft1_4FGL_J0349.8-2103_daily_bin1487.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34821/ft2_4FGL_J0349.8-2103_daily_bin1487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34821/ft1_4FGL_J0349.8-2103_daily_bin1487.fits outfile=/scratch/kocevski/34821/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1487.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=624758401.0 tmax=625017601.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 3.81
user 3.23
sys 0.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34821/ft1_filtered_4FGL_J0349.8-2103_daily_bin1487.fits" evtable="EVENTS" scfile=/scratch/kocevski/34821/ft2_4FGL_J0349.8-2103_daily_bin1487.fits sctable="SC_DATA" outfile=/scratch/kocevski/34821/ltcube_624758401_625017601_4FGL_J0349.8-2103_daily_bin1487.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/34821/ft2_4FGL_J0349.8-2103_daily_bin1487.fits
.....................!
real 12.37
user 11.61
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34821/ft1_filtered_4FGL_J0349.8-2103_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/34821/ft2_4FGL_J0349.8-2103_daily_bin1487.fits sctable="SC_DATA" expcube=/scratch/kocevski/34821/ltcube_624758401_625017601_4FGL_J0349.8-2103_daily_bin1487.fits outfile=/scratch/kocevski/34821/expmap_624758401_625017601_4FGL_J0349.8-2103_daily_bin1487.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/34821/ltcube_624758401_625017601_4FGL_J0349.8-2103_daily_bin1487.fits
.....................!
real 191.90
user 185.78
sys 5.79

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/34821/ft1_filtered_4FGL_J0349.8-2103_daily_bin1487.fits scfile=/scratch/kocevski/34821/ft2_4FGL_J0349.8-2103_daily_bin1487.fits outfile=/scratch/kocevski/34821/cmap_624758401_625017601_4FGL_J0349.8-2103_daily_bin1487.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 0.83
user 0.37
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34821/ft1_filtered_4FGL_J0349.8-2103_daily_bin1487.fits scfile=/scratch/kocevski/34821/ft2_4FGL_J0349.8-2103_daily_bin1487.fits outfile=/scratch/kocevski/34821/cmap_HighResolution_624758401_625017601_4FGL_J0349.8-2103_daily_bin1487.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 0.90
user 0.37
sys 0.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34821/ft1_filtered_4FGL_J0349.8-2103_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/34821/ft2_4FGL_J0349.8-2103_daily_bin1487.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34821/Model_4FGL_J0349.8-2103_daily_bin1487.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/34821/ft1_filtered_4FGL_J0349.8-2103_daily_bin1487.fits.....................!
real 192.20
user 190.21
sys 1.64

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3793       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.325       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.143       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.572       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    74.175       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3254       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2072       1.0000         .10000E-03   10000.    
    13 'norm      '    15.160       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6036       1.0000         .10000E-03   10000.    
    19 'norm      '    12.494       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7113       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .24971E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.7345       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0544       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87302       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=   8524.896     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2889 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3793        3.2230        .64409E-07   -.12393E-04
   2  Prefactor     .10000E-03    5.5957        .14284E-07** at limit **
   3  Prefactor     41.282        75.528       -.51238E-05   -.11197E-03
   4  Prefactor     .10000E-03    1.1330        .50692E-08** at limit **
   5  Prefactor     15.142        13.379        .19361E-06   -.13314E-04
   6  Prefactor     16.572        10.786        .72137E-07   -.78143E-05
   7  Prefactor     .10000E-03    20.101        .47957E-07** at limit **
   8  Prefactor     74.177        40.426        .13555E-06    .10604E-04
   9  Prefactor     .10000E-03    76.405        .22723E-06** at limit **
  10  Prefactor     2.3252        1.6616        .45770E-07   -.39738E-04
  11  Prefactor     .10000E-03    1.6124        .11529E-07** at limit **
  12  Prefactor     2.2069        2.2756        .53886E-07   -.19790E-04
  13  norm          15.159        1.6514        .68674E-08   -.49638E-04
  14  Prefactor     .10000E-03    10.055        .71930E-07** at limit **
  15  norm          .10000E-03    .35034        .18942E-07** at limit **
  16  Prefactor     .10000E-03    43.549       -.20258E-08** at limit **
  17  Prefactor     .10000E-03    5.8188        .19746E-07** at limit **
  18  Prefactor     5.6036        2.4088        .20179E-07   -.88110E-04
  19  norm          12.494        9.2442        .19618E-07   -.42270E-05
  20  Prefactor     .10000E-03    9.5065       -.32036E-07** at limit **
  21  Prefactor     5.7111        5.2000        .15587E-06   -.28307E-04
  22  Prefactor     .10001E-03    1.1152        .13817E-06** at limit **
  23  Prefactor     6.7348        15.594        .44506E-05   -.55550E-04
  24  Normalizat    1.0544        .15614       -.50259E-06   -.32754E-04
  25  Prefactor     .87301        .13532       -.68959E-07   -.71516E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.37926
  Prefactor  = 0.0001
  Prefactor  = 41.2824
  Prefactor  = 0.0001
  Prefactor  = 15.1416
  Prefactor  = 16.5717
  Prefactor  = 0.0001
  Prefactor  = 74.1767
  Prefactor  = 0.0001
  Prefactor  = 2.32516
  Prefactor  = 0.0001
  Prefactor  = 2.20693
  norm       = 15.1594
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.60358
  norm       = 12.4942
  Prefactor  = 0.0001
  Prefactor  = 5.71115
  Prefactor  = 0.000100014
  Prefactor  = 6.73477
  Normalizat = 1.05443
  Prefactor  = 0.873015
 **********
 **   18 **HESSE 
 **********

 FCN=   8524.896     FROM HESSE     STATUS=OK           431 CALLS     3320 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3793        3.2252        .12421E-03   -1.5244    
   2  Prefactor     .10000E-03    5.6011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.282        79.681        .62357E-04   -1.4422    
   4  Prefactor     .10000E-03    1.1354        .95905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.142        13.391        .10293E-03   -1.4930    
   6  Prefactor     16.572        10.787        .98386E-04   -1.4894    
   7  Prefactor     .10000E-03    20.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     74.177        40.438        .46618E-04   -1.3983    
   9  Prefactor     .10000E-03    77.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3252        1.6466        .95648E-04   -1.5403    
  11  Prefactor     .10000E-03    1.6587        .22869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2069        2.2664        .13527E-03   -1.5411    
  13  norm          15.159        1.6550        .37280E-04   -1.4929    
  14  Prefactor     .10000E-03    10.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .51599        .10497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.8322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6036        2.4003        .89789E-04   -1.5234    
  19  norm          12.494        9.2432        .11333E-03   -1.5001    
  20  Prefactor     .10000E-03    9.5281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.7111        5.1993        .16808E-03   -1.5230    
  22  Prefactor     .10001E-03    12.091        .18742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.7348        15.872        .77310E-03   -1.5189    
  24  Normalizat    1.0544        .18004        .26083E-03   -.91229    
  25  Prefactor     .87301        .15585        .25639E-03   -.97091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33107e-09
Minuit parameter uncertainties:
  1  3.22529
  2  1.27221e-06
  3  79.8878
  4  1.83104e-07
  5  13.3936
  6  10.7884
  7  4.96103e-06
  8  40.4532
  9  5.3943e-05
  10  1.64665
  11  6.53076e-07
  12  2.2665
  13  1.65502
  14  6.54264e-06
  15  2.78729e-08
  16  1.0772e-06
  17  1.06964e-06
  18  2.40038
  19  9.24422
  20  4.02529e-06
  21  5.19966
  22  0.000836982
  23  15.8816
  24  0.180147
  25  0.15593
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  2.787e-08  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:  8.730e-01  1.559e-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.054e+00  1.801e-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: 4.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34821/likelihoodResults_624758401_625017601_4FGL_J0349.8-2103_daily_bin1487.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8524.90468764
delta logL = -0.00918679100869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8524.89549774
delta logL = 3.11560688715e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3117       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0544       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87302       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=   8524.708     FROM MIGRAD    STATUS=CONVERGED    133 CALLS      289 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82819E-01    .60755        .14889E-01   -.37624E-02
   2  alpha         .71113        3.7147        .41300        .69299E-04
   3  Normalizat    1.0606        .14830        .58825E-01    .48597E-06
   4  Prefactor     .86512        .13462        .44660E-01    .20034E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0828192
  alpha      = 0.711128
  Normalizat = 1.06057
  Prefactor  = 0.865124
 **********
 **   18 **HESSE 
 **********

 FCN=   8524.708     FROM HESSE     STATUS=OK            35 CALLS      324 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82819E-01    .23837        .65402E-03   -1.5765    
   2  alpha         .71113        1.0946        .44316E-01   -2.3442    
   3  Normalizat    1.0606        .17062        .26014E-03   -.91028    
   4  Prefactor     .86512        .15506        .25736E-03   -.97371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44553e-08
Minuit parameter uncertainties:
  1  0.238373
  2  1.18303
  3  0.17071
  4  0.155143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34821': 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) = 8524.70825628
delta logL = 0.187244570183

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  8.282e-02  2.384e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  7.111e-01  1.183e+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:  8.651e-01  1.551e-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.061e+00  1.707e-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/34821/cmap_HighResolution_624758401_625017601_4FGL_J0349.8-2103_daily_bin1487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-05', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2021-08-19 16:17:04.948656', job_id='34821', GAL2='0.87', fit_tolerance='1e-08', EG2='1.06', EG='1.05', time_epoch_completed='1629415024.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.87e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1487' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:17:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 34821: <4FGL_J0349.8-2103_daily_bin1487> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1487 57.4699 -21.0576 624758401 625017601 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 :                                   926.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            968 sec.

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

