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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1099
RA = 357.016, Dec = -16.5161
tmin = 524188801, tmax = 524448001
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='128538', job_status='RUN', time_executed='2021-09-30 05:34:50.930090', time_epoch_executed='1633005290.93' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128538

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128538/ft1_4FGL_J2348.0-1630_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128538/ft2_4FGL_J2348.0-1630_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128538/ft1_4FGL_J2348.0-1630_daily_bin1099.fits outfile=/scratch/kocevski/128538/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1099.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=524188801.0 tmax=524448001.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.40
user 3.17
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128538/ft1_filtered_4FGL_J2348.0-1630_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/128538/ft2_4FGL_J2348.0-1630_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/128538/ltcube_524188801_524448001_4FGL_J2348.0-1630_daily_bin1099.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/128538/ft2_4FGL_J2348.0-1630_daily_bin1099.fits
.....................!
real 11.52
user 11.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128538/ft1_filtered_4FGL_J2348.0-1630_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/128538/ft2_4FGL_J2348.0-1630_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/128538/ltcube_524188801_524448001_4FGL_J2348.0-1630_daily_bin1099.fits outfile=/scratch/kocevski/128538/expmap_524188801_524448001_4FGL_J2348.0-1630_daily_bin1099.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/128538/ltcube_524188801_524448001_4FGL_J2348.0-1630_daily_bin1099.fits
.....................!
real 190.12
user 184.83
sys 4.67

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/128538/ft1_filtered_4FGL_J2348.0-1630_daily_bin1099.fits scfile=/scratch/kocevski/128538/ft2_4FGL_J2348.0-1630_daily_bin1099.fits outfile=/scratch/kocevski/128538/cmap_524188801_524448001_4FGL_J2348.0-1630_daily_bin1099.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128538/ft1_filtered_4FGL_J2348.0-1630_daily_bin1099.fits scfile=/scratch/kocevski/128538/ft2_4FGL_J2348.0-1630_daily_bin1099.fits outfile=/scratch/kocevski/128538/cmap_HighResolution_524188801_524448001_4FGL_J2348.0-1630_daily_bin1099.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/128538/ft1_filtered_4FGL_J2348.0-1630_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/128538/ft2_4FGL_J2348.0-1630_daily_bin1099.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128538/Model_4FGL_J2348.0-1630_daily_bin1099.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/128538/ft1_filtered_4FGL_J2348.0-1630_daily_bin1099.fits.....................!
real 48.95
user 47.56
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/128538/ft1_filtered_4FGL_J2348.0-1630_daily_bin1099.fits', '/scratch/kocevski/128538/ft2_4FGL_J2348.0-1630_daily_bin1099.fits', expMap='/scratch/kocevski/128538/expmap_524188801_524448001_4FGL_J2348.0-1630_daily_bin1099.fits', expCube='/scratch/kocevski/128538/ltcube_524188801_524448001_4FGL_J2348.0-1630_daily_bin1099.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/128538/Model_4FGL_J2348.0-1630_daily_bin1099.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/128538/ft1_filtered_4FGL_J2348.0-1630_daily_bin1099.fits
Spacecraft file(s): /scratch/kocevski/128538/ft2_4FGL_J2348.0-1630_daily_bin1099.fits
Exposure map: /scratch/kocevski/128538/expmap_524188801_524448001_4FGL_J2348.0-1630_daily_bin1099.fits
Exposure cube: /scratch/kocevski/128538/ltcube_524188801_524448001_4FGL_J2348.0-1630_daily_bin1099.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/128538/Model_4FGL_J2348.0-1630_daily_bin1099.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) = 5888.83385168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1511       1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.0117       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    86.543       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.483       1.0000         .10000E-03   10000.    
    10 'norm      '    10.068       1.0000         .10000E-03   10000.    
    11 'norm      '    .30704       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    54.966       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .75976       1.0000         .10000E-03   10000.    
    18 'norm      '    31.499       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0059       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86103       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.

 FCN=   5888.819     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2164 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1516        7.8703        .21752E-06   -.25787E-04
   2  norm          .10000E-03    13.553        .50922E-05** at limit **
   3  Prefactor     .10000E-03    32.869       -.20638E-04** at limit **
   4  Prefactor     .10000E-03    15.146       -.36117E-05** at limit **
   5  norm          6.0114        6.0589        .13834E-06    .13907E-03
   6  Prefactor     .10000E-03    8.0617       -.45748E-05** at limit **
   7  Prefactor     86.589        76.970        .45955E-04    .72447E-05
   8  Prefactor     .10000E-03    8.3411        .50261E-05** at limit **
   9  Prefactor     10.484        14.165       -.14440E-04   -.11723E-03
  10  norm          10.068        8.5231       -.33919E-06   -.82653E-04
  11  norm          .30014        2.2221        .37337E-06   -.28758E-03
  12  Prefactor     .10000E-03    16.589       -.31052E-05** at limit **
  13  Prefactor     .10000E-03    6.8474        .17202E-06** at limit **
  14  Prefactor     54.965        42.149       -.53951E-06   -.11834E-03
  15  Prefactor     .10000E-03    28.609        .10837E-04** at limit **
  16  Prefactor     .10000E-03    27.294        .16963E-04** at limit **
  17  norm          .76002        .63247        .44383E-08   -.41712E-03
  18  norm          31.496        7.4971        .22056E-06   -.95112E-04
  19  Prefactor     .10000E-03    3.1351       -.36204E-06** at limit **
  20  Normalizat    1.0064        .17190       -.26280E-05    .73170E-05
  21  Prefactor     .86054        .16431       -.25154E-06   -.10046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.15156
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.01145
  Prefactor  = 0.0001
  Prefactor  = 86.5895
  Prefactor  = 0.0001
  Prefactor  = 10.4842
  norm       = 10.0681
  norm       = 0.300136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.9647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.76002
  norm       = 31.4955
  Prefactor  = 0.0001
  Normalizat = 1.00641
  Prefactor  = 0.860538
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.819     FROM HESSE     STATUS=OK           315 CALLS     2479 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1516        7.8663        .15000E-03   -1.5173    
   2  norm          .10000E-03    13.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.0114        6.0640        .16376E-03   -1.5218    
   6  Prefactor     .10000E-03    8.1450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     86.589        77.038        .43186E-04   -1.3844    
   8  Prefactor     .10000E-03    8.3458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.484        14.174        .12375E-03   -1.5060    
  10  norm          10.068        8.5144        .12628E-03   -1.5073    
  11  norm          .30014        14.782        .19094E-02   -1.5598    
  12  Prefactor     .10000E-03    16.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.8622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     54.965        43.333        .54104E-04   -1.4224    
  15  Prefactor     .10000E-03    28.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .76002        .61181        .48830E-04   -1.5534    
  18  norm          31.496        7.4157        .71393E-04   -1.4585    
  19  Prefactor     .10000E-03    3.1579        .13263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0064        .19826        .24049E-03   -.92816    
  21  Prefactor     .86054        .18931        .25239E-03   -.97534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3487e-10
