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


Performing analysis on: 4FGL_J2248.7-3235_daily_bin1046
RA = 342.193, Dec = -32.5926
tmin = 510451201, tmax = 510710401
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='474504', job_status='RUN', time_executed='2021-09-28 20:43:07.099963', time_epoch_executed='1632886987.1' WHERE source_name='4FGL J2248.7-3235' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474504

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474504/ft1_4FGL_J2248.7-3235_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474504/ft2_4FGL_J2248.7-3235_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474504/ft1_4FGL_J2248.7-3235_daily_bin1046.fits outfile=/scratch/kocevski/474504/ft1_filteredMKT_4FGL_J2248.7-3235_daily_bin1046.fits ra=342.193 dec=-32.5926 rad=12.0 tmin=510451201.0 tmax=510710401.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.02
user 3.77
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474504/ft1_filtered_4FGL_J2248.7-3235_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/474504/ft2_4FGL_J2248.7-3235_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/474504/ltcube_510451201_510710401_4FGL_J2248.7-3235_daily_bin1046.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/474504/ft2_4FGL_J2248.7-3235_daily_bin1046.fits
.....................!
real 12.08
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474504/ft1_filtered_4FGL_J2248.7-3235_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/474504/ft2_4FGL_J2248.7-3235_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/474504/ltcube_510451201_510710401_4FGL_J2248.7-3235_daily_bin1046.fits outfile=/scratch/kocevski/474504/expmap_510451201_510710401_4FGL_J2248.7-3235_daily_bin1046.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/474504/ltcube_510451201_510710401_4FGL_J2248.7-3235_daily_bin1046.fits
.....................!
real 191.38
user 186.00
sys 5.06

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/474504/ft1_filtered_4FGL_J2248.7-3235_daily_bin1046.fits scfile=/scratch/kocevski/474504/ft2_4FGL_J2248.7-3235_daily_bin1046.fits outfile=/scratch/kocevski/474504/cmap_510451201_510710401_4FGL_J2248.7-3235_daily_bin1046.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474504/ft1_filtered_4FGL_J2248.7-3235_daily_bin1046.fits scfile=/scratch/kocevski/474504/ft2_4FGL_J2248.7-3235_daily_bin1046.fits outfile=/scratch/kocevski/474504/cmap_HighResolution_510451201_510710401_4FGL_J2248.7-3235_daily_bin1046.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.193 yref=-32.5926 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/474504/ft1_filtered_4FGL_J2248.7-3235_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/474504/ft2_4FGL_J2248.7-3235_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474504/Model_4FGL_J2248.7-3235_daily_bin1046.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/474504/ft1_filtered_4FGL_J2248.7-3235_daily_bin1046.fits.....................!
real 45.16
user 43.84
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1378       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.833       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    20.979       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.944       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8093       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6177       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.225       1.0000         .10000E-03   10000.    
    13 'norm      '    5.2610       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8667       1.0000         .10000E-03   10000.    
    16 'norm      '    .30697       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.407       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1775       1.0000         .10000E-03   10000.    
    19 'norm      '    3.6500       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.715       1.0000         .10000E-03   10000.    
    23 'norm      '    4.4552       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0709       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89961       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=   5593.169     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2913 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1378        .55101       -.35408E-07    .17654E-03
   2  Prefactor     29.832        23.926       -.73531E-06    .61082E-05
   3  Prefactor     .10000E-03    2.2562       -.50738E-07** at limit **
   4  norm          20.970        25.986       -.33122E-05   -.87452E-07
   5  Prefactor     .10000E-03    32.263       -.26847E-06** at limit **
   6  Prefactor     15.943        15.820       -.29314E-06    .12381E-05
   7  Prefactor     7.8107        13.028       -.95698E-06   -.48889E-04
   8  Prefactor     .10000E-03    20.377       -.28825E-07** at limit **
   9  norm          2.6179        2.1709        .75675E-07    .91157E-04
  10  Prefactor     .10000E-03    97.034        .50663E-06** at limit **
  11  Prefactor     .10000E-03    5.5491        .52160E-08** at limit **
  12  Prefactor     17.225        9.5750       -.25430E-06   -.73080E-05
  13  norm          5.2612        4.3310       -.39727E-06   -.14512E-02
  14  Prefactor     .10000E-03    9.7391        .88446E-07** at limit **
  15  Prefactor     4.8725        12.052       -.32067E-06   -.19011E-03
  16  norm          .30641        .75148       -.58055E-07   -.13048E-02
  17  Prefactor     23.393        57.865       -.21080E-04    .36750E-05
  18  Prefactor     8.1782        10.369       -.55892E-06   -.41185E-04
  19  norm          3.6499        3.7086        .25759E-07    .15642E-03
  20  norm          .10000E-03    2.8517        .49482E-07** at limit **
  21  Prefactor     .10000E-03    13.430       -.77384E-08** at limit **
  22  Prefactor     31.705        55.834       -.12932E-04    .11056E-04
  23  norm          4.4553        3.8735       -.14408E-06   -.10309E-03
  24  Normalizat    1.0709        .20572        .33041E-05   -.59240E-04
  25  Prefactor     .89967        .19618        .38249E-06    .87885E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.1378
  Prefactor  = 29.8324
  Prefactor  = 0.0001
  norm       = 20.9697
  Prefactor  = 0.0001
  Prefactor  = 15.9435
  Prefactor  = 7.81068
  Prefactor  = 0.0001
  norm       = 2.61788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2249
  norm       = 5.2612
  Prefactor  = 0.0001
  Prefactor  = 4.87247
  norm       = 0.30641
  Prefactor  = 23.3932
  Prefactor  = 8.17819
  norm       = 3.64993
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7049
  norm       = 4.45527
  Normalizat = 1.07085
  Prefactor  = 0.899673
 **********
 **   18 **HESSE 
 **********

 FCN=   5593.169     FROM HESSE     STATUS=OK           437 CALLS     3350 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1378        .55172        .27312E-04   -1.5416    
   2  Prefactor     29.832        23.931        .73353E-04   -1.4615    
   3  Prefactor     .10000E-03    2.2623        .10970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          20.970        25.923        .87447E-04   -1.4792    
   5  Prefactor     .10000E-03    32.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.943        15.824        .10030E-03   -1.4909    
   7  Prefactor     7.8107        13.030        .14349E-03   -1.5149    
   8  Prefactor     .10000E-03    20.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6179        2.1695        .95915E-04   -1.5384    
  10  Prefactor     .10000E-03    97.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6451        .17202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.225        9.5894        .96501E-04   -1.4878    
  13  norm          5.2612        4.3513        .62289E-03   -1.5249    
  14  Prefactor     .10000E-03    9.7537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8725        10.720        .18234E-03   -1.5266    
  16  norm          .30641        .55847        .70534E-03   -1.5597    
  17  Prefactor     23.393        57.473        .82794E-04   -1.4740    
  18  Prefactor     8.1782        10.234        .14020E-03   -1.5136    
  19  norm          3.6499        3.7166        .13921E-03   -1.5326    
  20  norm          .10000E-03    2.8579        .12332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     31.705        55.941        .71150E-04   -1.4581    
  23  norm          4.4553        3.8739        .13068E-03   -1.5286    
  24  Normalizat    1.0709        .24261        .24055E-03   -.90693    
  25  Prefactor     .89967        .23193        .26322E-03   -.96153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4993e-10
