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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin141
RA = 57.1417, Dec = -27.8303
tmin = 275875201, tmax = 276134401
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='977851', job_status='RUN', time_executed='2021-08-19 13:02:08.130691', time_epoch_executed='1629403328.13' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977851

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977851/ft1_4FGL_J0348.5-2749_daily_bin141.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977851/ft2_4FGL_J0348.5-2749_daily_bin141.fits


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

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

Done.
real 7.20
user 2.96
sys 4.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/977851/ft1_filtered_4FGL_J0348.5-2749_daily_bin141.fits" evtable="EVENTS" scfile=/scratch/kocevski/977851/ft2_4FGL_J0348.5-2749_daily_bin141.fits sctable="SC_DATA" outfile=/scratch/kocevski/977851/ltcube_275875201_276134401_4FGL_J0348.5-2749_daily_bin141.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/977851/ft2_4FGL_J0348.5-2749_daily_bin141.fits
.....................!
real 15.01
user 10.15
sys 4.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977851/ft1_filtered_4FGL_J0348.5-2749_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/977851/ft2_4FGL_J0348.5-2749_daily_bin141.fits sctable="SC_DATA" expcube=/scratch/kocevski/977851/ltcube_275875201_276134401_4FGL_J0348.5-2749_daily_bin141.fits outfile=/scratch/kocevski/977851/expmap_275875201_276134401_4FGL_J0348.5-2749_daily_bin141.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/977851/ltcube_275875201_276134401_4FGL_J0348.5-2749_daily_bin141.fits
.....................!
real 196.35
user 185.32
sys 10.70

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

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

This is gtbin version HEAD
real 4.44
user 0.37
sys 4.03

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

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

This is gtbin version HEAD
real 4.44
user 0.37
sys 4.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/977851/ft1_filtered_4FGL_J0348.5-2749_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/977851/ft2_4FGL_J0348.5-2749_daily_bin141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/977851/Model_4FGL_J0348.5-2749_daily_bin141.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/977851/ft1_filtered_4FGL_J0348.5-2749_daily_bin141.fits.....................!
real 134.24
user 127.52
sys 6.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0600       1.0000         .10000E-03   10000.    
     2 'norm      '    5.1616       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.5112       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2094       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6214       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36368       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12867       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .95157       1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.423       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6751       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1022       1.0000         .10000E-03   10000.    
    19 'norm      '    .10631E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8531       1.0000         .10000E-03   10000.    
    21 'norm      '    .67555       1.0000         .10000E-03   10000.    
    22 'norm      '    6.2422       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6776       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14865E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .72749       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91268       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=   5845.518     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3156 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0610        8.1239        .22862E-06   -.64108E-05
   2  norm          5.1617        2.9239        .49586E-07   -.84428E-05
   3  Prefactor     .10000E-03    39.769        .36641E-05** at limit **
   4  Prefactor     .10000E-03    8.4389        .83354E-06** at limit **
   5  Prefactor     .10000E-03    35.430       -.38312E-05** at limit **
   6  norm          2.5115        2.3514        .14493E-06   -.22640E-04
   7  Prefactor     .10000E-03    10.261       -.90414E-06** at limit **
   8  Prefactor     .10000E-03    15.925        .33181E-06** at limit **
   9  Prefactor     4.2101        2.3711       -.10894E-07   -.39320E-04
  10  Prefactor     5.6222        4.1609       -.25766E-06   -.26636E-04
  11  Prefactor     .36759        3.1379       -.18992E-06   -.29059E-03
  12  Prefactor     .10000E-03    6.6096       -.40651E-06** at limit **
  13  norm          .12948        .40365       -.15440E-06   -.31316E-03
  14  Prefactor     .10000E-03    6.2663        .20812E-06** at limit **
  15  norm          .95132        1.0754       -.57433E-07   -.51398E-03
  16  Prefactor     52.259        64.158       -.15332E-04   -.53897E-03
  17  Prefactor     8.6684        15.819        .46809E-06    .48965E-05
  18  Prefactor     3.1026        2.0374       -.31516E-06   -.37326E-03
  19  norm          .10000E-03    11.256       -.89330E-06** at limit **
  20  Prefactor     1.8502        34.854        .35689E-04   -.23833E-03
  21  norm          .67568        .33383        .14805E-07   -.21406E-02
  22  norm          6.2410        5.7384       -.42508E-06   -.16645E-03
  23  Prefactor     1.6770        3.7243        .72465E-06   -.13709E-03
  24  Prefactor     .10043E-03    17.896        .28472E-05** at limit **
  25  Normalizat    .72713        .14984        .86556E-06   -.44002E-03
  26  Prefactor     .91306        .15178       -.28634E-05   -.17735E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.06104
  norm       = 5.16174
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.5115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.21009
  Prefactor  = 5.6222
  Prefactor  = 0.367586
  Prefactor  = 0.0001
  norm       = 0.129483
  Prefactor  = 0.0001
  norm       = 0.95132
  Prefactor  = 52.2589
  Prefactor  = 8.66838
  Prefactor  = 3.10265
  norm       = 0.000100001
  Prefactor  = 1.85019
  norm       = 0.675676
  norm       = 6.24101
  Prefactor  = 1.67703
  Prefactor  = 0.000100433
  Normalizat = 0.72713
  Prefactor  = 0.913055
 **********
 **   18 **HESSE 
 **********

 FCN=   5845.518     FROM HESSE     STATUS=OK           466 CALLS     3622 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0610        8.1169        .17875E-03   -1.5258    
   2  norm          5.1617        2.9237        .95492E-04   -1.5254    
   3  Prefactor     .10000E-03    39.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.5115        2.3411        .11000E-03   -1.5391    
   7  Prefactor     .10000E-03    10.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2101        2.3159        .79146E-04   -1.5298    
  10  Prefactor     5.6222        3.9456        .11227E-03   -1.5234    
  11  Prefactor     .36759        5.3971        .22272E-02   -1.5587    
  12  Prefactor     .10000E-03    6.6361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .12948        .39350        .79541E-04   -1.5636    
  14  Prefactor     .10000E-03    6.2675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .95132        1.0121        .77008E-03   -1.5513    
  16  Prefactor     52.259        67.389        .27697E-03   -1.4261    
  17  Prefactor     8.6684        15.807        .13609E-03   -1.5119    
  18  Prefactor     3.1026        2.0295        .84211E-04   -1.5356    
  19  norm          .10000E-03    11.566        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8502        36.260        .15311E-02   -1.5436    
  21  norm          .67568        .32650        .27832E-04   -1.5544    
  22  norm          6.2410        5.7265        .80335E-03   -1.5208    
  23  Prefactor     1.6770        3.7094        .20772E-03   -1.5449    
  24  Prefactor     .10043E-03    130.51        .60364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .72713        .16969        .23527E-03   -1.0283    
  26  Prefactor     .91306        .17269        .22610E-03   -.95686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79295e-08
