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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1007
RA = 57.1417, Dec = -27.8303
tmin = 500342401, tmax = 500601601
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='983913', job_status='RUN', time_executed='2021-08-19 13:22:13.521853', time_epoch_executed='1629404533.52' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983913

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983913/ft1_4FGL_J0348.5-2749_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983913/ft2_4FGL_J0348.5-2749_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983913/ft1_4FGL_J0348.5-2749_daily_bin1007.fits outfile=/scratch/kocevski/983913/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1007.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=500342401.0 tmax=500601601.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 4.62
user 4.38
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983913/ft1_filtered_4FGL_J0348.5-2749_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/983913/ft2_4FGL_J0348.5-2749_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/983913/ltcube_500342401_500601601_4FGL_J0348.5-2749_daily_bin1007.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/983913/ft2_4FGL_J0348.5-2749_daily_bin1007.fits
.....................!
real 11.95
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983913/ft1_filtered_4FGL_J0348.5-2749_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/983913/ft2_4FGL_J0348.5-2749_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/983913/ltcube_500342401_500601601_4FGL_J0348.5-2749_daily_bin1007.fits outfile=/scratch/kocevski/983913/expmap_500342401_500601601_4FGL_J0348.5-2749_daily_bin1007.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/983913/ltcube_500342401_500601601_4FGL_J0348.5-2749_daily_bin1007.fits
.....................!
real 190.41
user 185.41
sys 4.66

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/983913/ft1_filtered_4FGL_J0348.5-2749_daily_bin1007.fits scfile=/scratch/kocevski/983913/ft2_4FGL_J0348.5-2749_daily_bin1007.fits outfile=/scratch/kocevski/983913/cmap_500342401_500601601_4FGL_J0348.5-2749_daily_bin1007.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983913/ft1_filtered_4FGL_J0348.5-2749_daily_bin1007.fits scfile=/scratch/kocevski/983913/ft2_4FGL_J0348.5-2749_daily_bin1007.fits outfile=/scratch/kocevski/983913/cmap_HighResolution_500342401_500601601_4FGL_J0348.5-2749_daily_bin1007.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983913/ft1_filtered_4FGL_J0348.5-2749_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/983913/ft2_4FGL_J0348.5-2749_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983913/Model_4FGL_J0348.5-2749_daily_bin1007.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/983913/ft1_filtered_4FGL_J0348.5-2749_daily_bin1007.fits.....................!
real 109.12
user 107.74
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8348       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6792       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.9894       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14425E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8713       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1608       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18387E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4679       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.737       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7121       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .47218       1.0000         .10000E-03   10000.    
    22 'norm      '    7.4054       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.283       1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.978       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89832       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0613       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=   4942.765     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3077 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8328        53.830        .12748E-05    .44488E-04
   2  norm          1.6794        2.7497        .12126E-06    .46591E-04
   3  Prefactor     .10000E-03    79.903        .36492E-06** at limit **
   4  Prefactor     .10000E-03    12.399        .73216E-06** at limit **
   5  Prefactor     .10000E-03    16.224       -.61042E-06** at limit **
   6  norm          7.9894        3.9835        .15570E-06    .45056E-03
   7  Prefactor     .10000E-03    103.58       -.19238E-05** at limit **
   8  Prefactor     .10000E-03    27.912        .48792E-06** at limit **
   9  Prefactor     2.8712        2.2467       -.49254E-07   -.18881E-03
  10  Prefactor     .10000E-03    3.6935        .71579E-06** at limit **
  11  Prefactor     6.1554        5.1962       -.61678E-06   -.62520E-03
  12  Prefactor     .10021E-03    10.056       -.28990E-05** at limit **
  13  norm          1.4670        .83579       -.26761E-06   -.14139E-02
  14  Prefactor     .10000E-03    27.521        .89394E-06** at limit **
  15  norm          .10000E-03    .37776        .11965E-06** at limit **
  16  Prefactor     63.395        132.67       -.25475E-05    .22419E-05
  17  Prefactor     .10000E-03    13.272        .42031E-06** at limit **
  18  Prefactor     5.7124        3.2118       -.21048E-08   -.15578E-03
  19  norm          .10000E-03    4.1014        .68050E-07** at limit **
  20  Prefactor     .10000E-03    36.677        .11771E-05** at limit **
  21  norm          .47200        .31530       -.88741E-07    .59131E-03
  22  norm          7.4055        6.1519        .11482E-06    .13520E-03
  23  Prefactor     11.282        5.5750       -.14138E-06   -.53191E-04
  24  Prefactor     35.977        23.016       -.56875E-07    .65943E-04
  25  Normalizat    .89882        .22796        .92939E-05    .11866E-03
  26  Prefactor     1.0608        .22485       -.81003E-05    .11297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.83276
  norm       = 1.67942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.98936
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.8712
  Prefactor  = 0.0001
  Prefactor  = 6.15544
  Prefactor  = 0.000100207
  norm       = 1.46702
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.3952
  Prefactor  = 0.0001
  Prefactor  = 5.71239
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.471997
  norm       = 7.40548
  Prefactor  = 11.2817
  Prefactor  = 35.977
  Normalizat = 0.89882
  Prefactor  = 1.06079
 **********
 **   18 **HESSE 
 **********

 FCN=   4942.765     FROM HESSE     STATUS=OK           454 CALLS     3531 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8328        54.341        .30805E-03   -1.5437    
   2  norm          1.6794        2.7182        .14466E-03   -1.5449    
   3  Prefactor     .10000E-03    79.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.9894        3.9835        .96207E-04   -1.5143    
   7  Prefactor     .10000E-03    104.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8712        2.2403        .88778E-04   -1.5369    
  10  Prefactor     .10000E-03    6.2720        .24161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1554        4.9220        .13010E-03   -1.5212    
  12  Prefactor     .10021E-03    55.142        .39452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4670        .84279        .46709E-04   -1.5466    
  14  Prefactor     .10000E-03    27.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .38225        .42205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     63.395        132.98        .25133E-03   -1.4114    
  17  Prefactor     .10000E-03    13.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7124        3.2094        .90148E-04   -1.5230    
  19  norm          .10000E-03    4.1038        .13906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .47200        .31057        .30212E-04   -1.5571    
  22  norm          7.4055        6.1496        .14738E-03   -1.5164    
  23  Prefactor     11.282        5.5722        .11165E-03   -1.5036    
  24  Prefactor     35.977        22.997        .66814E-04   -1.4508    
  25  Normalizat    .89882        .22753        .25849E-03   -.96502    
  26  Prefactor     1.0608        .22606        .25182E-03   -.90730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04349e-09
