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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin400
RA = 57.1417, Dec = -27.8303
tmin = 343008001, tmax = 343267201
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='979510', job_status='RUN', time_executed='2021-08-19 13:07:53.092375', time_epoch_executed='1629403673.09' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/979510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/979510/ft1_4FGL_J0348.5-2749_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/979510/ft2_4FGL_J0348.5-2749_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/979510/ft1_4FGL_J0348.5-2749_daily_bin400.fits outfile=/scratch/kocevski/979510/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin400.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=343008001.0 tmax=343267201.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 10.17
user 3.57
sys 6.56

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/979510/ft2_4FGL_J0348.5-2749_daily_bin400.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/979510/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin400.fits evtable="EVENTS" outfile="/scratch/kocevski/979510/ft1_filtered_4FGL_J0348.5-2749_daily_bin400.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 6.85
user 0.33
sys 6.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/979510/ft1_filtered_4FGL_J0348.5-2749_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/979510/ft2_4FGL_J0348.5-2749_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/979510/ltcube_343008001_343267201_4FGL_J0348.5-2749_daily_bin400.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/979510/ft2_4FGL_J0348.5-2749_daily_bin400.fits
.....................!
real 18.66
user 11.31
sys 7.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/979510/ft1_filtered_4FGL_J0348.5-2749_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/979510/ft2_4FGL_J0348.5-2749_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/979510/ltcube_343008001_343267201_4FGL_J0348.5-2749_daily_bin400.fits outfile=/scratch/kocevski/979510/expmap_343008001_343267201_4FGL_J0348.5-2749_daily_bin400.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/979510/ltcube_343008001_343267201_4FGL_J0348.5-2749_daily_bin400.fits
.....................!
real 198.48
user 185.14
sys 13.00

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/979510/ft1_filtered_4FGL_J0348.5-2749_daily_bin400.fits scfile=/scratch/kocevski/979510/ft2_4FGL_J0348.5-2749_daily_bin400.fits outfile=/scratch/kocevski/979510/cmap_343008001_343267201_4FGL_J0348.5-2749_daily_bin400.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 6.09
user 0.37
sys 5.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/979510/ft1_filtered_4FGL_J0348.5-2749_daily_bin400.fits scfile=/scratch/kocevski/979510/ft2_4FGL_J0348.5-2749_daily_bin400.fits outfile=/scratch/kocevski/979510/cmap_HighResolution_343008001_343267201_4FGL_J0348.5-2749_daily_bin400.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 6.74
user 0.37
sys 6.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/979510/ft1_filtered_4FGL_J0348.5-2749_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/979510/ft2_4FGL_J0348.5-2749_daily_bin400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/979510/Model_4FGL_J0348.5-2749_daily_bin400.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/979510/ft1_filtered_4FGL_J0348.5-2749_daily_bin400.fits.....................!
real 97.70
user 88.18
sys 9.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5781       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11119E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.693       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23349E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.874       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6841       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .99937       1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8374       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.7681       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .41223       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=   3743.608     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3103 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.578       -.46752E-05** at limit **
   2  norm          3.5783        4.4291       -.34769E-06   -.20812E-03
   3  Prefactor     .10000E-03    124.41        .62868E-04** at limit **
   4  Prefactor     20.626        30.722        .53997E-06    .91621E-05
   5  Prefactor     .10000E-03    26.214        .11482E-04** at limit **
   6  norm          .10000E-03    1.2994       -.32108E-07** at limit **
   7  Prefactor     .10000E-03    24.471       -.69831E-05** at limit **
   8  Prefactor     .10000E-03    98.812       -.28925E-04** at limit **
   9  Prefactor     .10000E-03    1.7466       -.64351E-08** at limit **
  10  Prefactor     .25630        3.4835        .31014E-06   -.53720E-03
  11  Prefactor     .10000E-03    1.5887       -.23322E-07** at limit **
  12  Prefactor     10.877        15.920        .19766E-05   -.25240E-05
  13  norm          .10000E-03    .40114       -.27533E-07** at limit **
  14  Prefactor     .10000E-03    11.642        .26930E-05** at limit **
  15  norm          .10000E-03    .46230        .39535E-08** at limit **
  16  Prefactor     .10000E-03    220.45       -.58159E-04** at limit **
  17  Prefactor     7.6851        19.907       -.93371E-07   -.10846E-04
  18  Prefactor     .10000E-03    1.2176        .61925E-07** at limit **
  19  norm          .10000E-03    11.419       -.38042E-05** at limit **
  20  Prefactor     .10000E-03    11.616        .15562E-05** at limit **
  21  norm          .99960        .50107       -.62649E-07   -.66153E-04
  22  norm          .10000E-03    11.200       -.14205E-06** at limit **
  23  Prefactor     4.8388        6.8170       -.69395E-05   -.27385E-03
  24  Prefactor     .10000E-03    8.3937        .67442E-07** at limit **
  25  Normalizat    1.7675        .24374        .60688E-06    .64749E-04
  26  Prefactor     .41267        .21923        .20806E-05    .67842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.57833
  Prefactor  = 0.0001
  Prefactor  = 20.6261
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.256297
  Prefactor  = 0.0001
  Prefactor  = 10.8765
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.68512
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.999602
  norm       = 0.0001
  Prefactor  = 4.83881
  Prefactor  = 0.0001
  Normalizat = 1.76752
  Prefactor  = 0.412666
 **********
 **   18 **HESSE 
 **********

 FCN=   3743.608     FROM HESSE     STATUS=OK           450 CALLS     3553 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5783        4.4205        .13832E-03   -1.5330    
   3  Prefactor     .10000E-03    123.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.626        30.815        .88049E-04   -1.4799    
   5  Prefactor     .10000E-03    26.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3014        .68111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    99.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8015        .15776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .25630        27.286        .21335E-02   -1.5607    
  11  Prefactor     .10000E-03    1.5914        .75269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.877        15.921        .12150E-03   -1.5048    
  13  norm          .10000E-03    .41276        .75414E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .46450        .40611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    220.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6851        19.894        .14466E-03   -1.5153    
  18  Prefactor     .10000E-03    1.2245        .65915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .99960        .49880        .29204E-04   -1.5508    
  22  norm          .10000E-03    11.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.8388        6.8795        .18197E-03   -1.5268    
  24  Prefactor     .10000E-03    8.3987        .17314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.7675        .27254        .21003E-03   -.70515    
  26  Prefactor     .41267        .23921        .37282E-03   -1.1617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00715e-09