Minuit parameter uncertainties:
  1  8.11868
  2  2.92374
  3  0.00068628
  4  5.11993e-05
  5  0.000450106
  6  2.34121
  7  7.21296e-05
  8  3.85813e-05
  9  2.31592
  10  3.94574
  11  2.81694
  12  1.19263e-06
  13  0.393509
  14  1.20644e-05
  15  1.01215
  16  67.487
  17  15.8143
  18  2.02957
  19  0.000195284
  20  16.3925
  21  0.326501
  22  5.72699
  23  3.7099
  24  0.0150755
  25  0.169808
  26  0.172795
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.295e-01  3.935e-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:  9.131e-01  1.728e-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.271e-01  1.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/977851/likelihoodResults_275875201_276134401_4FGL_J0348.5-2749_daily_bin141.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) = 5845.51789947
delta logL = 0.000444096284809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5845.51771701
delta logL = 0.000626556255156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13306       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1695       1.0000          .0000       5.0000    
     3 'Normalizat'    .72634       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91360       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5845.518     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      250 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13301        .39851        .79147E-04    .89143E-04
   2  alpha         2.1703        2.0115        .55120E-01   -.14087E-03
   3  Normalizat    .72648        .15951        .23537E-03    .86944E-06
   4  Prefactor     .91344        .17013        .22606E-03    .13075E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.133011
  alpha      = 2.17032
  Normalizat = 0.726479
  Prefactor  = 0.913443
 **********
 **   18 **HESSE 
 **********

 FCN=   5845.518     FROM HESSE     STATUS=OK            27 CALLS      277 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13301        .40274        .15829E-04   -1.5635    
   2  alpha         2.1703        2.0302        .11024E-01   -.13226    
   3  Normalizat    .72648        .15961        .94147E-05   -1.0286    
   4  Prefactor     .91344        .17021        .90425E-05   -.95673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80028e-11
Minuit parameter uncertainties:
  1  0.402745
  2  2.37922
  3  0.159709
  4  0.170312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977851': 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) = 5845.51771645
delta logL = 0.000627111298854

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.330e-01  4.027e-01  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.170e+00  2.379e+00  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:  9.134e-01  1.703e-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.265e-01  1.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/977851/cmap_HighResolution_275875201_276134401_4FGL_J0348.5-2749_daily_bin141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', job_status='DONE', photon_flux_upper_limit='5.00e-08', time_completed='2021-08-19 13:15:29.687232', job_id='977851', GAL2='0.91', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1629404129.69', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='6.27e-04', ts2='0.14', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='141' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:15:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 977851: <4FGL_J0348.5-2749_daily_bin141> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin141> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Aug 19 13:00:48 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:00:50 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:00:50 2021
Terminated at Thu Aug 19 13:15:31 2021
Results reported at Thu Aug 19 13:15:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin141 57.1417 -27.8303 275875201 276134401 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 :                                   862.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

