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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1047
RA = 57.1417, Dec = -27.8303
tmin = 510710401, tmax = 510969601
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='983978', job_status='RUN', time_executed='2021-08-19 13:21:17.741437', time_epoch_executed='1629404477.74' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1047'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983978

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983978/ft1_4FGL_J0348.5-2749_daily_bin1047.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983978/ft2_4FGL_J0348.5-2749_daily_bin1047.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983978/ft1_4FGL_J0348.5-2749_daily_bin1047.fits outfile=/scratch/kocevski/983978/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1047.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=510710401.0 tmax=510969601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.08
user 3.22
sys 0.83

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983978/ft1_filtered_4FGL_J0348.5-2749_daily_bin1047.fits" evtable="EVENTS" scfile=/scratch/kocevski/983978/ft2_4FGL_J0348.5-2749_daily_bin1047.fits sctable="SC_DATA" outfile=/scratch/kocevski/983978/ltcube_510710401_510969601_4FGL_J0348.5-2749_daily_bin1047.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/983978/ft2_4FGL_J0348.5-2749_daily_bin1047.fits
.....................!
real 12.52
user 11.34
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983978/ft1_filtered_4FGL_J0348.5-2749_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/983978/ft2_4FGL_J0348.5-2749_daily_bin1047.fits sctable="SC_DATA" expcube=/scratch/kocevski/983978/ltcube_510710401_510969601_4FGL_J0348.5-2749_daily_bin1047.fits outfile=/scratch/kocevski/983978/expmap_510710401_510969601_4FGL_J0348.5-2749_daily_bin1047.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/983978/ltcube_510710401_510969601_4FGL_J0348.5-2749_daily_bin1047.fits
.....................!
real 190.81
user 185.59
sys 4.90

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/983978/ft1_filtered_4FGL_J0348.5-2749_daily_bin1047.fits scfile=/scratch/kocevski/983978/ft2_4FGL_J0348.5-2749_daily_bin1047.fits outfile=/scratch/kocevski/983978/cmap_510710401_510969601_4FGL_J0348.5-2749_daily_bin1047.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.14
user 0.38
sys 0.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983978/ft1_filtered_4FGL_J0348.5-2749_daily_bin1047.fits scfile=/scratch/kocevski/983978/ft2_4FGL_J0348.5-2749_daily_bin1047.fits outfile=/scratch/kocevski/983978/cmap_HighResolution_510710401_510969601_4FGL_J0348.5-2749_daily_bin1047.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.15
user 0.39
sys 0.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/983978/ft1_filtered_4FGL_J0348.5-2749_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/983978/ft2_4FGL_J0348.5-2749_daily_bin1047.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/983978/Model_4FGL_J0348.5-2749_daily_bin1047.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/983978/ft1_filtered_4FGL_J0348.5-2749_daily_bin1047.fits.....................!
real 157.58
user 155.19
sys 2.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7207       1.0000         .10000E-03   10000.    
     2 'norm      '    7.5654       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.131       1.0000         .10000E-03   10000.    
     6 'norm      '    1.5284       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5683       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11742E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1236       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1931       1.0000         .10000E-03   10000.    
    19 'norm      '    1.9110       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0770       1.0000         .10000E-03   10000.    
    21 'norm      '    .22277       1.0000         .10000E-03   10000.    
    22 'norm      '    3.7728       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0562       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73463       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=   7360.159     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3239 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7212        8.4040        .11507E-05   -.32813E-05
   2  norm          7.5655        2.9681        .68023E-08    .31379E-05
   3  Prefactor     .10000E-03    52.762       -.30025E-05** at limit **
   4  Prefactor     .10000E-03    10.183       -.51516E-07** at limit **
   5  Prefactor     16.124        27.132        .39780E-06   -.30285E-04
   6  norm          1.5284        1.7488        .87389E-08   -.13735E-03
   7  Prefactor     .10000E-03    24.069       -.13844E-06** at limit **
   8  Prefactor     .10000E-03    24.039        .11581E-06** at limit **
   9  Prefactor     4.5675        2.0903        .57195E-07    .19486E-03
  10  Prefactor     .10000E-03    2.4176       -.81025E-08** at limit **
  11  Prefactor     .10000E-03    1.4709        .11797E-06** at limit **
  12  Prefactor     .10000E-03    21.854        .17129E-06** at limit **
  13  norm          2.0725        .76975       -.29958E-07   -.32158E-03
  14  Prefactor     .10000E-03    11.559        .48424E-06** at limit **
  15  norm          2.1233        1.1531        .26378E-07    .12272E-03
  16  Prefactor     .10000E-03    67.147        .29903E-05** at limit **
  17  Prefactor     .10000E-03    14.769       -.44989E-06** at limit **
  18  Prefactor     1.1929        1.8597        .18092E-06    .61791E-04
  19  norm          1.9072        13.623        .10457E-04   -.23606E-04
  20  Prefactor     4.0815        14.790       -.22836E-05    .38107E-05
  21  norm          .22273        .25191       -.43447E-07   -.19730E-02
  22  norm          3.7731        4.2459        .12957E-06   -.28240E-04
  23  Prefactor     .10000E-03    .69949       -.13276E-08** at limit **
  24  Prefactor     .10000E-03    5.3798        .19199E-07** at limit **
  25  Normalizat    1.0561        .14362        .57670E-06   -.88065E-04
  26  Prefactor     .73468        .14469       -.15991E-05   -.13464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.72125
  norm       = 7.56552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1236
  norm       = 1.52844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.56751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.07253
  Prefactor  = 0.0001
  norm       = 2.12326
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.19291
  norm       = 1.90723
  Prefactor  = 4.08149
  norm       = 0.222734
  norm       = 3.77313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05613
  Prefactor  = 0.73468
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.159     FROM HESSE     STATUS=OK           462 CALLS     3701 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7212        8.3993        .83968E-03   -1.5230    
   2  norm          7.5655        2.9681        .89934E-04   -1.5158    
   3  Prefactor     .10000E-03    52.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.124        27.145        .99722E-04   -1.4905    
   6  norm          1.5284        1.7292        .11799E-03   -1.5461    
   7  Prefactor     .10000E-03    24.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5675        2.0762        .78421E-04   -1.5281    
  10  Prefactor     .10000E-03    2.4970        .25946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7438        .19824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0725        .76814        .43869E-04   -1.5420    
  14  Prefactor     .10000E-03    11.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1233        1.1387        .63023E-04   -1.5417    
  16  Prefactor     .10000E-03    67.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1929        1.8226        .13793E-03   -1.5490    
  19  norm          1.9072        13.686        .15036E-02   -1.5432    
  20  Prefactor     4.0815        14.778        .19968E-03   -1.5304    
  21  norm          .22273        .23858        .42185E-03   -1.5614    
  22  norm          3.7731        4.2245        .17921E-03   -1.5319    
  23  Prefactor     .10000E-03    .70141        .70063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.3874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0561        .16232        .21361E-03   -.91173    
  26  Prefactor     .73468        .16392        .26114E-03   -1.0218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30304e-10
