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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1233
RA = 57.1417, Dec = -27.8303
tmin = 558921601, tmax = 559180801
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='985378', job_status='RUN', time_executed='2021-08-19 13:29:08.612768', time_epoch_executed='1629404948.61' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985378

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985378/ft1_4FGL_J0348.5-2749_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985378/ft2_4FGL_J0348.5-2749_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985378/ft1_4FGL_J0348.5-2749_daily_bin1233.fits outfile=/scratch/kocevski/985378/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1233.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=558921601.0 tmax=559180801.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.96
user 3.30
sys 4.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985378/ft2_4FGL_J0348.5-2749_daily_bin1233.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/985378/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1233.fits evtable="EVENTS" outfile="/scratch/kocevski/985378/ft1_filtered_4FGL_J0348.5-2749_daily_bin1233.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.45
user 0.31
sys 4.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985378/ft1_filtered_4FGL_J0348.5-2749_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/985378/ft2_4FGL_J0348.5-2749_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/985378/ltcube_558921601_559180801_4FGL_J0348.5-2749_daily_bin1233.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/985378/ft2_4FGL_J0348.5-2749_daily_bin1233.fits
.....................!
real 16.68
user 11.32
sys 5.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985378/ft1_filtered_4FGL_J0348.5-2749_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/985378/ft2_4FGL_J0348.5-2749_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/985378/ltcube_558921601_559180801_4FGL_J0348.5-2749_daily_bin1233.fits outfile=/scratch/kocevski/985378/expmap_558921601_559180801_4FGL_J0348.5-2749_daily_bin1233.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/985378/ltcube_558921601_559180801_4FGL_J0348.5-2749_daily_bin1233.fits
.....................!
real 197.09
user 185.40
sys 11.25

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/985378/ft1_filtered_4FGL_J0348.5-2749_daily_bin1233.fits scfile=/scratch/kocevski/985378/ft2_4FGL_J0348.5-2749_daily_bin1233.fits outfile=/scratch/kocevski/985378/cmap_558921601_559180801_4FGL_J0348.5-2749_daily_bin1233.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.88
user 0.36
sys 4.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985378/ft1_filtered_4FGL_J0348.5-2749_daily_bin1233.fits scfile=/scratch/kocevski/985378/ft2_4FGL_J0348.5-2749_daily_bin1233.fits outfile=/scratch/kocevski/985378/cmap_HighResolution_558921601_559180801_4FGL_J0348.5-2749_daily_bin1233.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.89
user 0.38
sys 4.48

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985378/ft1_filtered_4FGL_J0348.5-2749_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/985378/ft2_4FGL_J0348.5-2749_daily_bin1233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985378/Model_4FGL_J0348.5-2749_daily_bin1233.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/985378/ft1_filtered_4FGL_J0348.5-2749_daily_bin1233.fits....................!
real 83.51
user 76.89
sys 6.45

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0274       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .44245E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.521       1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.955       1.0000         .10000E-03   10000.    
     6 'norm      '    .10244E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.691       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.120       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5407       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.220       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8011       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.932       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3702       1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.836       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.451       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.961       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10754E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2525       1.0000         .10000E-03   10000.    
    24 'Prefactor '    63.013       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91053       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2873       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=   3270.889     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3141 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.235       -.10396E-05** at limit **
   2  norm          2.0288        5.3091       -.13233E-05   -.38182E-03
   3  Prefactor     .10000E-03    532.04       -.16567E-03** at limit **
   4  Prefactor     12.532        23.777       -.75186E-05    .64736E-04
   5  Prefactor     53.965        77.218        .11115E-04    .75287E-05
   6  norm          .10000E-03    14.213       -.12285E-06** at limit **
   7  Prefactor     57.671        82.313       -.21831E-04    .69988E-05
   8  Prefactor     37.133        50.441        .10716E-04    .23164E-04
   9  Prefactor     1.5409        4.3221       -.93187E-06   -.40201E-03
  10  Prefactor     .10000E-03    2.2317        .85241E-07** at limit **
  11  Prefactor     .10000E-03    1.9352        .59098E-07** at limit **
  12  Prefactor     58.213        40.994       -.25206E-05   -.16266E-04
  13  norm          2.8012        1.6450        .35372E-06    .61350E-04
  14  Prefactor     11.929        26.819       -.26813E-05    .18817E-05
  15  norm          1.3717        1.9401       -.12344E-07   -.68316E-04
  16  Prefactor     70.834        160.58       -.17404E-05    .22331E-05
  17  Prefactor     .10000E-03    19.197       -.29121E-07** at limit **
  18  Prefactor     .10000E-03    1.3697        .36632E-07** at limit **
  19  norm          14.453        20.036        .47330E-05    .28947E-04
  20  Prefactor     11.939        48.795       -.33018E-04    .11996E-05
  21  norm          .10000E-03    .26985        .56403E-07** at limit **
  22  norm          .10001E-03    149.53        .11596E-04** at limit **
  23  Prefactor     1.2530        2.9964       -.38541E-06   -.33917E-03
  24  Prefactor     62.985        75.035       -.27052E-04   -.25246E-04
  25  Normalizat    .91052        .28734        .70585E-05    .39473E-04
  26  Prefactor     1.2873        .26994        .44691E-06    .21505E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.02878
  Prefactor  = 0.0001
  Prefactor  = 12.5321
  Prefactor  = 53.9646
  norm       = 0.0001
  Prefactor  = 57.6711
  Prefactor  = 37.1333
  Prefactor  = 1.54088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.2133
  norm       = 2.80122
  Prefactor  = 11.9291
  norm       = 1.37175
  Prefactor  = 70.8341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.4534
  Prefactor  = 11.939
  norm       = 0.0001
  norm       = 0.000100014
  Prefactor  = 1.25305
  Prefactor  = 62.9853
  Normalizat = 0.910517
  Prefactor  = 1.28727
 **********
 **   18 **HESSE 
 **********

 FCN=   3270.889     FROM HESSE     STATUS=OK           454 CALLS     3595 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0288        5.2885        .20159E-03   -1.5423    
   3  Prefactor     .10000E-03    530.35        .21217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.532        23.773        .11321E-03   -1.5000    
   5  Prefactor     53.965        77.233        .54606E-04   -1.4237    
   6  norm          .10000E-03    14.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     57.671        82.339        .52818E-04   -1.4188    
   8  Prefactor     37.133        50.704        .65781E-04   -1.4488    
   9  Prefactor     1.5409        4.1724        .16631E-03   -1.5460    
  10  Prefactor     .10000E-03    2.2376        .83400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9403        .77664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     58.213        40.968        .52579E-04   -1.4181    
  13  norm          2.8012        1.6465        .52787E-04   -1.5373    
  14  Prefactor     11.929        26.839        .11597E-03   -1.5017    
  15  norm          1.3717        1.8678        .83297E-04   -1.5474    
  16  Prefactor     70.834        160.84        .47697E-04   -1.4023    
  17  Prefactor     .10000E-03    19.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4086        .13063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.453        20.015        .10536E-03   -1.4947    
  20  Prefactor     11.939        48.889        .11583E-03   -1.5017    
  21  norm          .10000E-03    .27583        .28982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    156.81        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2530        2.9337        .14812E-03   -1.5484    
  24  Prefactor     62.985        75.126        .25276E-03   -1.4119    
  25  Normalizat    .91052        .34158        .30093E-03   -.96092    
  26  Prefactor     1.2873        .32475        .25158E-03   -.83686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05614e-09
