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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1442
RA = 57.1417, Dec = -27.8303
tmin = 613094401, tmax = 613353601
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='986854', job_status='RUN', time_executed='2021-08-19 13:31:16.193620', time_epoch_executed='1629405076.19' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986854

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986854/ft1_4FGL_J0348.5-2749_daily_bin1442.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986854/ft2_4FGL_J0348.5-2749_daily_bin1442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986854/ft1_4FGL_J0348.5-2749_daily_bin1442.fits outfile=/scratch/kocevski/986854/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1442.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=613094401.0 tmax=613353601.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 3.12
user 2.72
sys 0.38

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986854/ft1_filtered_4FGL_J0348.5-2749_daily_bin1442.fits" evtable="EVENTS" scfile=/scratch/kocevski/986854/ft2_4FGL_J0348.5-2749_daily_bin1442.fits sctable="SC_DATA" outfile=/scratch/kocevski/986854/ltcube_613094401_613353601_4FGL_J0348.5-2749_daily_bin1442.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/986854/ft2_4FGL_J0348.5-2749_daily_bin1442.fits
.....................!
real 13.14
user 12.54
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986854/ft1_filtered_4FGL_J0348.5-2749_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/986854/ft2_4FGL_J0348.5-2749_daily_bin1442.fits sctable="SC_DATA" expcube=/scratch/kocevski/986854/ltcube_613094401_613353601_4FGL_J0348.5-2749_daily_bin1442.fits outfile=/scratch/kocevski/986854/expmap_613094401_613353601_4FGL_J0348.5-2749_daily_bin1442.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/986854/ltcube_613094401_613353601_4FGL_J0348.5-2749_daily_bin1442.fits
.....................!
real 191.60
user 185.08
sys 5.88

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

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

This is gtbin version HEAD
real 0.72
user 0.38
sys 0.33

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

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

This is gtbin version HEAD
real 0.75
user 0.38
sys 0.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/986854/ft1_filtered_4FGL_J0348.5-2749_daily_bin1442.fits evtable="EVENTS" scfile=/scratch/kocevski/986854/ft2_4FGL_J0348.5-2749_daily_bin1442.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/986854/Model_4FGL_J0348.5-2749_daily_bin1442.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/986854/ft1_filtered_4FGL_J0348.5-2749_daily_bin1442.fits.....................!
real 159.24
user 157.27
sys 1.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.913       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    122.42       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11571E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    23.873       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0475       1.0000         .10000E-03   10000.    
    16 'Prefactor '    87.893       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1926       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1638       1.0000         .10000E-03   10000.    
    21 'norm      '    .50498       1.0000         .10000E-03   10000.    
    22 'norm      '    8.0547       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2146       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.223       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76940       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2402       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=   7242.500     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3091 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.916        18.869        .79804E-06    .10226E-05
   2  norm          .10000E-03    1.2008        .80934E-08** at limit **
   3  Prefactor     122.38        161.65       -.32525E-04   -.26721E-05
   4  Prefactor     .10000E-03    5.9458       -.19815E-06** at limit **
   5  Prefactor     .10000E-03    21.136       -.10801E-04** at limit **
   6  norm          .10000E-03    1.7475        .15664E-06** at limit **
   7  Prefactor     .10000E-03    22.873       -.31969E-05** at limit **
   8  Prefactor     .10000E-03    27.405        .11797E-04** at limit **
   9  Prefactor     .10000E-03    1.0378        .18508E-07** at limit **
  10  Prefactor     .10000E-03    1.8682       -.84032E-08** at limit **
  11  Prefactor     .10000E-03    1.6279        .96612E-08** at limit **
  12  Prefactor     .10000E-03    11.250        .26229E-05** at limit **
  13  norm          23.874        2.3072       -.19175E-07    .19786E-03
  14  Prefactor     .10000E-03    28.696        .13565E-04** at limit **
  15  norm          3.0473        1.6456        .18936E-07    .27736E-04
  16  Prefactor     87.906        93.375        .12981E-04    .16969E-05
  17  Prefactor     .10000E-03    38.582       -.14561E-04** at limit **
  18  Prefactor     7.1923        3.9511        .81185E-07    .43927E-04
  19  norm          .10000E-03    8.3398       -.16677E-05** at limit **
  20  Prefactor     6.1623        20.585       -.15789E-05    .56555E-05
  21  norm          .50505        .31490       -.33678E-07   -.58140E-03
  22  norm          8.0551        6.0995       -.95751E-09   -.17982E-04
  23  Prefactor     1.2144        .85978        .12614E-06   -.19605E-02
  24  Prefactor     10.223        11.711       -.11520E-07   -.88335E-05
  25  Normalizat    .76919        .18323       -.12577E-05    .33339E-04
  26  Prefactor     1.2404        .18419        .10854E-05   -.10610E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9158
  norm       = 0.0001
  Prefactor  = 122.384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.8737
  Prefactor  = 0.0001
  norm       = 3.04731
  Prefactor  = 87.906
  Prefactor  = 0.0001
  Prefactor  = 7.19227
  norm       = 0.0001
  Prefactor  = 6.16227
  norm       = 0.505045
  norm       = 8.05505
  Prefactor  = 1.21436
  Prefactor  = 10.2233
  Normalizat = 0.769192
  Prefactor  = 1.24042
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.500     FROM HESSE     STATUS=OK           454 CALLS     3545 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.916        18.918        .78695E-04   -1.4689    
   2  norm          .10000E-03    1.2076        .91056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     122.38        161.77        .18188E-03   -1.3491    
   4  Prefactor     .10000E-03    5.9493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.6546        .21496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0549        .84580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8932        .11354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6504        .10599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.874        2.3097        .38298E-04   -1.4730    
  14  Prefactor     .10000E-03    28.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0473        1.6397        .76478E-04   -1.5359    
  16  Prefactor     87.906        93.437        .42856E-04   -1.3830    
  17  Prefactor     .10000E-03    38.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.1923        3.9612        .11887E-03   -1.5172    
  19  norm          .10000E-03    8.3877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.1623        20.585        .16170E-03   -1.5211    
  21  norm          .50505        .30758        .35002E-04   -1.5566    
  22  norm          8.0551        6.0920        .14127E-03   -1.5140    
  23  Prefactor     1.2144        5.1136        .18335E-02   -1.5488    
  24  Prefactor     10.223        11.705        .62659E-03   -1.5068    
  25  Normalizat    .76919        .21112        .32317E-03   -1.0122    
  26  Prefactor     1.2404        .21590        .27312E-03   -.85096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6685e-09
