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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin460
RA = 342.193, Dec = -32.5926
tmin = 358560001, tmax = 358819201
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='472604', job_status='RUN', time_executed='2021-09-28 20:35:28.045697', time_epoch_executed='1632886528.05' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/472604

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/472604/ft1_4FGL_J2248.7-3235_daily_bin460.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/472604/ft2_4FGL_J2248.7-3235_daily_bin460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/472604/ft1_4FGL_J2248.7-3235_daily_bin460.fits outfile=/scratch/kocevski/472604/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin460.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=358560001.0 tmax=358819201.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 5.60
user 4.98
sys 0.59

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/472604/ft2_4FGL_J2248.7-3235_daily_bin460.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/472604/ft2_4FGL_J2248.7-3235_daily_bin460.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/472604/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin460.fits evtable="EVENTS" outfile="/scratch/kocevski/472604/ft1_filtered_4FGL_J2248.7-3235_daily_bin460.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/472604/ft1_filtered_4FGL_J2248.7-3235_daily_bin460.fits" evtable="EVENTS" scfile=/scratch/kocevski/472604/ft2_4FGL_J2248.7-3235_daily_bin460.fits sctable="SC_DATA" outfile=/scratch/kocevski/472604/ltcube_358560001_358819201_4FGL_J2248.7-3235_daily_bin460.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/472604/ft2_4FGL_J2248.7-3235_daily_bin460.fits
.....................!
real 12.36
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/472604/ft1_filtered_4FGL_J2248.7-3235_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/472604/ft2_4FGL_J2248.7-3235_daily_bin460.fits sctable="SC_DATA" expcube=/scratch/kocevski/472604/ltcube_358560001_358819201_4FGL_J2248.7-3235_daily_bin460.fits outfile=/scratch/kocevski/472604/expmap_358560001_358819201_4FGL_J2248.7-3235_daily_bin460.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/472604/ltcube_358560001_358819201_4FGL_J2248.7-3235_daily_bin460.fits
.....................!
real 190.05
user 184.79
sys 4.89

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

