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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1530
RA = 57.1417, Dec = -27.8303
tmin = 635904001, tmax = 636163201
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='987072', job_status='RUN', time_executed='2021-08-19 13:33:57.812715', time_epoch_executed='1629405237.81' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987072

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987072/ft1_4FGL_J0348.5-2749_daily_bin1530.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987072/ft2_4FGL_J0348.5-2749_daily_bin1530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987072/ft1_4FGL_J0348.5-2749_daily_bin1530.fits outfile=/scratch/kocevski/987072/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1530.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=635904001.0 tmax=636163201.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.47
user 3.92
sys 1.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/987072/ft2_4FGL_J0348.5-2749_daily_bin1530.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/987072/ft2_4FGL_J0348.5-2749_daily_bin1530.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/987072/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1530.fits evtable="EVENTS" outfile="/scratch/kocevski/987072/ft1_filtered_4FGL_J0348.5-2749_daily_bin1530.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 1.76
user 0.34
sys 1.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/987072/ft1_filtered_4FGL_J0348.5-2749_daily_bin1530.fits" evtable="EVENTS" scfile=/scratch/kocevski/987072/ft2_4FGL_J0348.5-2749_daily_bin1530.fits sctable="SC_DATA" outfile=/scratch/kocevski/987072/ltcube_635904001_636163201_4FGL_J0348.5-2749_daily_bin1530.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/987072/ft2_4FGL_J0348.5-2749_daily_bin1530.fits
.....................!
real 13.24
user 11.46
sys 1.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987072/ft1_filtered_4FGL_J0348.5-2749_daily_bin1530.fits evtable="EVENTS" scfile=/scratch/kocevski/987072/ft2_4FGL_J0348.5-2749_daily_bin1530.fits sctable="SC_DATA" expcube=/scratch/kocevski/987072/ltcube_635904001_636163201_4FGL_J0348.5-2749_daily_bin1530.fits outfile=/scratch/kocevski/987072/expmap_635904001_636163201_4FGL_J0348.5-2749_daily_bin1530.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/987072/ltcube_635904001_636163201_4FGL_J0348.5-2749_daily_bin1530.fits
.....................!
real 192.39
user 185.72
sys 6.24

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 160 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 J0348.5-2749 @ 57.1417 -27.8303

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/987072/ft1_filtered_4FGL_J0348.5-2749_daily_bin1530.fits scfile=/scratch/kocevski/987072/ft2_4FGL_J0348.5-2749_daily_bin1530.fits outfile=/scratch/kocevski/987072/cmap_635904001_636163201_4FGL_J0348.5-2749_daily_bin1530.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.1417 yref=-27.8303 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 1.78
user 0.37
sys 1.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/987072/ft1_filtered_4FGL_J0348.5-2749_daily_bin1530.fits scfile=/scratch/kocevski/987072/ft2_4FGL_J0348.5-2749_daily_bin1530.fits outfile=/scratch/kocevski/987072/cmap_HighResolution_635904001_636163201_4FGL_J0348.5-2749_daily_bin1530.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.1417 yref=-27.8303 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 1.76
user 0.38
sys 1.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/987072/ft1_filtered_4FGL_J0348.5-2749_daily_bin1530.fits evtable="EVENTS" scfile=/scratch/kocevski/987072/ft2_4FGL_J0348.5-2749_daily_bin1530.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/987072/Model_4FGL_J0348.5-2749_daily_bin1530.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/987072/ft1_filtered_4FGL_J0348.5-2749_daily_bin1530.fits.....................!
real 106.83
user 103.14
sys 3.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/987072/ft1_filtered_4FGL_J0348.5-2749_daily_bin1530.fits', '/scratch/kocevski/987072/ft2_4FGL_J0348.5-2749_daily_bin1530.fits', expMap='/scratch/kocevski/987072/expmap_635904001_636163201_4FGL_J0348.5-2749_daily_bin1530.fits', expCube='/scratch/kocevski/987072/ltcube_635904001_636163201_4FGL_J0348.5-2749_daily_bin1530.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/987072/Model_4FGL_J0348.5-2749_daily_bin1530.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0348.5-2749'

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.231e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  6.312e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/987072/ft1_filtered_4FGL_J0348.5-2749_daily_bin1530.fits
Spacecraft file(s): /scratch/kocevski/987072/ft2_4FGL_J0348.5-2749_daily_bin1530.fits
Exposure map: /scratch/kocevski/987072/expmap_635904001_636163201_4FGL_J0348.5-2749_daily_bin1530.fits
Exposure cube: /scratch/kocevski/987072/ltcube_635904001_636163201_4FGL_J0348.5-2749_daily_bin1530.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/987072/Model_4FGL_J0348.5-2749_daily_bin1530.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) = 4778.39157472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.234       1.0000         .10000E-03   10000.    
     2 'norm      '    8.4921       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .59219       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5047       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7462       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7432       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5489       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23631       1.0000         .10000E-03   10000.    
    13 'norm      '    10.081       1.0000         .10000E-03   10000.    
    14 'Prefactor '    89.577       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2591       1.0000         .10000E-03   10000.    
    19 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3118       1.0000         .10000E-03   10000.    
    22 'norm      '    17.048       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .40302E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1669       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93095       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4778.379     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3177 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.230        23.856       -.12349E-06   -.63550E-04
   2  norm          8.4913        5.0566       -.58891E-07    .29460E-04
   3  Prefactor     .10000E-03    117.58       -.12255E-06** at limit **
   4  Prefactor     .55946        261.73        .21966E-04   -.14107E-06
   5  Prefactor     7.5197        135.42       -.13990E-05    .17584E-04
   6  norm          .10000E-03    2.1210       -.27267E-07** at limit **
   7  Prefactor     .10000E-03    43.649        .36738E-06** at limit **
   8  Prefactor     4.7460        105.52       -.23246E-05    .12823E-04
   9  Prefactor     2.7429        2.7423       -.90508E-07    .16629E-03
  10  Prefactor     .10000E-03    4.7958        .44579E-06** at limit **
  11  Prefactor     1.5486        3.3683       -.19697E-05    .27375E-04
  12  Prefactor     .46707E-01    18.799       -.11668E-05    .12837E-04
  13  norm          10.081        2.1734        .40176E-07    .16306E-03
  14  Prefactor     89.573        52.737        .17098E-05    .28736E-04
  15  norm          .10000E-03    .41203        .11280E-06** at limit **
  16  Prefactor     .10000E-03    72.250        .77320E-07** at limit **
  17  Prefactor     .10000E-03    113.40        .68762E-05** at limit **
  18  Prefactor     4.2582        3.2262       -.46162E-07    .60509E-04
  19  norm          .10000E-03    5.6994       -.10659E-07** at limit **
  20  Prefactor     .10000E-03    19.309        .14542E-07** at limit **
  21  norm          2.3125        .62424        .42845E-07    .34074E-03
  22  norm          17.051        11.601       -.67549E-07   -.11607E-03
  23  Prefactor     .10000E-03    3.0667       -.31904E-06** at limit **
  24  Prefactor     .10000E-03    7.3973       -.97482E-07** at limit **
  25  Normalizat    1.1670        .24248        .82285E-06    .67243E-04
  26  Prefactor     .93120        .22523       -.12465E-06    .11215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.2297
  norm       = 8.49133
  Prefactor  = 0.000100004
  Prefactor  = 0.559463
  Prefactor  = 7.51967
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.74603
  Prefactor  = 2.74286
  Prefactor  = 0.0001
  Prefactor  = 1.54856
  Prefactor  = 0.0467073
  norm       = 10.0809
  Prefactor  = 89.5726
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.25823
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3125
  norm       = 17.0506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16697
  Prefactor  = 0.931195
 **********
 **   18 **HESSE 
 **********

 FCN=   4778.379     FROM HESSE     STATUS=OK           466 CALLS     3643 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.230        23.869        .74099E-04   -1.4626    
   2  norm          8.4913        5.0579        .11605E-03   -1.5125    
   3  Prefactor     .10000E-03    117.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55946        259.11        .62935E-02   -1.5558    
   5  Prefactor     7.5197        136.28        .14640E-03   -1.5159    
   6  norm          .10000E-03    2.1384        .98284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7460        105.51        .18469E-03   -1.5272    
   9  Prefactor     2.7429        2.7257        .10877E-03   -1.5377    
  10  Prefactor     .10000E-03    4.8638        .14781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5486        3.3748        .18270E-03   -1.5459    
  12  Prefactor     .46707E-01    24.417        .84618E-01   -1.5665    
  13  norm          10.081        2.1847        .44530E-04   -1.5073    
  14  Prefactor     89.573        52.225        .42454E-04   -1.3812    
  15  norm          .10000E-03    .41341        .43313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    72.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    111.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2582        3.2187        .10373E-03   -1.5295    
  19  norm          .10000E-03    5.7022        .16118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3125        .62721        .26509E-04   -1.5404    
  22  norm          17.051        11.615        .97003E-04   -1.4882    
  23  Prefactor     .10000E-03    32.262        .23243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.3994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1670        .28980        .27991E-03   -.87630    
  26  Prefactor     .93120        .26916        .30239E-03   -.95059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97879e-08