Minuit parameter uncertainties:
  1  7.86747
  2  1.12735e-05
  3  6.11148e-05
  4  3.93661e-05
  5  6.06464
  6  2.01772e-05
  7  77.1274
  8  1.11941e-06
  9  14.1784
  10  8.51544
  11  4.21308
  12  1.07032e-06
  13  1.1261e-06
  14  43.3574
  15  5.56923e-05
  16  1.33602e-05
  17  0.61182
  18  7.41587
  19  7.87653e-06
  20  0.198404
  21  0.189451
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  3.150e+01  7.416e+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:  8.605e-01  1.895e-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:  1.006e+00  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 63.33
Ra Dec: 357.016 -16.516
Photon Index (Fixed Index): 2.29 +/- 0.00
Photon Flux (Fixed Index): 2.69e-07 +/- 6.33e-08
Energy Flux (Fixed Index): 1.00e-04 +/- 2.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) = 5888.25422336
delta logL = 0.565094882291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5888.06690777
delta logL = 0.752410473808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    36.177       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0379       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83267       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.

 FCN=   5888.067     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      207 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          36.177        10.791        .16658E-02    .57878E-02
   2  alpha         2.0380        .25019        .12719        .22877E-04
   3  Normalizat    1.0513        .17217        .40474E-01    .84742E-05
   4  Prefactor     .83267        .16596        .44141E-01    .16483E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 36.1774
  alpha      = 2.03797
  Normalizat = 1.05125
  Prefactor  = 0.832675
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.067     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          36.177        8.4964        .66630E-04   -1.4504    
   2  alpha         2.0380        .20109        .54969E-02   -.18588    
   3  Normalizat    1.0513        .19601        .23622E-03   -.91333    
   4  Prefactor     .83267        .18902        .25614E-03   -.98535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31173e-09
Minuit parameter uncertainties:
  1  8.49665
  2  0.201312
  3  0.196147
  4  0.189171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128538': 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) = 5888.06690767
delta logL = 0.752410571031

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  3.618e+01  8.497e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.038e+00  2.013e-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:  8.327e-01  1.892e-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:  1.051e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 65.95
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 2.04 +/- 0.20
Photon Flux (Free Index): 2.28e-07 +/- 6.14e-08
Energy Flux (Free Index): 1.26e-04 +/- 3.94e-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/128538/cmap_HighResolution_524188801_524448001_4FGL_J2348.0-1630_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.69e-07', energy_flux2='1.26e-04', photon_flux_error='6.33e-08', dlogl='7.52e-01', energy_flux='1.00e-04', photon_flux2='2.28e-07', job_status='DONE', time_completed='2021-09-30 05:45:28.089829', photon_index_error2='0.20', photon_index2='2.04', ts='63.33', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='3.94e-05', EG='1.01', time_epoch_completed='1633005928.09', return_code='0', job_id='128538', GAL2='0.83', EG2='1.05', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='6.14e-08', ts2='65.95', photon_index='2.29' WHERE bin_id='1099' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:45:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 128538: <4FGL_J2348.0-1630_daily_bin1099> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1099> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 05:30:54 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:30:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 05:30:56 2021
Terminated at Thu Sep 30 05:45:28 2021
Results reported at Thu Sep 30 05:45:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1099 357.016 -16.5161 524188801 524448001 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 :                                   526.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             253.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

