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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1412
RA = 57.1417, Dec = -27.8303
tmin = 605318401, tmax = 605577601
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='985650', job_status='RUN', time_executed='2021-08-19 13:27:12.845604', time_epoch_executed='1629404832.85' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985650

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985650/ft1_4FGL_J0348.5-2749_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985650/ft2_4FGL_J0348.5-2749_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985650/ft1_4FGL_J0348.5-2749_daily_bin1412.fits outfile=/scratch/kocevski/985650/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1412.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=605318401.0 tmax=605577601.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 6.28
user 5.22
sys 1.01

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985650/ft2_4FGL_J0348.5-2749_daily_bin1412.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/985650/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1412.fits evtable="EVENTS" outfile="/scratch/kocevski/985650/ft1_filtered_4FGL_J0348.5-2749_daily_bin1412.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.26
user 0.33
sys 0.92

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985650/ft1_filtered_4FGL_J0348.5-2749_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/985650/ft2_4FGL_J0348.5-2749_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/985650/ltcube_605318401_605577601_4FGL_J0348.5-2749_daily_bin1412.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/985650/ft2_4FGL_J0348.5-2749_daily_bin1412.fits
.....................!
real 12.47
user 11.22
sys 1.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985650/ft1_filtered_4FGL_J0348.5-2749_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/985650/ft2_4FGL_J0348.5-2749_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/985650/ltcube_605318401_605577601_4FGL_J0348.5-2749_daily_bin1412.fits outfile=/scratch/kocevski/985650/expmap_605318401_605577601_4FGL_J0348.5-2749_daily_bin1412.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/985650/ltcube_605318401_605577601_4FGL_J0348.5-2749_daily_bin1412.fits
.....................!
real 192.34
user 185.64
sys 6.38

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/985650/ft1_filtered_4FGL_J0348.5-2749_daily_bin1412.fits scfile=/scratch/kocevski/985650/ft2_4FGL_J0348.5-2749_daily_bin1412.fits outfile=/scratch/kocevski/985650/cmap_605318401_605577601_4FGL_J0348.5-2749_daily_bin1412.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.28
user 0.37
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985650/ft1_filtered_4FGL_J0348.5-2749_daily_bin1412.fits scfile=/scratch/kocevski/985650/ft2_4FGL_J0348.5-2749_daily_bin1412.fits outfile=/scratch/kocevski/985650/cmap_HighResolution_605318401_605577601_4FGL_J0348.5-2749_daily_bin1412.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.29
user 0.36
sys 0.92

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985650/ft1_filtered_4FGL_J0348.5-2749_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/985650/ft2_4FGL_J0348.5-2749_daily_bin1412.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985650/Model_4FGL_J0348.5-2749_daily_bin1412.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/985650/ft1_filtered_4FGL_J0348.5-2749_daily_bin1412.fits.....................!
real 145.00
user 142.50
sys 2.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2057       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.559       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7141       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7157       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.937       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6841       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.216       1.0000         .10000E-03   10000.    
    13 'norm      '    29.497       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .50491E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.166       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .51853       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0784       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0925       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89038       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6372.354     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     2615 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    10.066        .12566E-04** at limit **
   2  norm          1.2077        2.3960       -.13246E-06   -.11050E-04
   3  Prefactor     .11078E-03    45.916        .23116E-04** at limit **
   4  Prefactor     18.555        1.0924       -.25696E-06    .59659E-03
   5  Prefactor     .11581E-03    45.747       -.13504E-04** at limit **
   6  norm          1.7142        1.6825       -.52911E-07    .42793E-04
   7  Prefactor     2.7243        2.4587        .48807E-05   -.17105E-02
   8  Prefactor     37.937        1.0130        .96730E-07   -.47066E-03
   9  Prefactor     3.6837        2.2026       -.11037E-06   -.41515E-04
  10  Prefactor     .10001E-03    4.0969       -.54829E-05** at limit **
  11  Prefactor     .10000E-03    1.2099       -.36917E-06** at limit **
  12  Prefactor     20.219        1.0302       -.17038E-06    .31862E-03
  13  norm          29.496        2.7809       -.29505E-07   -.45859E-04
  14  Prefactor     .10001E-03    8.8574       -.65596E-05** at limit **
  15  norm          .10000E-03    1.9959        .87176E-06** at limit **
  16  Prefactor     .38055E-03    .98432       -.60076E-05** at limit **
  17  Prefactor     16.170        1.1811        .48133E-06   -.94874E-03
  18  Prefactor     .10000E-03    1.2517        .67661E-06** at limit **
  19  norm          .10001E-03    4.1778        .40439E-05** at limit **
  20  Prefactor     .10021E-03    7.4432       -.68195E-05** at limit **
  21  norm          .51858        .34779        .76324E-07   -.95671E-04
  22  norm          .10002E-03    6.2918       -.26613E-05** at limit **
  23  Prefactor     3.0784        3.6433       -.42533E-05   -.21650E-02
  24  Prefactor     .10028E-03    6.4721        .12795E-04** at limit **
  25  Normalizat    1.0922        .23543       -.53408E-06   -.44406E-04
  26  Prefactor     .89054        .22971        .70787E-06   -.32403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100056
  norm       = 1.2077
  Prefactor  = 0.000110783
  Prefactor  = 18.5548
  Prefactor  = 0.000115808
  norm       = 1.71418
  Prefactor  = 2.72431
  Prefactor  = 37.9371
  Prefactor  = 3.68375
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 20.2186
  norm       = 29.4964
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.000380554
  Prefactor  = 16.1699
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.000100212
  norm       = 0.518584
  norm       = 0.000100019
  Prefactor  = 3.07841
  Prefactor  = 0.000100275
  Normalizat = 1.09223
  Prefactor  = 0.890538
 **********
 **   18 **HESSE 
 **********

 FCN=   6372.354     FROM HESSE     STATUS=OK           520 CALLS     3135 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    15.610        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2077        2.4562        .10318E-01   -1.5488    
   3  Prefactor     .11078E-03    73.563        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.555        23.900        .23243E-02   -1.4846    
   5  Prefactor     .11581E-03    88.242        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7142        1.6657        .80251E-02   -1.5446    
   7  Prefactor     2.7243        480.09        .61786E-02   -1.5378    
   8  Prefactor     37.937        45.355        .16268E-02   -1.4475    
   9  Prefactor     3.6837        2.2174        .52606E-02   -1.5324    
  10  Prefactor     .10001E-03    1.9898        .42545E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2061        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.219        17.649        .22271E-02   -1.4808    
  13  norm          29.496        2.8695        .18442E-02   -1.4621    
  14  Prefactor     .10001E-03    15.061        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .87868        .25625E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .38055E-03    1110.4        .10576E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.170        26.359        .24904E-02   -1.4904    
  18  Prefactor     .10000E-03    1.2349        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    4.2019        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10021E-03    8.6652        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .51858        .35044        .81969E-02   -1.5564    
  22  norm          .10002E-03    6.2964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.0784        3.6648        .57794E-02   -1.5357    
  24  Prefactor     .10028E-03    7.8062        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0922        .20018        .63591E-01   -.90002    
  26  Prefactor     .89054        .19466        .69956E-01   -.96473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22671e-06
