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


Performing analysis on: 4FGL_J0349.8-2103_daily_bin1584
RA = 57.4699, Dec = -21.0576
tmin = 649900801, tmax = 650160001
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='34949', job_status='RUN', time_executed='2021-08-19 16:02:41.354608', time_epoch_executed='1629414161.35' WHERE source_name='4FGL J0349.8-2103' and cadence='daily' and bin_id='1584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34949

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34949/ft1_4FGL_J0349.8-2103_daily_bin1584.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34949/ft2_4FGL_J0349.8-2103_daily_bin1584.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34949/ft1_4FGL_J0349.8-2103_daily_bin1584.fits outfile=/scratch/kocevski/34949/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1584.fits ra=57.4699 dec=-21.0576 rad=12.0 tmin=649900801.0 tmax=650160001.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 5.53
user 4.86
sys 0.60

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34949/ft2_4FGL_J0349.8-2103_daily_bin1584.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/34949/ft1_filteredMKT_4FGL_J0349.8-2103_daily_bin1584.fits evtable="EVENTS" outfile="/scratch/kocevski/34949/ft1_filtered_4FGL_J0349.8-2103_daily_bin1584.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.85
user 0.32
sys 0.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34949/ft1_filtered_4FGL_J0349.8-2103_daily_bin1584.fits" evtable="EVENTS" scfile=/scratch/kocevski/34949/ft2_4FGL_J0349.8-2103_daily_bin1584.fits sctable="SC_DATA" outfile=/scratch/kocevski/34949/ltcube_649900801_650160001_4FGL_J0349.8-2103_daily_bin1584.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/34949/ft2_4FGL_J0349.8-2103_daily_bin1584.fits
.....................!
real 12.65
user 11.86
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34949/ft1_filtered_4FGL_J0349.8-2103_daily_bin1584.fits evtable="EVENTS" scfile=/scratch/kocevski/34949/ft2_4FGL_J0349.8-2103_daily_bin1584.fits sctable="SC_DATA" expcube=/scratch/kocevski/34949/ltcube_649900801_650160001_4FGL_J0349.8-2103_daily_bin1584.fits outfile=/scratch/kocevski/34949/expmap_649900801_650160001_4FGL_J0349.8-2103_daily_bin1584.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/34949/ltcube_649900801_650160001_4FGL_J0349.8-2103_daily_bin1584.fits
.....................!
real 190.87
user 184.12
sys 5.48

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/34949/ft1_filtered_4FGL_J0349.8-2103_daily_bin1584.fits scfile=/scratch/kocevski/34949/ft2_4FGL_J0349.8-2103_daily_bin1584.fits outfile=/scratch/kocevski/34949/cmap_649900801_650160001_4FGL_J0349.8-2103_daily_bin1584.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.89
user 0.41
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34949/ft1_filtered_4FGL_J0349.8-2103_daily_bin1584.fits scfile=/scratch/kocevski/34949/ft2_4FGL_J0349.8-2103_daily_bin1584.fits outfile=/scratch/kocevski/34949/cmap_HighResolution_649900801_650160001_4FGL_J0349.8-2103_daily_bin1584.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.92
user 0.38
sys 0.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34949/ft1_filtered_4FGL_J0349.8-2103_daily_bin1584.fits evtable="EVENTS" scfile=/scratch/kocevski/34949/ft2_4FGL_J0349.8-2103_daily_bin1584.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34949/Model_4FGL_J0349.8-2103_daily_bin1584.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/34949/ft1_filtered_4FGL_J0349.8-2103_daily_bin1584.fits.....................!
real 105.84
user 102.87
sys 1.77

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.361       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.182       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.173       1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.472       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44122E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.104       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3642       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3242       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4321       1.0000         .10000E-03   10000.    
    13 'norm      '    7.0221       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.730       1.0000         .10000E-03   10000.    
    15 'norm      '    .67764       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .44088E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11643E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2103       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1862       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9120       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88849       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4562.536     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     2427 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.362        5.3608       -.31199E-06   -.24145E-03
   2  Prefactor     33.183        1.0824        .20454E-06   -.85540E-04
   3  Prefactor     .10012E-03    81.188        .61516E-05** at limit **
   4  Prefactor     .10000E-03    1.4987       -.27789E-06** at limit **
   5  Prefactor     .10001E-03    9.3895       -.18316E-04** at limit **
   6  Prefactor     24.173        2.4635       -.11787E-05   -.90244E-03
   7  Prefactor     51.680        33.182       -.73860E-08    .24268E-02
   8  Prefactor     .10368E-03    84.012       -.51829E-04** at limit **
   9  Prefactor     29.188        14.394       -.40190E-05    .64994E-02
  10  Prefactor     1.3642        1.9779       -.13152E-06   -.14921E-03
  11  Prefactor     2.3180        7.0986        .81203E-06   -.48172E-04
  12  Prefactor     2.4371        6.0563       -.25590E-05   -.18496E-03
  13  norm          7.0230        1.8673       -.65264E-08   -.85737E-03
  14  Prefactor     34.692        9.8845        .49851E-05   -.76379E-02
  15  norm          .67789        1.1490        .14511E-06    .17507E-03
  16  Prefactor     .31778E-03    946.55       -.20759E-04** at limit **
  17  Prefactor     .10000E-03    40.613       -.11534E-05** at limit **
  18  Prefactor     6.2110        4.0122        .18634E-06    .58556E-04
  19  norm          .10000E-03    4.2306        .66477E-06** at limit **
  20  Prefactor     .10001E-03    9.3778        .17764E-04** at limit **
  21  Prefactor     7.1858        9.9176       -.37308E-05   -.61966E-03
  22  Prefactor     2.9128        5.1430       -.15913E-05   -.17536E-03
  23  Prefactor     .10000E-03    8.0149        .20324E-06** at limit **
  24  Normalizat    .88831        .26131       -.86317E-06   -.29029E-03
  25  Prefactor     1.0298        .22573        .16740E-05   -.24471E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3624
  Prefactor  = 33.1831
  Prefactor  = 0.000100123
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 24.1726
  Prefactor  = 51.6803
  Prefactor  = 0.000103684
  Prefactor  = 29.1876
  Prefactor  = 1.3642
  Prefactor  = 2.31801
  Prefactor  = 2.43715
  norm       = 7.02304
  Prefactor  = 34.6921
  norm       = 0.677885
  Prefactor  = 0.000317778
  Prefactor  = 0.0001
  Prefactor  = 6.21102
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 7.18578
  Prefactor  = 2.91283
  Prefactor  = 0.0001
  Normalizat = 0.888313
  Prefactor  = 1.02981
 **********
 **   18 **HESSE 
 **********

 FCN=   4562.536     FROM HESSE     STATUS=OK           483 CALLS     2910 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.362        5.3635        .29714E-02   -1.5034    
   2  Prefactor     33.183        24.160        .17391E-02   -1.4555    
   3  Prefactor     .10012E-03    81.418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    9.3790        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.173        17.068        .20368E-02   -1.4724    
   7  Prefactor     51.680        72.125        .13975E-02   -1.4269    
   8  Prefactor     .10368E-03    90.449        .10609E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.188        49.903        .18566E-02   -1.4627    
  10  Prefactor     1.3642        2.0331        .93421E-02   -1.5474    
  11  Prefactor     2.3180        7.4627        .67259E-02   -1.5403    
  12  Prefactor     2.4371        6.4074        .65599E-02   -1.5396    
  13  norm          7.0230        1.8798        .37847E-02   -1.5178    
  14  Prefactor     34.692        37.173        .17000E-02   -1.4529    
  15  norm          .67789        1.3794        .21596E-01   -1.5543    
  16  Prefactor     .31778E-03    1302.3        .92412E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2110        4.0435        .40272E-02   -1.5209    
  19  norm          .10000E-03    4.2314        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    9.3828        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.1858        9.9462        .37408E-02   -1.5172    
  22  Prefactor     2.9128        5.1825        .59522E-02   -1.5367    
  23  Prefactor     .10000E-03    8.0097        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88831        .23320        .66117E-01   -.96872    
  25  Prefactor     1.0298        .19857        .41282E-01   -.91742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27872e-06
