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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin243
RA = 342.193, Dec = -32.5926
tmin = 302313601, tmax = 302572801
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='470418', job_status='RUN', time_executed='2021-09-28 20:29:51.229579', time_epoch_executed='1632886191.23' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470418

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470418/ft1_4FGL_J2248.7-3235_daily_bin243.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470418/ft2_4FGL_J2248.7-3235_daily_bin243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470418/ft1_4FGL_J2248.7-3235_daily_bin243.fits outfile=/scratch/kocevski/470418/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin243.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=302313601.0 tmax=302572801.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.50
user 3.31
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/470418/ft2_4FGL_J2248.7-3235_daily_bin243.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/470418/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin243.fits evtable="EVENTS" outfile="/scratch/kocevski/470418/ft1_filtered_4FGL_J2248.7-3235_daily_bin243.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/470418/ft1_filtered_4FGL_J2248.7-3235_daily_bin243.fits" evtable="EVENTS" scfile=/scratch/kocevski/470418/ft2_4FGL_J2248.7-3235_daily_bin243.fits sctable="SC_DATA" outfile=/scratch/kocevski/470418/ltcube_302313601_302572801_4FGL_J2248.7-3235_daily_bin243.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/470418/ft2_4FGL_J2248.7-3235_daily_bin243.fits
.....................!
real 11.85
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470418/ft1_filtered_4FGL_J2248.7-3235_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/470418/ft2_4FGL_J2248.7-3235_daily_bin243.fits sctable="SC_DATA" expcube=/scratch/kocevski/470418/ltcube_302313601_302572801_4FGL_J2248.7-3235_daily_bin243.fits outfile=/scratch/kocevski/470418/expmap_302313601_302572801_4FGL_J2248.7-3235_daily_bin243.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/470418/ltcube_302313601_302572801_4FGL_J2248.7-3235_daily_bin243.fits
.....................!
real 190.46
user 185.41
sys 4.74

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/470418/ft1_filtered_4FGL_J2248.7-3235_daily_bin243.fits scfile=/scratch/kocevski/470418/ft2_4FGL_J2248.7-3235_daily_bin243.fits outfile=/scratch/kocevski/470418/cmap_302313601_302572801_4FGL_J2248.7-3235_daily_bin243.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/470418/ft1_filtered_4FGL_J2248.7-3235_daily_bin243.fits scfile=/scratch/kocevski/470418/ft2_4FGL_J2248.7-3235_daily_bin243.fits outfile=/scratch/kocevski/470418/cmap_HighResolution_302313601_302572801_4FGL_J2248.7-3235_daily_bin243.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.51
user 0.38
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/470418/ft1_filtered_4FGL_J2248.7-3235_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/470418/ft2_4FGL_J2248.7-3235_daily_bin243.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/470418/Model_4FGL_J2248.7-3235_daily_bin243.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/470418/ft1_filtered_4FGL_J2248.7-3235_daily_bin243.fits.....................!
real 37.14
user 35.92
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69608       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.052       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    26.065       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .95917       1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.773       1.0000         .10000E-03   10000.    
     9 'norm      '    .10933E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    109.68       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4181       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11457E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.738       1.0000         .10000E-03   10000.    
    16 'norm      '    .12542E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.834       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .16908       1.0000         .10000E-03   10000.    
    20 'norm      '    15.019       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    49.792       1.0000         .10000E-03   10000.    
    23 'norm      '    7.4021       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4373       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66021       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=   4207.855     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2941 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69616        .39806        .22641E-08    .40926E-04
   2  Prefactor     25.055        21.434       -.75601E-07   -.69132E-05
   3  Prefactor     .10000E-03    6.6225       -.15782E-06** at limit **
   4  norm          26.076        27.627       -.87080E-07    .10204E-03
   5  Prefactor     .10000E-03    19.301       -.10213E-06** at limit **
   6  Prefactor     .10000E-03    17.309       -.73995E-06** at limit **
   7  Prefactor     .96445        14.552        .54541E-06    .62193E-04
   8  Prefactor     58.757        33.270        .61084E-06   -.26460E-04
   9  norm          .10000E-03    3.6230        .73759E-06** at limit **
  10  Prefactor     109.69        84.005        .43703E-05    .29737E-03
  11  Prefactor     .10000E-03    26.638        .28526E-06** at limit **
  12  Prefactor     .10000E-03    2.5338       -.45334E-07** at limit **
  13  norm          2.4189        6.0427        .10517E-05    .13445E-02
  14  Prefactor     .10000E-03    34.536       -.11379E-05** at limit **
  15  Prefactor     15.753        19.952        .42539E-06    .56539E-03
  16  norm          .10000E-03    .61673       -.14540E-06** at limit **
  17  Prefactor     46.848        66.280       -.11734E-05   -.42280E-05
  18  Prefactor     .10000E-03    13.902       -.23346E-06** at limit **
  19  norm          .19829        70.702        .20642E-04   -.12601E-03
  20  norm          15.020        10.236        .50594E-07    .26603E-04
  21  Prefactor     .10000E-03    48.921       -.10859E-05** at limit **
  22  Prefactor     49.800        61.218       -.63280E-06    .51876E-05
  23  norm          7.3810        8.8744       -.12428E-05    .63586E-03
  24  Normalizat    1.4382        .25396        .50840E-06    .55796E-04
  25  Prefactor     .65944        .23248       -.53654E-06    .67217E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.696157
  Prefactor  = 25.0549
  Prefactor  = 0.0001
  norm       = 26.0761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.964446
  Prefactor  = 58.7572
  norm       = 0.000100004
  Prefactor  = 109.687
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.41892
  Prefactor  = 0.0001
  Prefactor  = 15.7531
  norm       = 0.000100001
  Prefactor  = 46.8482
  Prefactor  = 0.0001
  norm       = 0.198293
  norm       = 15.0196
  Prefactor  = 0.000100001
  Prefactor  = 49.8001
  norm       = 7.38097
  Normalizat = 1.43816
  Prefactor  = 0.659439
 **********
 **   18 **HESSE 
 **********

 FCN=   4207.855     FROM HESSE     STATUS=OK           427 CALLS     3368 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69616        .40122        .29980E-04   -1.5541    
   2  Prefactor     25.055        21.437        .80034E-04   -1.4706    
   3  Prefactor     .10000E-03    6.6736        .16298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          26.076        27.610        .78465E-04   -1.4686    
   5  Prefactor     .10000E-03    19.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .96445        40.944        .45442E-02   -1.5512    
   8  Prefactor     58.757        33.327        .52332E-04   -1.4173    
   9  norm          .10000E-03    6.5810        .21378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     109.69        81.983        .38405E-04   -1.3609    
  11  Prefactor     .10000E-03    26.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5359        .10085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4189        6.0762        .19985E-03   -1.5397    
  14  Prefactor     .10000E-03    34.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.753        18.081        .10096E-03   -1.4914    
  16  norm          .10000E-03    8.0142        .84285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     46.848        66.265        .58590E-04   -1.4338    
  18  Prefactor     .10000E-03    13.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .19829        87.621        .34409E-02   -1.5619    
  20  norm          15.020        10.235        .10335E-03   -1.4933    
  21  Prefactor     .10000E-03    49.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     49.800        61.348        .56831E-04   -1.4295    
  23  norm          7.3810        9.1830        .14742E-03   -1.5165    
  24  Normalizat    1.4382        .31383        .23693E-03   -.79531    
  25  Prefactor     .65944        .28236        .31533E-03   -1.0514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28563e-09
