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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1077
RA = 57.1417, Dec = -27.8303
tmin = 518486401, tmax = 518745601
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='984026', job_status='RUN', time_executed='2021-08-19 13:25:00.134967', time_epoch_executed='1629404700.13' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/984026

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/984026/ft1_4FGL_J0348.5-2749_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/984026/ft2_4FGL_J0348.5-2749_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/984026/ft1_4FGL_J0348.5-2749_daily_bin1077.fits outfile=/scratch/kocevski/984026/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1077.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=518486401.0 tmax=518745601.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 16.95
user 6.55
sys 10.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/984026/ft2_4FGL_J0348.5-2749_daily_bin1077.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/984026/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1077.fits evtable="EVENTS" outfile="/scratch/kocevski/984026/ft1_filtered_4FGL_J0348.5-2749_daily_bin1077.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 9.66
user 0.35
sys 9.27

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/984026/ft1_filtered_4FGL_J0348.5-2749_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/984026/ft2_4FGL_J0348.5-2749_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/984026/ltcube_518486401_518745601_4FGL_J0348.5-2749_daily_bin1077.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/984026/ft2_4FGL_J0348.5-2749_daily_bin1077.fits
.....................!
real 24.53
user 13.34
sys 10.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/984026/ft1_filtered_4FGL_J0348.5-2749_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/984026/ft2_4FGL_J0348.5-2749_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/984026/ltcube_518486401_518745601_4FGL_J0348.5-2749_daily_bin1077.fits outfile=/scratch/kocevski/984026/expmap_518486401_518745601_4FGL_J0348.5-2749_daily_bin1077.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/984026/ltcube_518486401_518745601_4FGL_J0348.5-2749_daily_bin1077.fits
.....................!
real 203.91
user 186.62
sys 16.92

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/984026/ft1_filtered_4FGL_J0348.5-2749_daily_bin1077.fits scfile=/scratch/kocevski/984026/ft2_4FGL_J0348.5-2749_daily_bin1077.fits outfile=/scratch/kocevski/984026/cmap_518486401_518745601_4FGL_J0348.5-2749_daily_bin1077.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 9.57
user 0.37
sys 9.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/984026/ft1_filtered_4FGL_J0348.5-2749_daily_bin1077.fits scfile=/scratch/kocevski/984026/ft2_4FGL_J0348.5-2749_daily_bin1077.fits outfile=/scratch/kocevski/984026/cmap_HighResolution_518486401_518745601_4FGL_J0348.5-2749_daily_bin1077.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 9.84
user 0.39
sys 9.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/984026/ft1_filtered_4FGL_J0348.5-2749_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/984026/ft2_4FGL_J0348.5-2749_daily_bin1077.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/984026/Model_4FGL_J0348.5-2749_daily_bin1077.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/984026/ft1_filtered_4FGL_J0348.5-2749_daily_bin1077.fits.....................!
real 86.84
user 72.98
sys 13.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/984026/ft1_filtered_4FGL_J0348.5-2749_daily_bin1077.fits', '/scratch/kocevski/984026/ft2_4FGL_J0348.5-2749_daily_bin1077.fits', expMap='/scratch/kocevski/984026/expmap_518486401_518745601_4FGL_J0348.5-2749_daily_bin1077.fits', expCube='/scratch/kocevski/984026/ltcube_518486401_518745601_4FGL_J0348.5-2749_daily_bin1077.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/984026/Model_4FGL_J0348.5-2749_daily_bin1077.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/984026/ft1_filtered_4FGL_J0348.5-2749_daily_bin1077.fits
Spacecraft file(s): /scratch/kocevski/984026/ft2_4FGL_J0348.5-2749_daily_bin1077.fits
Exposure map: /scratch/kocevski/984026/expmap_518486401_518745601_4FGL_J0348.5-2749_daily_bin1077.fits
Exposure cube: /scratch/kocevski/984026/ltcube_518486401_518745601_4FGL_J0348.5-2749_daily_bin1077.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/984026/Model_4FGL_J0348.5-2749_daily_bin1077.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) = 3154.64335641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .13559E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.271       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2886       1.0000         .10000E-03   10000.    
     7 'Prefactor '    96.551       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2211       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.068       1.0000         .10000E-03   10000.    
    13 'norm      '    .24644       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .46445       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6628       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.144       1.0000         .10000E-03   10000.    
    21 'norm      '    .19240       1.0000         .10000E-03   10000.    
    22 'norm      '    7.0348       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0924       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73180       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=   3154.631     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3138 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.824        .90712E-02** at limit **
   2  norm          .10000E-03    4.0339        .38219E-01** at limit **
   3  Prefactor     .10000E-03    136.08        .90712E-02** at limit **
   4  Prefactor     .10000E-03    12.472        .90712E-02** at limit **
   5  Prefactor     31.272        30.803        .17913E-02   -.67713E-04
   6  norm          3.2886        3.2108        .55818E-02   -.79322E-04
   7  Prefactor     96.551        71.518        .10227E-02    .25989E-03
   8  Prefactor     .10000E-03    36.417        .90712E-02** at limit **
   9  Prefactor     8.2237        4.7141        .34956E-02    .11264E-03
  10  Prefactor     .10000E-03    2.8779        .90712E-02** at limit **
  11  Prefactor     .10000E-03    2.0697        .90712E-02** at limit **
  12  Prefactor     14.068        14.166        .26697E-02    .40864E-04
  13  norm          .24724        .95768        .27945E-01    .74771E-03
  14  Prefactor     .10000E-03    14.483        .90712E-02** at limit **
  15  norm          .46259        1.7781        .11125E-01    .88739E-03
  16  Prefactor     .10000E-03    76.303        .90712E-02** at limit **
  17  Prefactor     3.6517        35.541        .52764E-02   -.67619E-04
  18  Prefactor     .10000E-03    2.0840        .31873E-01** at limit **
  19  norm          .10000E-03    6.4883        .90712E-02** at limit **
  20  Prefactor     40.145        36.850        .15816E-02   -.19314E-03
  21  norm          .19240        .25975        .67339E-02    .54386E-03
  22  norm          7.0351        9.1777        .37812E-02    .19861E-02
  23  Prefactor     .10000E-03    1.5748        .90712E-02** at limit **
  24  Prefactor     .10001E-03    14.072        .90712E-02** at limit **
  25  Normalizat    1.0923        .23218        .38319E-01   -.15732E-05
  26  Prefactor     .73193        .22894        .42823E-01    .65053E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 31.2723
  norm       = 3.28862
  Prefactor  = 96.5506
  Prefactor  = 0.0001
  Prefactor  = 8.22374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0676
  norm       = 0.247241
  Prefactor  = 0.000100005
  norm       = 0.462592
  Prefactor  = 0.0001
  Prefactor  = 3.65167
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.1452
  norm       = 0.192398
  norm       = 7.03507
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 1.0923
  Prefactor  = 0.731933
 **********
 **   18 **HESSE 
 **********

 FCN=   3154.631     FROM HESSE     STATUS=OK           458 CALLS     3596 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.841        .18049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.2280        .21875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    136.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.272        30.810        .71651E-04   -1.4589    
   6  norm          3.2886        3.2173        .96651E-04   -1.5345    
   7  Prefactor     96.551        71.124        .40907E-04   -1.3740    
   8  Prefactor     .10000E-03    36.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.2237        4.6059        .81804E-04   -1.5134    
  10  Prefactor     .10000E-03    2.9127        .92924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0781        .78858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.068        14.167        .10679E-03   -1.4958    
  13  norm          .24724        1.5965        .96650E-03   -1.5609    
  14  Prefactor     .10000E-03    14.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .46259        1.7139        .12896E-03   -1.5572    
  16  Prefactor     .10000E-03    76.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6517        35.553        .21106E-03   -1.5326    
  18  Prefactor     .10000E-03    3.3190        .15608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.4892        .13973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.145        36.704        .63264E-04   -1.4440    
  21  norm          .19240        .24064        .31944E-03   -1.5620    
  22  norm          7.0351        9.1566        .75625E-03   -1.5177    
  23  Prefactor     .10000E-03    1.5802        .68832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    14.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0923        .26205        .22273E-03   -.89999    
  26  Prefactor     .73193        .25866        .26710E-03   -1.0229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68083e-09
