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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1426
RA = 342.246, Dec = 21.1159
tmin = 608947201, tmax = 609206401
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='483696', job_status='RUN', time_executed='2021-09-28 21:12:42.826592', time_epoch_executed='1632888762.83' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483696

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483696/ft1_4FGL_J2248.9+2106_daily_bin1426.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483696/ft2_4FGL_J2248.9+2106_daily_bin1426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483696/ft1_4FGL_J2248.9+2106_daily_bin1426.fits outfile=/scratch/kocevski/483696/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1426.fits ra=342.246 dec=21.1159 rad=12.0 tmin=608947201.0 tmax=609206401.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.13
user 2.92
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/483696/ft2_4FGL_J2248.9+2106_daily_bin1426.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483696/ft2_4FGL_J2248.9+2106_daily_bin1426.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/483696/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1426.fits evtable="EVENTS" outfile="/scratch/kocevski/483696/ft1_filtered_4FGL_J2248.9+2106_daily_bin1426.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483696/ft1_filtered_4FGL_J2248.9+2106_daily_bin1426.fits" evtable="EVENTS" scfile=/scratch/kocevski/483696/ft2_4FGL_J2248.9+2106_daily_bin1426.fits sctable="SC_DATA" outfile=/scratch/kocevski/483696/ltcube_608947201_609206401_4FGL_J2248.9+2106_daily_bin1426.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/483696/ft2_4FGL_J2248.9+2106_daily_bin1426.fits
.....................!
real 15.95
user 15.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483696/ft1_filtered_4FGL_J2248.9+2106_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/483696/ft2_4FGL_J2248.9+2106_daily_bin1426.fits sctable="SC_DATA" expcube=/scratch/kocevski/483696/ltcube_608947201_609206401_4FGL_J2248.9+2106_daily_bin1426.fits outfile=/scratch/kocevski/483696/expmap_608947201_609206401_4FGL_J2248.9+2106_daily_bin1426.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/483696/ltcube_608947201_609206401_4FGL_J2248.9+2106_daily_bin1426.fits
.....................!
real 190.63
user 184.96
sys 5.24

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J2248.9+2106 @ 342.246 21.1159

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/483696/ft1_filtered_4FGL_J2248.9+2106_daily_bin1426.fits scfile=/scratch/kocevski/483696/ft2_4FGL_J2248.9+2106_daily_bin1426.fits outfile=/scratch/kocevski/483696/cmap_608947201_609206401_4FGL_J2248.9+2106_daily_bin1426.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.246 yref=21.1159 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483696/ft1_filtered_4FGL_J2248.9+2106_daily_bin1426.fits scfile=/scratch/kocevski/483696/ft2_4FGL_J2248.9+2106_daily_bin1426.fits outfile=/scratch/kocevski/483696/cmap_HighResolution_608947201_609206401_4FGL_J2248.9+2106_daily_bin1426.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.246 yref=21.1159 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/483696/ft1_filtered_4FGL_J2248.9+2106_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/483696/ft2_4FGL_J2248.9+2106_daily_bin1426.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483696/Model_4FGL_J2248.9+2106_daily_bin1426.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/483696/ft1_filtered_4FGL_J2248.9+2106_daily_bin1426.fits.....................!
real 81.88
user 80.41
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/483696/ft1_filtered_4FGL_J2248.9+2106_daily_bin1426.fits', '/scratch/kocevski/483696/ft2_4FGL_J2248.9+2106_daily_bin1426.fits', expMap='/scratch/kocevski/483696/expmap_608947201_609206401_4FGL_J2248.9+2106_daily_bin1426.fits', expCube='/scratch/kocevski/483696/ltcube_608947201_609206401_4FGL_J2248.9+2106_daily_bin1426.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/483696/Model_4FGL_J2248.9+2106_daily_bin1426.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2248.9+2106'

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.298e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/483696/ft1_filtered_4FGL_J2248.9+2106_daily_bin1426.fits
Spacecraft file(s): /scratch/kocevski/483696/ft2_4FGL_J2248.9+2106_daily_bin1426.fits
Exposure map: /scratch/kocevski/483696/expmap_608947201_609206401_4FGL_J2248.9+2106_daily_bin1426.fits
Exposure cube: /scratch/kocevski/483696/ltcube_608947201_609206401_4FGL_J2248.9+2106_daily_bin1426.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/483696/Model_4FGL_J2248.9+2106_daily_bin1426.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) = 7957.77698085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.725       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26052       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6842       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0197       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.967       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7550       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26396       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.7246       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3623       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10941E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2023       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91994       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7957.721     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2915 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.743        .23725E-05** at limit **
   2  norm          .10000E-03    .32936       -.54544E-07** at limit **
   3  Prefactor     .10000E-03    8.4159       -.19545E-05** at limit **
   4  norm          .10000E-03    1.4629       -.16322E-07** at limit **
   5  Prefactor     .42357        4.7889       -.86876E-06    .25057E-04
   6  Prefactor     16.712        77.491       -.28201E-04    .22990E-05
   7  Prefactor     .10000E-03    3.4365       -.75201E-07** at limit **
   8  Prefactor     .26051        .13992       -.17595E-07   -.19622E-03
   9  Prefactor     .10000E-03    2.6171       -.91455E-07** at limit **
  10  norm          1.6840        1.1368        .51233E-07   -.57003E-03
  11  Prefactor     .10000E-03    17.777        .40725E-05** at limit **
  12  norm          1.0196        1.0668        .62932E-08    .14369E-03
  13  Prefactor     .10000E-03    8.3234       -.75435E-05** at limit **
  14  Prefactor     35.967        15.990       -.15844E-07    .33073E-04
  15  Prefactor     5.7538        10.142        .71886E-07   -.38572E-04
  16  Prefactor     .26390        .13415       -.34135E-07   -.63572E-03
  17  Prefactor     9.7202        13.803        .20640E-05   -.27358E-04
  18  Prefactor     .10000E-03    4.3784       -.12645E-06** at limit **
  19  Prefactor     .10000E-03    5.6963        .36565E-06** at limit **
  20  Prefactor     .10000E-03    13.349       -.69592E-05** at limit **
  21  Prefactor     .10000E-03    8.7945        .11380E-04** at limit **
  22  Prefactor     4.3683        8.8795       -.11804E-05   -.16838E-03
  23  Prefactor     .10000E-03    77.096       -.27940E-05** at limit **
  24  Normalizat    1.2025        .22105        .18312E-05    .64884E-04
  25  Prefactor     .91984        .11335       -.24207E-07    .23651E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.423568
  Prefactor  = 16.7115
  Prefactor  = 0.0001
  Prefactor  = 0.260508
  Prefactor  = 0.0001
  norm       = 1.68396
  Prefactor  = 0.0001
  norm       = 1.01958
  Prefactor  = 0.0001
  Prefactor  = 35.9674
  Prefactor  = 5.75376
  Prefactor  = 0.263896
  Prefactor  = 9.7202
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.36828
  Prefactor  = 0.0001
  Normalizat = 1.20254
  Prefactor  = 0.919836
 **********
 **   18 **HESSE 
 **********

 FCN=   7957.721     FROM HESSE     STATUS=OK           427 CALLS     3342 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .48979        .99220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.4434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4690        .10535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .42357        41.724        .37430E-02   -1.5578    
   6  Prefactor     16.712        77.660        .97936E-04   -1.4890    
   7  Prefactor     .10000E-03    3.4433        .16148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .26051        .13641        .23476E-04   -1.5606    
   9  Prefactor     .10000E-03    2.6179        .14094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6840        1.1238        .74299E-04   -1.5448    
  11  Prefactor     .10000E-03    17.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0196        1.0678        .90901E-04   -1.5506    
  13  Prefactor     .10000E-03    8.3239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.967        15.975        .66824E-04   -1.4508    
  15  Prefactor     5.7538        10.133        .16743E-03   -1.5228    
  16  Prefactor     .26390        .13184        .22066E-04   -1.5605    
  17  Prefactor     9.7202        13.779        .12850E-03   -1.5084    
  18  Prefactor     .10000E-03    4.4185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.7773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.3683        8.8978        .19285E-03   -1.5290    
  23  Prefactor     .10000E-03    78.206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2025        .26647        .32124E-03   -.86524    
  25  Prefactor     .91984        .13766        .19370E-03   -.95451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51826e-10
