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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1506
RA = 57.4699, Dec = -21.0576
tmin = 629683201, tmax = 629942401
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='34842', job_status='RUN', time_executed='2021-08-19 16:01:18.022585', time_epoch_executed='1629414078.02' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34842

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34842/ft1_4FGL_J0349.8-2103_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34842/ft2_4FGL_J0349.8-2103_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34842/ft1_4FGL_J0349.8-2103_daily_bin1506.fits outfile=/scratch/kocevski/34842/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1506.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=629683201.0 tmax=629942401.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.77
user 3.28
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34842/ft1_filtered_4FGL_J0349.8-2103_daily_bin1506.fits" evtable="EVENTS" scfile=/scratch/kocevski/34842/ft2_4FGL_J0349.8-2103_daily_bin1506.fits sctable="SC_DATA" outfile=/scratch/kocevski/34842/ltcube_629683201_629942401_4FGL_J0349.8-2103_daily_bin1506.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/34842/ft2_4FGL_J0349.8-2103_daily_bin1506.fits
.....................!
real 12.60
user 11.94
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34842/ft1_filtered_4FGL_J0349.8-2103_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/34842/ft2_4FGL_J0349.8-2103_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/34842/ltcube_629683201_629942401_4FGL_J0349.8-2103_daily_bin1506.fits outfile=/scratch/kocevski/34842/expmap_629683201_629942401_4FGL_J0349.8-2103_daily_bin1506.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/34842/ltcube_629683201_629942401_4FGL_J0349.8-2103_daily_bin1506.fits
.....................!
real 190.84
user 185.31
sys 5.17

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/34842/ft1_filtered_4FGL_J0349.8-2103_daily_bin1506.fits scfile=/scratch/kocevski/34842/ft2_4FGL_J0349.8-2103_daily_bin1506.fits outfile=/scratch/kocevski/34842/cmap_629683201_629942401_4FGL_J0349.8-2103_daily_bin1506.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.78
user 0.34
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34842/ft1_filtered_4FGL_J0349.8-2103_daily_bin1506.fits scfile=/scratch/kocevski/34842/ft2_4FGL_J0349.8-2103_daily_bin1506.fits outfile=/scratch/kocevski/34842/cmap_HighResolution_629683201_629942401_4FGL_J0349.8-2103_daily_bin1506.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.77
user 0.38
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34842/ft1_filtered_4FGL_J0349.8-2103_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/34842/ft2_4FGL_J0349.8-2103_daily_bin1506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34842/Model_4FGL_J0349.8-2103_daily_bin1506.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/34842/ft1_filtered_4FGL_J0349.8-2103_daily_bin1506.fits.....................!
real 160.94
user 159.06
sys 1.56

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3044       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15247E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.094       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3766       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3086       1.0000         .10000E-03   10000.    
    13 'norm      '    7.4796       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.335       1.0000         .10000E-03   10000.    
    15 'norm      '    .46111       1.0000         .10000E-03   10000.    
    16 'Prefactor '    67.273       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10554E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2163       1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.775       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .54455       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2102       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=   7460.350     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2898 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3046        2.9995        .39967E-02    .34146E-04
   2  Prefactor     .10000E-03    4.7347        .90712E-02** at limit **
   3  Prefactor     .10000E-03    62.535        .90712E-02** at limit **
   4  Prefactor     .10000E-03    1.5775        .58180E-01** at limit **
   5  Prefactor     .10000E-03    3.9549        .90712E-02** at limit **
   6  Prefactor     .10000E-03    10.598        .90712E-02** at limit **
   7  Prefactor     .10000E-03    7.6080        .90712E-02** at limit **
   8  Prefactor     18.095        18.144        .23539E-02   -.17089E-03
   9  Prefactor     .10000E-03    10.382        .90712E-02** at limit **
  10  Prefactor     3.3766        1.8082        .55051E-02    .12597E-03
  11  Prefactor     .10000E-03    1.7200        .90712E-02** at limit **
  12  Prefactor     4.3089        3.1362        .48519E-02    .28419E-03
  13  norm          7.4798        1.2500        .36661E-02   -.19126E-04
  14  Prefactor     13.326        18.223        .27422E-02    .21405E-03
  15  norm          .46147        .86626        .20426E-01    .11067E-02
  16  Prefactor     67.274        79.264        .12234E-02   -.53749E-03
  17  Prefactor     .10000E-03    18.967        .90712E-02** at limit **
  18  Prefactor     9.2158        2.8338        .33004E-02    .52723E-04
  19  norm          .10001E-03    12.679        .90712E-02** at limit **
  20  Prefactor     .10000E-03    13.956        .90712E-02** at limit **
  21  Prefactor     .10000E-03    2.5067        .90712E-02** at limit **
  22  Prefactor     .10000E-03    1.8589        .40401E-01** at limit **
  23  Prefactor     12.775        10.926        .28017E-02   -.25965E-04
  24  Normalizat    .54452        .15708        .70135E-01    .42950E-04
  25  Prefactor     1.2102        .14506        .34394E-01    .50914E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 6.30461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.0947
  Prefactor  = 0.000100002
  Prefactor  = 3.37665
  Prefactor  = 0.0001
  Prefactor  = 4.30891
  norm       = 7.47979
  Prefactor  = 13.3262
  norm       = 0.461467
  Prefactor  = 67.2741
  Prefactor  = 0.0001
  Prefactor  = 9.21577
  norm       = 0.000100005
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7751
  Normalizat = 0.544523
  Prefactor  = 1.21018
 **********
 **   18 **HESSE 
 **********

 FCN=   7460.350     FROM HESSE     STATUS=OK           429 CALLS     3327 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3046        2.9988        .10019E-03   -1.5206    
   2  Prefactor     .10000E-03    4.7389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    62.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.799        .20994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.9677        .16772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.095        18.147        .47078E-03   -1.4857    
   9  Prefactor     .10000E-03    10.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3766        1.7899        .80222E-04   -1.5340    
  11  Prefactor     .10000E-03    1.7434        .11032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3089        3.1069        .12224E-03   -1.5293    
  13  norm          7.4798        1.2506        .37449E-04   -1.5161    
  14  Prefactor     13.326        18.197        .10969E-03   -1.4978    
  15  norm          .46147        .68971        .10243E-02   -1.5572    
  16  Prefactor     67.274        79.300        .48935E-04   -1.4066    
  17  Prefactor     .10000E-03    19.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.2158        2.8133        .76384E-04   -1.5101    
  19  norm          .10001E-03    13.125        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5353        .13351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.6434        .22594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.775        10.919        .11207E-03   -1.4993    
  24  Normalizat    .54452        .17476        .31046E-03   -1.1039    
  25  Prefactor     1.2102        .16291        .20632E-03   -.86019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68432e-09
