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


Performing analysis on: 4FGL_J0348.5-2749_daily_bin1364
RA = 57.1417, Dec = -27.8303
tmin = 592876801, tmax = 593136001
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='985581', job_status='RUN', time_executed='2021-08-19 13:27:16.066787', time_epoch_executed='1629404836.07' WHERE source_name='4FGL J0348.5-2749' and cadence='daily' and bin_id='1364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985581

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985581/ft1_4FGL_J0348.5-2749_daily_bin1364.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985581/ft2_4FGL_J0348.5-2749_daily_bin1364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985581/ft1_4FGL_J0348.5-2749_daily_bin1364.fits outfile=/scratch/kocevski/985581/ft1_filteredMKT_4FGL_J0348.5-2749_daily_bin1364.fits ra=57.1417 dec=-27.8303 rad=12.0 tmin=592876801.0 tmax=593136001.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 4.04
user 3.59
sys 0.43

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985581/ft1_filtered_4FGL_J0348.5-2749_daily_bin1364.fits" evtable="EVENTS" scfile=/scratch/kocevski/985581/ft2_4FGL_J0348.5-2749_daily_bin1364.fits sctable="SC_DATA" outfile=/scratch/kocevski/985581/ltcube_592876801_593136001_4FGL_J0348.5-2749_daily_bin1364.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/985581/ft2_4FGL_J0348.5-2749_daily_bin1364.fits
.....................!
real 12.02
user 11.43
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985581/ft1_filtered_4FGL_J0348.5-2749_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/985581/ft2_4FGL_J0348.5-2749_daily_bin1364.fits sctable="SC_DATA" expcube=/scratch/kocevski/985581/ltcube_592876801_593136001_4FGL_J0348.5-2749_daily_bin1364.fits outfile=/scratch/kocevski/985581/expmap_592876801_593136001_4FGL_J0348.5-2749_daily_bin1364.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/985581/ltcube_592876801_593136001_4FGL_J0348.5-2749_daily_bin1364.fits
.....................!
real 189.44
user 184.78
sys 4.32

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/985581/ft1_filtered_4FGL_J0348.5-2749_daily_bin1364.fits scfile=/scratch/kocevski/985581/ft2_4FGL_J0348.5-2749_daily_bin1364.fits outfile=/scratch/kocevski/985581/cmap_592876801_593136001_4FGL_J0348.5-2749_daily_bin1364.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 1.70
user 0.38
sys 0.37

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

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

This is gtbin version HEAD
real 0.75
user 0.37
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985581/ft1_filtered_4FGL_J0348.5-2749_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/985581/ft2_4FGL_J0348.5-2749_daily_bin1364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985581/Model_4FGL_J0348.5-2749_daily_bin1364.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/985581/ft1_filtered_4FGL_J0348.5-2749_daily_bin1364.fits.....................!
real 165.97
user 164.12
sys 1.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.2021       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.858       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0466       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4690       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.613       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2747       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21030E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    11.084       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .87305E-01   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 '    2.2683       1.0000         .10000E-03   10000.    
    19 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5196       1.0000         .10000E-03   10000.    
    21 'norm      '    .63735       1.0000         .10000E-03   10000.    
    22 'norm      '    5.4451       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .94219       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89532       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=   7744.330     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3140 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8266       -.14758E-06** at limit **
   2  norm          4.2020        2.3122       -.10076E-07    .24694E-03
   3  Prefactor     .10000E-03    32.345        .14589E-05** at limit **
   4  Prefactor     14.856        13.030       -.35441E-06    .96057E-05
   5  Prefactor     7.0443        19.558       -.21225E-05    .12281E-04
   6  norm          2.4698        2.5510       -.18847E-06   -.34203E-03
   7  Prefactor     .10000E-03    29.769       -.49590E-05** at limit **
   8  Prefactor     48.613        30.781       -.33386E-06    .27062E-04
   9  Prefactor     1.2746        1.1595        .15927E-07    .30256E-03
  10  Prefactor     .10000E-03    .77618        .17485E-07** at limit **
  11  Prefactor     .10000E-03    .87013        .64615E-08** at limit **
  12  Prefactor     .10001E-03    7.5861        .68533E-07** at limit **
  13  norm          11.084        1.4224        .33653E-07    .84887E-03
  14  Prefactor     .10000E-03    14.921        .32044E-06** at limit **
  15  norm          .87324E-01    .48362       -.18577E-06   -.84569E-04
  16  Prefactor     .10000E-03    35.959        .44007E-05** at limit **
  17  Prefactor     .10000E-03    5.0973        .42961E-07** at limit **
  18  Prefactor     2.2685        1.6918        .11667E-06    .29531E-03
  19  norm          .10000E-03    6.4236        .55702E-06** at limit **
  20  Prefactor     1.4928        60.693       -.25836E-04    .11193E-04
  21  norm          .63745        .28707       -.36513E-07   -.55058E-03
  22  norm          5.4450        5.3299       -.13828E-06   -.13513E-03
  23  Prefactor     .10000E-03    1.8495       -.37978E-08** at limit **
  24  Prefactor     .10000E-03    8.3664       -.15611E-06** at limit **
  25  Normalizat    .94231        .14654        .69655E-06    .26824E-03
  26  Prefactor     .89531        .14989        .96663E-06    .24173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.20195
  Prefactor  = 0.0001
  Prefactor  = 14.856
  Prefactor  = 7.0443
  norm       = 2.4698
  Prefactor  = 0.000100001
  Prefactor  = 48.6128
  Prefactor  = 1.2746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 11.0838
  Prefactor  = 0.0001
  norm       = 0.0873241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.26851
  norm       = 0.0001
  Prefactor  = 1.4928
  norm       = 0.637449
  norm       = 5.44497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.942314
  Prefactor  = 0.895309
 **********
 **   18 **HESSE 
 **********

 FCN=   7744.330     FROM HESSE     STATUS=OK           460 CALLS     3600 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2020        2.3119        .48340E-03   -1.5298    
   3  Prefactor     .10000E-03    32.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.856        13.030        .10391E-03   -1.4937    
   5  Prefactor     7.0443        19.574        .15112E-03   -1.5177    
   6  norm          2.4698        2.5361        .13776E-03   -1.5394    
   7  Prefactor     .10000E-03    29.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.613        30.792        .57513E-04   -1.4312    
   9  Prefactor     1.2746        1.1726        .86735E-04   -1.5482    
  10  Prefactor     .10000E-03    .77994        .75689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .87806        .80116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    44.712        .45726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.084        1.4257        .35953E-04   -1.5042    
  14  Prefactor     .10000E-03    15.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .87324E-01    2.2046        .11490E-02   -1.5649    
  16  Prefactor     .10000E-03    35.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2685        1.6886        .94721E-04   -1.5407    
  19  norm          .10000E-03    6.4993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4928        66.172        .34663E-03   -1.5464    
  21  norm          .63745        .28183        .29414E-04   -1.5548    
  22  norm          5.4450        5.3279        .17220E-03   -1.5241    
  23  Prefactor     .10000E-03    1.9175        .23361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.4324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .94231        .16656        .24280E-03   -.94989    
  26  Prefactor     .89531        .17239        .25933E-03   -.96305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22212e-08
