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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1114
RA = 57.1417, Dec = -27.8303
tmin = 528076801, tmax = 528336001
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='985201', job_status='RUN', time_executed='2021-08-19 13:27:17.407658', time_epoch_executed='1629404837.41' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985201

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985201/ft1_4FGL_J0348.5-2749_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985201/ft2_4FGL_J0348.5-2749_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985201/ft1_4FGL_J0348.5-2749_daily_bin1114.fits outfile=/scratch/kocevski/985201/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1114.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=528076801.0 tmax=528336001.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 7.47
user 3.23
sys 4.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985201/ft1_filtered_4FGL_J0348.5-2749_daily_bin1114.fits" evtable="EVENTS" scfile=/scratch/kocevski/985201/ft2_4FGL_J0348.5-2749_daily_bin1114.fits sctable="SC_DATA" outfile=/scratch/kocevski/985201/ltcube_528076801_528336001_4FGL_J0348.5-2749_daily_bin1114.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/985201/ft2_4FGL_J0348.5-2749_daily_bin1114.fits
.....................!
real 17.40
user 12.50
sys 4.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985201/ft1_filtered_4FGL_J0348.5-2749_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/985201/ft2_4FGL_J0348.5-2749_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/985201/ltcube_528076801_528336001_4FGL_J0348.5-2749_daily_bin1114.fits outfile=/scratch/kocevski/985201/expmap_528076801_528336001_4FGL_J0348.5-2749_daily_bin1114.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/985201/ltcube_528076801_528336001_4FGL_J0348.5-2749_daily_bin1114.fits
.....................!
real 195.09
user 185.12
sys 9.54

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/985201/ft1_filtered_4FGL_J0348.5-2749_daily_bin1114.fits scfile=/scratch/kocevski/985201/ft2_4FGL_J0348.5-2749_daily_bin1114.fits outfile=/scratch/kocevski/985201/cmap_528076801_528336001_4FGL_J0348.5-2749_daily_bin1114.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 4.42
user 0.37
sys 4.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985201/ft1_filtered_4FGL_J0348.5-2749_daily_bin1114.fits scfile=/scratch/kocevski/985201/ft2_4FGL_J0348.5-2749_daily_bin1114.fits outfile=/scratch/kocevski/985201/cmap_HighResolution_528076801_528336001_4FGL_J0348.5-2749_daily_bin1114.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 4.42
user 0.37
sys 4.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985201/ft1_filtered_4FGL_J0348.5-2749_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/985201/ft2_4FGL_J0348.5-2749_daily_bin1114.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985201/Model_4FGL_J0348.5-2749_daily_bin1114.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/985201/ft1_filtered_4FGL_J0348.5-2749_daily_bin1114.fits.....................!
real 142.64
user 135.34
sys 6.54

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    66.276       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10669E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6034       1.0000         .10000E-03   10000.    
     8 'Prefactor '    47.174       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4242       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53207E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2574       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10270E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.352       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6926       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.131       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0567       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89300       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=   6111.340     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3579 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.359        .41879E-06** at limit **
   2  norm          .10000E-03    1.1140       -.32622E-08** at limit **
   3  Prefactor     66.506        160.14        .24809E-03    .25055E-05
   4  Prefactor     .10000E-03    14.038       -.10983E-05** at limit **
   5  Prefactor     .10000E-03    7.5659        .20341E-07** at limit **
   6  norm          .10000E-03    1.0396        .49828E-07** at limit **
   7  Prefactor     3.6001        125.17        .79540E-05   -.14858E-04
   8  Prefactor     47.171        46.564       -.81658E-06   -.16445E-04
   9  Prefactor     2.4251        2.0220       -.65637E-06   -.81818E-03
  10  Prefactor     .10000E-03    1.3628        .18235E-07** at limit **
  11  Prefactor     .10000E-03    1.6653        .12001E-06** at limit **
  12  Prefactor     .10178E-03    11.295        .27477E-05** at limit **
  13  norm          1.2575        .77416        .12146E-06   -.51037E-03
  14  Prefactor     .10000E-03    17.755       -.94699E-07** at limit **
  15  norm          .10000E-03    .55560        .13278E-06** at limit **
  16  Prefactor     .10000E-03    102.87        .83581E-06** at limit **
  17  Prefactor     29.351        25.498        .15225E-05   -.27810E-04
  18  Prefactor     1.6930        1.6708        .24764E-06    .12494E-04
  19  norm          .10000E-03    3.5277        .40785E-07** at limit **
  20  Prefactor     .10000E-03    8.0054        .10123E-06** at limit **
  21  norm          .10000E-03    .11128        .33148E-07** at limit **
  22  norm          .10000E-03    2.0381       -.16243E-07** at limit **
  23  Prefactor     .10000E-03    1.0672        .56081E-07** at limit **
  24  Prefactor     35.138        20.235        .48591E-05   -.81663E-04
  25  Normalizat    1.0565        .16043       -.39765E-05   -.36119E-03
  26  Prefactor     .89320        .16616       -.22755E-05   -.39355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 66.5056
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.60008
  Prefactor  = 47.1705
  Prefactor  = 2.4251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101777
  norm       = 1.2575
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3505
  Prefactor  = 1.69295
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.1378
  Normalizat = 1.05654
  Prefactor  = 0.893201
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.340     FROM HESSE     STATUS=OK           460 CALLS     4039 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.1208        .80573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     66.506        160.09        .24650E-03   -1.4075    
   4  Prefactor     .10000E-03    14.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.5665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.0536        .77827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6001        124.40        .21286E-03   -1.5328    
   8  Prefactor     47.171        46.624        .58380E-04   -1.4333    
   9  Prefactor     2.4251        1.9921        .96271E-04   -1.5397    
  10  Prefactor     .10000E-03    1.3732        .89020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8121        .19389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10178E-03    17.026        .73170E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2575        .76956        .50815E-04   -1.5484    
  14  Prefactor     .10000E-03    17.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.0717        .11203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    103.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.351        25.477        .73951E-04   -1.4624    
  18  Prefactor     1.6930        1.6724        .96745E-04   -1.5448    
  19  norm          .10000E-03    3.5310        .14340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.0246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .14685        .50288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0432        .10898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.0750        .78856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     35.138        20.195        .67612E-04   -1.4522    
  25  Normalizat    1.0565        .18368        .22178E-03   -.91160    
  26  Prefactor     .89320        .19078        .25145E-03   -.96379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6583e-10