Minuit parameter uncertainties:
  1  3.07616e-05
  2  4.42086
  3  3.67423e-05
  4  30.839
  5  1.75734e-05
  6  1.65338e-06
  7  1.05414e-05
  8  7.05176e-05
  9  4.81103e-06
  10  5.29042
  11  2.04199e-06
  12  15.9271
  13  1.57972e-06
  14  2.55279e-06
  15  3.06511e-08
  16  8.59586e-05
  17  19.9114
  18  8.49114e-06
  19  1.95726e-06
  20  2.34615e-06
  21  0.498804
  22  1.04976e-05
  23  6.88058
  24  1.80053e-06
  25  0.27277
  26  0.239786
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.000e-04  1.580e-06  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:  4.127e-01  2.398e-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.768e+00  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/979510/likelihoodResults_343008001_343267201_4FGL_J0348.5-2749_daily_bin400.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3743.60799548
delta logL = -2.83026806756e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3743.60796357
delta logL = 3.60824515155e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2405       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3743.608     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      280 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .75453        .76689E-03** at limit **
   2  alpha         2.3631        3.7105        .16574        .21092E-07
   3  Normalizat    1.7675        .25535        .21003E-03    .33236E-04
   4  Prefactor     .41267        .23590        .37282E-03    .12533E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.36305
  Normalizat = 1.76752
  Prefactor  = 0.412666
 **********
 **   18 **HESSE 
 **********

 FCN=   3743.608     FROM HESSE     STATUS=OK            23 CALLS      303 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .43427        .15338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3631        3.4825        .66296E-02   -.54805E-01
   3  Normalizat    1.7675        .25544        .84011E-05   -.70515    
   4  Prefactor     .41267        .23599        .14913E-04   -1.1617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62336e-12
Minuit parameter uncertainties:
  1  6.55028e-07
  2  80.778
  3  0.255635
  4  0.236548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/979510': 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) = 3743.60796118
delta logL = 5.99881559538e-06

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.000e-04  6.550e-07  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.363e+00  8.078e+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:  4.127e-01  2.365e-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.768e+00  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 57.142 -27.830

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/979510/cmap_HighResolution_343008001_343267201_4FGL_J0348.5-2749_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-05', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-08-19 13:19:08.571576', job_id='979510', GAL2='0.41', fit_tolerance='1e-08', EG2='1.77', EG='1.77', time_epoch_completed='1629404348.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.41', dlogl='6.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='400' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:19:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 979510: <4FGL_J0348.5-2749_daily_bin400> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin400> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Aug 19 13:05:54 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:05:56 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:05:56 2021
Terminated at Thu Aug 19 13:19:10 2021
Results reported at Thu Aug 19 13:19:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin400 57.1417 -27.8303 343008001 343267201 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 :                                   771.49 sec.
    Max Memory :                                 1078 MB
    Average Memory :                             252.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            796 sec.

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

