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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1592
RA = 57.1417, Dec = -27.8303
tmin = 651974401, tmax = 652233601
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='924001', job_status='RUN', time_executed='2021-09-02 00:27:57.460019', time_epoch_executed='1630567677.46' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924001

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924001/ft1_4FGL_J0348.5-2749_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924001/ft2_4FGL_J0348.5-2749_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924001/ft1_4FGL_J0348.5-2749_daily_bin1592.fits outfile=/scratch/kocevski/924001/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1592.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=651974401.0 tmax=652233601.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.42
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924001/ft1_filtered_4FGL_J0348.5-2749_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/924001/ft2_4FGL_J0348.5-2749_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/924001/ltcube_651974401_652233601_4FGL_J0348.5-2749_daily_bin1592.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/924001/ft2_4FGL_J0348.5-2749_daily_bin1592.fits
.....................!
real 15.85
user 15.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924001/ft1_filtered_4FGL_J0348.5-2749_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/924001/ft2_4FGL_J0348.5-2749_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/924001/ltcube_651974401_652233601_4FGL_J0348.5-2749_daily_bin1592.fits outfile=/scratch/kocevski/924001/expmap_651974401_652233601_4FGL_J0348.5-2749_daily_bin1592.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/924001/ltcube_651974401_652233601_4FGL_J0348.5-2749_daily_bin1592.fits
.....................!
real 191.43
user 186.48
sys 4.26

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/924001/ft1_filtered_4FGL_J0348.5-2749_daily_bin1592.fits scfile=/scratch/kocevski/924001/ft2_4FGL_J0348.5-2749_daily_bin1592.fits outfile=/scratch/kocevski/924001/cmap_651974401_652233601_4FGL_J0348.5-2749_daily_bin1592.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924001/ft1_filtered_4FGL_J0348.5-2749_daily_bin1592.fits scfile=/scratch/kocevski/924001/ft2_4FGL_J0348.5-2749_daily_bin1592.fits outfile=/scratch/kocevski/924001/cmap_HighResolution_651974401_652233601_4FGL_J0348.5-2749_daily_bin1592.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.55
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/924001/ft1_filtered_4FGL_J0348.5-2749_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/924001/ft2_4FGL_J0348.5-2749_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/924001/Model_4FGL_J0348.5-2749_daily_bin1592.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/924001/ft1_filtered_4FGL_J0348.5-2749_daily_bin1592.fits.....................!
real 166.42
user 164.33
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0109       1.0000         .10000E-03   10000.    
     3 'Prefactor '    83.465       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4027       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.934       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.861       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .58712E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.712       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8423       1.0000         .10000E-03   10000.    
    19 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1196       1.0000         .10000E-03   10000.    
    21 'norm      '    .56114       1.0000         .10000E-03   10000.    
    22 'norm      '    8.6384       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10684E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .69797       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0830       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=   7705.423     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     2565 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1207       -.43183E-06** at limit **
   2  norm          3.0110        2.9411       -.12086E-05    .36545E-04
   3  Prefactor     83.466        1.0972        .22942E-06   -.25923E-02
   4  Prefactor     6.4032        1.0038        .25430E-07    .23968E-04
   5  Prefactor     17.933        1.0190       -.18518E-06    .34406E-03
   6  norm          .10000E-03    1.3191        .13469E-06** at limit **
   7  Prefactor     .10000E-03    6.8717        .10336E-04** at limit **
   8  Prefactor     59.862        1.0004        .15872E-07   -.10437E-03
   9  Prefactor     .10000E-03    .92481        .17052E-06** at limit **
  10  Prefactor     .64046E-01    .64547       -.35814E-05    .36815E-03
  11  Prefactor     .10000E-03    1.3470       -.35978E-07** at limit **
  12  Prefactor     .10000E-03    6.9488       -.12688E-04** at limit **
  13  norm          11.712        1.4823        .48668E-07    .29918E-03
  14  Prefactor     .10000E-03    17.166        .28737E-04** at limit **
  15  norm          .10000E-03    .50415        .38915E-06** at limit **
  16  Prefactor     .10000E-03    37.640       -.13725E-04** at limit **
  17  Prefactor     .10001E-03    3.0110        .42296E-05** at limit **
  18  Prefactor     2.8427        2.3107       -.30251E-07    .22555E-04
  19  norm          .10000E-03    6.2753       -.94108E-05** at limit **
  20  Prefactor     5.1153        1.2484       -.13864E-05    .71331E-03
  21  norm          .56114        .27105        .23446E-07   -.53261E-03
  22  norm          8.6385        1.0031       -.43667E-07   -.20471E-06
  23  Prefactor     .10000E-03    1.4956        .99483E-07** at limit **
  24  Prefactor     .10000E-03    6.7167       -.11873E-04** at limit **
  25  Normalizat    .69803        .16551        .20982E-05    .26143E-04
  26  Prefactor     1.0830        .17282       -.13539E-05    .29978E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.011
  Prefactor  = 83.4664
  Prefactor  = 6.40323
  Prefactor  = 17.9326
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 59.8615
  Prefactor  = 0.0001
  Prefactor  = 0.0640463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7117
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 2.84266
  norm       = 0.000100002
  Prefactor  = 5.11535
  norm       = 0.561143
  norm       = 8.6385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.698025
  Prefactor  = 1.083
 **********
 **   18 **HESSE 
 **********

 FCN=   7705.423     FROM HESSE     STATUS=OK           516 CALLS     3081 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0110        2.9518        .58476E-02   -1.5361    
   3  Prefactor     83.466        91.517        .10992E-02   -1.3878    
   4  Prefactor     6.4032        14.009        .39655E-02   -1.5202    
   5  Prefactor     17.933        18.595        .23644E-02   -1.4861    
   6  norm          .10000E-03    1.2937        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4175        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.862        34.226        .12964E-02   -1.4159    
   9  Prefactor     .10000E-03    .88183        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .64046E-01    1.5269        .64586E-01   -1.5657    
  11  Prefactor     .10000E-03    1.3331        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.712        1.5126        .29264E-02   -1.5023    
  14  Prefactor     .10000E-03    17.269        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .48431        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.858        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    7.7986        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8427        2.3323        .60296E-02   -1.5371    
  19  norm          .10000E-03    7.3866        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1153        18.909        .44422E-02   -1.5256    
  21  norm          .56114        .28152        .68250E-02   -1.5558    
  22  norm          8.6385        6.2578        .34096E-02   -1.5120    
  23  Prefactor     .10000E-03    1.4367        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.482        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .69803        .14730        .61352E-01   -1.0397    
  26  Prefactor     1.0830        .15199        .38269E-01   -.90012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6062e-08