Minuit parameter uncertainties:
  1  3.84511e-05
  2  6.11277e-06
  3  0.000255267
  4  0.000165742
  5  30.8259
  6  3.21748
  7  71.1867
  8  3.5446e-05
  9  4.6061
  10  3.27954e-07
  11  3.14516e-08
  12  14.1708
  13  1.25631
  14  0.000523105
  15  1.71403
  16  5.55589e-05
  17  22.8057
  18  2.12821e-06
  19  3.32305e-06
  20  36.7243
  21  0.240642
  22  9.15838
  23  6.0912e-07
  24  0.00064271
  25  0.262359
  26  0.259086
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.472e-01  1.256e+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:  7.319e-01  2.591e-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.092e+00  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 57.142 -27.830
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/984026/likelihoodResults_518486401_518745601_4FGL_J0348.5-2749_daily_bin1077.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) = 3153.47864502
delta logL = 1.1521052488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3153.47327093
delta logL = 1.15747933415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19054       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3252       1.0000          .0000       5.0000    
     3 'Normalizat'    .95350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82121       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=   3153.473     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      215 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19032        3.0618        .38211E-02    .94751E-03
   2  alpha         4.3257        4.1411        .34538        .16054E-04
   3  Normalizat    .95342        .77350E-01    .45582E-01   -.42476E-05
   4  Prefactor     .82128        .78233E-01    .43993E-01   -.62879E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.190315
  alpha      = 4.32573
  Normalizat = 0.953421
  Prefactor  = 0.821284
 **********
 **   18 **HESSE 
 **********

 FCN=   3153.473     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      248 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19032        4.9536        .17152E-04   -1.5621    
   2  alpha         4.3257        3.3528        .16373E-01    .81875    
   3  Normalizat    .95342        .26233        .23569E-03   -.94608    
   4  Prefactor     .82128        .25926        .25363E-03   -.98948    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.15783e-11