Minuit parameter uncertainties:
  1  23.8767
  2  5.05815
  3  0.00132887
  4  24.1837
  5  64.1943
  6  2.79632e-06
  7  9.0195e-06
  8  44.8434
  9  2.72584
  10  1.9744e-05
  11  3.37519
  12  2.13441
  13  2.18474
  14  52.2521
  15  3.75026e-08
  16  5.13438e-05
  17  8.70798e-06
  18  3.21884
  19  1.35773e-06
  20  1.27464e-05
  21  0.627214
  22  11.6169
  23  4.96554e-05
  24  2.94441e-06
  25  0.290199
  26  0.269549
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.008e+01  2.185e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.088e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
249         beta:  6.312e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  9.312e-01  2.695e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.167e+00  2.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 76.39
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.60e-07 +/- 7.80e-08
Energy Flux (Fixed Index): 1.70e-04 +/- 3.68e-05

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) = 4777.51572565
delta logL = 0.862832503026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4777.44193142
delta logL = 0.936626735423

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4777.442     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.5864        2.9941        .32357E-02    .60055E-04
   2  alpha         2.3913        .31317        .11673        .41518E-04
   3  Normalizat    1.0548        .23583        .65796E-01    .92025E-05
   4  Prefactor     1.0011        .22521        .66165E-01    .10503E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.58636
  alpha      = 2.39126
  Normalizat = 1.05475
  Prefactor  = 1.00114
 **********
 **   18 **HESSE 
 **********

 FCN=   4777.442     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.5864        2.0883        .40132E-04   -1.5089    
   2  alpha         2.3913        .22293        .50908E-03   -.43508E-01
   3  Normalizat    1.0548        .28553        .29106E-03   -.91218    
   4  Prefactor     1.0011        .27111        .29263E-03   -.92692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10388e-12
