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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1554
RA = 57.4699, Dec = -21.0576
tmin = 642124801, tmax = 642384001
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='34902', job_status='RUN', time_executed='2021-08-19 16:02:42.582778', time_epoch_executed='1629414162.58' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34902

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34902/ft1_4FGL_J0349.8-2103_daily_bin1554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34902/ft2_4FGL_J0349.8-2103_daily_bin1554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34902/ft1_4FGL_J0349.8-2103_daily_bin1554.fits outfile=/scratch/kocevski/34902/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1554.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=642124801.0 tmax=642384001.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.73
user 4.07
sys 3.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34902/ft1_filtered_4FGL_J0349.8-2103_daily_bin1554.fits" evtable="EVENTS" scfile=/scratch/kocevski/34902/ft2_4FGL_J0349.8-2103_daily_bin1554.fits sctable="SC_DATA" outfile=/scratch/kocevski/34902/ltcube_642124801_642384001_4FGL_J0349.8-2103_daily_bin1554.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/34902/ft2_4FGL_J0349.8-2103_daily_bin1554.fits
.....................!
real 16.04
user 11.76
sys 4.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34902/ft1_filtered_4FGL_J0349.8-2103_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/34902/ft2_4FGL_J0349.8-2103_daily_bin1554.fits sctable="SC_DATA" expcube=/scratch/kocevski/34902/ltcube_642124801_642384001_4FGL_J0349.8-2103_daily_bin1554.fits outfile=/scratch/kocevski/34902/expmap_642124801_642384001_4FGL_J0349.8-2103_daily_bin1554.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/34902/ltcube_642124801_642384001_4FGL_J0349.8-2103_daily_bin1554.fits
.....................!
real 196.96
user 185.95
sys 10.54

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/34902/ft1_filtered_4FGL_J0349.8-2103_daily_bin1554.fits scfile=/scratch/kocevski/34902/ft2_4FGL_J0349.8-2103_daily_bin1554.fits outfile=/scratch/kocevski/34902/cmap_642124801_642384001_4FGL_J0349.8-2103_daily_bin1554.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.21
user 0.38
sys 3.81

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34902/ft1_filtered_4FGL_J0349.8-2103_daily_bin1554.fits scfile=/scratch/kocevski/34902/ft2_4FGL_J0349.8-2103_daily_bin1554.fits outfile=/scratch/kocevski/34902/cmap_HighResolution_642124801_642384001_4FGL_J0349.8-2103_daily_bin1554.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.21
user 0.39
sys 3.81

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34902/ft1_filtered_4FGL_J0349.8-2103_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/34902/ft2_4FGL_J0349.8-2103_daily_bin1554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34902/Model_4FGL_J0349.8-2103_daily_bin1554.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/34902/ft1_filtered_4FGL_J0349.8-2103_daily_bin1554.fits.....................!
real 142.47
user 136.07
sys 6.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1519       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.280       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26905E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3316       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.9447       1.0000         .10000E-03   10000.    
     8 'Prefactor '    71.666       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1551       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4788       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4504       1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.961       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7248       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6473       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.7419       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .55053       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91377       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0692       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=   6209.277     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2985 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1518        2.5005        .19446E-07    .28131E-04
   2  Prefactor     12.279        12.549        .53677E-07    .31069E-05
   3  Prefactor     .10062E-03    748.37       -.17814E-04** at limit **
   4  Prefactor     1.3309        4.0759        .12472E-05    .29907E-04
   5  Prefactor     14.718        15.971       -.63341E-06    .73682E-04
   6  Prefactor     .10000E-03    31.410        .32916E-06** at limit **
   7  Prefactor     9.9389        31.965        .74268E-06   -.95545E-05
   8  Prefactor     71.704        57.756        .94584E-06    .16503E-03
   9  Prefactor     .10000E-03    12.744       -.63106E-08** at limit **
  10  Prefactor     3.1565        2.4866        .13348E-05    .52086E-03
  11  Prefactor     2.4876        4.8736        .13465E-05    .54007E-03
  12  Prefactor     .10000E-03    2.7658       -.12642E-05** at limit **
  13  norm          6.4501        1.4907       -.19838E-07    .61086E-03
  14  Prefactor     40.966        34.205        .14960E-06    .35346E-04
  15  norm          .10000E-03    .88892       -.10699E-05** at limit **
  16  Prefactor     .10000E-03    122.87        .72189E-06** at limit **
  17  Prefactor     5.7302        43.993       -.65392E-06    .73977E-05
  18  Prefactor     3.6486        3.0225        .25365E-05   -.67784E-03
  19  norm          .10000E-03    2.8656        .11988E-08** at limit **
  20  Prefactor     8.7408        17.112       -.20634E-06    .58296E-04
  21  Prefactor     .10000E-03    3.3810        .17472E-07** at limit **
  22  Prefactor     .55051        2.5917        .10961E-05   -.25242E-03
  23  Prefactor     .10000E-03    9.4103        .38458E-07** at limit **
  24  Normalizat    .91373        .18696       -.22626E-05    .37924E-03
  25  Prefactor     1.0692        .16019       -.27986E-06    .29756E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.1518
  Prefactor  = 12.279
  Prefactor  = 0.000100623
  Prefactor  = 1.33094
  Prefactor  = 14.7179
  Prefactor  = 0.0001
  Prefactor  = 9.93893
  Prefactor  = 71.7038
  Prefactor  = 0.0001
  Prefactor  = 3.15654
  Prefactor  = 2.48758
  Prefactor  = 0.0001
  norm       = 6.45013
  Prefactor  = 40.9664
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.7302
  Prefactor  = 3.64856
  norm       = 0.0001
  Prefactor  = 8.74077
  Prefactor  = 0.0001
  Prefactor  = 0.55051
  Prefactor  = 0.0001
  Normalizat = 0.913727
  Prefactor  = 1.06919
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.277     FROM HESSE     STATUS=OK           431 CALLS     3416 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1518        2.5020        .10818E-03   -1.5353    
   2  Prefactor     12.279        12.551        .11431E-03   -1.5007    
   3  Prefactor     .10062E-03    764.03        .19943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3309        3.9919        .25403E-03   -1.5477    
   5  Prefactor     14.718        15.815        .10440E-03   -1.4940    
   6  Prefactor     .10000E-03    32.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.9389        31.987        .12707E-03   -1.5077    
   8  Prefactor     71.704        57.769        .23711E-03   -1.4012    
   9  Prefactor     .10000E-03    12.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1565        2.4887        .52556E-03   -1.5353    
  11  Prefactor     2.4876        4.5990        .20976E-03   -1.5393    
  12  Prefactor     .10000E-03    5.3506        .23509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4501        1.4898        .42184E-04   -1.5200    
  14  Prefactor     40.966        33.651        .62633E-04   -1.4427    
  15  norm          .10000E-03    1.7900        .14081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    123.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7302        42.474        .16787E-03   -1.5229    
  18  Prefactor     3.6486        2.9956        .58268E-03   -1.5326    
  19  norm          .10000E-03    2.8661        .13027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.7408        17.091        .13557E-03   -1.5117    
  21  Prefactor     .10000E-03    3.4025        .14145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .55051        2.5734        .24123E-03   -1.5560    
  23  Prefactor     .10000E-03    9.4968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91373        .20844        .27171E-03   -.95979    
  25  Prefactor     1.0692        .17969        .23250E-03   -.90457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6159e-09