Minuit parameter uncertainties:
  1  1.94157
  2  6.84575
  3  0.262681
  4  0.259648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/984026': 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): 102
logL (Free Index) = 3153.47327069
delta logL = 1.15747958255

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.903e-01  1.942e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  4.326e+00  6.846e+00  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:  8.213e-01  2.596e-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:  9.534e-01  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.60
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 4.33 +/- 6.85
Photon Flux (Free Index): 1.19e-07 +/- 8.91e-08
Energy Flux (Free Index): 1.73e-05 +/- 2.10e-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/984026/cmap_HighResolution_518486401_518745601_4FGL_J0348.5-2749_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-05', comment='SUCCESS', energy_flux2='1.73e-05', dlogl='1.16e+00', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-08-19 13:36:41.235856', photon_index_error2='6.85', photon_index2='4.33', ts='0.05', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='2.10e-05', EG='1.09', time_epoch_completed='1629405401.24', return_code='0', job_id='984026', GAL2='0.82', EG2='0.95', return_code2='102', photon_flux_error2='8.91e-08', ts2='2.60', photon_index='2.09' WHERE bin_id='1077' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:36:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 984026: <4FGL_J0348.5-2749_daily_bin1077> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1077> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 13:20:58 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:21:00 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:21:00 2021
Terminated at Thu Aug 19 13:36:43 2021
Results reported at Thu Aug 19 13:36:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1077 57.1417 -27.8303 518486401 518745601 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 :                                   823.26 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             214.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            945 sec.

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

