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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1521
RA = 57.4699, Dec = -21.0576
tmin = 633571201, tmax = 633830401
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='34858', job_status='RUN', time_executed='2021-08-19 16:02:46.222214', time_epoch_executed='1629414166.22' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34858

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34858/ft1_4FGL_J0349.8-2103_daily_bin1521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34858/ft2_4FGL_J0349.8-2103_daily_bin1521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34858/ft1_4FGL_J0349.8-2103_daily_bin1521.fits outfile=/scratch/kocevski/34858/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1521.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=633571201.0 tmax=633830401.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 3.22
user 2.52
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34858/ft2_4FGL_J0349.8-2103_daily_bin1521.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/34858/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1521.fits evtable="EVENTS" outfile="/scratch/kocevski/34858/ft1_filtered_4FGL_J0349.8-2103_daily_bin1521.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 0.90
user 0.28
sys 0.61

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34858/ft1_filtered_4FGL_J0349.8-2103_daily_bin1521.fits" evtable="EVENTS" scfile=/scratch/kocevski/34858/ft2_4FGL_J0349.8-2103_daily_bin1521.fits sctable="SC_DATA" outfile=/scratch/kocevski/34858/ltcube_633571201_633830401_4FGL_J0349.8-2103_daily_bin1521.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/34858/ft2_4FGL_J0349.8-2103_daily_bin1521.fits
.....................!
real 9.66
user 8.82
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34858/ft1_filtered_4FGL_J0349.8-2103_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/34858/ft2_4FGL_J0349.8-2103_daily_bin1521.fits sctable="SC_DATA" expcube=/scratch/kocevski/34858/ltcube_633571201_633830401_4FGL_J0349.8-2103_daily_bin1521.fits outfile=/scratch/kocevski/34858/expmap_633571201_633830401_4FGL_J0349.8-2103_daily_bin1521.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/34858/ltcube_633571201_633830401_4FGL_J0349.8-2103_daily_bin1521.fits
.....................!
real 146.25
user 141.78
sys 4.23

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/34858/ft1_filtered_4FGL_J0349.8-2103_daily_bin1521.fits scfile=/scratch/kocevski/34858/ft2_4FGL_J0349.8-2103_daily_bin1521.fits outfile=/scratch/kocevski/34858/cmap_633571201_633830401_4FGL_J0349.8-2103_daily_bin1521.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 0.91
user 0.30
sys 0.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34858/ft1_filtered_4FGL_J0349.8-2103_daily_bin1521.fits scfile=/scratch/kocevski/34858/ft2_4FGL_J0349.8-2103_daily_bin1521.fits outfile=/scratch/kocevski/34858/cmap_HighResolution_633571201_633830401_4FGL_J0349.8-2103_daily_bin1521.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 0.91
user 0.30
sys 0.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34858/ft1_filtered_4FGL_J0349.8-2103_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/34858/ft2_4FGL_J0349.8-2103_daily_bin1521.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34858/Model_4FGL_J0349.8-2103_daily_bin1521.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/34858/ft1_filtered_4FGL_J0349.8-2103_daily_bin1521.fits.....................!
real 128.64
user 126.77
sys 1.64

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .81586       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1037       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.295       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9384       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.845       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17758E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .67096       1.0000         .10000E-03   10000.    
    13 'norm      '    5.9315       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.720       1.0000         .10000E-03   10000.    
    15 'norm      '    .10756       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.557       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.0072       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.093       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6027       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5366       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.270       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80453       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98791       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=   7507.751     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3786 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1017       -.48431E-09** at limit **
   2  Prefactor     .10000E-03    10.794       -.34467E-09** at limit **
   3  Prefactor     .10000E-03    41.727       -.76690E-09** at limit **
   4  Prefactor     .81554        3.2156       -.67541E-08   -.53886E-04
   5  Prefactor     7.1059        11.253       -.17522E-09   -.49983E-03
   6  Prefactor     10.295        10.638       -.30561E-08    .24964E-03
   7  Prefactor     4.9362        35.362       -.19740E-07    .18864E-03
   8  Prefactor     .10000E-03    18.237       -.18407E-09** at limit **
   9  Prefactor     24.845        31.121       -.40983E-08    .99431E-04
  10  Prefactor     .10000E-03    .79348       -.41943E-09** at limit **
  11  Prefactor     .10000E-03    2.0004        .31716E-09** at limit **
  12  Prefactor     .66838        3.1200       -.66313E-08   -.17669E-03
  13  norm          5.9310        1.2069       -.46863E-09   -.10371E-02
  14  Prefactor     29.720        24.094        .22379E-08   -.18071E-04
  15  norm          .10597        .52008       -.13493E-08    .57706E-04
  16  Prefactor     .10000E-03    81.369       -.17797E-08** at limit **
  17  Prefactor     13.557        15.126        .45216E-08   -.26042E-04
  18  Prefactor     .10000E-03    .58442       -.15209E-09** at limit **
  19  norm          7.0063        9.7270       -.59350E-08   -.41412E-04
  20  Prefactor     11.091        21.464       -.59013E-08    .59407E-04
  21  Prefactor     1.6027        .55122       -.10284E-06   -.62146E-04
  22  Prefactor     3.5365        2.7605       -.39495E-09   -.95748E-04
  23  Prefactor     12.270        11.189       -.30753E-08    .22941E-03
  24  Normalizat    .80449        .14924        .21338E-07   -.10914E-03
  25  Prefactor     .98798        .13219        .37538E-08   -.80976E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.815541
  Prefactor  = 7.10591
  Prefactor  = 10.2947
  Prefactor  = 4.93619
  Prefactor  = 0.0001
  Prefactor  = 24.8449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.668381
  norm       = 5.93102
  Prefactor  = 29.72
  norm       = 0.105966
  Prefactor  = 0.000100001
  Prefactor  = 13.5566
  Prefactor  = 0.0001
  norm       = 7.0063
  Prefactor  = 11.0914
  Prefactor  = 1.60275
  Prefactor  = 3.53647
  Prefactor  = 12.27
  Normalizat = 0.804489
  Prefactor  = 0.987975
 **********
 **   18 **HESSE 
 **********

 FCN=   7507.751     FROM HESSE     STATUS=OK           441 CALLS     4227 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1270        .88800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    41.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .81554        3.1576        .27906E-03   -1.5527    
   5  Prefactor     7.1059        11.010        .15051E-03   -1.5175    
   6  Prefactor     10.295        10.641        .12488E-03   -1.5066    
   7  Prefactor     4.9362        35.548        .18098E-03   -1.5264    
   8  Prefactor     .10000E-03    18.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.845        31.141        .80365E-04   -1.4711    
  10  Prefactor     .10000E-03    1.9085        .14746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.4271        .20349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .66838        2.5530        .24922E-03   -1.5544    
  13  norm          5.9310        1.1930        .39536E-04   -1.5221    
  14  Prefactor     29.720        24.074        .73493E-04   -1.4617    
  15  norm          .10597        1.8299        .11415E-02   -1.5643    
  16  Prefactor     .10000E-03    81.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.557        15.117        .54393E-03   -1.4971    
  18  Prefactor     .10000E-03    .89915        .12793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.0063        9.7283        .75775E-03   -1.5179    
  20  Prefactor     11.091        21.413        .12029E-03   -1.5042    
  21  Prefactor     1.6027        5.3731        .16741E-02   -1.5455    
  22  Prefactor     3.5365        2.7545        .12149E-03   -1.5332    
  23  Prefactor     12.270        11.193        .11436E-03   -1.5007    
  24  Normalizat    .80449        .17034        .25502E-03   -.99902    
  25  Prefactor     .98798        .15118        .21762E-03   -.93131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61504e-09