Minuit parameter uncertainties:
  1  2.40392e-06
  2  3.35606e-06
  3  2.98855e-05
  4  1.84669e-06
  5  8.4129
  6  72.2045
  7  1.04899e-06
  8  0.136408
  9  2.16491e-07
  10  1.12381
  11  2.27051e-05
  12  1.06781
  13  6.95698e-07
  14  15.9773
  15  10.1363
  16  0.131844
  17  13.7832
  18  3.93816e-06
  19  3.88513e-06
  20  2.11172e-05
  21  5.87259e-06
  22  8.90047
  23  0.000284791
  24  0.266771
  25  0.13771
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  3.597e+01  1.598e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.298e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.198e-01  1.377e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.203e+00  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.10
Ra Dec: 342.246 21.116
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 5.58e-08
Energy Flux (Fixed Index): 4.77e-05 +/- 2.12e-05

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) = 7957.59536314
delta logL = 0.126088157909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7957.58486439
delta logL = 0.136586911343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.230       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4957       1.0000          .0000       10.000    
     3 'Normalizat'    1.1718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92993       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7957.585     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      265 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.223        169.98        .18526E-02    .46432E-03
   2  Index         2.4956        2.3322        .10587        .17570E-03
   3  Normalizat    1.1718        .11966        .73366E-01   -.18055E-03
   4  Prefactor     .93008        .48319E-01    .45385E-01   -.34059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.2232
  Index      = 2.49555
  Normalizat = 1.17182
  Prefactor  = 0.930081
 **********
 **   18 **HESSE 
 **********

 FCN=   7957.585     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.223        20.047        .37052E-03   -1.4626    
   2  Index         2.4956        .41774        .40075E-02   -.52463    
   3  Normalizat    1.1718        .26419        .32467E-03   -.87478    
   4  Prefactor     .93008        .13857        .19270E-03   -.95098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64357e-09
