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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1461
RA = 342.193, Dec = -32.5926
tmin = 618019201, tmax = 618278401
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='476177', job_status='RUN', time_executed='2021-09-28 20:46:18.712868', time_epoch_executed='1632887178.71' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/476177

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/476177/ft1_4FGL_J2248.7-3235_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/476177/ft2_4FGL_J2248.7-3235_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/476177/ft1_4FGL_J2248.7-3235_daily_bin1461.fits outfile=/scratch/kocevski/476177/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1461.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=618019201.0 tmax=618278401.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 5.14
user 4.88
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/476177/ft2_4FGL_J2248.7-3235_daily_bin1461.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/476177/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1461.fits evtable="EVENTS" outfile="/scratch/kocevski/476177/ft1_filtered_4FGL_J2248.7-3235_daily_bin1461.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/476177/ft1_filtered_4FGL_J2248.7-3235_daily_bin1461.fits" evtable="EVENTS" scfile=/scratch/kocevski/476177/ft2_4FGL_J2248.7-3235_daily_bin1461.fits sctable="SC_DATA" outfile=/scratch/kocevski/476177/ltcube_618019201_618278401_4FGL_J2248.7-3235_daily_bin1461.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/476177/ft2_4FGL_J2248.7-3235_daily_bin1461.fits
.....................!
real 11.70
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/476177/ft1_filtered_4FGL_J2248.7-3235_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/476177/ft2_4FGL_J2248.7-3235_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/476177/ltcube_618019201_618278401_4FGL_J2248.7-3235_daily_bin1461.fits outfile=/scratch/kocevski/476177/expmap_618019201_618278401_4FGL_J2248.7-3235_daily_bin1461.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/476177/ltcube_618019201_618278401_4FGL_J2248.7-3235_daily_bin1461.fits
.....................!
real 190.77
user 185.29
sys 5.13

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/476177/ft1_filtered_4FGL_J2248.7-3235_daily_bin1461.fits scfile=/scratch/kocevski/476177/ft2_4FGL_J2248.7-3235_daily_bin1461.fits outfile=/scratch/kocevski/476177/cmap_618019201_618278401_4FGL_J2248.7-3235_daily_bin1461.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/476177/ft1_filtered_4FGL_J2248.7-3235_daily_bin1461.fits scfile=/scratch/kocevski/476177/ft2_4FGL_J2248.7-3235_daily_bin1461.fits outfile=/scratch/kocevski/476177/cmap_HighResolution_618019201_618278401_4FGL_J2248.7-3235_daily_bin1461.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/476177/ft1_filtered_4FGL_J2248.7-3235_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/476177/ft2_4FGL_J2248.7-3235_daily_bin1461.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/476177/Model_4FGL_J2248.7-3235_daily_bin1461.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/476177/ft1_filtered_4FGL_J2248.7-3235_daily_bin1461.fits.....................!
real 41.66
user 40.31
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35285       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14100E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94587E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.082       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44021E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11580E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.985       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5737       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12521E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .64118E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.421       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17703E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .17365       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26166E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16731E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .57817E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.2399       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2610       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0074       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=   4812.495     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     2673 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35305        .25375        .19663E-07   -.31023E-04
   2  Prefactor     .10000E-03    25.359       -.14083E-05** at limit **
   3  Prefactor     .10000E-03    2.7822       -.27576E-07** at limit **
   4  norm          12.283        29.240        .37657E-04   -.23610E-04
   5  Prefactor     .10000E-03    17.398        .51765E-07** at limit **
   6  Prefactor     27.485        31.802        .66267E-05   -.18756E-04
   7  Prefactor     .10000E-03    23.431       -.23763E-07** at limit **
   8  Prefactor     .10000E-03    15.146       -.65112E-07** at limit **
   9  norm          3.7467        4.2689       -.14614E-05   -.45284E-03
  10  Prefactor     57.892        83.581        .44525E-05   -.83246E-04
  11  Prefactor     7.7492        15.926       -.83101E-06   -.11563E-03
  12  Prefactor     .10000E-03    6.2950        .85041E-07** at limit **
  13  norm          .10000E-03    4.6631        .71103E-06** at limit **
  14  Prefactor     38.420        29.409       -.32478E-05   -.39733E-03
  15  Prefactor     .10000E-03    22.545        .84345E-06** at limit **
  16  norm          .15909        1.0121        .30088E-06   -.21783E-02
  17  Prefactor     .10000E-03    92.177       -.71320E-05** at limit **
  18  Prefactor     .10000E-03    5.9268        .79069E-07** at limit **
  19  norm          .10000E-03    2.4480        .73725E-08** at limit **
  20  norm          .10000E-03    7.5885        .99911E-07** at limit **
  21  Prefactor     .10000E-03    41.082       -.22988E-06** at limit **
  22  Prefactor     .10000E-03    28.228        .86812E-06** at limit **
  23  norm          4.2468        5.3783        .18451E-06   -.26172E-03
  24  Normalizat    1.2603        .22271       -.19122E-05   -.11725E-03
  25  Prefactor     1.0073        .21400       -.17797E-05   -.15048E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.35305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.2831
  Prefactor  = 0.0001
  Prefactor  = 27.4848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.74667
  Prefactor  = 57.8924
  Prefactor  = 7.74925
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 38.4201
  Prefactor  = 0.000100001
  norm       = 0.159091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.24684
  Normalizat = 1.26026
  Prefactor  = 1.00726
 **********
 **   18 **HESSE 
 **********

 FCN=   4812.495     FROM HESSE     STATUS=OK           419 CALLS     3092 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35305        .25538        .28844E-04   -1.5589    
   2  Prefactor     .10000E-03    25.489        .20519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7878        .11299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.283        28.992        .11549E-03   -1.5007    
   5  Prefactor     .10000E-03    17.411        .20799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.485        31.872        .75600E-04   -1.4659    
   7  Prefactor     .10000E-03    23.799        .19373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7467        4.3315        .11634E-03   -1.5321    
  10  Prefactor     57.892        84.912        .53142E-04   -1.4185    
  11  Prefactor     7.7492        15.969        .14572E-03   -1.5151    
  12  Prefactor     .10000E-03    6.4113        .16995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.099        .24830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     38.420        25.650        .65517E-04   -1.4467    
  15  Prefactor     .10000E-03    22.842        .40671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .15909        .77847        .10001E-03   -1.5628    
  17  Prefactor     .10000E-03    92.563        .18306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.9460        .16486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.4489        .10591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.6427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    41.119        .18213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.253        .21084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.2468        5.3680        .17413E-03   -1.5296    
  24  Normalizat    1.2603        .26877        .24454E-03   -.84761    
  25  Prefactor     1.0073        .25682        .26671E-03   -.92488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34515e-09