Minuit parameter uncertainties:
  1  8.40104
  2  2.96814
  3  5.99781e-06
  4  2.40984e-05
  5  27.1658
  6  1.72925
  7  8.49158e-05
  8  2.97123e-06
  9  2.07626
  10  4.79643e-07
  11  4.98287e-06
  12  6.12163e-05
  13  0.768146
  14  1.2411e-06
  15  1.13868
  16  5.78598e-05
  17  2.40463e-05
  18  1.82264
  19  10.2212
  20  14.7917
  21  0.238577
  22  4.22486
  23  3.6149e-07
  24  1.01796e-06
  25  0.162397
  26  0.164025
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.073e+00  7.681e-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:  7.347e-01  1.640e-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.056e+00  1.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.67
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 7.40e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 3.49e-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) = 7359.95771335
delta logL = 0.201198096122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7359.93837401
delta logL = 0.220537433375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0250       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8665       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0731       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72443       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=   7359.938     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      201 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0248        .84799        .72693E-02   -.88964E-03
   2  alpha         1.8666        .31955        .24674        .48745E-04
   3  Normalizat    1.0731        .13811        .39220E-01    .26849E-03
   4  Prefactor     .72439        .14270        .42725E-01   -.27742E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0248
  alpha      = 1.8666
  Normalizat = 1.0731
  Prefactor  = 0.724386
 **********
 **   18 **HESSE 
 **********

 FCN=   7359.938     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0248        .80588        .45323E-04   -1.5423    
   2  alpha         1.8666        .32866        .10069E-01   -.25615    
   3  Normalizat    1.0731        .15763        .21219E-03   -.90620    
   4  Prefactor     .72439        .16190        .26281E-03   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29792e-10
Minuit parameter uncertainties:
  1  0.805882
  2  0.329677
  3  0.157701
  4  0.162006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983978': 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) = 7359.93837391
delta logL = 0.220537535003

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.025e+00  8.059e-01  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.867e+00  3.297e-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:  7.244e-01  1.620e-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.073e+00  1.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.05
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.87 +/- 0.33
Photon Flux (Free Index): 6.08e-08 +/- 3.06e-08
Energy Flux (Free Index): 4.31e-05 +/- 2.29e-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/983978/cmap_HighResolution_510710401_510969601_4FGL_J0348.5-2749_daily_bin1047.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.40e-08', energy_flux2='4.31e-05', photon_flux_error='2.74e-08', dlogl='2.21e-01', energy_flux='3.49e-05', photon_flux2='6.08e-08', job_status='DONE', time_completed='2021-08-19 13:34:22.819866', photon_index_error2='0.33', photon_index2='1.87', ts='23.67', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='2.29e-05', EG='1.06', time_epoch_completed='1629405262.82', return_code='0', job_id='983978', GAL2='0.72', EG2='1.07', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.06e-08', ts2='24.05', photon_index='2.09' WHERE bin_id='1047' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:34:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 983978: <4FGL_J0348.5-2749_daily_bin1047> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1047> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Aug 19 13:20:53 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:20:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 13:20:55 2021
Terminated at Thu Aug 19 13:34:24 2021
Results reported at Thu Aug 19 13:34:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1047 57.1417 -27.8303 510710401 510969601 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 :                                   790.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             373.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            811 sec.

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

