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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin369
RA = 342.193, Dec = -32.5926
tmin = 334972801, tmax = 335232001
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='471393', job_status='RUN', time_executed='2021-09-28 20:33:04.607328', time_epoch_executed='1632886384.61' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/471393

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/471393/ft1_4FGL_J2248.7-3235_daily_bin369.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/471393/ft2_4FGL_J2248.7-3235_daily_bin369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/471393/ft1_4FGL_J2248.7-3235_daily_bin369.fits outfile=/scratch/kocevski/471393/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin369.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=334972801.0 tmax=335232001.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.48
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/471393/ft2_4FGL_J2248.7-3235_daily_bin369.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/471393/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin369.fits evtable="EVENTS" outfile="/scratch/kocevski/471393/ft1_filtered_4FGL_J2248.7-3235_daily_bin369.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/471393/ft1_filtered_4FGL_J2248.7-3235_daily_bin369.fits" evtable="EVENTS" scfile=/scratch/kocevski/471393/ft2_4FGL_J2248.7-3235_daily_bin369.fits sctable="SC_DATA" outfile=/scratch/kocevski/471393/ltcube_334972801_335232001_4FGL_J2248.7-3235_daily_bin369.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/471393/ft2_4FGL_J2248.7-3235_daily_bin369.fits
.....................!
real 11.67
user 11.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/471393/ft1_filtered_4FGL_J2248.7-3235_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/471393/ft2_4FGL_J2248.7-3235_daily_bin369.fits sctable="SC_DATA" expcube=/scratch/kocevski/471393/ltcube_334972801_335232001_4FGL_J2248.7-3235_daily_bin369.fits outfile=/scratch/kocevski/471393/expmap_334972801_335232001_4FGL_J2248.7-3235_daily_bin369.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/471393/ltcube_334972801_335232001_4FGL_J2248.7-3235_daily_bin369.fits
.....................!
real 190.21
user 184.94
sys 4.91

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/471393/ft1_filtered_4FGL_J2248.7-3235_daily_bin369.fits scfile=/scratch/kocevski/471393/ft2_4FGL_J2248.7-3235_daily_bin369.fits outfile=/scratch/kocevski/471393/cmap_334972801_335232001_4FGL_J2248.7-3235_daily_bin369.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/471393/ft1_filtered_4FGL_J2248.7-3235_daily_bin369.fits scfile=/scratch/kocevski/471393/ft2_4FGL_J2248.7-3235_daily_bin369.fits outfile=/scratch/kocevski/471393/cmap_HighResolution_334972801_335232001_4FGL_J2248.7-3235_daily_bin369.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/471393/ft1_filtered_4FGL_J2248.7-3235_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/471393/ft2_4FGL_J2248.7-3235_daily_bin369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/471393/Model_4FGL_J2248.7-3235_daily_bin369.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/471393/ft1_filtered_4FGL_J2248.7-3235_daily_bin369.fits.....................!
real 39.28
user 37.86
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/471393/ft1_filtered_4FGL_J2248.7-3235_daily_bin369.fits', '/scratch/kocevski/471393/ft2_4FGL_J2248.7-3235_daily_bin369.fits', expMap='/scratch/kocevski/471393/expmap_334972801_335232001_4FGL_J2248.7-3235_daily_bin369.fits', expCube='/scratch/kocevski/471393/ltcube_334972801_335232001_4FGL_J2248.7-3235_daily_bin369.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/471393/Model_4FGL_J2248.7-3235_daily_bin369.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/471393/ft1_filtered_4FGL_J2248.7-3235_daily_bin369.fits
Spacecraft file(s): /scratch/kocevski/471393/ft2_4FGL_J2248.7-3235_daily_bin369.fits
Exposure map: /scratch/kocevski/471393/expmap_334972801_335232001_4FGL_J2248.7-3235_daily_bin369.fits
Exposure cube: /scratch/kocevski/471393/ltcube_334972801_335232001_4FGL_J2248.7-3235_daily_bin369.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/471393/Model_4FGL_J2248.7-3235_daily_bin369.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) = 4384.07407534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .95761       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.830       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22084E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.927       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.619       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    22.473       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3022       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7703       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.056       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11256E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.7075       1.0000         .10000E-03   10000.    
    23 'norm      '    5.3577       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4186       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86273       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.

 FCN=   4383.962     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2916 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95763        .45324       -.23572E-09    .12584E-04
   2  Prefactor     11.827        26.128       -.29891E-06   -.29536E-04
   3  Prefactor     .10000E-03    6.1033        .78420E-07** at limit **
   4  norm          .10000E-03    8.2599        .14561E-07** at limit **
   5  Prefactor     .10000E-03    28.846       -.53092E-06** at limit **
   6  Prefactor     .10000E-03    28.921       -.54957E-06** at limit **
   7  Prefactor     12.925        15.868        .61106E-07    .69603E-05
   8  Prefactor     21.618        32.407       -.23006E-06   -.12353E-04
   9  norm          .10000E-03    1.0146        .16165E-07** at limit **
  10  Prefactor     .10000E-03    24.975        .10650E-05** at limit **
  11  Prefactor     .10000E-03    7.2304       -.67077E-07** at limit **
  12  Prefactor     .10000E-03    6.5992        .51651E-07** at limit **
  13  norm          22.472        9.5513       -.83095E-07   -.30409E-04
  14  Prefactor     .10000E-03    17.968       -.17969E-06** at limit **
  15  Prefactor     6.2829        19.795        .74386E-06    .40356E-04
  16  norm          1.7701        1.2134       -.47903E-07    .53383E-04
  17  Prefactor     20.046        57.996       -.27649E-05   -.67757E-04
  18  Prefactor     .10000E-03    32.004       -.20511E-06** at limit **
  19  norm          .10000E-03    7.0138       -.10311E-05** at limit **
  20  norm          .10000E-03    13.894       -.33324E-06** at limit **
  21  Prefactor     .10000E-03    34.954        .49156E-06** at limit **
  22  Prefactor     8.6819        61.636       -.91664E-05   -.14291E-03
  23  norm          5.3598        5.8446        .23086E-05   -.59563E-03
  24  Normalizat    1.4188        .25550        .40370E-06   -.20654E-04
  25  Prefactor     .86268        .23584       -.66510E-06    .26537E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.957626
  Prefactor  = 11.8265
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9251
  Prefactor  = 21.6183
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.4725
  Prefactor  = 0.0001
  Prefactor  = 6.28289
  norm       = 1.7701
  Prefactor  = 20.0458
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.68195
  norm       = 5.35977
  Normalizat = 1.41877
  Prefactor  = 0.862679
 **********
 **   18 **HESSE 
 **********

 FCN=   4383.962     FROM HESSE     STATUS=OK           425 CALLS     3341 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95763        .45437        .29794E-04   -1.5512    
   2  Prefactor     11.827        26.171        .11647E-03   -1.5020    
   3  Prefactor     .10000E-03    118.11        .31350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.2610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.925        15.865        .11141E-03   -1.4989    
   8  Prefactor     21.618        32.492        .86145E-04   -1.4778    
   9  norm          .10000E-03    1.0168        .65112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.2442        .17388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6542        .16609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          22.472        9.5104        .84495E-04   -1.4760    
  14  Prefactor     .10000E-03    18.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2829        20.244        .15989E-03   -1.5207    
  16  norm          1.7701        1.2293        .46326E-04   -1.5442    
  17  Prefactor     20.046        58.555        .89437E-04   -1.4812    
  18  Prefactor     .10000E-03    32.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.3431        .17333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    14.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.6819        70.146        .13584E-03   -1.5119    
  23  norm          5.3598        6.1297        .84493E-03   -1.5245    
  24  Normalizat    1.4188        .31819        .25040E-03   -.80087    
  25  Prefactor     .86268        .29251        .29740E-03   -.97458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07191e-09
