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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin125
RA = 342.193, Dec = -32.5926
tmin = 271728001, tmax = 271987201
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='470228', job_status='RUN', time_executed='2021-09-28 20:25:48.460792', time_epoch_executed='1632885948.46' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470228

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470228/ft1_4FGL_J2248.7-3235_daily_bin125.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470228/ft2_4FGL_J2248.7-3235_daily_bin125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470228/ft1_4FGL_J2248.7-3235_daily_bin125.fits outfile=/scratch/kocevski/470228/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin125.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=271728001.0 tmax=271987201.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.13
user 2.92
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/470228/ft1_filtered_4FGL_J2248.7-3235_daily_bin125.fits" evtable="EVENTS" scfile=/scratch/kocevski/470228/ft2_4FGL_J2248.7-3235_daily_bin125.fits sctable="SC_DATA" outfile=/scratch/kocevski/470228/ltcube_271728001_271987201_4FGL_J2248.7-3235_daily_bin125.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/470228/ft2_4FGL_J2248.7-3235_daily_bin125.fits
.....................!
real 12.44
user 12.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470228/ft1_filtered_4FGL_J2248.7-3235_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/470228/ft2_4FGL_J2248.7-3235_daily_bin125.fits sctable="SC_DATA" expcube=/scratch/kocevski/470228/ltcube_271728001_271987201_4FGL_J2248.7-3235_daily_bin125.fits outfile=/scratch/kocevski/470228/expmap_271728001_271987201_4FGL_J2248.7-3235_daily_bin125.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/470228/ltcube_271728001_271987201_4FGL_J2248.7-3235_daily_bin125.fits
.....................!
real 190.80
user 185.05
sys 5.40

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/470228/ft1_filtered_4FGL_J2248.7-3235_daily_bin125.fits scfile=/scratch/kocevski/470228/ft2_4FGL_J2248.7-3235_daily_bin125.fits outfile=/scratch/kocevski/470228/cmap_271728001_271987201_4FGL_J2248.7-3235_daily_bin125.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/470228/ft1_filtered_4FGL_J2248.7-3235_daily_bin125.fits scfile=/scratch/kocevski/470228/ft2_4FGL_J2248.7-3235_daily_bin125.fits outfile=/scratch/kocevski/470228/cmap_HighResolution_271728001_271987201_4FGL_J2248.7-3235_daily_bin125.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/470228/ft1_filtered_4FGL_J2248.7-3235_daily_bin125.fits evtable="EVENTS" scfile=/scratch/kocevski/470228/ft2_4FGL_J2248.7-3235_daily_bin125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/470228/Model_4FGL_J2248.7-3235_daily_bin125.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/470228/ft1_filtered_4FGL_J2248.7-3235_daily_bin125.fits.....................!
real 45.84
user 44.46
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9014       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17316E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2096       1.0000         .10000E-03   10000.    
     4 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.024       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8388       1.0000         .10000E-03   10000.    
    10 'Prefactor '    306.27       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2018       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5630       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3554       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4261       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.627       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .67074E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.0987       1.0000         .10000E-03   10000.    
    20 'norm      '    6.9027       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23927E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.108       1.0000         .10000E-03   10000.    
    23 'norm      '    9.3791       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93377       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71481       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=   5749.336     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     3005 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9013        .57810       -.57185E-08   -.11342E-03
   2  Prefactor     .10014E-03    12.998        .13184E-05** at limit **
   3  Prefactor     4.2056        8.8347        .22874E-05   -.24475E-03
   4  norm          .10000E-03    11.480        .37109E-05** at limit **
   5  Prefactor     .10000E-03    11.905       -.49258E-05** at limit **
   6  Prefactor     12.012        21.245       -.15682E-05   -.43713E-04
   7  Prefactor     14.494        13.098       -.13519E-04   -.34143E-04
   8  Prefactor     .10000E-03    7.2124        .81584E-07** at limit **
   9  norm          1.8381        2.4113       -.22615E-05   -.54621E-03
  10  Prefactor     306.31        74.799        .16721E-04    .15092E-03
  11  Prefactor     2.2075        15.000        .57385E-05   -.21736E-03
  12  Prefactor     .10000E-03    2.9711        .24056E-06** at limit **
  13  norm          1.5633        1.6864        .22800E-07    .23084E-03
  14  Prefactor     8.3646        9.0654       -.92116E-05    .16219E-03
  15  Prefactor     .10000E-03    8.2527        .35870E-06** at limit **
  16  norm          1.4274        .66563        .23495E-06   -.12283E-03
  17  Prefactor     38.597        39.440       -.87640E-05   -.12000E-04
  18  Prefactor     .10546E-03    10.117       -.18161E-05** at limit **
  19  norm          6.0990        5.3008       -.40671E-06    .10451E-03
  20  norm          6.9012        5.9699       -.16970E-05   -.74425E-07
  21  Prefactor     .10000E-03    208.93       -.12862E-04** at limit **
  22  Prefactor     10.117        22.295        .23400E-05   -.90215E-05
  23  norm          9.3895        5.6503        .45462E-06    .12829E-03
  24  Normalizat    .93399        .18951       -.13049E-05    .13469E-03
  25  Prefactor     .71478        .18021        .13274E-05   -.37575E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.90133
  Prefactor  = 0.000100138
  Prefactor  = 4.20556
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0117
  Prefactor  = 14.4935
  Prefactor  = 0.0001
  norm       = 1.83808
  Prefactor  = 306.307
  Prefactor  = 2.2075
  Prefactor  = 0.0001
  norm       = 1.5633
  Prefactor  = 8.36458
  Prefactor  = 0.000100001
  norm       = 1.42741
  Prefactor  = 38.5965
  Prefactor  = 0.000105455
  norm       = 6.09904
  norm       = 6.90117
  Prefactor  = 0.0001
  Prefactor  = 10.1174
  norm       = 9.3895
  Normalizat = 0.933986
  Prefactor  = 0.714776
 **********
 **   18 **HESSE 
 **********

 FCN=   5749.336     FROM HESSE     STATUS=OK           449 CALLS     3454 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9013        .57890        .24932E-04   -1.5367    
   2  Prefactor     .10014E-03    106.25        .52682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2056        8.7927        .19641E-03   -1.5298    
   4  norm          .10000E-03    11.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.012        21.185        .11553E-03   -1.5015    
   7  Prefactor     14.494        13.132        .10518E-03   -1.4946    
   8  Prefactor     .10000E-03    7.2232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8381        2.3865        .12133E-03   -1.5437    
  10  Prefactor     306.31        74.369        .11607E-03   -1.2190    
  11  Prefactor     2.2075        14.968        .27727E-03   -1.5411    
  12  Prefactor     .10000E-03    2.9817        .12762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5633        1.6929        .99341E-04   -1.5458    
  14  Prefactor     8.3646        8.9319        .13869E-03   -1.5129    
  15  Prefactor     .10000E-03    21.456        .35003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4274        .63616        .36078E-04   -1.5469    
  17  Prefactor     38.597        39.469        .32245E-03   -1.4465    
  18  Prefactor     .10546E-03    13.017        .59441E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.0990        5.3156        .15005E-03   -1.5214    
  20  norm          6.9012        5.9714        .15270E-03   -1.5183    
  21  Prefactor     .10000E-03    211.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.117        22.284        .12603E-03   -1.5072    
  23  norm          9.3895        5.6460        .12630E-03   -1.5095    
  24  Normalizat    .93399        .22844        .23737E-03   -.95276    
  25  Prefactor     .71478        .21671        .26836E-03   -1.0295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.545e-09
