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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1080
RA = 57.4699, Dec = -21.0576
tmin = 519264001, tmax = 519523201
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='32090', job_status='RUN', time_executed='2021-08-19 15:56:59.454277', time_epoch_executed='1629413819.45' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1080'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32090

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32090/ft1_4FGL_J0349.8-2103_daily_bin1080.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32090/ft2_4FGL_J0349.8-2103_daily_bin1080.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32090/ft1_4FGL_J0349.8-2103_daily_bin1080.fits outfile=/scratch/kocevski/32090/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1080.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=519264001.0 tmax=519523201.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.31
user 3.29
sys 3.91

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32090/ft1_filtered_4FGL_J0349.8-2103_daily_bin1080.fits" evtable="EVENTS" scfile=/scratch/kocevski/32090/ft2_4FGL_J0349.8-2103_daily_bin1080.fits sctable="SC_DATA" outfile=/scratch/kocevski/32090/ltcube_519264001_519523201_4FGL_J0349.8-2103_daily_bin1080.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/32090/ft2_4FGL_J0349.8-2103_daily_bin1080.fits
.....................!
real 16.75
user 12.14
sys 4.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32090/ft1_filtered_4FGL_J0349.8-2103_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/32090/ft2_4FGL_J0349.8-2103_daily_bin1080.fits sctable="SC_DATA" expcube=/scratch/kocevski/32090/ltcube_519264001_519523201_4FGL_J0349.8-2103_daily_bin1080.fits outfile=/scratch/kocevski/32090/expmap_519264001_519523201_4FGL_J0349.8-2103_daily_bin1080.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/32090/ltcube_519264001_519523201_4FGL_J0349.8-2103_daily_bin1080.fits
.....................!
real 196.23
user 185.66
sys 9.62

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/32090/ft1_filtered_4FGL_J0349.8-2103_daily_bin1080.fits scfile=/scratch/kocevski/32090/ft2_4FGL_J0349.8-2103_daily_bin1080.fits outfile=/scratch/kocevski/32090/cmap_519264001_519523201_4FGL_J0349.8-2103_daily_bin1080.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 4.19
user 0.38
sys 3.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32090/ft1_filtered_4FGL_J0349.8-2103_daily_bin1080.fits scfile=/scratch/kocevski/32090/ft2_4FGL_J0349.8-2103_daily_bin1080.fits outfile=/scratch/kocevski/32090/cmap_HighResolution_519264001_519523201_4FGL_J0349.8-2103_daily_bin1080.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 4.20
user 0.39
sys 3.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32090/ft1_filtered_4FGL_J0349.8-2103_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/32090/ft2_4FGL_J0349.8-2103_daily_bin1080.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32090/Model_4FGL_J0349.8-2103_daily_bin1080.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/32090/ft1_filtered_4FGL_J0349.8-2103_daily_bin1080.fits.....................!
real 169.35
user 162.52
sys 6.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5752       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2003       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .82510E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.546       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0002       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1661       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10714E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7594       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4080       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.798       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9795       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10808E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9313       1.0000         .10000E-03   10000.    
    19 'norm      '    8.7161       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2838       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8371       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .39320E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .59092       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2310       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=   7540.725     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2509 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5751        1.9354        .52572E-07   -.75652E-04
   2  Prefactor     6.2002        8.1409        .67492E-07   -.70433E-05
   3  Prefactor     .10012E-03    859.69        .58004E-04** at limit **
   4  Prefactor     .10000E-03    1.2732       -.35553E-07** at limit **
   5  Prefactor     18.546        17.154       -.61476E-07   -.30367E-03
   6  Prefactor     2.9997        7.9620        .47577E-06    .24295E-05
   7  Prefactor     1.1680        93.722        .32186E-04   -.20411E-04
   8  Prefactor     .10000E-03    20.972        .10329E-05** at limit **
   9  Prefactor     .10000E-03    36.971       -.31546E-05** at limit **
  10  Prefactor     1.7594        1.3941       -.98999E-08   -.22957E-03
  11  Prefactor     .10000E-03    1.6096       -.29874E-06** at limit **
  12  Prefactor     .10000E-03    1.6029       -.95689E-07** at limit **
  13  norm          6.4083        1.1481       -.12892E-07    .47381E-03
  14  Prefactor     43.811        22.264       -.54421E-06   -.63416E-04
  15  norm          1.9795        1.2505        .38135E-07    .25608E-03
  16  Prefactor     .10000E-03    43.126        .23352E-05** at limit **
  17  Prefactor     .10000E-03    15.490        .14583E-06** at limit **
  18  Prefactor     4.9309        2.7186        .28925E-07    .42551E-03
  19  norm          8.7173        8.5568       -.76485E-06    .64042E-04
  20  Prefactor     1.2867        70.281        .28428E-04   -.24498E-04
  21  Prefactor     4.8373        6.6228        .60655E-06    .82295E-04
  22  Prefactor     .10000E-03    1.5466        .20802E-06** at limit **
  23  Prefactor     .10000E-03    7.5724       -.94506E-07** at limit **
  24  Normalizat    .59088        .15849       -.24219E-05   -.23791E-04
  25  Prefactor     1.2310        .14177        .26241E-06   -.17704E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.57508
  Prefactor  = 6.20025
  Prefactor  = 0.000100117
  Prefactor  = 0.0001
  Prefactor  = 18.5464
  Prefactor  = 2.99971
  Prefactor  = 1.16796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.7594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.40831
  Prefactor  = 43.8112
  norm       = 1.97955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.93093
  norm       = 8.71726
  Prefactor  = 1.28672
  Prefactor  = 4.83728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.590884
  Prefactor  = 1.23101
 **********
 **   18 **HESSE 
 **********

 FCN=   7540.725     FROM HESSE     STATUS=OK           431 CALLS     2940 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5751        1.9199        .13021E-03   -1.5457    
   2  Prefactor     6.2002        8.1370        .16122E-03   -1.5210    
   3  Prefactor     .10012E-03    861.79        .20884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2763        .95621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.546        17.189        .93002E-04   -1.4846    
   6  Prefactor     2.9997        7.9483        .23434E-03   -1.5362    
   7  Prefactor     1.1680        94.840        .21287E-02   -1.5492    
   8  Prefactor     .10000E-03    21.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    37.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7594        1.3949        .87503E-04   -1.5443    
  11  Prefactor     .10000E-03    3.2563        .21100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6330        .10710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4083        1.1447        .37457E-04   -1.5202    
  14  Prefactor     43.811        22.237        .60578E-04   -1.4383    
  15  norm          1.9795        1.2366        .72446E-04   -1.5427    
  16  Prefactor     .10000E-03    43.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9309        2.6978        .98822E-04   -1.5264    
  19  norm          8.7173        8.5360        .13577E-03   -1.5117    
  20  Prefactor     1.2867        71.654        .19572E-02   -1.5481    
  21  Prefactor     4.8373        6.6125        .18291E-03   -1.5268    
  22  Prefactor     .10000E-03    7.7039        .20360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.7051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .59088        .17215        .30351E-03   -1.0837    
  25  Prefactor     1.2310        .15734        .20858E-03   -.85382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06049e-10