Minuit parameter uncertainties:
  1  1.00018e-05
  2  2.95197
  3  91.6722
  4  14.0165
  5  18.6011
  6  3.46876e-06
  7  0.000252413
  8  34.2372
  9  5.25022e-06
  10  0.62496
  11  3.0389e-06
  12  1.61435e-06
  13  1.51263
  14  0.000165729
  15  1.15283e-07
  16  0.000136882
  17  0.000464656
  18  2.33234
  19  0.000251008
  20  18.9315
  21  0.281525
  22  6.25825
  23  6.67666e-06
  24  0.000123389
  25  0.147385
  26  0.152052
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.171e+01  1.513e+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.083e+00  1.521e-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:  6.980e-01  1.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 266.21
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.18e-07 +/- 5.40e-08
Energy Flux (Fixed Index): 1.97e-04 +/- 2.55e-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) = 7705.42248167
delta logL = 0.000417106376517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7705.42240893
delta logL = 0.000489843712785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.725       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0838       1.0000          .0000       5.0000    
     3 'Normalizat'    .69910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0823       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=   7705.422     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      199 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.725        1.7131         .0000       -.14162E-03
   2  alpha         2.0838        .13698         .0000        .97574E-06
   3  Normalizat    .69910        .14404         .0000        .39365E-04
   4  Prefactor     1.0823        .15126         .0000        .33344E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7249
  alpha      = 2.08384
  Normalizat = 0.6991
  Prefactor  = 1.08228
 **********
 **   18 **HESSE 
 **********

 FCN=   7705.422     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.725        1.5418        .36125E-04   -1.5023    
   2  alpha         2.0838        .12443        .39614E-03   -.16724    
   3  Normalizat    .69910        .16569        .27122E-03   -1.0393    
   4  Prefactor     1.0823        .17368        .23734E-03   -.90035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45738e-12
Minuit parameter uncertainties:
  1  1.54178
  2  0.124481
  3  0.165806
  4  0.173771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924001': 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) = 7705.42240893
delta logL = 0.000489843712785

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.172e+01  1.542e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.084e+00  1.245e-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.082e+00  1.738e-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:  6.991e-01  1.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 264.43
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.08 +/- 0.12
Photon Flux (Free Index): 4.17e-07 +/- 6.08e-08
Energy Flux (Free Index): 1.98e-04 +/- 3.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/924001/cmap_HighResolution_651974401_652233601_4FGL_J0348.5-2749_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.18e-07', energy_flux2='1.98e-04', photon_flux_error='5.40e-08', dlogl='4.90e-04', energy_flux='1.97e-04', photon_flux2='4.17e-07', job_status='DONE', time_completed='2021-09-02 00:40:36.427702', photon_index_error2='0.12', photon_index2='2.08', ts='266.21', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='3.57e-05', EG='0.70', time_epoch_completed='1630568436.43', return_code='0', job_id='924001', GAL2='1.08', EG2='0.70', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='6.08e-08', ts2='264.43', photon_index='2.09' WHERE bin_id='1592' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 00:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 924001: <4FGL_J0348.5-2749_daily_bin1592> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1592> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  2 00:25:40 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 00:27:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 00:27:14 2021
Terminated at Thu Sep  2 00:40:37 2021
Results reported at Thu Sep  2 00:40:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1592 57.1417 -27.8303 651974401 652233601 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 :                                   760.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             372.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            897 sec.

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