Minuit parameter uncertainties:
  1  0.454374
  2  26.196
  3  0.000940412
  4  2.57363e-07
  5  0.000128275
  6  0.000131257
  7  15.8703
  8  32.5182
  9  6.23837e-08
  10  0.000213421
  11  9.16132e-06
  12  1.19322e-06
  13  9.51105
  14  4.53523e-05
  15  20.2664
  16  1.22929
  17  58.7232
  18  0.000158422
  19  0.000125798
  20  5.18939e-05
  21  0.000113476
  22  49.4353
  23  6.13038
  24  0.31864
  25  0.29304
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  9.161e-06  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:  8.627e-01  2.930e-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.419e+00  3.186e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/471393/likelihoodResults_334972801_335232001_4FGL_J2248.7-3235_daily_bin369.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) = 4383.96225251
delta logL = -0.000655244442896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4383.96159726
delta logL = 2.0008883439e-10

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.7650       1.0000          .0000       10.000    
     3 'Normalizat'    1.4188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86269       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=   4383.962     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      253 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.957        .17398E-02** at limit **
   2  Index         3.1590        8.0731        .20000        .57412E-08
   3  Normalizat    1.4188        .29707        .25039E-03   -.11936E-03
   4  Prefactor     .86268        .28449        .29740E-03   -.95645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.159
  Normalizat = 1.41877
  Prefactor  = 0.862677
 **********
 **   18 **HESSE 
 **********

 FCN=   4383.962     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4627        .34796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1590        7.4480        .80000E-02   -.37707    
   3  Normalizat    1.4188        .29740        .50079E-04   -.80087    
   4  Prefactor     .86268        .28481        .11896E-04   -.97458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39096e-11
Minuit parameter uncertainties:
  1  1.0323e-05
  2  696.204
  3  0.297761
  4  0.285296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/471393': 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) = 4383.96159706
delta logL = 2.00539034267e-07

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  1.032e-05  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  3.159e+00  6.962e+02  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:  8.627e-01  2.853e-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.419e+00  2.978e-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/471393/cmap_HighResolution_334972801_335232001_4FGL_J2248.7-3235_daily_bin369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.60e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-28 20:42:44.169235', job_id='471393', GAL2='0.86', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1632886964.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='369' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:42:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 471393: <4FGL_J2248.7-3235_daily_bin369> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin369> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 20:30:24 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:30:25 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:30:25 2021
Terminated at Tue Sep 28 20:42:44 2021
Results reported at Tue Sep 28 20:42:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin369 342.193 -32.5926 334972801 335232001 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            740 sec.

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