Minuit parameter uncertainties:
  1  0.000161663
  2  3.80622e-07
  3  161.14
  4  0.000420869
  5  5.22876e-06
  6  5.12378e-06
  7  42.4207
  8  46.6602
  9  1.99212
  10  1.981e-06
  11  2.00592e-05
  12  0.0110031
  13  0.769569
  14  9.10082e-06
  15  1.37236e-05
  16  0.00026585
  17  25.4864
  18  1.67247
  19  7.59298e-06
  20  2.94512e-05
  21  1.27256e-06
  22  2.3173e-06
  23  5.78724e-06
  24  20.1986
  25  0.183789
  26  0.190926
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.257e+00  7.696e-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:  8.932e-01  1.909e-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.057e+00  1.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.32
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.29e-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) = 6111.05065087
delta logL = 0.289813529043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6111.04176122
delta logL = 0.298703175469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1403       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5434       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91367       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=   6111.042     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      257 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1403        10.121        .96451E-02    .31278E-03
   2  alpha         2.5435        3.7050        .34181        .36174E-04
   3  Normalizat    1.0266        .60340E-01    .42474E-01    .65180E-05
   4  Prefactor     .91407        .58933E-01    .45179E-01    .11235E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14034
  alpha      = 2.54355
  Normalizat = 1.0266
  Prefactor  = 0.914068
 **********
 **   18 **HESSE 
 **********

 FCN=   6111.042     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1403        .74787        .42942E-04   -1.5494    
   2  alpha         2.5435        .62585        .12910E-01    .17420E-01
   3  Normalizat    1.0266        .18390        .22451E-03   -.92145    
   4  Prefactor     .91407        .19036        .24888E-03   -.95651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36528e-09
Minuit parameter uncertainties:
  1  0.747878
  2  0.632585
  3  0.184016
  4  0.190495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985201': 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) = 6111.0417586
delta logL = 0.298705798741

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.140e+00  7.479e-01  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.544e+00  6.326e-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:  9.141e-01  1.905e-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.027e+00  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.96
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.54 +/- 0.63
Photon Flux (Free Index): 6.45e-08 +/- 4.08e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.01e-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/985201/cmap_HighResolution_528076801_528336001_4FGL_J0348.5-2749_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='1.76e-05', photon_flux_error='2.75e-08', dlogl='2.99e-01', energy_flux='2.12e-05', photon_flux2='6.45e-08', job_status='DONE', time_completed='2021-08-19 13:40:27.309093', photon_index_error2='0.63', photon_index2='2.54', ts='7.32', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.01e-05', EG='1.06', time_epoch_completed='1629405627.31', return_code='0', job_id='985201', GAL2='0.91', EG2='1.03', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='4.08e-08', ts2='7.96', photon_index='2.09' WHERE bin_id='1114' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:40:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 985201: <4FGL_J0348.5-2749_daily_bin1114> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1114 57.1417 -27.8303 528076801 528336001 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 :                                   846.35 sec.
    Max Memory :                                 1223 MB
    Average Memory :                             298.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