Setting source of interest to:
4FGL J2248.7-3235 @ 342.193 -32.5926

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/472604/ft1_filtered_4FGL_J2248.7-3235_daily_bin460.fits scfile=/scratch/kocevski/472604/ft2_4FGL_J2248.7-3235_daily_bin460.fits outfile=/scratch/kocevski/472604/cmap_358560001_358819201_4FGL_J2248.7-3235_daily_bin460.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=342.193 yref=-32.5926 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/472604/ft1_filtered_4FGL_J2248.7-3235_daily_bin460.fits scfile=/scratch/kocevski/472604/ft2_4FGL_J2248.7-3235_daily_bin460.fits outfile=/scratch/kocevski/472604/cmap_HighResolution_358560001_358819201_4FGL_J2248.7-3235_daily_bin460.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=342.193 yref=-32.5926 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/472604/ft1_filtered_4FGL_J2248.7-3235_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/472604/ft2_4FGL_J2248.7-3235_daily_bin460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/472604/Model_4FGL_J2248.7-3235_daily_bin460.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/472604/ft1_filtered_4FGL_J2248.7-3235_daily_bin460.fits.....................!
real 43.43
user 42.04
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/472604/ft1_filtered_4FGL_J2248.7-3235_daily_bin460.fits', '/scratch/kocevski/472604/ft2_4FGL_J2248.7-3235_daily_bin460.fits', expMap='/scratch/kocevski/472604/expmap_358560001_358819201_4FGL_J2248.7-3235_daily_bin460.fits', expCube='/scratch/kocevski/472604/ltcube_358560001_358819201_4FGL_J2248.7-3235_daily_bin460.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/472604/Model_4FGL_J2248.7-3235_daily_bin460.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2248.7-3235'

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.211e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/472604/ft1_filtered_4FGL_J2248.7-3235_daily_bin460.fits
Spacecraft file(s): /scratch/kocevski/472604/ft2_4FGL_J2248.7-3235_daily_bin460.fits
Exposure map: /scratch/kocevski/472604/expmap_358560001_358819201_4FGL_J2248.7-3235_daily_bin460.fits
Exposure cube: /scratch/kocevski/472604/ltcube_358560001_358819201_4FGL_J2248.7-3235_daily_bin460.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/472604/Model_4FGL_J2248.7-3235_daily_bin460.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) = 5048.29599912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57215       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.553       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.829       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21041       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5827       1.0000         .10000E-03   10000.    
    10 'Prefactor '    123.66       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    29.168       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.627       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0500       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.928       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    17.283       1.0000         .10000E-03   10000.    
    21 'Prefactor '    85.369       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.292       1.0000         .10000E-03   10000.    
    23 'norm      '    .40715       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0983       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68732       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5048.246     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     2494 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57202        .36439       -.14412E-06    .57776E-05
   2  Prefactor     19.575        15.842        .48571E-05    .45314E-02
   3  Prefactor     .10000E-03    13.919        .82860E-05** at limit **
   4  norm          12.836        10.161       -.40278E-05    .32666E-02
   5  Prefactor     .10000E-03    15.404        .22983E-04** at limit **
   6  Prefactor     .10000E-03    6.3413        .84980E-06** at limit **
   7  Prefactor     .10082E-03    672.94        .70892E-04** at limit **
   8  Prefactor     .10000E-03    27.919        .14222E-04** at limit **
   9  norm          1.5805        2.1830        .23659E-06    .36847E-04
  10  Prefactor     124.05        74.610        .45776E-05   -.19778E-02
  11  Prefactor     .10000E-03    11.721       -.64316E-05** at limit **
  12  Prefactor     .10000E-03    3.5419       -.13501E-06** at limit **
  13  norm          29.169        9.3219        .14743E-05    .56249E-02
  14  Prefactor     .10000E-03    11.849       -.33955E-05** at limit **
  15  Prefactor     34.623        14.747        .28363E-05   -.22586E-02
  16  norm          3.0494        1.2842       -.74578E-06    .28169E-04
  17  Prefactor     .10001E-03    64.921        .38184E-05** at limit **
  18  Prefactor     12.930        5.7420       -.29736E-05    .29979E-02
  19  norm          .10000E-03    3.7050       -.89387E-06** at limit **
  20  norm          17.280        8.0265        .31847E-05    .94679E-02
  21  Prefactor     85.364        2.5875       -.95776E-07   -.19386E-02
  22  Prefactor     24.282        10.698       -.30771E-05    .61496E-02
  23  norm          .40485        6.6910        .22091E-05    .21463E-04
  24  Normalizat    1.0985        .24087       -.35334E-05    .55846E-04
  25  Prefactor     .68757        .22699        .85055E-05    .47862E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.572024
  Prefactor  = 19.5746
  Prefactor  = 0.0001
  norm       = 12.8357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100818
  Prefactor  = 0.0001
  norm       = 1.58049
  Prefactor  = 124.046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.1685
  Prefactor  = 0.0001
  Prefactor  = 34.6231
  norm       = 3.04935
  Prefactor  = 0.000100006
  Prefactor  = 12.9298
  norm       = 0.0001
  norm       = 17.2795
  Prefactor  = 85.3638
  Prefactor  = 24.2821
  norm       = 0.404847
  Normalizat = 1.09848
  Prefactor  = 0.687572
 **********
 **   18 **HESSE 
 **********

 FCN=   5048.246     FROM HESSE     STATUS=OK           489 CALLS     2983 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57202        .35970        .75102E-02   -1.5557    
   2  Prefactor     19.575        21.218        .22644E-02   -1.4823    
   3  Prefactor     .10000E-03    4.6122        .54037E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.836        14.243        .27959E-02   -1.4991    
   5  Prefactor     .10000E-03    15.390        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.3421        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10082E-03    15.172        .10025       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.712        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5805        2.2142        .84382E-02   -1.5457    
  10  Prefactor     124.05        79.189        .90487E-03   -1.3476    
  11  Prefactor     .10000E-03    11.607        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4998        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          29.169        10.420        .18546E-02   -1.4627    
  14  Prefactor     .10000E-03    11.848        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.623        23.580        .17025E-02   -1.4530    
  16  norm          3.0494        1.4471        .58078E-02   -1.5359    
  17  Prefactor     .10001E-03    64.678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.930        17.254        .27851E-02   -1.4989    
  19  norm          .10000E-03    3.6692        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.280        10.930        .24085E-02   -1.4876    
  21  Prefactor     85.364        62.651        .10870E-02   -1.3857    
  22  Prefactor     24.282        28.006        .20319E-02   -1.4722    
  23  norm          .40485        8.6107        .10886E-01   -1.5581    
  24  Normalizat    1.0985        .20628        .55813E-01   -.89801    
  25  Prefactor     .68757        .19078        .65990E-01   -1.0402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5457e-07
