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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1165
RA = 342.193, Dec = -32.5926
tmin = 541296001, tmax = 541555201
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='474688', job_status='RUN', time_executed='2021-09-28 20:41:32.988700', time_epoch_executed='1632886892.99' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474688

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474688/ft1_4FGL_J2248.7-3235_daily_bin1165.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474688/ft2_4FGL_J2248.7-3235_daily_bin1165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474688/ft1_4FGL_J2248.7-3235_daily_bin1165.fits outfile=/scratch/kocevski/474688/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1165.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=541296001.0 tmax=541555201.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.69
user 3.49
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474688/ft1_filtered_4FGL_J2248.7-3235_daily_bin1165.fits" evtable="EVENTS" scfile=/scratch/kocevski/474688/ft2_4FGL_J2248.7-3235_daily_bin1165.fits sctable="SC_DATA" outfile=/scratch/kocevski/474688/ltcube_541296001_541555201_4FGL_J2248.7-3235_daily_bin1165.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/474688/ft2_4FGL_J2248.7-3235_daily_bin1165.fits
.....................!
real 11.95
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474688/ft1_filtered_4FGL_J2248.7-3235_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/474688/ft2_4FGL_J2248.7-3235_daily_bin1165.fits sctable="SC_DATA" expcube=/scratch/kocevski/474688/ltcube_541296001_541555201_4FGL_J2248.7-3235_daily_bin1165.fits outfile=/scratch/kocevski/474688/expmap_541296001_541555201_4FGL_J2248.7-3235_daily_bin1165.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/474688/ltcube_541296001_541555201_4FGL_J2248.7-3235_daily_bin1165.fits
.....................!
real 189.74
user 184.95
sys 4.41

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/474688/ft1_filtered_4FGL_J2248.7-3235_daily_bin1165.fits scfile=/scratch/kocevski/474688/ft2_4FGL_J2248.7-3235_daily_bin1165.fits outfile=/scratch/kocevski/474688/cmap_541296001_541555201_4FGL_J2248.7-3235_daily_bin1165.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474688/ft1_filtered_4FGL_J2248.7-3235_daily_bin1165.fits scfile=/scratch/kocevski/474688/ft2_4FGL_J2248.7-3235_daily_bin1165.fits outfile=/scratch/kocevski/474688/cmap_HighResolution_541296001_541555201_4FGL_J2248.7-3235_daily_bin1165.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/474688/ft1_filtered_4FGL_J2248.7-3235_daily_bin1165.fits evtable="EVENTS" scfile=/scratch/kocevski/474688/ft2_4FGL_J2248.7-3235_daily_bin1165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474688/Model_4FGL_J2248.7-3235_daily_bin1165.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/474688/ft1_filtered_4FGL_J2248.7-3235_daily_bin1165.fits.....................!
real 40.35
user 39.09
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4137       1.0000         .10000E-03   10000.    
     4 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14506E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19042E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .37678       1.0000         .10000E-03   10000.    
    10 'Prefactor '    184.67       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0290       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7004       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54967E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.087       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6351       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21853E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3645       1.0000         .10000E-03   10000.    
    19 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.243       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10550E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3953       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91698       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=   4557.174     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3077 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1030        .45579        .70537E-08    .10850E-05
   2  Prefactor     .10000E-03    9.0876        .39040E-07** at limit **
   3  Prefactor     7.4129        12.542        .12666E-06    .18181E-04
   4  norm          .10000E-03    11.845        .23520E-06** at limit **
   5  Prefactor     .10000E-03    17.505       -.20336E-07** at limit **
   6  Prefactor     .10000E-03    68.717       -.10260E-06** at limit **
   7  Prefactor     .10000E-03    14.207        .13580E-05** at limit **
   8  Prefactor     .11659E-03    55.961       -.36106E-05** at limit **
   9  norm          .39488        12.658        .24095E-05    .13303E-03
  10  Prefactor     184.31        121.26       -.68522E-06    .84309E-04
  11  Prefactor     4.0231        15.416       -.20889E-05   -.22327E-04
  12  Prefactor     6.7029        6.4636        .75428E-07    .45041E-04
  13  norm          .10000E-03    2.6617       -.38350E-07** at limit **
  14  Prefactor     .10009E-03    17.560       -.18718E-05** at limit **
  15  Prefactor     20.069        15.880        .46571E-06   -.50317E-04
  16  norm          1.6354        1.2163        .35005E-06    .66574E-04
  17  Prefactor     .10001E-03    553.85       -.17366E-04** at limit **
  18  Prefactor     4.3631        9.0487       -.11006E-06   -.14845E-04
  19  norm          .10000E-03    3.4947       -.14758E-07** at limit **
  20  norm          .10000E-03    12.129       -.17154E-06** at limit **
  21  Prefactor     32.229        71.551        .10546E-05    .76657E-05
  22  Prefactor     .10000E-03    44.759        .79565E-07** at limit **
  23  norm          .10000E-03    4.1525       -.34249E-08** at limit **
  24  Normalizat    1.3960        .26531       -.25636E-06    .64873E-04
  25  Prefactor     .91634        .23412       -.47795E-06   -.39144E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10297
  Prefactor  = 0.0001
  Prefactor  = 7.41285
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000116595
  norm       = 0.394878
  Prefactor  = 184.31
  Prefactor  = 4.02311
  Prefactor  = 6.70291
  norm       = 0.0001
  Prefactor  = 0.000100087
  Prefactor  = 20.0689
  norm       = 1.6354
  Prefactor  = 0.000100005
  Prefactor  = 4.36307
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 32.2288
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.39602
  Prefactor  = 0.91634
 **********
 **   18 **HESSE 
 **********

 FCN=   4557.174     FROM HESSE     STATUS=OK           435 CALLS     3512 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1030        .45801        .28473E-04   -1.5498    
   2  Prefactor     .10000E-03    9.0957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4129        12.576        .14730E-03   -1.5163    
   4  norm          .10000E-03    11.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    69.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11659E-03    57.284        .11285       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .39488        14.516        .23515E-02   -1.5582    
  10  Prefactor     184.31        129.15        .14855E-03   -1.2984    
  11  Prefactor     4.0231        15.480        .10045E-02   -1.5307    
  12  Prefactor     6.7029        6.4644        .15502E-03   -1.5190    
  13  norm          .10000E-03    2.6784        .10755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10009E-03    139.68        .48061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.069        16.342        .89367E-04   -1.4812    
  16  norm          1.6354        1.2501        .49142E-04   -1.5452    
  17  Prefactor     .10001E-03    552.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3631        9.0120        .19280E-03   -1.5290    
  19  norm          .10000E-03    3.5039        .12322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    12.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.229        72.349        .70566E-04   -1.4572    
  22  Prefactor     .10000E-03    44.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.1607        .13398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3960        .32764        .25807E-03   -.80744    
  25  Prefactor     .91634        .28690        .29507E-03   -.95572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68144e-09
