/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 7 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 = 7480
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0348.5-2749_daily_bin53
RA = 57.1417, Dec = -27.8303
tmin = 253065601, tmax = 253324801
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='977723', job_status='RUN', time_executed='2021-08-19 13:01:09.437531', time_epoch_executed='1629403269.44' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977723

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977723/ft1_4FGL_J0348.5-2749_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977723/ft2_4FGL_J0348.5-2749_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977723/ft1_4FGL_J0348.5-2749_daily_bin53.fits outfile=/scratch/kocevski/977723/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin53.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=253065601.0 tmax=253324801.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 2.16
user 1.22
sys 0.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/977723/ft2_4FGL_J0348.5-2749_daily_bin53.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/977723/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin53.fits evtable="EVENTS" outfile="/scratch/kocevski/977723/ft1_filtered_4FGL_J0348.5-2749_daily_bin53.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.30
user 0.33
sys 0.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/977723/ft1_filtered_4FGL_J0348.5-2749_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/977723/ft2_4FGL_J0348.5-2749_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/977723/ltcube_253065601_253324801_4FGL_J0348.5-2749_daily_bin53.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/977723/ft2_4FGL_J0348.5-2749_daily_bin53.fits
.....................!
real 13.90
user 12.71
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977723/ft1_filtered_4FGL_J0348.5-2749_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/977723/ft2_4FGL_J0348.5-2749_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/977723/ltcube_253065601_253324801_4FGL_J0348.5-2749_daily_bin53.fits outfile=/scratch/kocevski/977723/expmap_253065601_253324801_4FGL_J0348.5-2749_daily_bin53.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/977723/ltcube_253065601_253324801_4FGL_J0348.5-2749_daily_bin53.fits
.....................!
real 192.08
user 185.99
sys 5.75

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/977723/ft1_filtered_4FGL_J0348.5-2749_daily_bin53.fits scfile=/scratch/kocevski/977723/ft2_4FGL_J0348.5-2749_daily_bin53.fits outfile=/scratch/kocevski/977723/cmap_253065601_253324801_4FGL_J0348.5-2749_daily_bin53.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=57.1417 yref=-27.8303 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.26
user 0.36
sys 0.89

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/977723/ft1_filtered_4FGL_J0348.5-2749_daily_bin53.fits scfile=/scratch/kocevski/977723/ft2_4FGL_J0348.5-2749_daily_bin53.fits outfile=/scratch/kocevski/977723/cmap_HighResolution_253065601_253324801_4FGL_J0348.5-2749_daily_bin53.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=57.1417 yref=-27.8303 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.19
user 0.36
sys 0.82

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/977723/ft1_filtered_4FGL_J0348.5-2749_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/977723/ft2_4FGL_J0348.5-2749_daily_bin53.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/977723/Model_4FGL_J0348.5-2749_daily_bin53.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/977723/ft1_filtered_4FGL_J0348.5-2749_daily_bin53.fits.....................!
real 139.81
user 137.40
sys 2.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.7134       1.0000         .10000E-03   10000.    
     3 'Prefactor '    293.19       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.422       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.4245       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0146       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .93034       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .60836       1.0000         .10000E-03   10000.    
    13 'norm      '    .28669       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.324       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9001       1.0000         .10000E-03   10000.    
    16 'Prefactor '    131.59       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10314E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7350       1.0000         .10000E-03   10000.    
    21 'norm      '    .79487E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    5.0863       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .77934       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84474       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91371       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=   6395.507     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2650 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1934       -.13582E-06** at limit **
   2  norm          3.7132        2.5482       -.15503E-06   -.18761E-04
   3  Prefactor     293.18        176.27       -.28866E-05    .16358E-04
   4  Prefactor     13.421        12.411       -.11918E-05    .28124E-04
   5  Prefactor     .10000E-03    9.4949        .13841E-05** at limit **
   6  norm          4.4252        2.8085       -.82335E-07    .10045E-03
   7  Prefactor     .10000E-03    11.144       -.27444E-05** at limit **
   8  Prefactor     .10000E-03    9.5772        .84349E-06** at limit **
   9  Prefactor     1.0148        1.7565        .18845E-06   -.56821E-03
  10  Prefactor     .10000E-03    1.2711        .11202E-06** at limit **
  11  Prefactor     .93155        2.6939       -.42431E-06   -.10657E-02
  12  Prefactor     .55643        9.0898       -.55422E-06   -.19907E-03
  13  norm          .28693        .40004       -.31025E-07   -.18873E-03
  14  Prefactor     17.324        15.603       -.74832E-06    .41529E-04
  15  norm          2.9003        1.3495        .34816E-07    .14786E-03
  16  Prefactor     131.60        82.839        .14997E-04   -.14526E-03
  17  Prefactor     .10000E-03    6.2396       -.51226E-06** at limit **
  18  Prefactor     .10000E-03    .79227        .15477E-06** at limit **
  19  norm          .10000E-03    4.3688        .29804E-06** at limit **
  20  Prefactor     7.7086        19.335       -.17137E-04    .21708E-03
  21  norm          .79677E-01    .23917       -.46977E-06   -.31842E-02
  22  norm          5.0869        6.3047        .22758E-07    .44815E-04
  23  Prefactor     .78383        2.8171       -.73080E-06   -.42162E-03
  24  Prefactor     .10000E-03    11.509       -.41501E-06** at limit **
  25  Normalizat    .84460        .15425        .14654E-05    .34091E-03
  26  Prefactor     .91392        .15661        .81492E-06    .28907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.71316
  Prefactor  = 293.181
  Prefactor  = 13.4211
  Prefactor  = 0.0001
  norm       = 4.42516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.01484
  Prefactor  = 0.0001
  Prefactor  = 0.93155
  Prefactor  = 0.556425
  norm       = 0.286934
  Prefactor  = 17.3237
  norm       = 2.9003
  Prefactor  = 131.603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.7086
  norm       = 0.0796769
  norm       = 5.08688
  Prefactor  = 0.783829
  Prefactor  = 0.0001
  Normalizat = 0.844598
  Prefactor  = 0.913922
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.507     FROM HESSE     STATUS=OK           464 CALLS     3114 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2113        .15994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7132        2.5492        .10269E-03   -1.5323    
   3  Prefactor     293.18        176.20        .11856E-03   -1.2267    
   4  Prefactor     13.421        12.412        .10933E-03   -1.4975    
   5  Prefactor     .10000E-03    9.4929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.4252        2.8070        .10309E-03   -1.5287    
   7  Prefactor     .10000E-03    11.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.5802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0148        1.5496        .12511E-02   -1.5506    
  10  Prefactor     .10000E-03    1.2849        .87734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .93155        2.6277        .20352E-03   -1.5515    
  12  Prefactor     .55643        87.670        .43338E-02   -1.5559    
  13  norm          .28693        .35902        .57724E-03   -1.5601    
  14  Prefactor     17.324        15.604        .96226E-04   -1.4875    
  15  norm          2.9003        1.3246        .57885E-04   -1.5367    
  16  Prefactor     131.60        82.315        .17551E-03   -1.3409    
  17  Prefactor     .10000E-03    6.2472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .80354        .69432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.3788        .16327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7086        19.161        .14418E-03   -1.5153    
  21  norm          .79677E-01    .25607        .59193E-03   -1.5652    
  22  norm          5.0869        6.2154        .17828E-03   -1.5257    
  23  Prefactor     .78383        4.3794        .23791E-02   -1.5531    
  24  Prefactor     .10000E-03    11.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .84460        .17798        .23122E-03   -.98435    
  26  Prefactor     .91392        .18203        .23728E-03   -.95656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36076e-09