Minuit parameter uncertainties:
  1  19.9789
  2  2.71843
  3  0.000170983
  4  5.94746e-05
  5  8.48183e-05
  6  3.98366
  7  0.000605379
  8  9.57977e-05
  9  2.24032
  10  4.45835e-05
  11  4.92236
  12  0.00676917
  13  0.842799
  14  0.00014894
  15  2.4868e-06
  16  133.612
  17  4.59012e-05
  18  3.20948
  19  4.28293e-06
  20  0.000178042
  21  0.310572
  22  6.15015
  23  5.57246
  24  23.0031
  25  0.227771
  26  0.22626
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.467e+00  8.428e-01  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.061e+00  2.263e-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.988e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.79
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 5.24e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.42e-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) = 4941.4498275
delta logL = 1.31493751314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4941.42791396
delta logL = 1.33685105131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57092       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1349       1.0000          .0000       5.0000    
     3 'Normalizat'    .94391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0399       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=   4941.428     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      218 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57087        .46626        .80264E-02   -.37534E-03
   2  alpha         1.1349        .36098        .22669       -.35101E-04
   3  Normalizat    .94389        .18688        .45460E-01    .10208E-04
   4  Prefactor     1.0399        .19682        .40541E-01    .64396E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.570869
  alpha      = 1.13491
  Normalizat = 0.943889
  Prefactor  = 1.03992
 **********
 **   18 **HESSE 
 **********

 FCN=   4941.428     FROM HESSE     STATUS=OK            35 CALLS      253 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57087        .70635        .34222E-03   -1.5557    
   2  alpha         1.1349        .54736        .96124E-02   -.57763    
   3  Normalizat    .94389        .21214        .25295E-03   -.94935    
   4  Prefactor     1.0399        .22337        .25401E-03   -.91410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41462e-09
Minuit parameter uncertainties:
  1  0.706357
  2  0.553795
  3  0.21233
  4  0.223568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983913': 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) = 4941.42791395
delta logL = 1.33685106285

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  5.709e-01  7.064e-01  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.135e+00  5.538e-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.040e+00  2.236e-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.439e-01  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.43
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.13 +/- 0.55
Photon Flux (Free Index): 1.54e-08 +/- 1.50e-08
Energy Flux (Free Index): 7.61e-05 +/- 8.37e-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/983913/cmap_HighResolution_500342401_500601601_4FGL_J0348.5-2749_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.24e-08', energy_flux2='7.61e-05', photon_flux_error='3.01e-08', dlogl='1.34e+00', energy_flux='2.47e-05', photon_flux2='1.54e-08', job_status='DONE', time_completed='2021-08-19 13:32:34.438563', photon_index_error2='0.55', photon_index2='1.13', ts='16.79', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='8.37e-05', EG='0.90', time_epoch_completed='1629405154.44', return_code='0', job_id='983913', GAL2='1.04', EG2='0.94', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='1.50e-08', ts2='19.43', photon_index='2.09' WHERE bin_id='1007' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:32:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 983913: <4FGL_J0348.5-2749_daily_bin1007> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1007> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 13:20:48 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:20:49 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:20:49 2021
Terminated at Thu Aug 19 13:32:35 2021
Results reported at Thu Aug 19 13:32:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1007 57.1417 -27.8303 500342401 500601601 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 :                                   617.45 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             330.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

