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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1042
RA = 342.193, Dec = -32.5926
tmin = 509414401, tmax = 509673601
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='474498', job_status='RUN', time_executed='2021-09-28 20:44:14.622834', time_epoch_executed='1632887054.62' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1042'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474498/ft1_4FGL_J2248.7-3235_daily_bin1042.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474498/ft2_4FGL_J2248.7-3235_daily_bin1042.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474498/ft1_4FGL_J2248.7-3235_daily_bin1042.fits outfile=/scratch/kocevski/474498/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1042.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=509414401.0 tmax=509673601.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.78
user 3.47
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474498/ft1_filtered_4FGL_J2248.7-3235_daily_bin1042.fits" evtable="EVENTS" scfile=/scratch/kocevski/474498/ft2_4FGL_J2248.7-3235_daily_bin1042.fits sctable="SC_DATA" outfile=/scratch/kocevski/474498/ltcube_509414401_509673601_4FGL_J2248.7-3235_daily_bin1042.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/474498/ft2_4FGL_J2248.7-3235_daily_bin1042.fits
.....................!
real 12.43
user 12.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474498/ft1_filtered_4FGL_J2248.7-3235_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/474498/ft2_4FGL_J2248.7-3235_daily_bin1042.fits sctable="SC_DATA" expcube=/scratch/kocevski/474498/ltcube_509414401_509673601_4FGL_J2248.7-3235_daily_bin1042.fits outfile=/scratch/kocevski/474498/expmap_509414401_509673601_4FGL_J2248.7-3235_daily_bin1042.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/474498/ltcube_509414401_509673601_4FGL_J2248.7-3235_daily_bin1042.fits
.....................!
real 191.65
user 186.51
sys 4.81

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/474498/ft1_filtered_4FGL_J2248.7-3235_daily_bin1042.fits scfile=/scratch/kocevski/474498/ft2_4FGL_J2248.7-3235_daily_bin1042.fits outfile=/scratch/kocevski/474498/cmap_509414401_509673601_4FGL_J2248.7-3235_daily_bin1042.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474498/ft1_filtered_4FGL_J2248.7-3235_daily_bin1042.fits scfile=/scratch/kocevski/474498/ft2_4FGL_J2248.7-3235_daily_bin1042.fits outfile=/scratch/kocevski/474498/cmap_HighResolution_509414401_509673601_4FGL_J2248.7-3235_daily_bin1042.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/474498/ft1_filtered_4FGL_J2248.7-3235_daily_bin1042.fits evtable="EVENTS" scfile=/scratch/kocevski/474498/ft2_4FGL_J2248.7-3235_daily_bin1042.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474498/Model_4FGL_J2248.7-3235_daily_bin1042.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/474498/ft1_filtered_4FGL_J2248.7-3235_daily_bin1042.fits.....................!
real 39.58
user 38.26
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1041       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1653       1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.239       1.0000         .10000E-03   10000.    
     9 'norm      '    .10317E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    110.97       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4933       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.015       1.0000         .10000E-03   10000.    
    16 'norm      '    .10314E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    240.85       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .72931       1.0000         .10000E-03   10000.    
    20 'norm      '    12.254       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.6437       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1911       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86322       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=   4394.059     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2917 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1041        .67594       -.15088E-07    .53942E-04
   2  Prefactor     .10000E-03    9.8709        .93074E-07** at limit **
   3  Prefactor     4.1641        11.033        .10192E-06   -.11561E-04
   4  norm          .10000E-03    7.8163       -.11805E-06** at limit **
   5  Prefactor     .10000E-03    32.386        .12694E-06** at limit **
   6  Prefactor     .10000E-03    33.782       -.21737E-06** at limit **
   7  Prefactor     .10000E-03    7.0329       -.27479E-06** at limit **
   8  Prefactor     18.237        30.127       -.24866E-06    .10138E-04
   9  norm          .10000E-03    2.6796       -.15206E-05** at limit **
  10  Prefactor     110.93        80.485        .24109E-06    .45984E-05
  11  Prefactor     .10000E-03    16.558       -.18592E-06** at limit **
  12  Prefactor     7.4918        10.013        .59371E-07   -.61300E-05
  13  norm          .10000E-03    5.7648       -.13144E-06** at limit **
  14  Prefactor     .10000E-03    12.242       -.21080E-06** at limit **
  15  Prefactor     32.071        16.109       -.28334E-06    .31409E-05
  16  norm          .10000E-03    .63196        .68588E-07** at limit **
  17  Prefactor     240.75        114.60       -.10513E-05   -.15733E-03
  18  Prefactor     .10000E-03    14.374        .49161E-07** at limit **
  19  norm          .73197        17.168        .85504E-05   -.33948E-04
  20  norm          12.254        9.5627        .27955E-07    .52004E-05
  21  Prefactor     .10000E-03    22.919        .14783E-07** at limit **
  22  Prefactor     .10000E-03    59.389        .29660E-06** at limit **
  23  norm          3.6409        7.1677       -.32850E-05   -.33912E-03
  24  Normalizat    1.1912        .25421        .27136E-05   -.13137E-03
  25  Prefactor     .86315        .22965       -.25251E-05    .10430E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10406
  Prefactor  = 0.0001
  Prefactor  = 4.16406
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2372
  norm       = 0.0001
  Prefactor  = 110.933
  Prefactor  = 0.0001
  Prefactor  = 7.49181
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0708
  norm       = 0.0001
  Prefactor  = 240.749
  Prefactor  = 0.0001
  norm       = 0.731971
  norm       = 12.2544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.64088
  Normalizat = 1.19122
  Prefactor  = 0.863148
 **********
 **   18 **HESSE 
 **********

 FCN=   4394.059     FROM HESSE     STATUS=OK           423 CALLS     3340 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1041        .67640        .29755E-04   -1.5418    
   2  Prefactor     .10000E-03    9.8770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1641        11.054        .19748E-03   -1.5300    
   4  norm          .10000E-03    7.8168        .18101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0393        .17165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.237        30.169        .93782E-04   -1.4854    
   9  norm          .10000E-03    2.6564        .20752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     110.93        80.000        .19092E-03   -1.3598    
  11  Prefactor     .10000E-03    16.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.4918        10.011        .14651E-03   -1.5160    
  13  norm          .10000E-03    6.0148        .31007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.071        14.795        .70816E-04   -1.4575    
  16  norm          .10000E-03    1.0458        .93030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     240.75        115.08        .13045E-03   -1.2592    
  18  Prefactor     .10000E-03    14.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .73197        17.354        .34412E-03   -1.5537    
  20  norm          12.254        9.5663        .11443E-03   -1.5008    
  21  Prefactor     .10000E-03    22.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    59.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.6409        7.1661        .15526E-03   -1.5326    
  24  Normalizat    1.1912        .30483        .26107E-03   -.86874    
  25  Prefactor     .86315        .27438        .28625E-03   -.97441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.49259e-10