Minuit parameter uncertainties:
  1  1.00413e-05
  2  2.31911e-05
  3  0.000204136
  4  3.15824
  5  11.013
  6  10.6432
  7  26.5154
  8  1.23888e-05
  9  31.1615
  10  7.64917e-06
  11  1.12264e-05
  12  2.55342
  13  1.19301
  14  24.0823
  15  0.880322
  16  0.000441417
  17  15.1216
  18  4.28255e-06
  19  9.73046
  20  21.4277
  21  5.3747
  22  2.75459
  23  11.1946
  24  0.170449
  25  0.151246
Done.

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

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.060e-01  8.803e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.339e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  9.880e-01  1.512e-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:  8.045e-01  1.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 57.470 -21.058
Photon Flux Upper Limit: 5.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34858/likelihoodResults_633571201_633830401_4FGL_J0349.8-2103_daily_bin1521.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) = 7507.75146473
delta logL = 2.30092155107e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7507.75145887
delta logL = 6.08851132711e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10599       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3265       1.0000          .0000       5.0000    
     3 'Normalizat'    .80459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98804       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7507.751     FROM MIGRAD    STATUS=FAILED       105 CALLS      267 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10640        264.92        .11455E-02   -.22406E-03
   2  alpha         2.3210        3.5009        .50000       -.27116E-03
   3  Normalizat    .80454        .61473E-01    .25501E-03   -.34568E-03
   4  Prefactor     .98794        .80363E-01    .21763E-03   -.50484E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7507.751     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      361 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10640        264.92        .13495E-03   -.22406E-03
   2  alpha         2.3210        3.5009        .52779E-02   -.27116E-03
   3  Normalizat    .80454        .61473E-01    .97994E-04   -.34568E-03
   4  Prefactor     .98794        .80363E-01    .77237E-04   -.50484E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7507.751     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      433 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10641        2.1910        .18327E-05    .25971E-03
   2  alpha         2.3209        3.5411        .11171        .38977E-05
   3  Normalizat    .80454        .15612        .20401E-05   -.29869E-03
   4  Prefactor     .98794        .14753        .87051E-05   -.42418E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.106413
  alpha      = 2.32092
  Normalizat = 0.804541
  Prefactor  = 0.987937
 **********
 **   18 **HESSE 
 **********

 FCN=   7507.751     FROM HESSE     STATUS=OK            25 CALLS      458 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10641        1.8184        .37295E-06   -1.5643    
   2  alpha         2.3209        3.6077        .44685E-02   -.71695E-01
   3  Normalizat    .80454        .15641        .40802E-06   -.99900    
   4  Prefactor     .98794        .14764        .17410E-05   -.93133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94564e-10
Minuit parameter uncertainties:
  1  0.8794
  2  4.46541
  3  0.156496
  4  0.147702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34858': 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) = 7507.75145647
delta logL = 8.49503612699e-06

Extracting fit parameters...

4FGL J0349.8-2103
   Spectrum: LogParabola
261         norm:  1.064e-01  8.794e-01  1.000e-04  1.000e+04 ( 1.000e-11)
262        alpha:  2.321e+00  4.465e+00  0.000e+00  5.000e+00 ( 1.000e+00)
263         beta:  1.771e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
264           Eb:  4.947e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  9.879e-01  1.477e-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:  8.045e-01  1.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 57.470 -21.058

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/34858/cmap_HighResolution_633571201_633830401_4FGL_J0349.8-2103_daily_bin1521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-05', job_status='DONE', photon_flux_upper_limit='5.91e-08', time_completed='2021-08-19 16:14:31.136311', job_id='34858', GAL2='0.99', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1629414871.14', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='8.50e-06', ts2='0.02', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1521' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:14:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 34858: <4FGL_J0349.8-2103_daily_bin1521> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1521 57.4699 -21.0576 633571201 633830401 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 :                                   703.51 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             354.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