Minuit parameter uncertainties:
  1  0.401223
  2  21.4432
  3  9.02413e-05
  4  27.6231
  5  9.06373e-05
  6  0.000127942
  7  12.5765
  8  33.3376
  9  0.000328534
  10  82.0678
  11  0.000355903
  12  1.08724e-05
  13  6.07772
  14  0.0002504
  15  18.0871
  16  0.000162324
  17  66.3693
  18  4.48961e-05
  19  8.34679
  20  10.2365
  21  0.000354733
  22  61.426
  23  9.18477
  24  0.314249
  25  0.282973
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  6.594e-01  2.830e-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.438e+00  3.142e-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.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/470418/likelihoodResults_302313601_302572801_4FGL_J2248.7-3235_daily_bin243.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) = 4207.85503793
delta logL = -0.000176980308424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4207.85486122
delta logL = -2.67175892077e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1654       1.0000          .0000       10.000    
     3 'Normalizat'    1.4382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65944       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=   4207.855     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      291 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10242E-03    168.39        .36285E-02** at limit **
   2  Index         3.0773        5.3235        .50000        .63741E-05
   3  Normalizat    1.4382        .15125E-01    .23693E-03    .25767E-04
   4  Prefactor     .65944        .14265E-01    .31534E-03    .41605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102416
  Index      = 3.07734
  Normalizat = 1.43816
  Prefactor  = 0.659439
 **********
 **   18 **HESSE 
 **********

 FCN=   4207.855     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10242E-03    747.70        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0773        5.9640        .50000       -.39470    
   3  Normalizat    1.4382        .32962E-01    .47385E-04   -.79531    
   4  Prefactor     .65944        .31087E-01    .12613E-04   -1.0514    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78012e-08
Minuit parameter uncertainties:
  1  0.0861065
  2  1133.25
  3  0.0329625
  4  0.0310874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470418': 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) = 4207.85486109
delta logL = -1.38464201882e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  6.594e-01  3.109e-02  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.438e+00  3.296e-02  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/470418/cmap_HighResolution_302313601_302572801_4FGL_J2248.7-3235_daily_bin243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-28 20:39:24.207662', job_id='470418', GAL2='0.66', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1632886764.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='-1.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='243' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:39:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 470418: <4FGL_J2248.7-3235_daily_bin243> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin243 342.193 -32.5926 302313601 302572801 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 :                                   572.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

