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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1611
RA = 357.016, Dec = -16.5161
tmin = 656899201, tmax = 657158401
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='505383', job_status='RUN', time_executed='2021-12-08 09:46:56.102568', time_epoch_executed='1638985616.1' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1611'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505383

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505383/ft1_4FGL_J2348.0-1630_daily_bin1611.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505383/ft2_4FGL_J2348.0-1630_daily_bin1611.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505383/ft1_4FGL_J2348.0-1630_daily_bin1611.fits outfile=/scratch/kocevski/505383/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1611.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=656899201.0 tmax=657158401.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 3.58
user 3.35
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/505383/ft2_4FGL_J2348.0-1630_daily_bin1611.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505383/ft2_4FGL_J2348.0-1630_daily_bin1611.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/505383/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1611.fits evtable="EVENTS" outfile="/scratch/kocevski/505383/ft1_filtered_4FGL_J2348.0-1630_daily_bin1611.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.49
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505383/ft1_filtered_4FGL_J2348.0-1630_daily_bin1611.fits" evtable="EVENTS" scfile=/scratch/kocevski/505383/ft2_4FGL_J2348.0-1630_daily_bin1611.fits sctable="SC_DATA" outfile=/scratch/kocevski/505383/ltcube_656899201_657158401_4FGL_J2348.0-1630_daily_bin1611.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/505383/ft2_4FGL_J2348.0-1630_daily_bin1611.fits
.....................!
real 13.66
user 13.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505383/ft1_filtered_4FGL_J2348.0-1630_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/505383/ft2_4FGL_J2348.0-1630_daily_bin1611.fits sctable="SC_DATA" expcube=/scratch/kocevski/505383/ltcube_656899201_657158401_4FGL_J2348.0-1630_daily_bin1611.fits outfile=/scratch/kocevski/505383/expmap_656899201_657158401_4FGL_J2348.0-1630_daily_bin1611.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/505383/ltcube_656899201_657158401_4FGL_J2348.0-1630_daily_bin1611.fits
.....................!
real 191.34
user 185.58
sys 5.34

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
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J2348.0-1630 @ 357.016 -16.5161

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/505383/ft1_filtered_4FGL_J2348.0-1630_daily_bin1611.fits scfile=/scratch/kocevski/505383/ft2_4FGL_J2348.0-1630_daily_bin1611.fits outfile=/scratch/kocevski/505383/cmap_656899201_657158401_4FGL_J2348.0-1630_daily_bin1611.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=357.016 yref=-16.5161 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505383/ft1_filtered_4FGL_J2348.0-1630_daily_bin1611.fits scfile=/scratch/kocevski/505383/ft2_4FGL_J2348.0-1630_daily_bin1611.fits outfile=/scratch/kocevski/505383/cmap_HighResolution_656899201_657158401_4FGL_J2348.0-1630_daily_bin1611.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=357.016 yref=-16.5161 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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/505383/ft1_filtered_4FGL_J2348.0-1630_daily_bin1611.fits evtable="EVENTS" scfile=/scratch/kocevski/505383/ft2_4FGL_J2348.0-1630_daily_bin1611.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505383/Model_4FGL_J2348.0-1630_daily_bin1611.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 GAL_V02
Working on...
/scratch/kocevski/505383/ft1_filtered_4FGL_J2348.0-1630_daily_bin1611.fits.....................!
real 44.40
user 43.03
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/505383/ft1_filtered_4FGL_J2348.0-1630_daily_bin1611.fits', '/scratch/kocevski/505383/ft2_4FGL_J2348.0-1630_daily_bin1611.fits', expMap='/scratch/kocevski/505383/expmap_656899201_657158401_4FGL_J2348.0-1630_daily_bin1611.fits', expCube='/scratch/kocevski/505383/ltcube_656899201_657158401_4FGL_J2348.0-1630_daily_bin1611.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/505383/Model_4FGL_J2348.0-1630_daily_bin1611.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2348.0-1630'

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  6.070e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.290e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
491         beta:  5.720e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
492           Eb:  8.260e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/505383/ft1_filtered_4FGL_J2348.0-1630_daily_bin1611.fits
Spacecraft file(s): /scratch/kocevski/505383/ft2_4FGL_J2348.0-1630_daily_bin1611.fits
Exposure map: /scratch/kocevski/505383/expmap_656899201_657158401_4FGL_J2348.0-1630_daily_bin1611.fits
Exposure cube: /scratch/kocevski/505383/ltcube_656899201_657158401_4FGL_J2348.0-1630_daily_bin1611.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/505383/Model_4FGL_J2348.0-1630_daily_bin1611.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) = 5394.04985998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9374       1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.968       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56273E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9637       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6563       1.0000         .10000E-03   10000.    
    11 'norm      '    4.3905       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38611E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4301       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0718       1.0000         .10000E-03   10000.    
    15 'Prefactor '    91.561       1.0000         .10000E-03   10000.    
    16 'Prefactor '    72.223       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.292       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.551       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89933       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .65544       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+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=   5394.045     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     2603 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9326        9.0485        .23699E-03   -.66200E-04
   2  norm          .10000E-03    23.043        .18142E-02** at limit **
   3  Prefactor     .10000E-03    45.213        .18142E-02** at limit **
   4  Prefactor     .10000E-03    4.3203        .14908E-02** at limit **
   5  norm          10.968        8.3716        .12097E-03   -.79879E-05
   6  Prefactor     .10000E-03    3.7627        .13903E-02** at limit **
   7  Prefactor     .10000E-03    311.52        .87575E-02** at limit **
   8  Prefactor     .10000E-03    51.275        .18142E-02** at limit **
   9  Prefactor     5.9386        6.6060        .16443E-03   -.31341E-03
  10  norm          1.6533        3.7378        .20867E-03   -.30134E-03
  11  norm          4.3940        3.0539        .94797E-04   -.17653E-03
  12  Prefactor     .10000E-03    301.44        .78650E-02** at limit **
  13  Prefactor     8.4282        11.858        .13807E-03   -.36147E-04
  14  Prefactor     8.0117        30.602        .14112E-03   -.23846E-04
  15  Prefactor     91.542        58.528        .41996E-04    .25230E-04
  16  Prefactor     72.261        72.499        .23620E-03   -.57181E-04
  17  norm          .10000E-03    .23630        .60780E-03** at limit **
  18  norm          10.292        4.2564        .92364E-04   -.21023E-03
  19  Prefactor     14.552        6.8765        .10500E-03    .86184E-04
  20  Normalizat    .89913        .17654        .20827E-03   -.24083E-03
  21  Prefactor     .65553        .16889        .23789E-03    .29582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93264
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 10.968
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 5.9386
  norm       = 1.65331
  norm       = 4.39397
  Prefactor  = 0.000100005
  Prefactor  = 8.42822
  Prefactor  = 8.01166
  Prefactor  = 91.5416
  Prefactor  = 72.2607
  norm       = 0.0001
  norm       = 10.292
  Prefactor  = 14.5518
  Normalizat = 0.899134
  Prefactor  = 0.655528
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.045     FROM HESSE     STATUS=OK           295 CALLS     2898 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9326        9.0463        .94796E-05   -1.5365    
   2  norm          .10000E-03    23.045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.220        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3204        .29817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.968        8.3716        .48390E-05   -1.5045    
   6  Prefactor     .10000E-03    3.7628        .27807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    319.24        .35030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    51.314        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9386        6.5670        .65771E-05   -1.5221    
  10  norm          1.6533        3.7375        .83468E-05   -1.5451    
  11  norm          4.3940        3.0531        .37919E-05   -1.5289    
  12  Prefactor     .10000E-03    309.28        .31460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.4282        11.743        .55228E-05   -1.5127    
  14  Prefactor     8.0117        30.586        .56448E-05   -1.5142    
  15  Prefactor     91.542        58.527        .83992E-05   -1.3791    
  16  Prefactor     72.261        72.489        .94479E-05   -1.4006    
  17  norm          .10000E-03    .23638        .12156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.292        4.2558        .36945E-05   -1.5066    
  19  Prefactor     14.552        6.8756        .42000E-05   -1.4945    
  20  Normalizat    .89913        .17665        .41655E-04   -.96491    
  21  Prefactor     .65553        .16903        .95155E-05   -1.0530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.7645e-10