Minuit parameter uncertainties:
  1  0.359705
  2  21.2261
  3  6.89875e-06
  4  14.2467
  5  5.29841e-05
  6  4.49631e-06
  7  0.00704791
  8  0.000154852
  9  2.21434
  10  79.2566
  11  2.22997e-07
  12  2.32579e-06
  13  10.4206
  14  1.84143e-05
  15  23.5867
  16  1.4471
  17  0.00127316
  18  17.2602
  19  6.77363e-06
  20  10.9312
  21  62.6997
  22  28.0216
  23  3.73432
  24  0.206429
  25  0.190962
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  2.230e-07  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.761e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  6.876e-01  1.910e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.098e+00  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/472604/likelihoodResults_358560001_358819201_4FGL_J2248.7-3235_daily_bin460.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) = 5048.24640872
delta logL = -0.000406406096772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5048.24600266
delta logL = -3.48115463567e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7893       1.0000          .0000       10.000    
     3 'Normalizat'    1.0983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68779       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5770E+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=   5048.246     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    54.134        .18142E-02** at limit **
   2  Index         2.8192        5.3427        .50000       -.23459E-04
   3  Normalizat    1.0985        .23374        .24679E-03   -.15819E-03
   4  Prefactor     .68757        .22443        .29198E-03   -.84181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.81916
  Normalizat = 1.09847
  Prefactor  = 0.687573
 **********
 **   18 **HESSE 
 **********

 FCN=   5048.246     FROM HESSE     STATUS=OK            29 CALLS      277 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    12.949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8192        6.3963        .50000       -.45134    
   3  Normalizat    1.0985        .23395        .49358E-04   -.89801    
   4  Prefactor     .68757        .22464        .11679E-04   -1.0402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79728e-10
Minuit parameter uncertainties:
  1  0.000604003
  2  4.57248
  3  0.234168
  4  0.224937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/472604': 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) = 5048.24600202
delta logL = 2.94839082926e-07

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  6.040e-04  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.819e+00  4.572e+00  0.000e+00  1.000e+01 (-1.000e+00)
313        Scale:  4.468e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  6.876e-01  2.249e-01  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.098e+00  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.193 -32.593

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/472604/cmap_HighResolution_358560001_358819201_4FGL_J2248.7-3235_daily_bin460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-03', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2021-09-28 20:45:49.018582', job_id='472604', GAL2='0.69', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632887149.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='2.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='460' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:45:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 472604: <4FGL_J2248.7-3235_daily_bin460> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin460> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:35:12 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:35:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 20:35:14 2021
Terminated at Tue Sep 28 20:45:49 2021
Results reported at Tue Sep 28 20:45:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin460 342.193 -32.5926 358560001 358819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2248.7-3235 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   618.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            637 sec.

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

