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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1228
RA = 57.4699, Dec = -21.0576
tmin = 557625601, tmax = 557884801
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='32437', job_status='RUN', time_executed='2021-08-19 15:58:01.426958', time_epoch_executed='1629413881.43' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32437

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32437/ft1_4FGL_J0349.8-2103_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32437/ft2_4FGL_J0349.8-2103_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32437/ft1_4FGL_J0349.8-2103_daily_bin1228.fits outfile=/scratch/kocevski/32437/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1228.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=557625601.0 tmax=557884801.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.76
user 3.21
sys 4.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32437/ft2_4FGL_J0349.8-2103_daily_bin1228.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/32437/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1228.fits evtable="EVENTS" outfile="/scratch/kocevski/32437/ft1_filtered_4FGL_J0349.8-2103_daily_bin1228.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.76
user 0.34
sys 4.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32437/ft1_filtered_4FGL_J0349.8-2103_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/32437/ft2_4FGL_J0349.8-2103_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/32437/ltcube_557625601_557884801_4FGL_J0349.8-2103_daily_bin1228.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/32437/ft2_4FGL_J0349.8-2103_daily_bin1228.fits
.....................!
real 18.39
user 12.76
sys 5.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32437/ft1_filtered_4FGL_J0349.8-2103_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/32437/ft2_4FGL_J0349.8-2103_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/32437/ltcube_557625601_557884801_4FGL_J0349.8-2103_daily_bin1228.fits outfile=/scratch/kocevski/32437/expmap_557625601_557884801_4FGL_J0349.8-2103_daily_bin1228.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/32437/ltcube_557625601_557884801_4FGL_J0349.8-2103_daily_bin1228.fits
.....................!
real 197.71
user 188.02
sys 9.35

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/32437/ft1_filtered_4FGL_J0349.8-2103_daily_bin1228.fits scfile=/scratch/kocevski/32437/ft2_4FGL_J0349.8-2103_daily_bin1228.fits outfile=/scratch/kocevski/32437/cmap_557625601_557884801_4FGL_J0349.8-2103_daily_bin1228.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.64
user 0.38
sys 4.23

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32437/ft1_filtered_4FGL_J0349.8-2103_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/32437/ft2_4FGL_J0349.8-2103_daily_bin1228.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32437/Model_4FGL_J0349.8-2103_daily_bin1228.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/32437/ft1_filtered_4FGL_J0349.8-2103_daily_bin1228.fits.....................!
real 133.80
user 127.17
sys 6.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78174       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4134       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10943E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5674       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30958       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52612E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.198       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32126E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2354       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    16.562       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.214       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    185.19       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6394       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9423       1.0000         .10000E-03   10000.    
    19 'norm      '    21.270       1.0000         .10000E-03   10000.    
    20 'Prefactor '    78.933       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7081       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77787       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2227       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=   5761.830     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2942 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77975        5.4789        .35008E-05    .57850E-04
   2  Prefactor     6.4122        9.7153        .10946E-06    .24368E-04
   3  Prefactor     .10000E-03    84.778       -.38555E-06** at limit **
   4  Prefactor     4.5668        4.1251       -.36588E-07    .79060E-04
   5  Prefactor     .10000E-03    4.8479       -.18003E-06** at limit **
   6  Prefactor     .25336        8.3575       -.22617E-05    .12715E-03
   7  Prefactor     .10001E-03    378.82        .18973E-04** at limit **
   8  Prefactor     54.197        68.713        .26776E-05   -.32352E-04
   9  Prefactor     .10000E-03    58.693       -.10946E-05** at limit **
  10  Prefactor     .10000E-03    1.4129       -.98543E-06** at limit **
  11  Prefactor     2.2357        4.8969        .89824E-07    .78340E-05
  12  Prefactor     .10000E-03    4.1074       -.43557E-06** at limit **
  13  norm          16.563        2.6204        .51075E-07   -.14380E-03
  14  Prefactor     25.220        24.082        .61354E-07    .36414E-04
  15  norm          .10000E-03    .52639       -.11648E-06** at limit **
  16  Prefactor     185.13        168.32        .37971E-05    .39028E-05
  17  Prefactor     6.6385        23.056        .35216E-06    .25158E-04
  18  Prefactor     1.9416        3.6062       -.14948E-06    .18028E-04
  19  norm          21.270        19.059       -.24155E-06    .75245E-05
  20  Prefactor     78.926        41.354        .13464E-06    .53100E-04
  21  Prefactor     4.7025        9.1322        .14458E-06    .83754E-04
  22  Prefactor     .10000E-03    1.3871       -.18084E-06** at limit **
  23  Prefactor     .10000E-03    8.9729       -.49171E-06** at limit **
  24  Normalizat    .77806        .21224        .29716E-06    .19811E-03
  25  Prefactor     1.2228        .17643        .19256E-05    .10033E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.779746
  Prefactor  = 6.41218
  Prefactor  = 0.0001
  Prefactor  = 4.56678
  Prefactor  = 0.0001
  Prefactor  = 0.253362
  Prefactor  = 0.000100007
  Prefactor  = 54.197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.23565
  Prefactor  = 0.0001
  norm       = 16.5626
  Prefactor  = 25.2201
  norm       = 0.0001
  Prefactor  = 185.135
  Prefactor  = 6.63845
  Prefactor  = 1.94159
  norm       = 21.2701
  Prefactor  = 78.9256
  Prefactor  = 4.70251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.778057
  Prefactor  = 1.2228
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77975        5.7389        .17340E-02   -1.5531    
   2  Prefactor     6.4122        9.7140        .15849E-03   -1.5201    
   3  Prefactor     .10000E-03    84.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5668        4.1235        .14209E-03   -1.5281    
   5  Prefactor     .10000E-03    4.8531        .16325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .25336        125.38        .39405E-02   -1.5607    
   7  Prefactor     .10001E-03    375.07        .42264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     54.197        68.442        .54484E-04   -1.4234    
   9  Prefactor     .10000E-03    58.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1158        .16030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2357        4.8481        .23152E-03   -1.5409    
  12  Prefactor     .10000E-03    4.2395        .29999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          16.563        2.6202        .44204E-04   -1.4894    
  14  Prefactor     25.220        24.038        .79777E-04   -1.4703    
  15  norm          .10000E-03    .53172        .53759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     185.13        168.14        .14835E-03   -1.2978    
  17  Prefactor     6.6385        22.981        .15573E-03   -1.5193    
  18  Prefactor     1.9416        3.5870        .18150E-03   -1.5429    
  19  norm          21.270        19.058        .86848E-04   -1.4785    
  20  Prefactor     78.926        41.374        .45202E-04   -1.3929    
  21  Prefactor     4.7025        9.1833        .18545E-03   -1.5274    
  22  Prefactor     .10000E-03    1.3951        .87347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.9984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77806        .24577        .32715E-03   -1.0089    
  25  Prefactor     1.2228        .20201        .23537E-03   -.85633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27807e-09