Minuit parameter uncertainties:
  1  9.05053
  2  2.04033e-05
  3  0.000652972
  4  1.14449e-06
  5  8.37251
  6  1.59997e-07
  7  0.00182482
  8  0.000364772
  9  6.56782
  10  3.73798
  11  3.05324
  12  0.00245226
  13  11.7466
  14  30.646
  15  58.5636
  16  72.5782
  17  3.21645e-06
  18  4.25588
  19  6.87598
  20  0.176759
  21  0.169157
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.029e+01  4.256e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.290e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
491         beta:  5.720e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
492           Eb:  8.260e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  6.555e-01  1.692e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  8.991e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.10
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 8.79e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 3.28e-05 +/- 1.36e-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) = 5393.81659718
delta logL = 0.228056823944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5393.80642173
delta logL = 0.238232274932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4606       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5846       1.0000          .0000       5.0000    
     3 'Normalizat'    .87317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+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=   5393.806     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      261 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4600        4.8600        .78835E-04    .30255E-02
   2  alpha         2.5847        .46009        .79724E-02    .28042E-03
   3  Normalizat    .87320        .17462        .21087E-03   -.14535E-03
   4  Prefactor     .67175        .16930        .23523E-03   -.27432E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.46005
  alpha      = 2.58468
  Normalizat = 0.873198
  Prefactor  = 0.67175
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.806     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4600        4.6596        .15767E-04   -1.5126    
   2  alpha         2.5847        .44087        .31890E-03    .33878E-01
   3  Normalizat    .87320        .17454        .84349E-05   -.97408    
   4  Prefactor     .67175        .16928        .94092E-05   -1.0464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52438e-09
Minuit parameter uncertainties:
  1  4.65975
  2  0.443191
  3  0.174651
  4  0.169405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505383': 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) = 5393.80642123
delta logL = 0.238232770884

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  8.460e+00  4.660e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.585e+00  4.432e-01  0.000e+00  5.000e+00 ( 1.000e+00)
491         beta:  5.720e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
492           Eb:  8.260e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  6.717e-01  1.694e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  8.732e-01  1.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.56
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.58 +/- 0.44
Photon Flux (Free Index): 1.08e-07 +/- 5.02e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/505383/cmap_HighResolution_656899201_657158401_4FGL_J2348.0-1630_daily_bin1611.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.79e-08', energy_flux2='2.95e-05', photon_flux_error='3.63e-08', dlogl='2.38e-01', energy_flux='3.28e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-12-08 09:55:57.729123', photon_index_error2='0.44', photon_index2='2.58', ts='12.10', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='0.90', time_epoch_completed='1638986157.73', return_code='0', job_id='505383', GAL2='0.67', EG2='0.87', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='5.02e-08', ts2='12.56', photon_index='2.29' WHERE bin_id='1611' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 09:55:57 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 505383: <4FGL_J2348.0-1630_daily_bin1611> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1611> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 09:45:18 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:46:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:46:00 2021
Terminated at Wed Dec  8 09:55:58 2021
Results reported at Wed Dec  8 09:55:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1611 357.016 -16.5161 656899201 657158401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2348.0-1630 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   540.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            640 sec.

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

