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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1340
RA = 57.1417, Dec = -27.8303
tmin = 586656001, tmax = 586915201
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='985545', job_status='RUN', time_executed='2021-08-19 13:28:16.805191', time_epoch_executed='1629404896.81' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985545

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985545/ft1_4FGL_J0348.5-2749_daily_bin1340.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985545/ft2_4FGL_J0348.5-2749_daily_bin1340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985545/ft1_4FGL_J0348.5-2749_daily_bin1340.fits outfile=/scratch/kocevski/985545/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1340.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=586656001.0 tmax=586915201.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 6.50
user 3.43
sys 3.04

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985545/ft2_4FGL_J0348.5-2749_daily_bin1340.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/985545/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1340.fits evtable="EVENTS" outfile="/scratch/kocevski/985545/ft1_filtered_4FGL_J0348.5-2749_daily_bin1340.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 3.34
user 0.32
sys 3.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985545/ft1_filtered_4FGL_J0348.5-2749_daily_bin1340.fits" evtable="EVENTS" scfile=/scratch/kocevski/985545/ft2_4FGL_J0348.5-2749_daily_bin1340.fits sctable="SC_DATA" outfile=/scratch/kocevski/985545/ltcube_586656001_586915201_4FGL_J0348.5-2749_daily_bin1340.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/985545/ft2_4FGL_J0348.5-2749_daily_bin1340.fits
.....................!
real 15.04
user 11.47
sys 3.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985545/ft1_filtered_4FGL_J0348.5-2749_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/985545/ft2_4FGL_J0348.5-2749_daily_bin1340.fits sctable="SC_DATA" expcube=/scratch/kocevski/985545/ltcube_586656001_586915201_4FGL_J0348.5-2749_daily_bin1340.fits outfile=/scratch/kocevski/985545/expmap_586656001_586915201_4FGL_J0348.5-2749_daily_bin1340.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/985545/ltcube_586656001_586915201_4FGL_J0348.5-2749_daily_bin1340.fits
.....................!
real 196.92
user 187.80
sys 8.79

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/985545/ft1_filtered_4FGL_J0348.5-2749_daily_bin1340.fits scfile=/scratch/kocevski/985545/ft2_4FGL_J0348.5-2749_daily_bin1340.fits outfile=/scratch/kocevski/985545/cmap_586656001_586915201_4FGL_J0348.5-2749_daily_bin1340.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 3.35
user 0.37
sys 2.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985545/ft1_filtered_4FGL_J0348.5-2749_daily_bin1340.fits scfile=/scratch/kocevski/985545/ft2_4FGL_J0348.5-2749_daily_bin1340.fits outfile=/scratch/kocevski/985545/cmap_HighResolution_586656001_586915201_4FGL_J0348.5-2749_daily_bin1340.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 3.32
user 0.37
sys 2.94

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985545/ft1_filtered_4FGL_J0348.5-2749_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/985545/ft2_4FGL_J0348.5-2749_daily_bin1340.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985545/Model_4FGL_J0348.5-2749_daily_bin1340.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/985545/ft1_filtered_4FGL_J0348.5-2749_daily_bin1340.fits.....................!
real 132.32
user 127.12
sys 4.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.0773       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.356       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1821       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.061       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0390       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .50098       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .53331E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    20.295       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.6733       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.4725       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2416       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72438       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=   5690.441     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3118 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0843        .93575E-08** at limit **
   2  norm          .10000E-03    2.1121       -.10156E-07** at limit **
   3  Prefactor     .10000E-03    58.257       -.32177E-04** at limit **
   4  Prefactor     .10000E-03    4.6388       -.19913E-07** at limit **
   5  Prefactor     .10000E-03    23.090        .38136E-05** at limit **
   6  norm          6.0774        3.6944       -.26153E-06   -.11676E-02
   7  Prefactor     43.357        59.724        .74027E-06    .23177E-05
   8  Prefactor     .10000E-03    63.720        .34578E-04** at limit **
   9  Prefactor     .10000E-03    1.3208       -.81152E-08** at limit **
  10  Prefactor     8.1813        7.7341        .24940E-07   -.15354E-03
  11  Prefactor     4.7230        5.0862        .42586E-06   -.14799E-03
  12  Prefactor     .10000E-03    15.267        .18120E-05** at limit **
  13  norm          15.061        2.3703       -.27762E-07    .32406E-03
  14  Prefactor     .10000E-03    7.2404       -.16085E-06** at limit **
  15  norm          1.0395        1.5266       -.18241E-06   -.73445E-03
  16  Prefactor     .10000E-03    254.73       -.14066E-04** at limit **
  17  Prefactor     .10000E-03    8.3325        .12670E-05** at limit **
  18  Prefactor     .50101        1.5683       -.57483E-06   -.12896E-02
  19  norm          .10000E-03    8.6855       -.12062E-05** at limit **
  20  Prefactor     .10000E-03    18.504       -.42836E-05** at limit **
  21  norm          .53305E-01    .25672       -.28427E-06   -.13965E-02
  22  norm          20.296        9.8131        .99099E-07    .14182E-03
  23  Prefactor     5.6735        3.9797       -.10640E-07    .41294E-04
  24  Prefactor     9.4716        18.658        .36425E-06    .15200E-04
  25  Normalizat    1.2417        .19838        .57468E-06    .12743E-03
  26  Prefactor     .72422        .18782       -.25828E-06    .18123E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.07737
  Prefactor  = 43.3575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.18134
  Prefactor  = 4.72303
  Prefactor  = 0.0001
  norm       = 15.0609
  Prefactor  = 0.0001
  norm       = 1.03948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.501011
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0533047
  norm       = 20.2961
  Prefactor  = 5.6735
  Prefactor  = 9.47159
  Normalizat = 1.24173
  Prefactor  = 0.724216
 **********
 **   18 **HESSE 
 **********

 FCN=   5690.441     FROM HESSE     STATUS=OK           454 CALLS     3572 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0864        .16612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.1410        .10704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    57.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6415        .15868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.0774        3.7114        .55085E-03   -1.5215    
   7  Prefactor     43.357        59.723        .60884E-04   -1.4390    
   8  Prefactor     .10000E-03    63.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1313        .16479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1813        7.7095        .14016E-03   -1.5136    
  11  Prefactor     4.7230        5.0305        .15246E-03   -1.5273    
  12  Prefactor     .10000E-03    15.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.061        2.3763        .41547E-04   -1.4932    
  14  Prefactor     .10000E-03    7.2410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0395        1.4434        .10288E-03   -1.5504    
  16  Prefactor     .10000E-03    254.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .50101        1.5152        .16025E-02   -1.5566    
  19  norm          .10000E-03    8.7059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .53305E-01    .47179        .69082E-03   -1.5662    
  22  norm          20.296        9.7589        .88907E-04   -1.4807    
  23  Prefactor     5.6735        3.9740        .12203E-03   -1.5232    
  24  Prefactor     9.4716        18.600        .13021E-03   -1.5092    
  25  Normalizat    1.2417        .23146        .25134E-03   -.85323    
  26  Prefactor     .72422        .21937        .31346E-03   -1.0259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31726e-09
