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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1121
RA = 342.193, Dec = -32.5926
tmin = 529891201, tmax = 530150401
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='474617', job_status='RUN', time_executed='2021-09-28 20:44:06.571055', time_epoch_executed='1632887046.57' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474617/ft1_4FGL_J2248.7-3235_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474617/ft2_4FGL_J2248.7-3235_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474617/ft1_4FGL_J2248.7-3235_daily_bin1121.fits outfile=/scratch/kocevski/474617/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1121.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=529891201.0 tmax=530150401.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.59
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474617/ft1_filtered_4FGL_J2248.7-3235_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/474617/ft2_4FGL_J2248.7-3235_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/474617/ltcube_529891201_530150401_4FGL_J2248.7-3235_daily_bin1121.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/474617/ft2_4FGL_J2248.7-3235_daily_bin1121.fits
.....................!
real 12.22
user 11.56
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474617/ft1_filtered_4FGL_J2248.7-3235_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/474617/ft2_4FGL_J2248.7-3235_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/474617/ltcube_529891201_530150401_4FGL_J2248.7-3235_daily_bin1121.fits outfile=/scratch/kocevski/474617/expmap_529891201_530150401_4FGL_J2248.7-3235_daily_bin1121.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/474617/ltcube_529891201_530150401_4FGL_J2248.7-3235_daily_bin1121.fits
.....................!
real 193.31
user 187.55
sys 5.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/474617/ft1_filtered_4FGL_J2248.7-3235_daily_bin1121.fits scfile=/scratch/kocevski/474617/ft2_4FGL_J2248.7-3235_daily_bin1121.fits outfile=/scratch/kocevski/474617/cmap_529891201_530150401_4FGL_J2248.7-3235_daily_bin1121.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474617/ft1_filtered_4FGL_J2248.7-3235_daily_bin1121.fits scfile=/scratch/kocevski/474617/ft2_4FGL_J2248.7-3235_daily_bin1121.fits outfile=/scratch/kocevski/474617/cmap_HighResolution_529891201_530150401_4FGL_J2248.7-3235_daily_bin1121.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474617/ft1_filtered_4FGL_J2248.7-3235_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/474617/ft2_4FGL_J2248.7-3235_daily_bin1121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474617/Model_4FGL_J2248.7-3235_daily_bin1121.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/474617/ft1_filtered_4FGL_J2248.7-3235_daily_bin1121.fits.....................!
real 56.57
user 55.24
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6423       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.377       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    31.176       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.898       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0000       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5484       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8256       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.912       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.475       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6438       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2679       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3750       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.189       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .35273E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.354       1.0000         .10000E-03   10000.    
    23 'norm      '    6.7200       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89922       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78366       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=   7962.928     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2899 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6423        .34183        .26610E-08    .20465E-04
   2  Prefactor     21.375        12.053       -.12190E-06   -.12935E-04
   3  Prefactor     .10000E-03    2.1252        .46909E-08** at limit **
   4  norm          31.175        16.052        .93592E-07    .10197E-05
   5  Prefactor     37.894        25.373        .24867E-07   -.28078E-05
   6  Prefactor     .10000E-03    9.0656        .71277E-07** at limit **
   7  Prefactor     3.9990        3.1944        .27118E-06   -.12843E-02
   8  Prefactor     .10000E-03    5.3058        .17824E-07** at limit **
   9  norm          2.5485        1.8171        .11885E-08   -.82960E-04
  10  Prefactor     6.8243        21.765       -.47322E-06   -.11669E-04
  11  Prefactor     11.905        8.4545        .18338E-05    .93510E-04
  12  Prefactor     11.472        5.5381       -.63461E-06   -.96254E-04
  13  norm          2.6455        3.6449       -.35120E-06   -.28727E-03
  14  Prefactor     .10000E-03    4.8230       -.52986E-07** at limit **
  15  Prefactor     3.2526        11.066        .16730E-05   -.95770E-04
  16  norm          2.3755        .81437       -.17742E-06    .15887E-03
  17  Prefactor     .10000E-03    26.968       -.65024E-06** at limit **
  18  Prefactor     12.190        10.483        .13079E-05   -.10430E-04
  19  norm          .10000E-03    1.5544        .44703E-08** at limit **
  20  norm          .10001E-03    4.2008       -.64747E-06** at limit **
  21  Prefactor     .10000E-03    33.227        .77999E-06** at limit **
  22  Prefactor     25.244        35.558       -.64042E-06    .12460E-04
  23  norm          6.7214        3.2244        .25596E-07   -.14714E-04
  24  Normalizat    .90003        .14705       -.93188E-06    .10849E-03
  25  Prefactor     .78295        .14334        .43559E-06   -.88033E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.64231
  Prefactor  = 21.3746
  Prefactor  = 0.0001
  norm       = 31.1748
  Prefactor  = 37.8943
  Prefactor  = 0.0001
  Prefactor  = 3.99898
  Prefactor  = 0.0001
  norm       = 2.54849
  Prefactor  = 6.82433
  Prefactor  = 11.9053
  Prefactor  = 11.4722
  norm       = 2.64554
  Prefactor  = 0.0001
  Prefactor  = 3.25263
  norm       = 2.37554
  Prefactor  = 0.0001
  Prefactor  = 12.1898
  norm       = 0.0001
  norm       = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 25.2441
  norm       = 6.72144
  Normalizat = 0.90003
  Prefactor  = 0.782947
 **********
 **   18 **HESSE 
 **********

 FCN=   7962.928     FROM HESSE     STATUS=OK           433 CALLS     3332 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6423        .34255        .23137E-04   -1.5452    
   2  Prefactor     21.375        12.054        .86630E-04   -1.4783    
   3  Prefactor     .10000E-03    2.1412        .12700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          31.175        16.060        .71760E-04   -1.4591    
   5  Prefactor     37.894        25.375        .65105E-04   -1.4476    
   6  Prefactor     .10000E-03    9.1405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9990        7.8811        .10082E-02   -1.5308    
   8  Prefactor     .10000E-03    5.3235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5485        1.8305        .87497E-04   -1.5389    
  10  Prefactor     6.8243        22.037        .15357E-03   -1.5185    
  11  Prefactor     11.905        8.4869        .11607E-03   -1.5018    
  12  Prefactor     11.472        5.5634        .11826E-03   -1.5030    
  13  norm          2.6455        3.5577        .17166E-03   -1.5383    
  14  Prefactor     .10000E-03    4.8269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2526        10.637        .22401E-03   -1.5347    
  16  norm          2.3755        .82096        .34959E-04   -1.5400    
  17  Prefactor     .10000E-03    27.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.190        10.192        .11474E-03   -1.5010    
  19  norm          .10000E-03    1.5586        .10859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    16.181        .34866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.244        35.718        .79556E-04   -1.4703    
  23  norm          6.7214        3.2163        .10762E-03   -1.5189    
  24  Normalizat    .90003        .17459        .23064E-03   -.96459    
  25  Prefactor     .78295        .17026        .24953E-03   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49727e-09
