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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1157
RA = 57.4699, Dec = -21.0576
tmin = 539222401, tmax = 539481601
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='32248', job_status='RUN', time_executed='2021-08-19 15:57:34.950278', time_epoch_executed='1629413854.95' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32248

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32248/ft1_4FGL_J0349.8-2103_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32248/ft2_4FGL_J0349.8-2103_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32248/ft1_4FGL_J0349.8-2103_daily_bin1157.fits outfile=/scratch/kocevski/32248/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1157.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=539222401.0 tmax=539481601.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 10.67
user 5.34
sys 5.29

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32248/ft1_filtered_4FGL_J0349.8-2103_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/32248/ft2_4FGL_J0349.8-2103_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/32248/ltcube_539222401_539481601_4FGL_J0349.8-2103_daily_bin1157.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/32248/ft2_4FGL_J0349.8-2103_daily_bin1157.fits
.....................!
real 17.62
user 11.55
sys 6.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32248/ft1_filtered_4FGL_J0349.8-2103_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/32248/ft2_4FGL_J0349.8-2103_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/32248/ltcube_539222401_539481601_4FGL_J0349.8-2103_daily_bin1157.fits outfile=/scratch/kocevski/32248/expmap_539222401_539481601_4FGL_J0349.8-2103_daily_bin1157.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/32248/ltcube_539222401_539481601_4FGL_J0349.8-2103_daily_bin1157.fits
.....................!
real 197.77
user 186.53
sys 10.89

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/32248/ft1_filtered_4FGL_J0349.8-2103_daily_bin1157.fits scfile=/scratch/kocevski/32248/ft2_4FGL_J0349.8-2103_daily_bin1157.fits outfile=/scratch/kocevski/32248/cmap_539222401_539481601_4FGL_J0349.8-2103_daily_bin1157.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=57.4699 yref=-21.0576 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 5.54
user 0.38
sys 5.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32248/ft1_filtered_4FGL_J0349.8-2103_daily_bin1157.fits scfile=/scratch/kocevski/32248/ft2_4FGL_J0349.8-2103_daily_bin1157.fits outfile=/scratch/kocevski/32248/cmap_HighResolution_539222401_539481601_4FGL_J0349.8-2103_daily_bin1157.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=57.4699 yref=-21.0576 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 5.59
user 0.39
sys 5.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32248/ft1_filtered_4FGL_J0349.8-2103_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/32248/ft2_4FGL_J0349.8-2103_daily_bin1157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32248/Model_4FGL_J0349.8-2103_daily_bin1157.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/32248/ft1_filtered_4FGL_J0349.8-2103_daily_bin1157.fits.....................!
real 128.24
user 120.13
sys 7.87

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19635       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2562       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.917       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1815       1.0000         .10000E-03   10000.    
     9 'Prefactor '    80.823       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3970       1.0000         .10000E-03   10000.    
    13 'norm      '    12.204       1.0000         .10000E-03   10000.    
    14 'Prefactor '    72.635       1.0000         .10000E-03   10000.    
    15 'norm      '    .11566E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.736       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4071       1.0000         .10000E-03   10000.    
    19 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.082       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6719       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.5085       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98806       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0336       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=   5176.807     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2991 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7901        1.7997       -.28968E-07   -.40660E-06
   2  Prefactor     .10000E-03    11.916        .42243E-09** at limit **
   3  Prefactor     .10000E-03    82.427       -.10411E-06** at limit **
   4  Prefactor     .18064        4.0811        .44394E-06   -.27445E-03
   5  Prefactor     3.2443        46.414        .14170E-05   -.32821E-04
   6  Prefactor     19.916        18.212        .26922E-06   -.24321E-04
   7  Prefactor     .10000E-03    13.003       -.39084E-07** at limit **
   8  Prefactor     8.1678        78.460        .64683E-06   -.67896E-05
   9  Prefactor     80.821        57.910       -.36898E-07   -.17588E-04
  10  Prefactor     .10000E-03    .81808        .24788E-07** at limit **
  11  Prefactor     .10000E-03    1.4163       -.11628E-07** at limit **
  12  Prefactor     4.3977        3.9971        .98939E-07   -.42262E-04
  13  norm          12.204        2.1126        .25667E-07   -.69539E-04
  14  Prefactor     72.693        51.907       -.24609E-06    .68331E-04
  15  norm          .10000E-03    1.0061        .10350E-06** at limit **
  16  Prefactor     .10000E-03    140.37        .31944E-06** at limit **
  17  Prefactor     11.641        36.033        .74853E-06   -.30934E-04
  18  Prefactor     1.4081        2.3135       -.68532E-07   -.10180E-03
  19  norm          .10000E-03    9.5212       -.94569E-09** at limit **
  20  Prefactor     20.082        22.959        .19633E-07   -.91350E-05
  21  Prefactor     9.6735        8.1999       -.42229E-07   -.20199E-04
  22  Prefactor     9.5095        6.9596        .20627E-05    .48247E-04
  23  Prefactor     .10000E-03    8.9962       -.73305E-07** at limit **
  24  Normalizat    .98795        .22400       -.12219E-05   -.58197E-04
  25  Prefactor     1.0337        .18548       -.47969E-06   -.10633E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.79007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.180637
  Prefactor  = 3.24426
  Prefactor  = 19.9156
  Prefactor  = 0.0001
  Prefactor  = 8.16776
  Prefactor  = 80.8208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.39768
  norm       = 12.204
  Prefactor  = 72.693
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.641
  Prefactor  = 1.40806
  norm       = 0.0001
  Prefactor  = 20.0819
  Prefactor  = 9.6735
  Prefactor  = 9.50947
  Prefactor  = 0.0001
  Normalizat = 0.987951
  Prefactor  = 1.03374
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.807     FROM HESSE     STATUS=OK           433 CALLS     3424 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7901        1.8154        .94450E-04   -1.5440    
   2  Prefactor     .10000E-03    11.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    82.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .18064        40.254        .24938E-02   -1.5623    
   5  Prefactor     3.2443        49.418        .22444E-03   -1.5348    
   6  Prefactor     19.916        18.217        .89747E-04   -1.4815    
   7  Prefactor     .10000E-03    13.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.1678        78.516        .14016E-03   -1.5136    
   9  Prefactor     80.821        57.942        .44675E-04   -1.3908    
  10  Prefactor     .10000E-03    .82484        .63503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.4198        .83578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3977        3.9828        .13108E-03   -1.5289    
  13  norm          12.204        2.1180        .40911E-04   -1.5009    
  14  Prefactor     72.693        51.381        .47107E-04   -1.4001    
  15  norm          .10000E-03    2.3512        .13861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    140.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.641        35.746        .11694E-03   -1.5025    
  18  Prefactor     1.4081        2.2684        .13448E-03   -1.5471    
  19  norm          .10000E-03    9.5563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.082        22.954        .89378E-04   -1.4811    
  21  Prefactor     9.6735        8.2072        .12885E-03   -1.5086    
  22  Prefactor     9.5095        6.9701        .64981E-03   -1.5091    
  23  Prefactor     .10000E-03    9.0055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .98795        .25636        .29132E-03   -.93435    
  25  Prefactor     1.0337        .21352        .25197E-03   -.91613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.67518e-10