Minuit parameter uncertainties:
  1  2.50205
  2  12.5535
  3  0.0441993
  4  3.9927
  5  15.8199
  6  0.000118763
  7  32.042
  8  57.8146
  9  7.84593e-07
  10  2.4888
  11  4.59961
  12  4.02502e-05
  13  1.48983
  14  33.6666
  15  3.47385e-05
  16  0.000602449
  17  31.2325
  18  2.99576
  19  1.41111e-07
  20  17.1006
  21  7.63334e-06
  22  2.38046
  23  1.10853e-05
  24  0.208623
  25  0.179792
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  3.474e-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.069e+00  1.798e-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.137e-01  2.086e-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: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34902/likelihoodResults_642124801_642384001_4FGL_J0349.8-2103_daily_bin1554.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) = 6209.27939868
delta logL = -0.00267319531213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6209.27672724
delta logL = -1.7589682102e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10351E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3521       1.0000          .0000       5.0000    
     3 'Normalizat'    .91371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0693       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=   6209.277     FROM MIGRAD    STATUS=FAILED        94 CALLS      250 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    338.30        .14104E-02** at limit **
   2  alpha         2.5286        3.4068        .16497       -.38550E-06
   3  Normalizat    .91372        .87499E-01    .27171E-03   -.23733E-02
   4  Prefactor     1.0692        .80778E-01    .23250E-03   -.27358E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6209.277     FROM SIMPLEX   STATUS=UNCHANGED    196 CALLS      446 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    338.30        .20502E-03** at limit **
   2  alpha         2.5286        3.4068        .46477E-06   -.38550E-06
   3  Normalizat    .91372        .87499E-01    .25822E-07   -.23733E-02
   4  Prefactor     1.0692        .80778E-01    .15515E-07   -.27358E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6209.277     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      484 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8934        .28208E-03** at limit **
   2  alpha         2.5306        3.7562        .65989E-02   -.13783E-08
   3  Normalizat    .91372        .19186        .54341E-04   -.48955E-05
   4  Prefactor     1.0692        .17714        .46500E-04    .59654E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.53057
  Normalizat = 0.913724
  Prefactor  = 1.06919
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.277     FROM HESSE     STATUS=OK            23 CALLS      507 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8934        .56415E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5306        3.7578        .13198E-02    .12228E-01
   3  Normalizat    .91372        .19187        .10868E-04   -.95980    
   4  Prefactor     1.0692        .17715        .93001E-05   -.90457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46217e-13
Minuit parameter uncertainties:
  1  2.23703e-07
  2  114.179
  3  0.192012
  4  0.17725
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34902': 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) = 6209.27672407
delta logL = 1.41525651998e-06

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.000e-04  2.237e-07  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.531e+00  1.142e+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.069e+00  1.773e-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.137e-01  1.920e-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/34902/cmap_HighResolution_642124801_642384001_4FGL_J0349.8-2103_daily_bin1554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='7.66e-08', time_completed='2021-08-19 16:16:20.017217', job_id='34902', GAL2='1.07', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1629414980.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.42e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1554' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:16:20 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1554 57.4699 -21.0576 642124801 642384001 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 :                                   867.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