Minuit parameter uncertainties:
  1  4.23109
  2  9.71644
  3  4.91399e-05
  4  4.12374
  5  6.82726e-06
  6  11.2941
  7  0.00329983
  8  68.5412
  9  0.000184718
  10  9.74545e-06
  11  4.84896
  12  2.50291e-05
  13  2.62025
  14  24.0473
  15  2.68229e-06
  16  168.576
  17  23.012
  18  3.58738
  19  19.0638
  20  41.3893
  21  9.18604
  22  4.96162e-06
  23  1.86786e-05
  24  0.246118
  25  0.202139
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  2.682e-06  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.223e+00  2.021e-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:  7.781e-01  2.461e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32437/likelihoodResults_557625601_557884801_4FGL_J0349.8-2103_daily_bin1228.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) = 5761.83051302
delta logL = -4.86094668304e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5761.83046533
delta logL = -9.14640622796e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3395       1.0000          .0000       5.0000    
     3 'Normalizat'    .77826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2228       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=   5761.830     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .56157        .53759E-03** at limit **
   2  alpha         2.3424        2.5770        .16504       -.38617E-06
   3  Normalizat    .77805        .22440        .32714E-03    .38922E-05
   4  Prefactor     1.2228        .19919        .23537E-03    .42022E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.34241
  Normalizat = 0.778055
  Prefactor  = 1.2228
 **********
 **   18 **HESSE 
 **********

 FCN=   5761.830     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .53174        .10752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3424        3.6516        .66015E-02   -.63079E-01
   3  Normalizat    .77805        .22459        .13086E-04   -1.0089    
   4  Prefactor     1.2228        .19936        .94147E-05   -.85633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09942e-10
Minuit parameter uncertainties:
  1  2.31113e-05
  2  138.359
  3  0.224856
  4  0.199484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32437': 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) = 5761.83046441
delta logL = 5.48425305169e-10

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  2.311e-05  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.342e+00  1.384e+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.223e+00  1.995e-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:  7.781e-01  2.249e-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/32437/cmap_HighResolution_557625601_557884801_4FGL_J0349.8-2103_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-05', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-08-19 16:11:08.298863', job_id='32437', GAL2='1.22', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1629414668.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='5.48e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1228' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:11:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 32437: <4FGL_J0349.8-2103_daily_bin1228> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1228 57.4699 -21.0576 557625601 557884801 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 :                                   829.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            902 sec.

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

