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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1342
RA = 57.1417, Dec = -27.8303
tmin = 587174401, tmax = 587433601
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='985548', job_status='RUN', time_executed='2021-08-19 13:27:06.820126', time_epoch_executed='1629404826.82' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1342'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985548/ft1_4FGL_J0348.5-2749_daily_bin1342.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985548/ft2_4FGL_J0348.5-2749_daily_bin1342.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985548/ft1_4FGL_J0348.5-2749_daily_bin1342.fits outfile=/scratch/kocevski/985548/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1342.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=587174401.0 tmax=587433601.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.92
user 3.41
sys 4.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985548/ft2_4FGL_J0348.5-2749_daily_bin1342.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/985548/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1342.fits evtable="EVENTS" outfile="/scratch/kocevski/985548/ft1_filtered_4FGL_J0348.5-2749_daily_bin1342.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.82
user 0.34
sys 4.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985548/ft1_filtered_4FGL_J0348.5-2749_daily_bin1342.fits" evtable="EVENTS" scfile=/scratch/kocevski/985548/ft2_4FGL_J0348.5-2749_daily_bin1342.fits sctable="SC_DATA" outfile=/scratch/kocevski/985548/ltcube_587174401_587433601_4FGL_J0348.5-2749_daily_bin1342.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/985548/ft2_4FGL_J0348.5-2749_daily_bin1342.fits
.....................!
real 16.74
user 11.51
sys 5.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985548/ft1_filtered_4FGL_J0348.5-2749_daily_bin1342.fits evtable="EVENTS" scfile=/scratch/kocevski/985548/ft2_4FGL_J0348.5-2749_daily_bin1342.fits sctable="SC_DATA" expcube=/scratch/kocevski/985548/ltcube_587174401_587433601_4FGL_J0348.5-2749_daily_bin1342.fits outfile=/scratch/kocevski/985548/expmap_587174401_587433601_4FGL_J0348.5-2749_daily_bin1342.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/985548/ltcube_587174401_587433601_4FGL_J0348.5-2749_daily_bin1342.fits
.....................!
real 194.88
user 185.17
sys 9.40

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/985548/ft1_filtered_4FGL_J0348.5-2749_daily_bin1342.fits scfile=/scratch/kocevski/985548/ft2_4FGL_J0348.5-2749_daily_bin1342.fits outfile=/scratch/kocevski/985548/cmap_587174401_587433601_4FGL_J0348.5-2749_daily_bin1342.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.78
user 0.37
sys 4.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985548/ft1_filtered_4FGL_J0348.5-2749_daily_bin1342.fits scfile=/scratch/kocevski/985548/ft2_4FGL_J0348.5-2749_daily_bin1342.fits outfile=/scratch/kocevski/985548/cmap_HighResolution_587174401_587433601_4FGL_J0348.5-2749_daily_bin1342.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.81
user 0.39
sys 4.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985548/ft1_filtered_4FGL_J0348.5-2749_daily_bin1342.fits evtable="EVENTS" scfile=/scratch/kocevski/985548/ft2_4FGL_J0348.5-2749_daily_bin1342.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985548/Model_4FGL_J0348.5-2749_daily_bin1342.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/985548/ft1_filtered_4FGL_J0348.5-2749_daily_bin1342.fits.....................!
real 161.28
user 154.19
sys 6.75

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.744       1.0000         .10000E-03   10000.    
     2 'norm      '    6.1475       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24149E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32556E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.4140       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5458       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .76141       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6124       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .29892E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.409       1.0000         .10000E-03   10000.    
    13 'norm      '    13.698       1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.192       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2449       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.638       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0300       1.0000         .10000E-03   10000.    
    22 'norm      '    8.7565       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20651E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .30321       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82272       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1786       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=   7253.055     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3206 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.745        18.528        .25579E-06    .92623E-04
   2  norm          6.1475        3.1780       -.26554E-07   -.38587E-03
   3  Prefactor     .10001E-03    223.33        .22893E-05** at limit **
   4  Prefactor     .10001E-03    104.12        .42664E-04** at limit **
   5  Prefactor     .10000E-03    18.332       -.13779E-07** at limit **
   6  norm          3.4140        2.1950       -.35188E-07   -.43663E-03
   7  Prefactor     7.5458        42.594        .66760E-06    .50455E-04
   8  Prefactor     .10000E-03    35.476        .23746E-06** at limit **
   9  Prefactor     .76221        1.4553       -.11520E-05   -.10785E-02
  10  Prefactor     3.6078        4.9257       -.67450E-06    .60232E-03
  11  Prefactor     .10000E-03    2.2560        .22558E-05** at limit **
  12  Prefactor     11.410        11.575        .27315E-06    .31798E-03
  13  norm          13.698        1.8497        .74922E-09    .65223E-04
  14  Prefactor     41.194        24.917        .74281E-07   -.35270E-04
  15  norm          .10000E-03    .32462        .10732E-06** at limit **
  16  Prefactor     .10005E-03    146.08        .71381E-06** at limit **
  17  Prefactor     .10000E-03    5.4801        .50500E-08** at limit **
  18  Prefactor     3.2451        2.1737        .71351E-07    .46958E-03
  19  norm          .10000E-03    6.4341        .13020E-06** at limit **
  20  Prefactor     30.638        27.918       -.28949E-06   -.66591E-04
  21  norm          1.0299        .34019       -.24835E-07   -.12477E-02
  22  norm          8.7537        6.9583       -.38115E-06   -.29971E-03
  23  Prefactor     .10001E-03    4.1721        .63946E-05** at limit **
  24  Prefactor     .36612        61.597        .29214E-04   -.50099E-04
  25  Normalizat    .82277        .17561       -.12123E-05   -.23237E-03
  26  Prefactor     1.1785        .17365        .93509E-06    .41472E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7449
  norm       = 6.1475
  Prefactor  = 0.000100012
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 3.41404
  Prefactor  = 7.5458
  Prefactor  = 0.0001
  Prefactor  = 0.76221
  Prefactor  = 3.60783
  Prefactor  = 0.0001
  Prefactor  = 11.4099
  norm       = 13.6981
  Prefactor  = 41.194
  norm       = 0.0001
  Prefactor  = 0.000100049
  Prefactor  = 0.0001
  Prefactor  = 3.24508
  norm       = 0.0001
  Prefactor  = 30.6384
  norm       = 1.0299
  norm       = 8.75374
  Prefactor  = 0.000100008
  Prefactor  = 0.366123
  Normalizat = 0.822766
  Prefactor  = 1.1785
 **********
 **   18 **HESSE 
 **********

 FCN=   7253.055     FROM HESSE     STATUS=OK           480 CALLS     3686 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.745        18.580        .97879E-04   -1.4889    
   2  norm          6.1475        3.1789        .10596E-03   -1.5212    
   3  Prefactor     .10001E-03    224.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    137.76        .56997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4140        2.1983        .98561E-04   -1.5338    
   7  Prefactor     7.5458        42.551        .14599E-03   -1.5159    
   8  Prefactor     .10000E-03    35.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .76221        1.3646        .14909E-02   -1.5533    
  10  Prefactor     3.6078        4.6628        .19338E-03   -1.5328    
  11  Prefactor     .10000E-03    9.7027        .22132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.410        11.577        .11860E-03   -1.5032    
  13  norm          13.698        1.8503        .39133E-04   -1.4968    
  14  Prefactor     41.194        24.926        .62457E-04   -1.4423    
  15  norm          .10000E-03    .33128        .47385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10005E-03    147.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2451        2.1654        .98693E-04   -1.5348    
  19  norm          .10000E-03    6.4502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.638        27.885        .72386E-04   -1.4600    
  21  norm          1.0299        .33954        .26646E-04   -1.5505    
  22  norm          8.7537        6.9562        .13546E-03   -1.5116    
  23  Prefactor     .10001E-03    29.168        .23064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .36612        18.564        .97644E-01   -1.5587    
  25  Normalizat    .82277        .20405        .29528E-03   -.99230    
  26  Prefactor     1.1785        .20349        .26242E-03   -.86996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3237e-09
