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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1594
RA = 57.1417, Dec = -27.8303
tmin = 652492801, tmax = 652752001
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='711572', job_status='RUN', time_executed='2021-09-08 00:08:09.305070', time_epoch_executed='1631084889.31' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711572/ft1_4FGL_J0348.5-2749_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711572/ft2_4FGL_J0348.5-2749_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711572/ft1_4FGL_J0348.5-2749_daily_bin1594.fits outfile=/scratch/kocevski/711572/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1594.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=652492801.0 tmax=652752001.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 5.25
user 4.25
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711572/ft2_4FGL_J0348.5-2749_daily_bin1594.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/711572/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1594.fits evtable="EVENTS" outfile="/scratch/kocevski/711572/ft1_filtered_4FGL_J0348.5-2749_daily_bin1594.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.99
user 0.36
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711572/ft1_filtered_4FGL_J0348.5-2749_daily_bin1594.fits" evtable="EVENTS" scfile=/scratch/kocevski/711572/ft2_4FGL_J0348.5-2749_daily_bin1594.fits sctable="SC_DATA" outfile=/scratch/kocevski/711572/ltcube_652492801_652752001_4FGL_J0348.5-2749_daily_bin1594.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/711572/ft2_4FGL_J0348.5-2749_daily_bin1594.fits
.....................!
real 17.83
user 17.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711572/ft1_filtered_4FGL_J0348.5-2749_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/711572/ft2_4FGL_J0348.5-2749_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/711572/ltcube_652492801_652752001_4FGL_J0348.5-2749_daily_bin1594.fits outfile=/scratch/kocevski/711572/expmap_652492801_652752001_4FGL_J0348.5-2749_daily_bin1594.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/711572/ltcube_652492801_652752001_4FGL_J0348.5-2749_daily_bin1594.fits
.....................!
real 199.00
user 189.41
sys 6.03

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/711572/ft1_filtered_4FGL_J0348.5-2749_daily_bin1594.fits scfile=/scratch/kocevski/711572/ft2_4FGL_J0348.5-2749_daily_bin1594.fits outfile=/scratch/kocevski/711572/cmap_652492801_652752001_4FGL_J0348.5-2749_daily_bin1594.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711572/ft1_filtered_4FGL_J0348.5-2749_daily_bin1594.fits scfile=/scratch/kocevski/711572/ft2_4FGL_J0348.5-2749_daily_bin1594.fits outfile=/scratch/kocevski/711572/cmap_HighResolution_652492801_652752001_4FGL_J0348.5-2749_daily_bin1594.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.61
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711572/ft1_filtered_4FGL_J0348.5-2749_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/711572/ft2_4FGL_J0348.5-2749_daily_bin1594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711572/Model_4FGL_J0348.5-2749_daily_bin1594.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/711572/ft1_filtered_4FGL_J0348.5-2749_daily_bin1594.fits.....................!
real 162.25
user 158.80
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8525       1.0000         .10000E-03   10000.    
     2 'norm      '    6.1191       1.0000         .10000E-03   10000.    
     3 'Prefactor '    167.02       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.1972       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.645       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .55442       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.5754       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7139       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0635       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9042       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1207       1.0000         .10000E-03   10000.    
    22 'norm      '    10.863       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .47597       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3982       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=   7430.068     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3105 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8516        12.814       -.30703E-06   -.54561E-04
   2  norm          6.1191        3.1045        .27533E-06    .96921E-04
   3  Prefactor     166.93        145.74       -.66009E-04    .27816E-05
   4  Prefactor     .10000E-03    8.2787       -.12465E-05** at limit **
   5  Prefactor     .10000E-03    38.392        .33251E-04** at limit **
   6  norm          5.1970        3.2630       -.94151E-06   -.26496E-03
   7  Prefactor     .10000E-03    14.046       -.38706E-05** at limit **
   8  Prefactor     13.646        19.466        .48132E-06    .35158E-05
   9  Prefactor     .55416        1.3056        .18625E-07   -.60698E-03
  10  Prefactor     .10000E-03    3.4560        .37379E-06** at limit **
  11  Prefactor     .10000E-03    1.1021        .29702E-07** at limit **
  12  Prefactor     .10000E-03    12.259        .68524E-05** at limit **
  13  norm          9.5754        1.4654       -.37851E-07   -.47532E-04
  14  Prefactor     6.7166        23.508        .37289E-05   -.37585E-06
  15  norm          .10000E-03    .47116        .16329E-07** at limit **
  16  Prefactor     .10000E-03    47.928       -.34284E-04** at limit **
  17  Prefactor     2.0616        33.770       -.45100E-05   -.11985E-03
  18  Prefactor     4.9043        2.5496       -.13991E-06   -.11551E-03
  19  norm          .10000E-03    5.3618        .31011E-06** at limit **
  20  Prefactor     .10000E-03    17.677       -.63531E-05** at limit **
  21  norm          1.1206        .33961       -.85466E-08   -.73900E-03
  22  norm          10.862        7.3118       -.87814E-06   -.16081E-02
  23  Prefactor     .10000E-03    2.3540       -.62823E-07** at limit **
  24  Prefactor     .10000E-03    3.7095       -.46983E-06** at limit **
  25  Normalizat    .47608        .16085        .11674E-05   -.78570E-04
  26  Prefactor     1.3981        .16722        .12629E-05   -.14805E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.85159
  norm       = 6.11913
  Prefactor  = 166.933
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.19704
  Prefactor  = 0.0001
  Prefactor  = 13.6464
  Prefactor  = 0.554161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.57537
  Prefactor  = 6.71657
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.06163
  Prefactor  = 4.90429
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12065
  norm       = 10.8623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.476077
  Prefactor  = 1.3981
 **********
 **   18 **HESSE 
 **********

 FCN=   7430.068     FROM HESSE     STATUS=OK           458 CALLS     3563 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8516        12.807        .13472E-03   -1.5113    
   2  norm          6.1191        3.1051        .10476E-03   -1.5213    
   3  Prefactor     166.93        145.30        .15607E-03   -1.3117    
   4  Prefactor     .10000E-03    8.3257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.1970        3.2609        .11923E-03   -1.5252    
   7  Prefactor     .10000E-03    14.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.646        19.458        .10843E-03   -1.4969    
   9  Prefactor     .55416        1.0688        .14287E-02   -1.5559    
  10  Prefactor     .10000E-03    3.5673        .31193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.1128        .88300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.5754        1.4648        .38383E-04   -1.5089    
  14  Prefactor     6.7166        23.235        .15486E-03   -1.5190    
  15  norm          .10000E-03    .73808        .11323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    47.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0616        33.155        .28765E-03   -1.5421    
  18  Prefactor     4.9043        2.5360        .94023E-04   -1.5265    
  19  norm          .10000E-03    5.3828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1206        .33972        .25772E-04   -1.5496    
  22  norm          10.862        7.3561        .60780E-03   -1.5049    
  23  Prefactor     .10000E-03    2.4131        .25806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.7112        .16213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .47608        .17823        .33984E-03   -1.1354    
  26  Prefactor     1.3981        .18845        .22566E-03   -.80435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5315e-09
