/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 8 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 = 7413
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2348.0-1630_daily_bin139
RA = 357.016, Dec = -16.5161
tmin = 275356801, tmax = 275616001
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='124140', job_status='RUN', time_executed='2021-09-30 05:15:50.109178', time_epoch_executed='1633004150.11' WHERE source_name='4FGL J2348.0-1630' and cadence='daily' and bin_id='139'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124140

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124140/ft1_4FGL_J2348.0-1630_daily_bin139.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124140/ft2_4FGL_J2348.0-1630_daily_bin139.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124140/ft1_4FGL_J2348.0-1630_daily_bin139.fits outfile=/scratch/kocevski/124140/ft1_filteredMKT_4FGL_J2348.0-1630_daily_bin139.fits ra=357.016 dec=-16.5161 rad=12.0 tmin=275356801.0 tmax=275616001.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.56
user 4.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124140/ft1_filtered_4FGL_J2348.0-1630_daily_bin139.fits" evtable="EVENTS" scfile=/scratch/kocevski/124140/ft2_4FGL_J2348.0-1630_daily_bin139.fits sctable="SC_DATA" outfile=/scratch/kocevski/124140/ltcube_275356801_275616001_4FGL_J2348.0-1630_daily_bin139.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/124140/ft2_4FGL_J2348.0-1630_daily_bin139.fits
.....................!
real 11.78
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124140/ft1_filtered_4FGL_J2348.0-1630_daily_bin139.fits evtable="EVENTS" scfile=/scratch/kocevski/124140/ft2_4FGL_J2348.0-1630_daily_bin139.fits sctable="SC_DATA" expcube=/scratch/kocevski/124140/ltcube_275356801_275616001_4FGL_J2348.0-1630_daily_bin139.fits outfile=/scratch/kocevski/124140/expmap_275356801_275616001_4FGL_J2348.0-1630_daily_bin139.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/124140/ltcube_275356801_275616001_4FGL_J2348.0-1630_daily_bin139.fits
.....................!
real 194.63
user 188.98
sys 5.31

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/124140/ft1_filtered_4FGL_J2348.0-1630_daily_bin139.fits scfile=/scratch/kocevski/124140/ft2_4FGL_J2348.0-1630_daily_bin139.fits outfile=/scratch/kocevski/124140/cmap_275356801_275616001_4FGL_J2348.0-1630_daily_bin139.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124140/ft1_filtered_4FGL_J2348.0-1630_daily_bin139.fits scfile=/scratch/kocevski/124140/ft2_4FGL_J2348.0-1630_daily_bin139.fits outfile=/scratch/kocevski/124140/cmap_HighResolution_275356801_275616001_4FGL_J2348.0-1630_daily_bin139.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124140/ft1_filtered_4FGL_J2348.0-1630_daily_bin139.fits evtable="EVENTS" scfile=/scratch/kocevski/124140/ft2_4FGL_J2348.0-1630_daily_bin139.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124140/Model_4FGL_J2348.0-1630_daily_bin139.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/124140/ft1_filtered_4FGL_J2348.0-1630_daily_bin139.fits.....................!
real 36.20
user 34.97
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3828       1.0000         .10000E-03   10000.    
     2 'norm      '    4.5964       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11952E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.653       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1234       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7733       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.782       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.335       1.0000         .10000E-03   10000.    
    16 'Prefactor '    85.535       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87433       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97871       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=   3685.581     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2161 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3857        12.331       -.33869E-05   -.14388E-03
   2  norm          4.5945        81.217       -.42497E-05   -.14263E-04
   3  Prefactor     .10000E-03    18.552       -.19045E-05** at limit **
   4  Prefactor     .10000E-03    86.366        .82790E-05** at limit **
   5  norm          .10000E-03    6.6770        .15834E-06** at limit **
   6  Prefactor     .10000E-03    7.7947        .37190E-06** at limit **
   7  Prefactor     61.662        61.137        .74548E-05   -.16395E-04
   8  Prefactor     .10000E-03    11.163       -.76664E-06** at limit **
   9  Prefactor     .10000E-03    10.175        .14461E-06** at limit **
  10  norm          5.1238        9.0788       -.80759E-05   -.33010E-03
  11  norm          1.7733        2.4976        .80515E-06    .21456E-03
  12  Prefactor     31.744        63.162       -.53152E-04   -.49803E-04
  13  Prefactor     .10001E-03    17.692        .47155E-05** at limit **
  14  Prefactor     .10000E-03    24.335        .18066E-06** at limit **
  15  Prefactor     18.426        95.794        .18685E-03    .20484E-04
  16  Prefactor     85.473        140.38       -.64483E-04   -.25653E-05
  17  norm          .10000E-03    .25125        .30101E-06** at limit **
  18  norm          .10000E-03    3.7669        .49370E-08** at limit **
  19  Prefactor     .10000E-03    17.603        .88407E-07** at limit **
  20  Normalizat    .87455        .21358        .50109E-05   -.36706E-03
  21  Prefactor     .97845        .20286       -.41170E-05    .47910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.38566
  norm       = 4.59447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.662
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.12379
  norm       = 1.77327
  Prefactor  = 31.7444
  Prefactor  = 0.000100012
  Prefactor  = 0.000100001
  Prefactor  = 18.4262
  Prefactor  = 85.4729
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.874549
  Prefactor  = 0.978448
 **********
 **   18 **HESSE 
 **********

 FCN=   3685.581     FROM HESSE     STATUS=OK           311 CALLS     2472 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3857        12.326        .17321E-03   -1.5244    
   2  norm          4.5945        81.270        .18775E-03   -1.5279    
   3  Prefactor     .10000E-03    18.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    87.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.6807        .15322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.8170        .16555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     61.662        61.027        .51102E-04   -1.4136    
   8  Prefactor     .10000E-03    11.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1238        9.0607        .17762E-03   -1.5255    
  11  norm          1.7733        2.4767        .11005E-03   -1.5442    
  12  Prefactor     31.744        63.437        .71074E-04   -1.4581    
  13  Prefactor     .10001E-03    17.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.426        95.575        .93537E-04   -1.4849    
  16  Prefactor     85.473        140.58        .21719E-03   -1.3856    
  17  norm          .10000E-03    .28314        .59081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.8221        .11492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .87455        .25511        .24203E-03   -.97360    
  21  Prefactor     .97845        .24232        .22262E-03   -.93451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58598e-09