Minuit parameter uncertainties:
  1  18.9229
  2  1.43031e-09
  3  162.355
  4  1.00846e-05
  5  1.27994e-05
  6  0.000190804
  7  5.04031e-06
  8  1.27092e-05
  9  2.58838e-06
  10  1.66311e-06
  11  2.02111e-06
  12  3.09699e-05
  13  2.30973
  14  8.55881e-06
  15  1.63968
  16  93.5936
  17  2.75818e-06
  18  3.96137
  19  4.42473e-06
  20  20.6082
  21  0.307585
  22  6.09249
  23  4.9844
  24  11.7075
  25  0.211347
  26  0.216056
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.387e+01  2.310e+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.240e+00  2.161e-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.692e-01  2.113e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 554.00
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 8.52e-07 +/- 8.24e-08
Energy Flux (Fixed Index): 4.02e-04 +/- 3.89e-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) = 7235.92465908
delta logL = 6.57538933056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7235.89902886
delta logL = 6.60101954608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.515       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7656       1.0000          .0000       5.0000    
     3 'Normalizat'    .90809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1561       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=   7235.899     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.515        2.4488        .20226E-02   -.12705E-01
   2  alpha         1.7655        .84481E-01    .65455E-01   -.14203E-04
   3  Normalizat    .90813        .17585        .68250E-01    .23581E-04
   4  Prefactor     1.1561        .18052        .63772E-01   -.14575E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 24.515
  alpha      = 1.76554
  Normalizat = 0.908132
  Prefactor  = 1.15607
 **********
 **   18 **HESSE 
 **********

 FCN=   7235.899     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.515        2.4775        .40417E-04   -1.4717    
   2  alpha         1.7655        .85941E-01    .28851E-03   -.29818    
   3  Normalizat    .90813        .20618        .30194E-03   -.96175    
   4  Prefactor     1.1561        .21123        .28205E-03   -.87694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02771e-09
Minuit parameter uncertainties:
  1  2.47756
  2  0.08596
  3  0.206364
  4  0.211385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986854': 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) = 7235.89902817
delta logL = 6.60102023996

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  2.452e+01  2.478e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.766e+00  8.596e-02  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.156e+00  2.114e-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.081e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 560.83
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.77 +/- 0.09
Photon Flux (Free Index): 6.90e-07 +/- 8.20e-08
Energy Flux (Free Index): 6.12e-04 +/- 1.03e-04

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/986854/cmap_HighResolution_613094401_613353601_4FGL_J0348.5-2749_daily_bin1442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.52e-07', energy_flux2='6.12e-04', photon_flux_error='8.24e-08', dlogl='6.60e+00', energy_flux='4.02e-04', photon_flux2='6.90e-07', job_status='DONE', time_completed='2021-08-19 13:44:07.405575', photon_index_error2='0.09', photon_index2='1.77', ts='554.00', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.03e-04', EG='0.77', time_epoch_completed='1629405847.41', return_code='0', job_id='986854', GAL2='1.16', EG2='0.91', return_code2='0', energy_flux_error='3.89e-05', photon_flux_error2='8.20e-08', ts2='560.83', photon_index='2.09' WHERE bin_id='1442' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:44:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 986854: <4FGL_J0348.5-2749_daily_bin1442> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1442> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Aug 19 13:30:45 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:30:46 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:30:46 2021
Terminated at Thu Aug 19 13:44:08 2021
Results reported at Thu Aug 19 13:44:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1442 57.1417 -27.8303 613094401 613353601 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 :                                   766.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