Minuit parameter uncertainties:
  1  0.255376
  2  3.02551e-05
  3  4.4345e-06
  4  29.0251
  5  9.35334e-06
  6  31.8913
  7  0.000128152
  8  2.70875e-05
  9  4.33185
  10  85.0899
  11  15.9777
  12  2.17038e-05
  13  0.000309135
  14  25.6569
  15  0.00021808
  16  0.703635
  17  0.00016526
  18  1.97824e-05
  19  1.02508e-06
  20  2.77186e-05
  21  5.21853e-05
  22  4.30371e-05
  23  5.36864
  24  0.269072
  25  0.257131
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  7.749e+00  1.598e+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:  1.007e+00  2.571e-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.260e+00  2.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 342.193 -32.593
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/476177/likelihoodResults_618019201_618278401_4FGL_J2248.7-3235_daily_bin1461.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): 0
logL (Free Index) = 4812.493843
delta logL = 0.00152289627931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4812.49318468
delta logL = 0.00218121989838

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4333       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9512       1.0000          .0000       10.000    
     3 'Normalizat'    1.2533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0124       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4812.493     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      302 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3842        21.215        .73552E-03    .56497E-04
   2  Index         2.9738        3.6024        .86334E-02   -.15078E-05
   3  Normalizat    1.2529        .28955        .24515E-03   -.33946E-04
   4  Prefactor     1.0125        .27199        .26612E-03   -.13243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.38423
  Index      = 2.97383
  Normalizat = 1.25292
  Prefactor  = 1.01252
 **********
 **   18 **HESSE 
 **********

 FCN=   4812.493     FROM HESSE     STATUS=OK            27 CALLS      329 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3842        18.803        .14710E-03   -1.5164    
   2  Index         2.9738        3.2820        .34534E-03   -.41723    
   3  Normalizat    1.2529        .28604        .98059E-05   -.84983    
   4  Prefactor     1.0125        .26906        .10645E-04   -.92313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04707e-12
Minuit parameter uncertainties:
  1  18.8176
  2  3.6611
  3  0.2864
  4  0.269423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/476177': 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) = 4812.49316255
delta logL = 0.00220334686219

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  7.384e+00  1.882e+01  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  2.974e+00  3.661e+00  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:  1.013e+00  2.694e-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.253e+00  2.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/476177/cmap_HighResolution_618019201_618278401_4FGL_J2248.7-3235_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.55e-07', time_completed='2021-09-28 20:56:36.462774', job_id='476177', GAL2='1.01', fit_tolerance='1e-08', EG2='1.25', EG='1.26', time_epoch_completed='1632887796.46', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.20e-03', ts2='0.29', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1461' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:56:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 476177: <4FGL_J2248.7-3235_daily_bin1461> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1461> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:45:32 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:45:33 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:33 2021
Terminated at Tue Sep 28 20:56:37 2021
Results reported at Tue Sep 28 20:56:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1461 342.193 -32.5926 618019201 618278401 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 :                                   610.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            665 sec.

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

