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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1481
RA = 57.1417, Dec = -27.8303
tmin = 623203201, tmax = 623462401
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='986917', job_status='RUN', time_executed='2021-08-19 13:31:23.713609', time_epoch_executed='1629405083.71' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986917/ft1_4FGL_J0348.5-2749_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986917/ft2_4FGL_J0348.5-2749_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986917/ft1_4FGL_J0348.5-2749_daily_bin1481.fits outfile=/scratch/kocevski/986917/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1481.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=623203201.0 tmax=623462401.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.11
user 2.66
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/986917/ft2_4FGL_J0348.5-2749_daily_bin1481.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/986917/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1481.fits evtable="EVENTS" outfile="/scratch/kocevski/986917/ft1_filtered_4FGL_J0348.5-2749_daily_bin1481.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.71
user 0.32
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986917/ft1_filtered_4FGL_J0348.5-2749_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/986917/ft2_4FGL_J0348.5-2749_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/986917/ltcube_623203201_623462401_4FGL_J0348.5-2749_daily_bin1481.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/986917/ft2_4FGL_J0348.5-2749_daily_bin1481.fits
.....................!
real 12.99
user 12.37
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986917/ft1_filtered_4FGL_J0348.5-2749_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/986917/ft2_4FGL_J0348.5-2749_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/986917/ltcube_623203201_623462401_4FGL_J0348.5-2749_daily_bin1481.fits outfile=/scratch/kocevski/986917/expmap_623203201_623462401_4FGL_J0348.5-2749_daily_bin1481.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/986917/ltcube_623203201_623462401_4FGL_J0348.5-2749_daily_bin1481.fits
.....................!
real 192.42
user 185.79
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/986917/ft1_filtered_4FGL_J0348.5-2749_daily_bin1481.fits scfile=/scratch/kocevski/986917/ft2_4FGL_J0348.5-2749_daily_bin1481.fits outfile=/scratch/kocevski/986917/cmap_623203201_623462401_4FGL_J0348.5-2749_daily_bin1481.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 0.75
user 0.36
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/986917/ft1_filtered_4FGL_J0348.5-2749_daily_bin1481.fits scfile=/scratch/kocevski/986917/ft2_4FGL_J0348.5-2749_daily_bin1481.fits outfile=/scratch/kocevski/986917/cmap_HighResolution_623203201_623462401_4FGL_J0348.5-2749_daily_bin1481.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 0.76
user 0.37
sys 0.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/986917/ft1_filtered_4FGL_J0348.5-2749_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/986917/ft2_4FGL_J0348.5-2749_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/986917/Model_4FGL_J0348.5-2749_daily_bin1481.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/986917/ft1_filtered_4FGL_J0348.5-2749_daily_bin1481.fits.....................!
real 200.53
user 198.61
sys 1.56

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.273       1.0000         .10000E-03   10000.    
     2 'norm      '    4.0989       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10824E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.2573       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9511       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3179       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    38.120       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.448       1.0000         .10000E-03   10000.    
    15 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8692       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .74288       1.0000         .10000E-03   10000.    
    22 'norm      '    7.0647       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.8186       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .80393       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1047       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=   9184.114     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2661 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.272        16.379       -.38299E-06    .60842E-05
   2  norm          4.0989        2.9288       -.38453E-07    .49324E-04
   3  Prefactor     .10000E-03    75.155       -.10587E-04** at limit **
   4  Prefactor     .10000E-03    34.756       -.81055E-05** at limit **
   5  Prefactor     .10000E-03    33.095       -.10567E-04** at limit **
   6  norm          4.2573        3.0122       -.15682E-06   -.20046E-03
   7  Prefactor     .10000E-03    16.314        .30840E-06** at limit **
   8  Prefactor     .10000E-03    11.434       -.66222E-05** at limit **
   9  Prefactor     2.9508        2.4185        .10846E-06   -.31926E-03
  10  Prefactor     4.3191        4.3263       -.11039E-05   -.27104E-03
  11  Prefactor     .10000E-03    3.6510        .15239E-07** at limit **
  12  Prefactor     .10000E-03    6.2556       -.66791E-07** at limit **
  13  norm          38.120        2.7244        .23738E-07    .47225E-05
  14  Prefactor     15.406        28.368       -.26348E-04   -.17257E-04
  15  norm          .10000E-03    .63225        .71923E-07** at limit **
  16  Prefactor     .10000E-03    53.304        .27458E-04** at limit **
  17  Prefactor     .10000E-03    11.097        .65992E-05** at limit **
  18  Prefactor     8.8694        3.2483       -.47834E-07   -.18386E-02
  19  norm          .10000E-03    3.5514        .71849E-07** at limit **
  20  Prefactor     .10000E-03    24.804        .67152E-05** at limit **
  21  norm          .74295        .30593       -.46410E-07   -.88009E-03
  22  norm          7.0646        5.9861       -.15904E-06   -.13463E-03
  23  Prefactor     .10000E-03    1.8681        .56877E-08** at limit **
  24  Prefactor     6.8185        9.7322       -.15243E-06   -.34748E-04
  25  Normalizat    .80365        .17485        .12178E-05   -.74661E-05
  26  Prefactor     1.1050        .17037        .99111E-06    .42813E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.272
  norm       = 4.09892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.25729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.95082
  Prefactor  = 4.31908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 38.1201
  Prefactor  = 15.4063
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.86939
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.742949
  norm       = 7.06463
  Prefactor  = 0.0001
  Prefactor  = 6.81847
  Normalizat = 0.803652
  Prefactor  = 1.10501
 **********
 **   18 **HESSE 
 **********

 FCN=   9184.114     FROM HESSE     STATUS=OK           456 CALLS     3117 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.272        16.400        .84873E-04   -1.4764    
   2  norm          4.0989        2.9298        .13482E-03   -1.5303    
   3  Prefactor     .10000E-03    75.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2573        3.0119        .13502E-03   -1.5295    
   7  Prefactor     .10000E-03    16.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9508        2.4053        .12880E-03   -1.5364    
  10  Prefactor     4.3191        4.3177        .18872E-03   -1.5292    
  11  Prefactor     .10000E-03    3.7580        .35657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          38.120        2.7280        .39355E-04   -1.4472    
  14  Prefactor     15.406        28.337        .10190E-03   -1.4923    
  15  norm          .10000E-03    .64637        .14837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    53.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.8694        3.2501        .50104E-03   -1.5112    
  19  norm          .10000E-03    3.5527        .17638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .74295        .30328        .31663E-04   -1.5536    
  22  norm          7.0646        5.9875        .15093E-03   -1.5176    
  23  Prefactor     .10000E-03    1.8957        .12786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.8185        9.7248        .15365E-03   -1.5186    
  25  Normalizat    .80365        .20708        .33758E-03   -.99933    
  26  Prefactor     1.1050        .20211        .29586E-03   -.89306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62768e-10
