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


Performing analysis on: 4FGL_J2348.0-1630_daily_bin1090
RA = 357.016, Dec = -16.5161
tmin = 521856001, tmax = 522115201
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='128524', job_status='RUN', time_executed='2021-09-30 05:33:32.589492', time_epoch_executed='1633005212.59' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128524

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128524/ft1_4FGL_J2348.0-1630_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128524/ft2_4FGL_J2348.0-1630_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128524/ft1_4FGL_J2348.0-1630_daily_bin1090.fits outfile=/scratch/kocevski/128524/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin1090.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=521856001.0 tmax=522115201.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.72
user 3.51
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128524/ft1_filtered_4FGL_J2348.0-1630_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/128524/ft2_4FGL_J2348.0-1630_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/128524/ltcube_521856001_522115201_4FGL_J2348.0-1630_daily_bin1090.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/128524/ft2_4FGL_J2348.0-1630_daily_bin1090.fits
.....................!
real 11.97
user 11.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128524/ft1_filtered_4FGL_J2348.0-1630_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/128524/ft2_4FGL_J2348.0-1630_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/128524/ltcube_521856001_522115201_4FGL_J2348.0-1630_daily_bin1090.fits outfile=/scratch/kocevski/128524/expmap_521856001_522115201_4FGL_J2348.0-1630_daily_bin1090.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/128524/ltcube_521856001_522115201_4FGL_J2348.0-1630_daily_bin1090.fits
.....................!
real 191.79
user 186.52
sys 4.94

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/128524/ft1_filtered_4FGL_J2348.0-1630_daily_bin1090.fits scfile=/scratch/kocevski/128524/ft2_4FGL_J2348.0-1630_daily_bin1090.fits outfile=/scratch/kocevski/128524/cmap_521856001_522115201_4FGL_J2348.0-1630_daily_bin1090.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128524/ft1_filtered_4FGL_J2348.0-1630_daily_bin1090.fits scfile=/scratch/kocevski/128524/ft2_4FGL_J2348.0-1630_daily_bin1090.fits outfile=/scratch/kocevski/128524/cmap_HighResolution_521856001_522115201_4FGL_J2348.0-1630_daily_bin1090.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/128524/ft1_filtered_4FGL_J2348.0-1630_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/128524/ft2_4FGL_J2348.0-1630_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128524/Model_4FGL_J2348.0-1630_daily_bin1090.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/128524/ft1_filtered_4FGL_J2348.0-1630_daily_bin1090.fits.....................!
real 44.27
user 43.01
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50888       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    24.650       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.906       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5153       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.714       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.121       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7717       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.310       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2443       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .82222       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5854       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86384       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0902       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=   5082.008     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2271 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51018        6.8679       -.10394E-05    .21871E-03
   2  norm          .10000E-03    9.0503       -.23242E-08** at limit **
   3  Prefactor     .10000E-03    35.075        .92283E-07** at limit **
   4  Prefactor     .10000E-03    5.0096       -.45552E-08** at limit **
   5  norm          24.653        14.917        .10279E-06    .20460E-04
   6  Prefactor     11.906        14.678        .20217E-06   -.11610E-04
   7  Prefactor     9.5160        24.658        .10925E-05   -.41519E-04
   8  Prefactor     14.719        23.247       -.16244E-05   -.13074E-03
   9  Prefactor     .10000E-03    7.0838        .16783E-06** at limit **
  10  norm          17.126        9.3532        .35010E-06    .30715E-03
  11  norm          1.7717        2.4341        .13259E-06   -.47612E-04
  12  Prefactor     .10004E-03    386.22        .59310E-05** at limit **
  13  Prefactor     22.292        19.403        .20919E-05    .40584E-03
  14  Prefactor     .10000E-03    20.998        .89757E-07** at limit **
  15  Prefactor     2.2459        193.00        .23412E-04   -.47719E-04
  16  Prefactor     .10000E-03    49.973       -.54913E-06** at limit **
  17  norm          .82224        .66976       -.10357E-06   -.31209E-03
  18  norm          1.5858        5.4056        .11660E-05   -.11542E-03
  19  Prefactor     .10000E-03    3.3170       -.24488E-07** at limit **
  20  Normalizat    .86384        .19221       -.15602E-05    .18648E-04
  21  Prefactor     1.0902        .18843        .22311E-07   -.50046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.51018
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.6527
  Prefactor  = 11.9055
  Prefactor  = 9.51605
  Prefactor  = 14.7192
  Prefactor  = 0.0001
  norm       = 17.1256
  norm       = 1.77165
  Prefactor  = 0.000100042
  Prefactor  = 22.2921
  Prefactor  = 0.0001
  Prefactor  = 2.24591
  Prefactor  = 0.0001
  norm       = 0.822245
  norm       = 1.58584
  Prefactor  = 0.0001
  Normalizat = 0.863836
  Prefactor  = 1.09021
 **********
 **   18 **HESSE 
 **********

 FCN=   5082.008     FROM HESSE     STATUS=OK           321 CALLS     2592 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51018        17.765        .35266E-02   -1.5565    
   2  norm          .10000E-03    9.0511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.0096        .15584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          24.653        14.919        .80682E-04   -1.4715    
   6  Prefactor     11.906        14.676        .11610E-03   -1.5018    
   7  Prefactor     9.5160        24.680        .64957E-03   -1.5091    
   8  Prefactor     14.719        23.585        .10442E-03   -1.4940    
   9  Prefactor     .10000E-03    7.1027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.126        9.4309        .96795E-04   -1.4880    
  11  norm          1.7717        2.4147        .12576E-03   -1.5442    
  12  Prefactor     .10004E-03    392.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.292        20.463        .84803E-04   -1.4763    
  14  Prefactor     .10000E-03    21.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2459        205.57        .13716E-02   -1.5408    
  16  Prefactor     .10000E-03    50.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .82224        .65681        .43260E-04   -1.5527    
  18  norm          1.5858        5.3461        .24971E-03   -1.5456    
  19  Prefactor     .10000E-03    3.3294        .12675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .86384        .22146        .25738E-03   -.97743    
  21  Prefactor     1.0902        .21915        .22900E-03   -.89780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50882e-09