Minuit parameter uncertainties:
  1  18.5864
  2  3.17895
  3  0.00327299
  4  0.00174159
  5  2.81557e-05
  6  2.19832
  7  35.8763
  8  0.000121318
  9  1.36465
  10  4.66324
  11  0.000119233
  12  11.5796
  13  1.85029
  14  24.932
  15  2.27255e-06
  16  0.00539955
  17  2.95148e-06
  18  2.16549
  19  4.07083e-05
  20  27.8973
  21  0.339545
  22  6.95689
  23  0.000976755
  24  5.21504
  25  0.204237
  26  0.203628
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.370e+01  1.850e+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.178e+00  2.036e-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:  8.228e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 228.31
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.89e-07 +/- 6.60e-08
Energy Flux (Fixed Index): 2.30e-04 +/- 3.11e-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) = 7252.52862413
delta logL = 0.526684277217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7252.46183733
delta logL = 0.593471077293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.005       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2316       1.0000          .0000       5.0000    
     3 'Normalizat'    .77968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2075       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=   7252.462     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.004        2.2099        .27769E-02    .64130E-04
   2  alpha         2.2317        .15965        .88003E-01    .51533E-04
   3  Normalizat    .77969        .16864        .68231E-01    .32714E-04
   4  Prefactor     1.2076        .17373        .58706E-01   -.18022E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0045
  alpha      = 2.23168
  Normalizat = 0.779686
  Prefactor  = 1.20762
 **********
 **   18 **HESSE 
 **********

 FCN=   7252.462     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.004        1.8421        .37348E-04   -1.4987    
   2  alpha         2.2317        .13428        .38664E-03   -.10754    
   3  Normalizat    .77969        .19778        .30191E-03   -1.0083    
   4  Prefactor     1.2076        .20357        .25959E-03   -.86097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52596e-12