Minuit parameter uncertainties:
  1  3.70482e-06
  2  2.54925
  3  176.522
  4  12.4145
  5  4.21716e-05
  6  2.80712
  7  4.92639e-05
  8  1.71359e-05
  9  1.54962
  10  4.59314e-06
  11  2.62806
  12  13.9884
  13  0.359024
  14  15.608
  15  1.32462
  16  82.3862
  17  9.57452e-06
  18  4.58517e-06
  19  6.12624e-05
  20  19.1764
  21  0.256076
  22  6.21615
  23  3.70569
  24  9.79767e-06
  25  0.178104
  26  0.182149
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.869e-01  3.590e-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:  9.139e-01  1.821e-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.446e-01  1.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.02e-08 +/- 1.28e-08
Energy Flux (Fixed Index): 4.83e-06 +/- 6.04e-06

TS (Fixed Index): 1.37
Ra Dec: 57.142 -27.830
Photon Flux Upper Limit: 5.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/977723/likelihoodResults_253065601_253324801_4FGL_J0348.5-2749_daily_bin53.txt

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) = 6395.47923911
delta logL = 0.0272920870548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6395.4787844
delta logL = 0.0277467982469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29463       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8675       1.0000          .0000       5.0000    
     3 'Normalizat'    .84710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91190       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6395.479     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      249 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29461        .36548        .57947E-03    .10358E-02
   2  alpha         1.8674        .87092        .23378E-01   -.15560E-04
   3  Normalizat    .84704        .16855        .23091E-03   -.56719E-04
   4  Prefactor     .91196        .18012        .23750E-03   -.20440E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.294605
  alpha      = 1.86745
  Normalizat = 0.847038
  Prefactor  = 0.911964
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.479     FROM HESSE     STATUS=OK            27 CALLS      276 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29461        .36611        .11589E-03   -1.5599    
   2  alpha         1.8674        .87293        .93513E-03   -.25580    
   3  Normalizat    .84704        .16871        .92363E-05   -.98347    
   4  Prefactor     .91196        .18029        .94998E-05   -.95724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62631e-11
Minuit parameter uncertainties:
  1  0.366109
  2  0.893091
  3  0.168816
  4  0.180405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977723': 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) = 6395.47878432
delta logL = 0.0277468766972

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.946e-01  3.661e-01  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.867e+00  8.931e-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.120e-01  1.804e-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.470e-01  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.43
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.87 +/- 0.89
Photon Flux (Free Index): 8.85e-09 +/- 1.26e-08
Energy Flux (Free Index): 6.27e-06 +/- 1.07e-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/977723/cmap_HighResolution_253065601_253324801_4FGL_J0348.5-2749_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', comment='SUCCESS', photon_flux='1.02e-08', energy_flux2='6.27e-06', photon_flux_error='1.28e-08', dlogl='2.77e-02', energy_flux='4.83e-06', photon_flux2='8.85e-09', job_status='DONE', time_completed='2021-08-19 13:13:41.739114', photon_index_error2='0.89', photon_index2='1.87', ts='1.37', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='5.01e-08', energy_flux_error2='1.07e-05', EG='0.84', time_epoch_completed='1629404021.74', return_code='0', job_id='977723', GAL2='0.91', EG2='0.85', return_code2='0', energy_flux_error='6.04e-06', photon_flux_error2='1.26e-08', ts2='1.43', photon_index='2.09' WHERE bin_id='53' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:13:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 977723: <4FGL_J0348.5-2749_daily_bin53> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin53> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Aug 19 13:00:38 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:00:41 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:00:41 2021
Terminated at Thu Aug 19 13:13:44 2021
Results reported at Thu Aug 19 13:13:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin53 57.1417 -27.8303 253065601 253324801 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 :                                   763.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             373.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            786 sec.

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