Minuit parameter uncertainties:
  1  20.0516
  2  0.418387
  3  0.264494
  4  0.138621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483696': 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) = 7957.58486149
delta logL = 0.136589802928

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.922e+01  2.005e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.496e+00  4.184e-01  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.432e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  9.301e-01  1.386e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.172e+00  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.44
Ra Dec: 342.246 21.116
Photon Index (Free Index): 2.50 +/- 0.42
Photon Flux (Free Index): 1.50e-07 +/- 7.47e-08
Energy Flux (Free Index): 4.38e-05 +/- 1.96e-05

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/483696/cmap_HighResolution_608947201_609206401_4FGL_J2248.9+2106_daily_bin1426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='4.38e-05', photon_flux_error='5.58e-08', dlogl='1.37e-01', energy_flux='4.77e-05', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-28 21:24:34.093301', photon_index_error2='0.42', photon_index2='2.50', ts='12.10', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='1.20', time_epoch_completed='1632889474.09', return_code='0', job_id='483696', GAL2='0.93', EG2='1.17', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='7.47e-08', ts2='12.44', photon_index='2.30' WHERE bin_id='1426' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:24:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 483696: <4FGL_J2248.9+2106_daily_bin1426> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1426> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:10:40 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:10:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 21:10:42 2021
Terminated at Tue Sep 28 21:24:34 2021
Results reported at Tue Sep 28 21:24:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1426 342.246 21.1159 608947201 609206401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2248.9+2106 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   698.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

