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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1493
RA = 342.193, Dec = -32.5926
tmin = 626313601, tmax = 626572801
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='476222', job_status='RUN', time_executed='2021-09-28 20:47:05.238649', time_epoch_executed='1632887225.24' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476222

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476222/ft1_4FGL_J2248.7-3235_daily_bin1493.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476222/ft2_4FGL_J2248.7-3235_daily_bin1493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476222/ft1_4FGL_J2248.7-3235_daily_bin1493.fits outfile=/scratch/kocevski/476222/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1493.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=626313601.0 tmax=626572801.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 4.42
user 4.19
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476222/ft1_filtered_4FGL_J2248.7-3235_daily_bin1493.fits" evtable="EVENTS" scfile=/scratch/kocevski/476222/ft2_4FGL_J2248.7-3235_daily_bin1493.fits sctable="SC_DATA" outfile=/scratch/kocevski/476222/ltcube_626313601_626572801_4FGL_J2248.7-3235_daily_bin1493.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/476222/ft2_4FGL_J2248.7-3235_daily_bin1493.fits
.....................!
real 11.66
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476222/ft1_filtered_4FGL_J2248.7-3235_daily_bin1493.fits evtable="EVENTS" scfile=/scratch/kocevski/476222/ft2_4FGL_J2248.7-3235_daily_bin1493.fits sctable="SC_DATA" expcube=/scratch/kocevski/476222/ltcube_626313601_626572801_4FGL_J2248.7-3235_daily_bin1493.fits outfile=/scratch/kocevski/476222/expmap_626313601_626572801_4FGL_J2248.7-3235_daily_bin1493.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/476222/ltcube_626313601_626572801_4FGL_J2248.7-3235_daily_bin1493.fits
.....................!
real 190.46
user 185.83
sys 4.32

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/476222/ft1_filtered_4FGL_J2248.7-3235_daily_bin1493.fits scfile=/scratch/kocevski/476222/ft2_4FGL_J2248.7-3235_daily_bin1493.fits outfile=/scratch/kocevski/476222/cmap_626313601_626572801_4FGL_J2248.7-3235_daily_bin1493.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476222/ft1_filtered_4FGL_J2248.7-3235_daily_bin1493.fits scfile=/scratch/kocevski/476222/ft2_4FGL_J2248.7-3235_daily_bin1493.fits outfile=/scratch/kocevski/476222/cmap_HighResolution_626313601_626572801_4FGL_J2248.7-3235_daily_bin1493.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476222/ft1_filtered_4FGL_J2248.7-3235_daily_bin1493.fits evtable="EVENTS" scfile=/scratch/kocevski/476222/ft2_4FGL_J2248.7-3235_daily_bin1493.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476222/Model_4FGL_J2248.7-3235_daily_bin1493.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/476222/ft1_filtered_4FGL_J2248.7-3235_daily_bin1493.fits.....................!
real 62.46
user 61.17
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0859       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5716       1.0000         .10000E-03   10000.    
     4 'norm      '    26.026       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7513       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2905       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5798       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.731       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.9650       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8052       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.686       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17510       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    19.169       1.0000         .10000E-03   10000.    
    21 'Prefactor '    73.326       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10463E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74540       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=   8688.593     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2897 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0859        .31391       -.10033E-07   -.92555E-04
   2  Prefactor     .10000E-03    6.9533       -.19997E-06** at limit **
   3  Prefactor     3.5729        6.1159       -.90227E-06   -.62540E-03
   4  norm          26.026        15.278       -.27011E-06    .39233E-04
   5  Prefactor     .10000E-03    18.812       -.14906E-04** at limit **
   6  Prefactor     .10000E-03    30.039        .12650E-04** at limit **
   7  Prefactor     .10000E-03    10.102       -.75577E-05** at limit **
   8  Prefactor     5.7523        13.202       -.53404E-06   -.97537E-04
   9  norm          3.0225        1.6990       -.13040E-07    .88102E-04
  10  Prefactor     .10000E-03    13.875        .12276E-04** at limit **
  11  Prefactor     .10000E-03    8.8752        .34614E-05** at limit **
  12  Prefactor     2.2899        4.4997       -.12338E-05   -.96900E-03
  13  norm          4.5798        3.6363       -.15549E-06    .27643E-04
  14  Prefactor     13.737        16.478       -.18506E-05    .40497E-03
  15  Prefactor     9.9614        11.601        .15724E-05    .92112E-03
  16  norm          1.8056        .76600        .24900E-07    .42353E-02
  17  Prefactor     16.686        17.653       -.16927E-06   -.33723E-05
  18  Prefactor     .13124        5.8988       -.30762E-05    .81607E-03
  19  norm          .10000E-03    .99625       -.14109E-07** at limit **
  20  norm          19.167        7.9277       -.67242E-07   -.22654E-04
  21  Prefactor     73.326        34.672       -.51471E-06    .12660E-05
  22  Prefactor     .10000E-03    28.048        .92167E-06** at limit **
  23  norm          .10000E-03    1.7519        .10175E-07** at limit **
  24  Normalizat    1.0881        .15118        .19863E-06    .35656E-03
  25  Prefactor     .74539        .14686        .44882E-06    .24457E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08589
  Prefactor  = 0.0001
  Prefactor  = 3.57286
  norm       = 26.026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.75225
  norm       = 3.02253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.2899
  norm       = 4.57984
  Prefactor  = 13.7366
  Prefactor  = 9.96143
  norm       = 1.80562
  Prefactor  = 16.686
  Prefactor  = 0.131245
  norm       = 0.0001
  norm       = 19.1675
  Prefactor  = 73.3258
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.08811
  Prefactor  = 0.745386
 **********
 **   18 **HESSE 
 **********

 FCN=   8688.593     FROM HESSE     STATUS=OK           435 CALLS     3332 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0859        .31364        .27156E-04   -1.5500    
   2  Prefactor     .10000E-03    6.9805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5729        6.1664        .21384E-03   -1.5330    
   4  norm          26.026        15.278        .78523E-04   -1.4687    
   5  Prefactor     .10000E-03    18.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7523        13.213        .16748E-03   -1.5228    
   9  norm          3.0225        1.6978        .87937E-04   -1.5360    
  10  Prefactor     .10000E-03    13.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.0207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2899        4.5647        .27090E-03   -1.5405    
  13  norm          4.5798        3.6202        .14187E-03   -1.5280    
  14  Prefactor     13.737        16.390        .10809E-03   -1.4967    
  15  Prefactor     9.9614        11.781        .12694E-03   -1.5077    
  16  norm          1.8056        .78265        .40335E-04   -1.5439    
  17  Prefactor     16.686        17.659        .98050E-04   -1.4891    
  18  Prefactor     .13124        6.9709        .62418E-01   -1.5636    
  19  norm          .10000E-03    .99665        .90849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          19.167        7.9427        .91481E-04   -1.4832    
  21  Prefactor     73.326        34.680        .46886E-04   -1.3993    
  22  Prefactor     .10000E-03    28.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.7691        .12008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0881        .18010        .22246E-03   -.90134    
  25  Prefactor     .74539        .17405        .26583E-03   -1.0177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02822e-09