Minuit parameter uncertainties:
  1  0.676399
  2  9.4788e-06
  3  11.0597
  4  1.48458e-06
  5  1.28852e-06
  6  5.27498e-05
  7  9.45101e-06
  8  30.1944
  9  4.12854e-05
  10  80.0776
  11  4.84934e-05
  12  10.0129
  13  1.89003e-05
  14  1.58506e-05
  15  14.797
  16  6.5537e-06
  17  115.184
  18  2.46532e-05
  19  7.13008
  20  9.56745
  21  2.87372e-05
  22  8.23572e-05
  23  7.1678
  24  0.305282
  25  0.274817
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  4.849e-05  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.631e-01  2.748e-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.191e+00  3.053e-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.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474498/likelihoodResults_509414401_509673601_4FGL_J2248.7-3235_daily_bin1042.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) = 4394.05880785
delta logL = -0.000285896892819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4394.05852656
delta logL = -4.60273804492e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.4139       1.0000          .0000       10.000    
     3 'Normalizat'    1.1912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86316       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4394.059     FROM MIGRAD    STATUS=FAILED       116 CALLS      309 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1839.6        .18142E-01** at limit **
   2  Index         2.1131        5.3131        .50000       -.23545E-06
   3  Normalizat    1.1912        .64096E-01    .26107E-03   -.75292E-04
   4  Prefactor     .86314        .61294E-01    .28625E-03   -.59535E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4394.059     FROM SIMPLEX   STATUS=UNCHANGED    175 CALLS      484 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1839.6        .73296E-03** at limit **
   2  Index         2.1131        5.3131        .32896E-06   -.23545E-06
   3  Normalizat    1.1912        .64096E-01    .23686E-07   -.75292E-04
   4  Prefactor     .86314        .61294E-01    .55740E-08   -.59535E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4394.059     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      518 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.395        .59595E-03** at limit **
   2  Index         2.1147        8.6893        .50000       -.18651E-06
   3  Normalizat    1.1912        .28488        .10443E-04   -.80125E-04
   4  Prefactor     .86314        .27172        .11450E-04   -.64142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11475
  Normalizat = 1.19123
  Prefactor  = 0.863142
 **********
 **   18 **HESSE 
 **********

 FCN=   4394.059     FROM HESSE     STATUS=OK            29 CALLS      547 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.243        .11919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1147        5.5580        .50000       -.61511    
   3  Normalizat    1.1912        .28553        .20886E-05   -.86874    
   4  Prefactor     .86314        .27239        .22900E-05   -.97441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44382e-11
Minuit parameter uncertainties:
  1  0.000132604
  2  134.817
  3  0.285907
  4  0.272821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474498': 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) = 4394.05852122
delta logL = 7.36925358069e-07

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  1.326e-04  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.115e+00  1.348e+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.631e-01  2.728e-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.191e+00  2.859e-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/474498/cmap_HighResolution_509414401_509673601_4FGL_J2248.7-3235_daily_bin1042.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-28 20:54:09.143834', job_id='474498', GAL2='0.86', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632887649.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='7.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1042' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:54:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 474498: <4FGL_J2248.7-3235_daily_bin1042> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1042 342.193 -32.5926 509414401 509673601 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 :                                   591.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            799 sec.

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