Minuit parameter uncertainties:
  1  0.342548
  2  12.0552
  3  2.73519e-07
  4  16.0619
  5  25.382
  6  1.98053e-06
  7  7.88319
  8  3.00318e-06
  9  1.83054
  10  22.0631
  11  8.48774
  12  5.56361
  13  3.55802
  14  1.43619e-05
  15  10.6434
  16  0.820963
  17  1.34021e-05
  18  10.1937
  19  6.05376e-08
  20  0.000963694
  21  2.03785e-05
  22  35.7487
  23  3.21634
  24  0.174696
  25  0.170376
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.191e+01  8.488e+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

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  7.829e-01  1.704e-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.000e-01  1.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.32
Ra Dec: 342.193 -32.593
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 9.71e-06 +/- 6.92e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7962.81058342
delta logL = 0.117695550732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7962.8104944
delta logL = 0.117784568876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.905       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3831       1.0000          .0000       10.000    
     3 'Normalizat'    .91724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77173       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=   7962.810     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.854        17.200        .29026E-02    .82899E-04
   2  Index         2.3824        1.0853        .23969        .59084E-05
   3  Normalizat    .91743        .14132        .45122E-01    .65068E-04
   4  Prefactor     .77168        .14228        .43348E-01    .48534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8542
  Index      = 2.3824
  Normalizat = 0.917428
  Prefactor  = 0.771685
 **********
 **   18 **HESSE 
 **********

 FCN=   7962.810     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.854        9.5787        .11610E-03   -1.5019    
   2  Index         2.3824        .76644        .11645E-01   -.55098    
   3  Normalizat    .91743        .16738        .22871E-03   -.95850    
   4  Prefactor     .77168        .16703        .25116E-03   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90121e-11
Minuit parameter uncertainties:
  1  9.57993
  2  0.770634
  3  0.16748
  4  0.167135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474617': 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) = 7962.81048019
delta logL = 0.117798785054

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.185e+01  9.580e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.382e+00  7.706e-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.717e-01  1.671e-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.174e-01  1.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 342.193 -32.593
Photon Index (Free Index): 2.38 +/- 0.77
Photon Flux (Free Index): 3.04e-08 +/- 3.42e-08
Energy Flux (Free Index): 1.02e-05 +/- 8.25e-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/474617/cmap_HighResolution_529891201_530150401_4FGL_J2248.7-3235_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='1.02e-05', photon_flux_error='3.01e-08', dlogl='1.18e-01', energy_flux='9.71e-06', photon_flux2='3.04e-08', job_status='DONE', time_completed='2021-09-28 20:56:04.155151', photon_index_error2='0.77', photon_index2='2.38', ts='4.32', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='8.25e-06', EG='0.90', time_epoch_completed='1632887764.16', return_code='0', job_id='474617', GAL2='0.77', EG2='0.92', return_code2='0', energy_flux_error='6.92e-06', photon_flux_error2='3.42e-08', ts2='4.52', photon_index='2.76' WHERE bin_id='1121' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:56:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 474617: <4FGL_J2248.7-3235_daily_bin1121> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1121> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:41:04 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:41:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 20:41:06 2021
Terminated at Tue Sep 28 20:56:04 2021
Results reported at Tue Sep 28 20:56:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1121 342.193 -32.5926 529891201 530150401 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 :                                   715.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