Minuit parameter uncertainties:
  1  0.313641
  2  3.40967e-06
  3  6.16747
  4  15.2799
  5  1.97284e-05
  6  0.000159797
  7  6.25132e-05
  8  13.2198
  9  1.69787
  10  3.7442e-06
  11  4.26924e-05
  12  4.56539
  13  3.6204
  14  16.3951
  15  11.7841
  16  0.782651
  17  17.6642
  18  1.91251
  19  2.98797e-07
  20  7.9431
  21  34.69
  22  1.57616e-05
  23  2.70376e-06
  24  0.180199
  25  0.174178
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  4.269e-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:  7.454e-01  1.742e-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.088e+00  1.802e-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: 6.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476222/likelihoodResults_626313601_626572801_4FGL_J2248.7-3235_daily_bin1493.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) = 8688.59312521
delta logL = -0.000528455988388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8688.5925968
delta logL = -4.7184585128e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7770       1.0000          .0000       10.000    
     3 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74537       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=   8688.099     FROM MIGRAD    STATUS=FAILED       183 CALLS      316 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70261E-03    .41043E-01    .58234E-03** at limit **
   2  Index        10.0000        9.4058        .50000    ** at limit **
   3  Normalizat    1.0501        .54342E-01    .22246E-03    .22282E-04
   4  Prefactor     .77241        .52274E-01    .26583E-03    .63381E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8688.099     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      467 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70261E-03    .41043E-01    .34516E-07** at limit **
   2  Index        10.0000        9.4058        .86579E-02** at limit **
   3  Normalizat    1.0501        .54342E-01    .80682E-07    .22282E-04
   4  Prefactor     .77241        .52274E-01    .34666E-07    .63381E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8688.099     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      506 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70261E-03    .92726E-03    .30991E-04** at limit **
   2  Index        10.0000        2.2815        .50000    ** at limit **
   3  Normalizat    1.0501        .17300        .88983E-05    .53149E-04
   4  Prefactor     .77241        .17266        .10633E-04    .75270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000702613
  Index      = 10
  Normalizat = 1.05008
  Prefactor  = 0.772414
 **********
 **   18 **HESSE 
 **********

 FCN=   8688.099     FROM HESSE     STATUS=OK            31 CALLS      537 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70261E-03    .88852E-03    .12396E-05   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        2.1134        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0501        .17286        .17797E-05   -.91371    
   4  Prefactor     .77241        .17240        .21266E-05   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61844e-12
Minuit parameter uncertainties:
  1  0.000888517
  2  1.75787e-06
  3  0.172952
  4  0.172517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476222': 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) = 8688.09877551
delta logL = 0.493821244017

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  7.026e-04  8.885e-04  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  1.000e+01  1.758e-06  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.724e-01  1.725e-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.050e+00  1.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 2.55e-08 +/- 3.13e-08
Energy Flux (Free Index): 2.85e-06 +/- 3.52e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/476222/cmap_HighResolution_626313601_626572801_4FGL_J2248.7-3235_daily_bin1493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', comment='SUCCESS', energy_flux2='2.85e-06', dlogl='4.94e-01', photon_flux2='2.55e-08', job_status='DONE', time_completed='2021-09-28 21:01:53.168484', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='6.06e-08', energy_flux_error2='3.52e-06', EG='1.09', time_epoch_completed='1632888113.17', return_code='0', job_id='476222', GAL2='0.77', EG2='1.05', return_code2='0', photon_flux_error2='3.13e-08', ts2='1.04', photon_index='2.76' WHERE bin_id='1493' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:01:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 476222: <4FGL_J2248.7-3235_daily_bin1493> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1493> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:45:35 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:45:36 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:45:36 2021
Terminated at Tue Sep 28 21:01:53 2021
Results reported at Tue Sep 28 21:01:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1493 342.193 -32.5926 626313601 626572801 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 :                                   882.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            978 sec.

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

