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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1547
RA = 57.4699, Dec = -21.0576
tmin = 640310401, tmax = 640569601
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='34891', job_status='RUN', time_executed='2021-08-19 16:02:00.946249', time_epoch_executed='1629414120.95' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34891

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34891/ft1_4FGL_J0349.8-2103_daily_bin1547.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34891/ft2_4FGL_J0349.8-2103_daily_bin1547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34891/ft1_4FGL_J0349.8-2103_daily_bin1547.fits outfile=/scratch/kocevski/34891/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1547.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=640310401.0 tmax=640569601.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 7.40
user 4.71
sys 2.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34891/ft2_4FGL_J0349.8-2103_daily_bin1547.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/34891/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1547.fits evtable="EVENTS" outfile="/scratch/kocevski/34891/ft1_filtered_4FGL_J0349.8-2103_daily_bin1547.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 2.97
user 0.33
sys 2.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34891/ft1_filtered_4FGL_J0349.8-2103_daily_bin1547.fits" evtable="EVENTS" scfile=/scratch/kocevski/34891/ft2_4FGL_J0349.8-2103_daily_bin1547.fits sctable="SC_DATA" outfile=/scratch/kocevski/34891/ltcube_640310401_640569601_4FGL_J0349.8-2103_daily_bin1547.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/34891/ft2_4FGL_J0349.8-2103_daily_bin1547.fits
.....................!
real 14.75
user 11.66
sys 3.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34891/ft1_filtered_4FGL_J0349.8-2103_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/34891/ft2_4FGL_J0349.8-2103_daily_bin1547.fits sctable="SC_DATA" expcube=/scratch/kocevski/34891/ltcube_640310401_640569601_4FGL_J0349.8-2103_daily_bin1547.fits outfile=/scratch/kocevski/34891/expmap_640310401_640569601_4FGL_J0349.8-2103_daily_bin1547.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/34891/ltcube_640310401_640569601_4FGL_J0349.8-2103_daily_bin1547.fits
.....................!
real 194.36
user 186.23
sys 7.78

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/34891/ft1_filtered_4FGL_J0349.8-2103_daily_bin1547.fits scfile=/scratch/kocevski/34891/ft2_4FGL_J0349.8-2103_daily_bin1547.fits outfile=/scratch/kocevski/34891/cmap_640310401_640569601_4FGL_J0349.8-2103_daily_bin1547.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 2.92
user 0.37
sys 2.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34891/ft1_filtered_4FGL_J0349.8-2103_daily_bin1547.fits scfile=/scratch/kocevski/34891/ft2_4FGL_J0349.8-2103_daily_bin1547.fits outfile=/scratch/kocevski/34891/cmap_HighResolution_640310401_640569601_4FGL_J0349.8-2103_daily_bin1547.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 2.71
user 0.38
sys 2.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34891/ft1_filtered_4FGL_J0349.8-2103_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/34891/ft2_4FGL_J0349.8-2103_daily_bin1547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34891/Model_4FGL_J0349.8-2103_daily_bin1547.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/34891/ft1_filtered_4FGL_J0349.8-2103_daily_bin1547.fits.....................!
real 85.21
user 80.68
sys 4.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8165       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.593       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    106.95       1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.438       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.181       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1562       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .63606       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .57906E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2686       1.0000         .10000E-03   10000.    
    19 'norm      '    7.3939       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.439       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2631       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93931       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97908       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=   3548.791     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2931 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3217       -.34370E-07** at limit **
   2  Prefactor     .10000E-03    11.178       -.29255E-06** at limit **
   3  Prefactor     .10000E-03    121.85        .38439E-05** at limit **
   4  Prefactor     1.8174        3.8830       -.25315E-06   -.28195E-03
   5  Prefactor     .10000E-03    7.9559       -.11488E-07** at limit **
   6  Prefactor     18.605        22.181        .20350E-05   -.12656E-04
   7  Prefactor     .10000E-03    20.317       -.44046E-05** at limit **
   8  Prefactor     106.92        78.330       -.22562E-04    .56477E-05
   9  Prefactor     50.439        43.686        .28309E-06    .17109E-05
  10  Prefactor     1.6532        4.1791       -.46591E-07   -.45824E-03
  11  Prefactor     .10000E-03    5.5509        .24104E-06** at limit **
  12  Prefactor     10.186        8.5904       -.61960E-06   -.12660E-03
  13  norm          3.1543        1.7254        .51280E-06   -.32001E-03
  14  Prefactor     .10000E-03    10.574        .21229E-06** at limit **
  15  norm          .63640        2.1933       -.32896E-06   -.77566E-03
  16  Prefactor     .10000E-03    303.90       -.57031E-05** at limit **
  17  Prefactor     .10000E-03    18.014        .19498E-05** at limit **
  18  Prefactor     2.2725        5.6703       -.35333E-06   -.43723E-03
  19  norm          7.4008        18.831        .62877E-05   -.46006E-04
  20  Prefactor     .10000E-03    26.261        .12198E-04** at limit **
  21  Prefactor     18.445        12.138        .46006E-06   -.63830E-05
  22  Prefactor     3.2688        7.9109       -.12531E-05   -.32745E-03
  23  Prefactor     .10000E-03    27.482       -.10091E-04** at limit **
  24  Normalizat    .93857        .24965        .25692E-05   -.38492E-04
  25  Prefactor     .97931        .20822       -.11108E-05    .87151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.81741
  Prefactor  = 0.0001
  Prefactor  = 18.6055
  Prefactor  = 0.0001
  Prefactor  = 106.916
  Prefactor  = 50.4394
  Prefactor  = 1.65317
  Prefactor  = 0.0001
  Prefactor  = 10.186
  norm       = 3.15427
  Prefactor  = 0.0001
  norm       = 0.636403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.27251
  norm       = 7.40083
  Prefactor  = 0.0001
  Prefactor  = 18.445
  Prefactor  = 3.26878
  Prefactor  = 0.0001
  Normalizat = 0.938571
  Prefactor  = 0.979307
 **********
 **   18 **HESSE 
 **********

 FCN=   3548.791     FROM HESSE     STATUS=OK           427 CALLS     3358 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.8905        .17685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    121.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8174        3.8521        .16640E-03   -1.5438    
   5  Prefactor     .10000E-03    7.9714        .16411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.605        22.164        .92885E-04   -1.4845    
   7  Prefactor     .10000E-03    20.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     106.92        78.291        .19443E-03   -1.3636    
   9  Prefactor     50.439        43.697        .56468E-04   -1.4286    
  10  Prefactor     1.6532        4.0381        .16702E-03   -1.5451    
  11  Prefactor     .10000E-03    5.5960        .13670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.186        8.4833        .12558E-03   -1.5070    
  13  norm          3.1543        1.7227        .53056E-04   -1.5353    
  14  Prefactor     .10000E-03    10.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .63640        2.0390        .13987E-03   -1.5548    
  16  Prefactor     .10000E-03    304.22        .18993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2725        5.4720        .19183E-03   -1.5406    
  19  norm          7.4008        18.752        .14750E-03   -1.5164    
  20  Prefactor     .10000E-03    26.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.445        12.139        .93273E-04   -1.4849    
  22  Prefactor     3.2688        7.8503        .22418E-03   -1.5346    
  23  Prefactor     .10000E-03    27.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .93857        .27940        .27950E-03   -.95118    
  25  Prefactor     .97931        .23395        .23820E-03   -.93423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0108e-09