Minuit parameter uncertainties:
  1  0.00186936
  2  2.4564
  3  0.0563983
  4  23.9124
  5  0.0748078
  6  1.66575
  7  72.9305
  8  45.3964
  9  2.21745
  10  0.000225588
  11  2.5928e-06
  12  17.6531
  13  2.86952
  14  0.000808194
  15  1.21131e-06
  16  1.13807
  17  26.3775
  18  1.20841e-07
  19  0.00037203
  20  0.00271346
  21  0.350445
  22  0.000694677
  23  3.66502
  24  0.00293219
  25  0.200315
  26  0.194808
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.950e+01  2.870e+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:  8.905e-01  1.948e-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.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 527.06
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.05e-06 +/- 1.02e-07
Energy Flux (Fixed Index): 4.96e-04 +/- 4.83e-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) = 6371.96863437
delta logL = 0.385553547449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6371.94041689
delta logL = 0.413771029344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.190       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0049       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85901       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=   6371.940     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.191        3.0475        .18230E-02    .32984E-04
   2  alpha         2.0049        .92960E-01    .60773E-01    .18165E-04
   3  Normalizat    1.1393        .19641        .62576E-01    .84152E-05
   4  Prefactor     .85903        .19293        .71088E-01    .16356E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 30.1908
  alpha      = 2.00486
  Normalizat = 1.13933
  Prefactor  = 0.859025
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.940     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.191        2.9349        .39472E-04   -1.4608    
   2  alpha         2.0049        .90254E-01    .26806E-03   -.19937    
   3  Normalizat    1.1393        .23533        .27679E-03   -.88499    
   4  Prefactor     .85903        .22993        .31453E-03   -.97588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5205e-13
Minuit parameter uncertainties:
  1  2.93491
  2  0.0902741
  3  0.23555
  4  0.230187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985650': 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) = 6371.94041674
delta logL = 0.413771182188

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  3.019e+01  2.935e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.005e+00  9.027e-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:  8.590e-01  2.302e-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.139e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 521.60
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.00 +/- 0.09
Photon Flux (Free Index): 1.01e-06 +/- 1.09e-07
Energy Flux (Free Index): 5.45e-04 +/- 7.87e-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/985650/cmap_HighResolution_605318401_605577601_4FGL_J0348.5-2749_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-06', energy_flux2='5.45e-04', photon_flux_error='1.02e-07', dlogl='4.14e-01', energy_flux='4.96e-04', photon_flux2='1.01e-06', job_status='DONE', time_completed='2021-08-19 13:39:08.341479', photon_index_error2='0.09', photon_index2='2.00', ts='527.06', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='7.87e-05', EG='1.09', time_epoch_completed='1629405548.34', return_code='0', job_id='985650', GAL2='0.86', EG2='1.14', return_code2='0', energy_flux_error='4.83e-05', photon_flux_error2='1.09e-07', ts2='521.60', photon_index='2.09' WHERE bin_id='1412' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:39:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 985650: <4FGL_J0348.5-2749_daily_bin1412> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1412> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 13:25:50 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:25:52 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:25:52 2021
Terminated at Thu Aug 19 13:39:09 2021
Results reported at Thu Aug 19 13:39:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1412 57.1417 -27.8303 605318401 605577601 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 :                                   724.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            799 sec.

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