Minuit parameter uncertainties:
  1  0.458008
  2  7.04167e-06
  3  12.5801
  4  1.46462e-05
  5  6.51066e-06
  6  0.000299924
  7  7.17891e-05
  8  0.0617229
  9  4.78906
  10  129.349
  11  15.4957
  12  6.46512
  13  1.36685e-06
  14  0.0069868
  15  16.3454
  16  1.25008
  17  0.00342083
  18  9.01482
  19  1.23842e-06
  20  2.06345e-05
  21  72.547
  22  5.69842e-05
  23  4.46194e-06
  24  0.328134
  25  0.28738
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.023e+00  1.550e+01  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:  9.163e-01  2.874e-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.396e+00  3.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474688/likelihoodResults_541296001_541555201_4FGL_J2248.7-3235_daily_bin1165.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) = 4557.1639206
delta logL = 0.0103369273293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4557.16209386
delta logL = 0.0121636715066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0049       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4596       1.0000          .0000       10.000    
     3 'Normalizat'    1.3989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91317       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.

 FCN=   4557.162     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      238 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9920        1262.8        .44938E-02    .57347E-04
   2  Index         2.4583        5.3796        .46223       -.28335E-05
   3  Normalizat    1.3988        .71468E-01    .58307E-01    .38395E-05
   4  Prefactor     .91319        .74028E-01    .66808E-01    .13298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.992
  Index      = 2.45834
  Normalizat = 1.3988
  Prefactor  = 0.91319
 **********
 **   18 **HESSE 
 **********

 FCN=   4557.162     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .73E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9920        16.859        .17975E-03   -1.5261    
   2  Index         2.4583        1.6836        .12573E-01   -.53325    
   3  Normalizat    1.3988        .29492        .25784E-03   -.80663    
   4  Prefactor     .91319        .27993        .29552E-03   -.95682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26057e-13
Minuit parameter uncertainties:
  1  16.8754
  2  1.72977
  3  0.295277
  4  0.280373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474688': 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) = 4557.16209306
delta logL = 0.012164465762

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  4.992e+00  1.688e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.458e+00  1.730e+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:  9.132e-01  2.804e-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.399e+00  2.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/474688/cmap_HighResolution_541296001_541555201_4FGL_J2248.7-3235_daily_bin1165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-09-28 20:51:39.932712', job_id='474688', GAL2='0.91', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632887499.93', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.22e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1165' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:51:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 474688: <4FGL_J2248.7-3235_daily_bin1165> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1165> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:41:10 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:41:11 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:41:11 2021
Terminated at Tue Sep 28 20:51:40 2021
Results reported at Tue Sep 28 20:51:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1165 342.193 -32.5926 541296001 541555201 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 :                                   597.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            630 sec.

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