Minuit parameter uncertainties:
  1  2.0883
  2  0.223222
  3  0.285946
  4  0.27148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987072': 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) = 4777.44193125
delta logL = 0.936626909625

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  9.586e+00  2.088e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.391e+00  2.232e-01  0.000e+00  5.000e+00 ( 1.000e+00)
249         beta:  6.312e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
250           Eb:  6.046e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
510    Prefactor:  1.001e+00  2.715e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.055e+00  2.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 78.14
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.39 +/- 0.22
Photon Flux (Free Index): 4.59e-07 +/- 1.15e-07
Energy Flux (Free Index): 1.45e-04 +/- 3.16e-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/987072/cmap_HighResolution_635904001_636163201_4FGL_J0348.5-2749_daily_bin1530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.60e-07', energy_flux2='1.45e-04', photon_flux_error='7.80e-08', dlogl='9.37e-01', energy_flux='1.70e-04', photon_flux2='4.59e-07', job_status='DONE', time_completed='2021-08-19 13:44:30.537340', photon_index_error2='0.22', photon_index2='2.39', ts='76.39', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='3.16e-05', EG='1.17', time_epoch_completed='1629405870.54', return_code='0', job_id='987072', GAL2='1.00', EG2='1.05', return_code2='0', energy_flux_error='3.68e-05', photon_flux_error2='1.15e-07', ts2='78.14', photon_index='2.09' WHERE bin_id='1530' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:44:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 987072: <4FGL_J0348.5-2749_daily_bin1530> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1530> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 13:30:58 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:30:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 13:30:59 2021
Terminated at Thu Aug 19 13:44:31 2021
Results reported at Thu Aug 19 13:44:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1530 57.1417 -27.8303 635904001 636163201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0348.5-2749 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   644.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