Minuit parameter uncertainties:
  1  16.4036
  2  2.92986
  3  6.53443e-07
  4  0.000174885
  5  8.93268e-06
  6  3.01202
  7  2.55423e-06
  8  3.80173e-05
  9  2.40534
  10  4.31805
  11  1.77649e-05
  12  6.74625e-06
  13  2.72797
  14  28.3616
  15  6.22647e-06
  16  3.2484e-05
  17  0.000148339
  18  3.25012
  19  2.05054e-06
  20  6.91851e-05
  21  0.303277
  22  5.98802
  23  8.48571e-07
  24  9.72707
  25  0.20728
  26  0.20225
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  3.812e+01  2.728e+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:  1.105e+00  2.022e-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:  8.037e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 981.70
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.36e-06 +/- 9.73e-08
Energy Flux (Fixed Index): 6.41e-04 +/- 4.59e-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) = 9181.74159451
delta logL = 2.37248629702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9181.61325141
delta logL = 2.500829396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    39.507       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9390       1.0000          .0000       5.0000    
     3 'Normalizat'    .89839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0441       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=   9181.613     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      206 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.507        2.8821        .15943E-02    .23933E-03
   2  alpha         1.9390        .65971E-01    .42544E-01    .11990E-04
   3  Normalizat    .89847        .17107        .72936E-01    .27912E-04
   4  Prefactor     1.0440        .16869        .68618E-01    .10739E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 39.5073
  alpha      = 1.93903
  Normalizat = 0.89847
  Prefactor  = 1.04405
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.507        2.8441        .40817E-04   -1.4450    
   2  alpha         1.9390        .65441E-01    .23993E-03   -.22631    
   3  Normalizat    .89847        .20410        .32275E-03   -.96514    
   4  Prefactor     1.0440        .20085        .30354E-03   -.91275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69681e-12
Minuit parameter uncertainties:
  1  2.84413
  2  0.0654485
  3  0.204274
  4  0.20099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986917': 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) = 9181.61325124
delta logL = 2.50082956632

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  3.951e+01  2.844e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.939e+00  6.545e-02  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.044e+00  2.010e-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:  8.985e-01  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 974.93
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.94 +/- 0.07
Photon Flux (Free Index): 1.25e-06 +/- 1.03e-07
Energy Flux (Free Index): 7.66e-04 +/- 8.57e-05

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/986917/cmap_HighResolution_623203201_623462401_4FGL_J0348.5-2749_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.36e-06', energy_flux2='7.66e-04', photon_flux_error='9.73e-08', dlogl='2.50e+00', energy_flux='6.41e-04', photon_flux2='1.25e-06', job_status='DONE', time_completed='2021-08-19 13:46:04.695983', photon_index_error2='0.07', photon_index2='1.94', ts='981.70', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='8.57e-05', EG='0.80', time_epoch_completed='1629405964.7', return_code='0', job_id='986917', GAL2='1.04', EG2='0.90', return_code2='0', energy_flux_error='4.59e-05', photon_flux_error2='1.03e-07', ts2='974.93', photon_index='2.09' WHERE bin_id='1481' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:46:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 986917: <4FGL_J0348.5-2749_daily_bin1481> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1481> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 13:30:50 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:30:53 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:53 2021
Terminated at Thu Aug 19 13:46:05 2021
Results reported at Thu Aug 19 13:46:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1481 57.1417 -27.8303 623203201 623462401 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 :                                   871.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             359.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