Minuit parameter uncertainties:
  1  1.81548
  2  7.07525e-06
  3  7.20154e-05
  4  5.39527
  5  25.3487
  6  18.2216
  7  7.6772e-07
  8  50.735
  9  57.9829
  10  3.16083e-07
  11  4.34015e-07
  12  3.98301
  13  2.11798
  14  51.4125
  15  1.04311e-05
  16  0.000400894
  17  35.8117
  18  2.26849
  19  3.67523e-06
  20  22.9645
  21  8.2082
  22  6.97074
  23  7.47773e-06
  24  0.256681
  25  0.213698
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  1.043e-05  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.034e+00  2.137e-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.880e-01  2.567e-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: 8.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32248/likelihoodResults_539222401_539481601_4FGL_J0349.8-2103_daily_bin1157.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5176.8091902
delta logL = -0.00203829582915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5176.8071383
delta logL = 1.36083290272e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10697E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0319       1.0000          .0000       5.0000    
     3 'Normalizat'    .98806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0338       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5176.807     FROM MIGRAD    STATUS=FAILED        97 CALLS      288 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    1063.7        .99515E-03** at limit **
   2  alpha         3.0729        3.3819        .16958       -.33654E-06
   3  Normalizat    .98795        .86290E-01    .29132E-03    .70049E-04
   4  Prefactor     1.0337        .76100E-01    .25197E-03    .11863E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5176.807     FROM SIMPLEX   STATUS=UNCHANGED    166 CALLS      454 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    1063.7        .47212E-03** at limit **
   2  alpha         3.0729        3.3819        .28136E-05   -.33654E-06
   3  Normalizat    .98795        .86290E-01    .96532E-07    .70049E-04
   4  Prefactor     1.0337        .76100E-01    .84961E-07    .11863E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5176.807     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      482 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    7.6581        .19903E-03** at limit **
   2  alpha         3.0694        3.8360        .67832E-02   -.85811E-06
   3  Normalizat    .98795        .23360        .11653E-04    .56781E-04
   4  Prefactor     1.0337        .20748        .50393E-04    .10414E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100016
  alpha      = 3.06936
  Normalizat = 0.987949
  Prefactor  = 1.03374
 **********
 **   18 **HESSE 
 **********

 FCN=   5176.807     FROM HESSE     STATUS=OK            23 CALLS      505 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    7.6650        .39806E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.0694        3.8267        .13566E-02    .22976    
   3  Normalizat    .98795        .23382        .23306E-05   -.93435    
   4  Prefactor     1.0337        .20763        .10079E-04   -.91613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10505e-09
Minuit parameter uncertainties:
  1  0.00069269
  2  128.169
  3  0.234066
  4  0.207793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32248': 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) = 5176.80713729
delta logL = 1.46139018398e-05

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  6.927e-04  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  3.069e+00  1.282e+02  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.034e+00  2.078e-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.879e-01  2.341e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/32248/cmap_HighResolution_539222401_539481601_4FGL_J0349.8-2103_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', job_status='DONE', photon_flux_upper_limit='8.45e-08', time_completed='2021-08-19 16:10:40.229298', job_id='32248', GAL2='1.03', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1629414640.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.46e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1157' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:10:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 32248: <4FGL_J0349.8-2103_daily_bin1157> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1157 57.4699 -21.0576 539222401 539481601 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 :                                   842.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            886 sec.

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