Minuit parameter uncertainties:
  1  5.09161e-06
  2  2.31197
  3  7.80879e-05
  4  13.0324
  5  19.5923
  6  2.53621
  7  0.000245962
  8  30.802
  9  1.17257
  10  9.10512e-07
  11  2.54274e-06
  12  0.00131918
  13  1.42567
  14  2.20058e-05
  15  0.877072
  16  0.000254119
  17  1.70039e-06
  18  1.68868
  19  8.57417e-05
  20  19.9006
  21  0.281831
  22  5.32834
  23  1.45896e-06
  24  8.65077e-07
  25  0.166649
  26  0.172497
Done.

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

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.108e+01  1.426e+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:  8.953e-01  1.725e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  9.423e-01  1.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 248.54
Ra Dec: 57.142 -27.830
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.96e-07 +/- 5.09e-08
Energy Flux (Fixed Index): 1.87e-04 +/- 2.40e-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) = 7744.14016484
delta logL = 0.19004192681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7744.13122329
delta logL = 0.198983470187

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.330       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0091       1.0000          .0000       5.0000    
     3 'Normalizat'    .96120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88254       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=   7744.131     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      195 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.330        1.6207        .29755E-02   -.77422E-04
   2  alpha         2.0092        .13195        .92837E-01    .13236E-04
   3  Normalizat    .96122        .14354        .45679E-01    .28194E-04
   4  Prefactor     .88255        .14798        .44782E-01   -.26469E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3303
  alpha      = 2.00917
  Normalizat = 0.961216
  Prefactor  = 0.882546
 **********
 **   18 **HESSE 
 **********

 FCN=   7744.131     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.330        1.5005        .36710E-04   -1.5035    
   2  alpha         2.0092        .12336        .40723E-03   -.19762    
   3  Normalizat    .96122        .16414        .24089E-03   -.94341    
   4  Prefactor     .88255        .16871        .26097E-03   -.96754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34324e-12
Minuit parameter uncertainties:
  1  1.5005
  2  0.123412
  3  0.164221
  4  0.168812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985581': 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) = 7744.13122311
delta logL = 0.198983648885

Extracting fit parameters...

4FGL J0348.5-2749
   Spectrum: LogParabola
247         norm:  1.133e+01  1.501e+00  1.000e-04  1.000e+04 ( 1.000e-11)
248        alpha:  2.009e+00  1.234e-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:  8.825e-01  1.688e-01  0.000e+00  1.000e+01 ( 1.000e+00)
511        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
512        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  9.612e-01  1.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 246.98
Ra Dec: 57.142 -27.830
Photon Index (Free Index): 2.01 +/- 0.12
Photon Flux (Free Index): 3.78e-07 +/- 5.61e-08
Energy Flux (Free Index): 2.04e-04 +/- 3.99e-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/985581/cmap_HighResolution_592876801_593136001_4FGL_J0348.5-2749_daily_bin1364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.96e-07', energy_flux2='2.04e-04', photon_flux_error='5.09e-08', dlogl='1.99e-01', energy_flux='1.87e-04', photon_flux2='3.78e-07', job_status='DONE', time_completed='2021-08-19 13:41:00.338693', photon_index_error2='0.12', photon_index2='2.01', ts='248.54', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='3.99e-05', EG='0.94', time_epoch_completed='1629405660.34', return_code='0', job_id='985581', GAL2='0.88', EG2='0.96', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='5.61e-08', ts2='246.98', photon_index='2.09' WHERE bin_id='1364' AND source_name='4FGL J0348.5-2749' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 13:41:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 985581: <4FGL_J0348.5-2749_daily_bin1364> in cluster <slac> Done

Job <4FGL_J0348.5-2749_daily_bin1364> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug 19 13:25:45 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 13:25:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 13:25:46 2021
Terminated at Thu Aug 19 13:41:01 2021
Results reported at Thu Aug 19 13:41:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0348.5-2749_daily_bin1364 57.1417 -27.8303 592876801 593136001 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 :                                   822.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             304.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