Minuit parameter uncertainties:
  1  1.92001
  2  8.13848
  3  0.0204252
  4  6.83198e-07
  5  17.1931
  6  7.95108
  7  21.0831
  8  5.28701e-05
  9  0.000265991
  10  1.39488
  11  2.32927e-05
  12  7.03805e-06
  13  1.14473
  14  22.2411
  15  1.23666
  16  0.000230027
  17  9.51638e-05
  18  2.69788
  19  8.53723
  20  19.2275
  21  6.61352
  22  4.29918e-05
  23  1.85525e-05
  24  0.172308
  25  0.157398
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.980e+00  1.237e+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:  1.231e+00  1.574e-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.909e-01  1.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.29
Ra Dec: 57.470 -21.058
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 5.03e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 9.72e-06

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) = 7540.60148581
delta logL = 0.123875485053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7540.59476735
delta logL = 0.130593938489

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1005       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9422       1.0000          .0000       5.0000    
     3 'Normalizat'    .60307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2231       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=   7540.595     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1022        3.7318        .71188E-02    .35269E-03
   2  alpha         1.9427        1.5677        .42527        .71030E-05
   3  Normalizat    .60305        .15608        .67943E-01    .36173E-04
   4  Prefactor     1.2231        .15095        .34106E-01   -.16155E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10222
  alpha      = 1.94267
  Normalizat = 0.60305
  Prefactor  = 1.22313
 **********
 **   18 **HESSE 
 **********

 FCN=   7540.595     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1022        1.2909        .74786E-04   -1.5418    
   2  alpha         1.9427        .77974        .20167E-01   -.22482    
   3  Normalizat    .60305        .16136        .30070E-03   -1.0785    
   4  Prefactor     1.2231        .15575        .20915E-03   -.85623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12399e-11
Minuit parameter uncertainties:
  1  1.29089
  2  0.7937
  3  0.161488
  4  0.155806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32090': 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) = 7540.5947663
delta logL = 0.130594988355

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  2.102e+00  1.291e+00  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  1.943e+00  7.937e-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:  1.223e+00  1.558e-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:  6.031e-01  1.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.57
Ra Dec: 57.470 -21.058
Photon Index (Free Index): 1.94 +/- 0.79
Photon Flux (Free Index): 4.05e-08 +/- 3.16e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.42e-05

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/32090/cmap_HighResolution_519264001_519523201_4FGL_J0349.8-2103_daily_bin1080.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.03e-08', energy_flux2='1.85e-05', photon_flux_error='3.14e-08', dlogl='1.31e-01', energy_flux='1.56e-05', photon_flux2='4.05e-08', job_status='DONE', time_completed='2021-08-19 16:09:52.241365', photon_index_error2='0.79', photon_index2='1.94', ts='4.29', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.59', time_epoch_completed='1629414592.24', return_code='0', job_id='32090', GAL2='1.22', EG2='0.60', return_code2='0', energy_flux_error='9.72e-06', photon_flux_error2='3.16e-08', ts2='4.57', photon_index='2.34' WHERE bin_id='1080' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:09:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 32090: <4FGL_J0349.8-2103_daily_bin1080> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1080 57.4699 -21.0576 519264001 519523201 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 :                                   820.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            847 sec.

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