Minuit parameter uncertainties:
  1  5.36376
  2  24.1673
  3  0.00633562
  4  6.55596e-06
  5  0.000506827
  6  17.0712
  7  72.2476
  8  0.0365636
  9  49.9749
  10  2.03318
  11  7.46572
  12  6.40918
  13  1.87982
  14  37.198
  15  1.37948
  16  1.08969
  17  5.77048e-05
  18  4.04366
  19  2.29202e-05
  20  0.00045982
  21  9.94853
  22  5.18326
  23  1.6005e-05
  24  0.233468
  25  0.198709
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  1.030e+00  1.987e-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.883e-01  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 57.470 -21.058
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34949/likelihoodResults_649900801_650160001_4FGL_J0349.8-2103_daily_bin1584.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) = 4561.85606141
delta logL = 0.679597985517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4561.85249862
delta logL = 0.683160774593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49489       1.0000         .10000E-03   10000.    
     2 'alpha     '    .77809       1.0000          .0000       5.0000    
     3 'Normalizat'    .91030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0088       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4561.852     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      233 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49490        .62992        .10925E-01    .26396E-02
   2  alpha         .77806        .60000        .44476       -.29162E-04
   3  Normalizat    .91023        .21658        .65393E-01    .14091E-04
   4  Prefactor     1.0088        .19347        .43507E-01    .38015E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.494899
  alpha      = 0.778056
  Normalizat = 0.910233
  Prefactor  = 1.00883
 **********
 **   18 **HESSE 
 **********

 FCN=   4561.852     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49490        .77827        .51206E-03   -1.5567    
   2  alpha         .77806        .78953        .19315E-02   -.75980    
   3  Normalizat    .91023        .24973        .28925E-03   -.96101    
   4  Prefactor     1.0088        .22343        .24511E-03   -.92436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.75186e-10
Minuit parameter uncertainties:
  1  0.778285
  2  0.81691
  3  0.25005
  4  0.223633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34949': 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) = 4561.85249855
delta logL = 0.683160843187

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
484    Prefactor:  1.009e+00  2.236e-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.102e-01  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 57.470 -21.058
Photon Index (Free Index): 0.78 +/- 0.82
Photon Flux (Free Index): 1.00e-08 +/- 1.13e-08
Energy Flux (Free Index): 3.63e-05 +/- 6.06e-05

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/34949/cmap_HighResolution_649900801_650160001_4FGL_J0349.8-2103_daily_bin1584.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-05', comment='SUCCESS', energy_flux2='3.63e-05', dlogl='6.83e-01', photon_flux2='1.00e-08', job_status='DONE', time_completed='2021-08-19 16:13:05.543329', photon_index_error2='0.82', photon_index2='0.78', ts='0.54', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='6.06e-05', EG='0.89', time_epoch_completed='1629414785.54', return_code='0', job_id='34949', GAL2='1.01', EG2='0.91', return_code2='0', photon_flux_error2='1.13e-08', ts2='1.92', photon_index='2.34' WHERE bin_id='1584' AND source_name='4FGL J0349.8-2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 16:13:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 34949: <4FGL_J0349.8-2103_daily_bin1584> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0349.8-2103_daily_bin1584 57.4699 -21.0576 649900801 650160001 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 :                                   609.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            719 sec.

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