Minuit parameter uncertainties:
  1  12.332
  2  38.7078
  3  9.8441e-06
  4  0.00024918
  5  2.95279e-06
  6  1.01133e-05
  7  61.089
  8  8.21859e-05
  9  0.000311876
  10  9.0631
  11  2.47688
  12  63.5722
  13  0.000910406
  14  0.000333315
  15  84.1427
  16  141.134
  17  1.63569e-05
  18  7.51515e-05
  19  0.000349041
  20  0.255458
  21  0.24259
Done.

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

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  1.000e-04  7.515e-05  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:  9.784e-01  2.426e-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.745e-01  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.016 -16.516
Photon Flux Upper Limit: 9.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/124140/likelihoodResults_275356801_275616001_4FGL_J2348.0-1630_daily_bin139.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): 102
logL (Free Index) = 3685.58240341
delta logL = -0.00124757457252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3685.58115584
delta logL = -4.82441464555e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3022       1.0000          .0000       5.0000    
     3 'Normalizat'    .87458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97847       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=   3685.124     FROM MIGRAD    STATUS=CONVERGED    162 CALLS      306 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92816E-01    5.3926        .44069E-02    .53729E-02
   2  alpha         5.0000        2.7275        .50000    ** at limit **
   3  Normalizat    .77634        .17996        .24203E-02    .99585E-03
   4  Prefactor     1.0418        .11946        .22262E-02    .80200E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0928159
  alpha      = 5
  Normalizat = 0.77634
  Prefactor  = 1.04178
 **********
 **   18 **HESSE 
 **********

 FCN=   3685.124     FROM HESSE     STATUS=OK            29 CALLS      335 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92816E-01    .10949        .20056E-03   -1.5647    
   2  alpha         5.0000        3.1520        .52552E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .77634        .26499        .96811E-04   -1.0095    
   4  Prefactor     1.0418        .24833        .89048E-04   -.91350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24765e-09
Minuit parameter uncertainties:
  1  0.109486
  2  1.95447e-05
  3  0.265428
  4  0.248606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124140': 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) = 3685.12370503
delta logL = 0.457450811846

Extracting fit parameters...

4FGL J2348.0-1630
   Spectrum: LogParabola
489         norm:  9.282e-02  1.095e-01  1.000e-04  1.000e+04 ( 1.000e-12)
490        alpha:  5.000e+00  1.954e-05  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.042e+00  2.486e-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:  7.763e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 357.016 -16.516
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.34e-08 +/- 8.61e-08
Energy Flux (Free Index): 9.91e-06 +/- 1.17e-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/124140/cmap_HighResolution_275356801_275616001_4FGL_J2348.0-1630_daily_bin139.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', comment='SUCCESS', energy_flux2='9.91e-06', dlogl='4.57e-01', photon_flux2='7.34e-08', job_status='DONE', time_completed='2021-09-30 05:24:03.008892', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='9.54e-08', energy_flux_error2='1.17e-05', EG='0.87', time_epoch_completed='1633004643.01', return_code='0', job_id='124140', GAL2='1.04', EG2='0.78', return_code2='0', photon_flux_error2='8.61e-08', ts2='1.04', photon_index='2.29' WHERE bin_id='139' AND source_name='4FGL J2348.0-1630' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 05:24:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 124140: <4FGL_J2348.0-1630_daily_bin139> in cluster <slac> Done

Job <4FGL_J2348.0-1630_daily_bin139> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 05:15:32 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 05:15:34 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:15:34 2021
Terminated at Thu Sep 30 05:24:03 2021
Results reported at Thu Sep 30 05:24:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2348.0-1630_daily_bin139 357.016 -16.5161 275356801 275616001 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 :                                   480.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   509 sec.
    Turnaround time :                            511 sec.

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