Minuit parameter uncertainties:
  1  6.02245
  2  1.4955e-06
  3  5.5521e-05
  4  2.34395e-07
  5  14.9208
  6  14.6802
  7  24.7067
  8  23.5997
  9  3.44129e-05
  10  9.43173
  11  2.41483
  12  0.00815109
  13  20.4696
  14  2.77172e-05
  15  43.1266
  16  0.000117457
  17  0.656818
  18  5.34772
  19  6.03476e-06
  20  0.221689
  21  0.219333
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.586e+00  5.348e+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:  1.090e+00  2.193e-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.638e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 357.016 -16.516
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/128524/likelihoodResults_521856001_522115201_4FGL_J2348.0-1630_daily_bin1090.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5081.97974962
delta logL = 0.0279497307138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5081.97925748
delta logL = 0.0284418706924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5673       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6497       1.0000          .0000       5.0000    
     3 'Normalizat'    .85442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0950       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=   5081.979     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      266 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5693        4.8053        .10026E-02   -.86158E-03
   2  alpha         2.6516        1.5833        .26356E-01   -.63356E-04
   3  Normalizat    .85437        .22316        .25863E-03   -.19380E-03
   4  Prefactor     1.0951        .21738        .22853E-03   -.38686E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.56934
  alpha      = 2.65162
  Normalizat = 0.854365
  Prefactor  = 1.09507
 **********
 **   18 **HESSE 
 **********

 FCN=   5081.979     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5693        4.2371        .40103E-04   -1.5457    
   2  alpha         2.6516        1.4209        .10542E-02    .60684E-01
   3  Normalizat    .85437        .22349        .10345E-04   -.98083    
   4  Prefactor     1.0951        .21731        .45706E-04   -.89624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65949e-09
Minuit parameter uncertainties:
  1  4.23796
  2  1.51166
  3  0.223729
  4  0.217483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128524': 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) = 5081.9792556
delta logL = 0.0284437526025

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.569e+00  4.238e+00  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  2.652e+00  1.512e+00  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:  1.095e+00  2.175e-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.544e-01  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 357.016 -16.516

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/128524/cmap_HighResolution_521856001_522115201_4FGL_J2348.0-1630_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-05', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-30 05:45:21.374280', job_id='128524', GAL2='1.10', fit_tolerance='1e-08', EG2='0.85', EG='0.86', time_epoch_completed='1633005921.37', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.84e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.29' WHERE bin_id='1090' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:45:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 128524: <4FGL_J2348.0-1630_daily_bin1090> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin1090> 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) <bullet0116>, 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:22 2021
Results reported at Thu Sep 30 05:45:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin1090 357.016 -16.5161 521856001 522115201 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 :                                   545.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            868 sec.

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