Minuit parameter uncertainties:
  1  0.551726
  2  23.9392
  3  5.22712e-06
  4  25.9366
  5  4.3022e-05
  6  15.8278
  7  13.0349
  8  4.20811e-05
  9  2.16952
  10  2.81445e-05
  11  1.67828e-06
  12  9.59028
  13  4.35154
  14  2.34792e-05
  15  10.7238
  16  0.558482
  17  57.6096
  18  10.2357
  19  3.71682
  20  1.03452e-05
  21  4.53175e-06
  22  56.0338
  23  3.87415
  24  0.242862
  25  0.232183
Done.

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

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.000e-04  1.678e-06  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:  8.997e-01  2.322e-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.071e+00  2.429e-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: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474504/likelihoodResults_510451201_510710401_4FGL_J2248.7-3235_daily_bin1046.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) = 5593.16935424
delta logL = -0.000843717312819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5593.16851019
delta logL = 3.31566297973e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11190E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7028       1.0000          .0000       10.000    
     3 'Normalizat'    1.0708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89973       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=   5593.133     FROM MIGRAD    STATUS=CONVERGED    155 CALLS      304 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2682        32.918        .36285E-02    .16520E-03
   2  Index         1.7543        1.7167        .41976       -.23881E-04
   3  Normalizat    1.0738        .22505        .24055E-03   -.11815E-05
   4  Prefactor     .89430        .23229        .26322E-03   -.99339E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26822
  Index      = 1.75427
  Normalizat = 1.07383
  Prefactor  = 0.894299
 **********
 **   18 **HESSE 
 **********

 FCN=   5593.133     FROM HESSE     STATUS=OK            29 CALLS      333 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2682        5.4345        .14514E-03   -1.5483    
   2  Index         1.7543        1.2962        .13760E-01   -.70646    
   3  Normalizat    1.0738        .22328        .96219E-05   -.90597    
   4  Prefactor     .89430        .22750        .10529E-04   -.96341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27035e-12
Minuit parameter uncertainties:
  1  5.25119
  2  1.32269
  3  0.223472
  4  0.227739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474504': 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) = 5593.13309327
delta logL = 0.0354172466914

Extracting fit parameters...

4FGL J2248.7-3235
   Spectrum: PowerLaw
311    Prefactor:  1.268e+00  5.251e+00  1.000e-04  1.000e+04 ( 1.000e-12)
312        Index:  1.754e+00  1.323e+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:  8.943e-01  2.277e-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.074e+00  2.235e-01  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/474504/cmap_HighResolution_510451201_510710401_4FGL_J2248.7-3235_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-03', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2021-09-28 20:54:20.750503', job_id='474504', GAL2='0.89', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632887660.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.54e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1046' AND source_name='4FGL J2248.7-3235' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:54:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 474504: <4FGL_J2248.7-3235_daily_bin1046> in cluster <slac> Done

Job <4FGL_J2248.7-3235_daily_bin1046> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 20:40:53 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:40:54 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:40:54 2021
Terminated at Tue Sep 28 20:54:21 2021
Results reported at Tue Sep 28 20:54:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.7-3235_daily_bin1046 342.193 -32.5926 510451201 510710401 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 :                                   670.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            808 sec.

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