Minuit parameter uncertainties:
  1  8.69976e-07
  2  1.05225e-06
  3  1.88292e-06
  4  9.38934e-07
  5  5.52822e-06
  6  3.71158
  7  59.8056
  8  0.000310414
  9  8.36025e-07
  10  7.71043
  11  5.03092
  12  1.87097e-05
  13  2.37636
  14  6.03895e-07
  15  1.44345
  16  0.000104225
  17  4.85011e-07
  18  1.51527
  19  1.71612e-06
  20  6.61805e-06
  21  0.316873
  22  9.75964
  23  3.97415
  24  18.6115
  25  0.231656
  26  0.219628
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.506e+01  2.376e+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:  7.242e-01  2.196e-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.242e+00  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 183.35
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 5.38e-07 +/- 8.48e-08
Energy Flux (Fixed Index): 2.53e-04 +/- 4.00e-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) = 5690.15105557
delta logL = 0.289949114009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5690.12296543
delta logL = 0.318039251868

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.201       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9728       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69774       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=   5690.123     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.201        2.3714        .25682E-02   -.29566E-02
   2  alpha         1.9728        .14422        .93976E-01    .73928E-04
   3  Normalizat    1.2848        .19463        .56137E-01    .35344E-04
   4  Prefactor     .69773        .18644        .72027E-01   -.14776E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.2007
  alpha      = 1.97279
  Normalizat = 1.28476
  Prefactor  = 0.697727
 **********
 **   18 **HESSE 
 **********

 FCN=   5690.123     FROM HESSE     STATUS=OK            27 CALLS      228 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.201        2.3247        .42664E-04   -1.4928    
   2  alpha         1.9728        .14313        .41166E-03   -.21248    
   3  Normalizat    1.2848        .22920        .24823E-03   -.84022    
   4  Prefactor     .69773        .21769        .31878E-03   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6127e-10
Minuit parameter uncertainties:
  1  2.32468
  2  0.143211
  3  0.229384
  4  0.217952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985545': 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) = 5690.12296543
delta logL = 0.318039257716

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.520e+01  2.325e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  1.973e+00  1.432e-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:  6.977e-01  2.180e-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.285e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 185.09
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 1.97 +/- 0.14
Photon Flux (Free Index): 4.93e-07 +/- 9.40e-08
Energy Flux (Free Index): 2.84e-04 +/- 6.12e-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/985545/cmap_HighResolution_586656001_586915201_4FGL_J0348.5-2749_daily_bin1340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.38e-07', energy_flux2='2.84e-04', photon_flux_error='8.48e-08', dlogl='3.18e-01', energy_flux='2.53e-04', photon_flux2='4.93e-07', job_status='DONE', time_completed='2021-08-19 13:40:10.568545', photon_index_error2='0.14', photon_index2='1.97', ts='183.35', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='6.12e-05', EG='1.24', time_epoch_completed='1629405610.57', return_code='0', job_id='985545', GAL2='0.70', EG2='1.28', return_code2='0', energy_flux_error='4.00e-05', photon_flux_error2='9.40e-08', ts2='185.09', photon_index='2.09' WHERE bin_id='1340' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:40:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 985545: <4FGL_J0348.5-2749_daily_bin1340> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1340 57.1417 -27.8303 586656001 586915201 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 :                                   750.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            869 sec.

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