Minuit parameter uncertainties:
  1  2.99885
  2  1.52287e-06
  3  1.15208e-05
  4  0.000284648
  5  1.44857e-06
  6  0.000219534
  7  1.37037e-05
  8  18.1526
  9  0.000259851
  10  1.78996
  11  2.53153e-08
  12  3.10702
  13  1.25064
  14  18.2045
  15  0.689723
  16  79.4251
  17  0.000101967
  18  2.81337
  19  0.000519853
  20  0.000298223
  21  7.60116e-08
  22  5.14372e-07
  23  10.9207
  24  0.174938
  25  0.162975
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  4.615e-01  6.897e-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:  1.210e+00  1.630e-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:  5.445e-01  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/34842/likelihoodResults_629683201_629942401_4FGL_J0349.8-2103_daily_bin1506.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) = 7460.31978397
delta logL = 0.029876370063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7460.31877339
delta logL = 0.0308869494856

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43426       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9877       1.0000          .0000       5.0000    
     3 'Normalizat'    .54764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2087       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=   7460.319     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      252 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43429        .67219        .10310E-02    .15768E-03
   2  alpha         1.9877        1.2876        .39720E-01   -.11832E-03
   3  Normalizat    .54761        .16758        .30967E-03    .42586E-04
   4  Prefactor     1.2087        .16186        .20644E-03    .21827E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.434293
  alpha      = 1.98766
  Normalizat = 0.547609
  Prefactor  = 1.20872
 **********
 **   18 **HESSE 
 **********

 FCN=   7460.319     FROM HESSE     STATUS=OK            27 CALLS      279 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43429        .67810        .41241E-04   -1.5576    
   2  alpha         1.9877        1.2993        .79439E-02   -.20640    
   3  Normalizat    .54761        .16766        .12387E-04   -1.1026    
   4  Prefactor     1.2087        .16196        .41288E-04   -.86064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96161e-11
Minuit parameter uncertainties:
  1  0.678108
  2  1.36971
  3  0.16781
  4  0.162028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34842': 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) = 7460.31877337
delta logL = 0.0308869666069

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  4.343e-01  6.781e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.988e+00  1.370e+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:  1.209e+00  1.620e-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:  5.476e-01  1.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.77
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/34842/cmap_HighResolution_629683201_629942401_4FGL_J0349.8-2103_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-05', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-08-19 16:14:53.628626', job_id='34842', GAL2='1.21', fit_tolerance='1e-08', EG2='0.55', EG='0.54', time_epoch_completed='1629414893.63', return_code2='0', ts='0.77', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='3.09e-02', ts2='0.84', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1506' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:14:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 34842: <4FGL_J0349.8-2103_daily_bin1506> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1506> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Aug 19 16:00:58 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:01:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 16:01:00 2021
Terminated at Thu Aug 19 16:14:54 2021
Results reported at Thu Aug 19 16:14:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1506 57.4699 -21.0576 629683201 629942401 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 :                                   816.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             346.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            836 sec.

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