Minuit parameter uncertainties:
  1  0.000316876
  2  5.28974
  3  0.000421574
  4  23.7909
  5  77.3763
  6  1.31661e-05
  7  82.5025
  8  50.763
  9  4.1732
  10  9.39267e-06
  11  7.6191e-06
  12  40.9877
  13  1.64651
  14  26.8665
  15  1.86783
  16  161.847
  17  2.36624e-05
  18  2.63231e-06
  19  20.0245
  20  48.3877
  21  3.31517e-06
  22  0.00296895
  23  2.93406
  24  75.2392
  25  0.342399
  26  0.325263
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.801e+00  1.647e+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.287e+00  3.253e-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.105e-01  3.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.18
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 5.87e-08
Energy Flux (Fixed Index): 4.71e-05 +/- 2.77e-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) = 3270.19342248
delta logL = 0.695638645677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3270.19184247
delta logL = 0.697218654111

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2985       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8648       1.0000          .0000       5.0000    
     3 'Normalizat'    .79743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3641       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=   3270.192     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      239 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2992        20.332        .67676E-02    .55961E-03
   2  alpha         2.8635        3.7864        .22865        .53648E-04
   3  Normalizat    .79709        .15018        .71989E-01   -.34257E-05
   4  Prefactor     1.3643        .12591        .55502E-01   -.66729E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29922
  alpha      = 2.86346
  Normalizat = 0.797086
  Prefactor  = 1.36428
 **********
 **   18 **HESSE 
 **********

 FCN=   3270.192     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2992        1.6918        .39276E-04   -1.5405    
   2  alpha         2.8635        .72383        .95482E-02    .14590    
   3  Normalizat    .79709        .33639        .31859E-03   -1.0018    
   4  Prefactor     1.3643        .32225        .24540E-03   -.81415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.73096e-11
Minuit parameter uncertainties:
  1  1.69187
  2  0.734581
  3  0.337274
  4  0.322725
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985378': 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) = 3270.19183787
delta logL = 0.697223260262

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.299e+00  1.692e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.863e+00  7.346e-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.364e+00  3.227e-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:  7.971e-01  3.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.82
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.86 +/- 0.73
Photon Flux (Free Index): 1.90e-07 +/- 1.12e-07
Energy Flux (Free Index): 4.16e-05 +/- 2.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/985378/cmap_HighResolution_558921601_559180801_4FGL_J0348.5-2749_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='4.16e-05', photon_flux_error='5.87e-08', dlogl='6.97e-01', energy_flux='4.71e-05', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-08-19 13:39:01.967863', photon_index_error2='0.73', photon_index2='2.86', ts='8.18', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='0.91', time_epoch_completed='1629405541.97', return_code='0', job_id='985378', GAL2='1.36', EG2='0.80', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='1.12e-07', ts2='9.82', photon_index='2.09' WHERE bin_id='1233' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:39:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 985378: <4FGL_J0348.5-2749_daily_bin1233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1233 57.1417 -27.8303 558921601 559180801 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 :                                   642.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            814 sec.

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