Minuit parameter uncertainties:
  1  0.578906
  2  0.00767164
  3  8.79537
  4  3.80204e-05
  5  9.24997e-07
  6  21.1985
  7  13.1343
  8  3.56099e-06
  9  2.38662
  10  74.3925
  11  11.5001
  12  2.10292e-06
  13  1.69297
  14  8.93336
  15  0.0002727
  16  0.636168
  17  39.4954
  18  0.0168574
  19  5.31603
  20  5.97194
  21  0.000141979
  22  22.3022
  23  5.64632
  24  0.228675
  25  0.216967
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  2.208e+00  1.150e+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:  7.148e-01  2.170e-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:  9.340e-01  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/470228/likelihoodResults_271728001_271987201_4FGL_J2248.7-3235_daily_bin125.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) = 5749.11164557
delta logL = 0.22444713195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5749.06261571
delta logL = 0.273476987437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59581       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0326       1.0000          .0000       10.000    
     3 'Normalizat'    .90068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73884       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=   5749.063     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      218 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59568        16.382        .18844E-01    .12120E-02
   2  Index         5.0353        7.2877        .20136        .89845E-04
   3  Normalizat    .90059        .30744E-01    .44910E-01    .71773E-05
   4  Prefactor     .73900        .30909E-01    .42916E-01    .12546E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.595682
  Index      = 5.03529
  Normalizat = 0.900594
  Prefactor  = 0.739
 **********
 **   18 **HESSE 
 **********

 FCN=   5749.063     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      253 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59568        61.145        .85949E-03   -1.5554    
   2  Index         5.0353        5.4120        .12162E-01    .70574E-02
   3  Normalizat    .90059        .13300        .24121E-03   -.96439    
   4  Prefactor     .73900        .13020        .26434E-03   -1.0202    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02516e-07
Minuit parameter uncertainties:
  1  12.0819
  2  14.9509
  3  0.133053
  4  0.130251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470228': 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): 102
logL (Free Index) = 5749.06261244
delta logL = 0.273480256676

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  5.957e-01  1.208e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  5.035e+00  1.495e+01  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:  7.390e-01  1.303e-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:  9.006e-01  1.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/470228/cmap_HighResolution_271728001_271987201_4FGL_J2248.7-3235_daily_bin125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-28 20:37:14.471172', job_id='470228', GAL2='0.74', fit_tolerance='1e-08', EG2='0.90', EG='0.93', time_epoch_completed='1632886634.47', return_code2='102', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='2.73e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='125' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:37:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 470228: <4FGL_J2248.7-3235_daily_bin125> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin125> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:25:29 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:25:31 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:25:31 2021
Terminated at Tue Sep 28 20:37:15 2021
Results reported at Tue Sep 28 20:37:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin125 342.193 -32.5926 271728001 271987201 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 :                                   684.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            706 sec.

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