Minuit parameter uncertainties:
  1  4.2739e-06
  2  2.33315e-06
  3  7.37226e-07
  4  3.85262
  5  2.03558e-06
  6  22.1739
  7  3.64134e-05
  8  78.3666
  9  43.7243
  10  4.03878
  11  3.28701e-05
  12  8.4843
  13  1.72269
  14  2.24423e-06
  15  2.03925
  16  0.000348906
  17  7.1296e-06
  18  5.47319
  19  18.7667
  20  5.62823e-05
  21  12.1408
  22  7.85273
  23  3.78563e-05
  24  0.279832
  25  0.234191
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
480   Normalization:  9.386e-01  2.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/34891/likelihoodResults_640310401_640569601_4FGL_J0349.8-2103_daily_bin1547.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) = 3548.03512052
delta logL = 0.756016119013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3548.02768382
delta logL = 0.763452816936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56439       1.0000         .10000E-03   10000.    
     2 'alpha     '    .90320       1.0000          .0000       5.0000    
     3 'Normalizat'    .96150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95722       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=   3548.028     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      195 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56458        .83399        .11531E-01    .11138E-02
   2  alpha         .90262        .64311        .39142       -.10778E-04
   3  Normalizat    .96140        .23228        .45683E-01    .13941E-04
   4  Prefactor     .95735        .20286        .45730E-01    .75745E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.564578
  alpha      = 0.902624
  Normalizat = 0.961403
  Prefactor  = 0.957354
 **********
 **   18 **HESSE 
 **********

 FCN=   3548.028     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56458        1.1620        .55315E-03   -1.5558    
   2  alpha         .90262        .93046        .17043E-02   -.69313    
   3  Normalizat    .96140        .26048        .27648E-03   -.94335    
   4  Prefactor     .95735        .22769        .24012E-03   -.94165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29796e-10
Minuit parameter uncertainties:
  1  1.16208
  2  0.971217
  3  0.260826
  4  0.22792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34891': 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) = 3548.02768279
delta logL = 0.763453845151

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  5.646e-01  1.162e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  9.026e-01  9.712e-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.574e-01  2.279e-01  0.000e+00  1.000e+01 ( 1.000e+00)
485        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
486        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  9.614e-01  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 57.470 -21.058
Photon Index (Free Index): 0.90 +/- 0.97
Photon Flux (Free Index): 1.03e-08 +/- 1.62e-08
Energy Flux (Free Index): 2.88e-05 +/- 4.63e-05

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/34891/cmap_HighResolution_640310401_640569601_4FGL_J0349.8-2103_daily_bin1547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-05', comment='SUCCESS', energy_flux2='2.88e-05', dlogl='7.63e-01', photon_flux2='1.03e-08', job_status='DONE', time_completed='2021-08-19 16:11:52.194162', photon_index_error2='0.97', photon_index2='0.90', ts='0.13', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='4.63e-05', EG='0.94', time_epoch_completed='1629414712.19', return_code='0', job_id='34891', GAL2='0.96', EG2='0.96', return_code2='0', photon_flux_error2='1.62e-08', ts2='1.67', photon_index='2.34' WHERE bin_id='1547' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:11:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 34891: <4FGL_J0349.8-2103_daily_bin1547> in cluster <slac> Done

Job <4FGL_J0349.8-2103_daily_bin1547> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Aug 19 16:01:03 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 16:01:05 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:05 2021
Terminated at Thu Aug 19 16:11:53 2021
Results reported at Thu Aug 19 16:11:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1547 57.4699 -21.0576 640310401 640569601 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 :                                   621.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             361.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   647 sec.
    Turnaround time :                            650 sec.

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