Minuit parameter uncertainties:
  1  1.84213
  2  0.134348
  3  0.197958
  4  0.203705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985548': 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) = 7252.46183682
delta logL = 0.593471581393

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.300e+01  1.842e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.232e+00  1.343e-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:  1.208e+00  2.037e-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.797e-01  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 229.10
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.23 +/- 0.13
Photon Flux (Free Index): 5.30e-07 +/- 7.70e-08
Energy Flux (Free Index): 2.02e-04 +/- 3.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/985548/cmap_HighResolution_587174401_587433601_4FGL_J0348.5-2749_daily_bin1342.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.89e-07', energy_flux2='2.02e-04', photon_flux_error='6.60e-08', dlogl='5.93e-01', energy_flux='2.30e-04', photon_flux2='5.30e-07', job_status='DONE', time_completed='2021-08-19 13:41:11.122549', photon_index_error2='0.13', photon_index2='2.23', ts='228.31', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='3.40e-05', EG='0.82', time_epoch_completed='1629405671.12', return_code='0', job_id='985548', GAL2='1.21', EG2='0.78', return_code2='0', energy_flux_error='3.11e-05', photon_flux_error2='7.70e-08', ts2='229.10', photon_index='2.09' WHERE bin_id='1342' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:41:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 985548: <4FGL_J0348.5-2749_daily_bin1342> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1342> 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) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:25:44 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:44 2021
Terminated at Thu Aug 19 13:41:12 2021
Results reported at Thu Aug 19 13:41:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1342 57.1417 -27.8303 587174401 587433601 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 :                                   901.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            930 sec.

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