Minuit parameter uncertainties:
  1  12.8113
  2  3.10518
  3  145.61
  4  7.89935e-05
  5  0.000308071
  6  3.26104
  7  6.3463e-06
  8  19.4665
  9  1.06888
  10  1.77075e-06
  11  1.05051e-06
  12  1.35971e-05
  13  1.46483
  14  23.2659
  15  7.36842e-07
  16  2.45779e-05
  17  16.5457
  18  2.53608
  19  4.90797e-06
  20  8.32402e-06
  21  0.339725
  22  7.35668
  23  8.77914e-06
  24  6.96301e-08
  25  0.17844
  26  0.188539
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  9.575e+00  1.465e+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.398e+00  1.885e-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:  4.761e-01  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 157.31
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.42e-07 +/- 5.23e-08
Energy Flux (Fixed Index): 1.61e-04 +/- 2.46e-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) = 7429.83082853
delta logL = 0.236984920123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7429.77940208
delta logL = 0.288411364357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2588       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2035       1.0000          .0000       5.0000    
     3 'Normalizat'    .44352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4200       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=   7429.779     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2588        1.8478        .32928E-02   -.33297E-02
   2  alpha         2.2035        .18979        .10389        .38166E-04
   3  Normalizat    .44355        .15990        .79277E-01    .54555E-04
   4  Prefactor     1.4200        .16954        .50698E-01   -.41455E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.25876
  alpha      = 2.20347
  Normalizat = 0.44355
  Prefactor  = 1.42003
 **********
 **   18 **HESSE 
 **********

 FCN=   7429.779     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2588        1.4841        .36946E-04   -1.5099    
   2  alpha         2.2035        .15385        .45456E-03   -.11889    
   3  Normalizat    .44355        .17779        .35111E-03   -1.1511    
   4  Prefactor     1.4200        .18882        .22411E-03   -.79805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6317e-10
Minuit parameter uncertainties:
  1  1.48414
  2  0.153948
  3  0.178021
  4  0.188913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711572': 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) = 7429.77940204
delta logL = 0.288411405621

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  9.259e+00  1.484e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.203e+00  1.539e-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.420e+00  1.889e-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:  4.435e-01  1.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 156.79
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.20 +/- 0.15
Photon Flux (Free Index): 3.67e-07 +/- 6.39e-08
Energy Flux (Free Index): 1.46e-04 +/- 2.82e-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/711572/cmap_HighResolution_652492801_652752001_4FGL_J0348.5-2749_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.42e-07', energy_flux2='1.46e-04', photon_flux_error='5.23e-08', dlogl='2.88e-01', energy_flux='1.61e-04', photon_flux2='3.67e-07', job_status='DONE', time_completed='2021-09-08 00:21:43.986602', photon_index_error2='0.15', photon_index2='2.20', ts='157.31', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='2.82e-05', EG='0.48', time_epoch_completed='1631085703.99', return_code='0', job_id='711572', GAL2='1.42', EG2='0.44', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='6.39e-08', ts2='156.79', photon_index='2.09' WHERE bin_id='1594' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:21:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 711572: <4FGL_J0348.5-2749_daily_bin1594> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1594> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 00:05:58 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:06:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:06:16 2021
Terminated at Wed Sep  8 00:21:44 2021
Results reported at Wed Sep  8 00:21:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1594 57.1417 -27.8303 652492801 652752001 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 :                                   804.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            946 sec.

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

