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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1522
RA = 342.246, Dec = 21.1159
tmin = 633830401, tmax = 634089601
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='484918', job_status='RUN', time_executed='2021-09-28 21:17:37.750557', time_epoch_executed='1632889057.75' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484918

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484918/ft1_4FGL_J2248.9+2106_daily_bin1522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484918/ft2_4FGL_J2248.9+2106_daily_bin1522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484918/ft1_4FGL_J2248.9+2106_daily_bin1522.fits outfile=/scratch/kocevski/484918/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1522.fits ra=342.246 dec=21.1159 rad=12.0 tmin=633830401.0 tmax=634089601.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.62
user 3.38
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484918/ft1_filtered_4FGL_J2248.9+2106_daily_bin1522.fits" evtable="EVENTS" scfile=/scratch/kocevski/484918/ft2_4FGL_J2248.9+2106_daily_bin1522.fits sctable="SC_DATA" outfile=/scratch/kocevski/484918/ltcube_633830401_634089601_4FGL_J2248.9+2106_daily_bin1522.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/484918/ft2_4FGL_J2248.9+2106_daily_bin1522.fits
.....................!
real 11.93
user 11.54
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484918/ft1_filtered_4FGL_J2248.9+2106_daily_bin1522.fits evtable="EVENTS" scfile=/scratch/kocevski/484918/ft2_4FGL_J2248.9+2106_daily_bin1522.fits sctable="SC_DATA" expcube=/scratch/kocevski/484918/ltcube_633830401_634089601_4FGL_J2248.9+2106_daily_bin1522.fits outfile=/scratch/kocevski/484918/expmap_633830401_634089601_4FGL_J2248.9+2106_daily_bin1522.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/484918/ltcube_633830401_634089601_4FGL_J2248.9+2106_daily_bin1522.fits
.....................!
real 190.42
user 184.76
sys 5.00

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/484918/ft1_filtered_4FGL_J2248.9+2106_daily_bin1522.fits scfile=/scratch/kocevski/484918/ft2_4FGL_J2248.9+2106_daily_bin1522.fits outfile=/scratch/kocevski/484918/cmap_633830401_634089601_4FGL_J2248.9+2106_daily_bin1522.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484918/ft1_filtered_4FGL_J2248.9+2106_daily_bin1522.fits scfile=/scratch/kocevski/484918/ft2_4FGL_J2248.9+2106_daily_bin1522.fits outfile=/scratch/kocevski/484918/cmap_HighResolution_633830401_634089601_4FGL_J2248.9+2106_daily_bin1522.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.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/484918/ft1_filtered_4FGL_J2248.9+2106_daily_bin1522.fits', '/scratch/kocevski/484918/ft2_4FGL_J2248.9+2106_daily_bin1522.fits', expMap='/scratch/kocevski/484918/expmap_633830401_634089601_4FGL_J2248.9+2106_daily_bin1522.fits', expCube='/scratch/kocevski/484918/ltcube_633830401_634089601_4FGL_J2248.9+2106_daily_bin1522.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/484918/Model_4FGL_J2248.9+2106_daily_bin1522.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/484918/ft1_filtered_4FGL_J2248.9+2106_daily_bin1522.fits
Spacecraft file(s): /scratch/kocevski/484918/ft2_4FGL_J2248.9+2106_daily_bin1522.fits
Exposure map: /scratch/kocevski/484918/expmap_633830401_634089601_4FGL_J2248.9+2106_daily_bin1522.fits
Exposure cube: /scratch/kocevski/484918/ltcube_633830401_634089601_4FGL_J2248.9+2106_daily_bin1522.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/484918/Model_4FGL_J2248.9+2106_daily_bin1522.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) = 8143.62474403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5495       1.0000         .10000E-03   10000.    
     2 'norm      '    .40234       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0685       1.0000         .10000E-03   10000.    
     4 'norm      '    5.2756       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.076       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.054       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3413       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14600       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2965       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4621       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6632       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4296       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99019       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45687       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8903       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .46318       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.134       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.2923       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3337       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88164       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=   8143.618     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2909 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5450        42.537        .31631E-06   -.64398E-05
   2  norm          .40255        .80183        .53581E-06    .40703E-03
   3  Prefactor     8.0755        16.488       -.85968E-08    .20859E-04
   4  norm          5.2763        4.5988       -.50509E-07   -.35528E-04
   5  Prefactor     22.069        19.662       -.49067E-07   -.40877E-04
   6  Prefactor     32.918        71.385        .24985E-06   -.34377E-04
   7  Prefactor     4.3350        14.344        .36015E-06   -.23847E-04
   8  Prefactor     .14617        .19012        .66868E-07    .60084E-03
   9  Prefactor     .10000E-03    3.4386        .11445E-07** at limit **
  10  norm          1.2977        1.2782       -.67729E-06    .25202E-03
  11  Prefactor     1.4436        69.090        .96148E-05   -.56466E-05
  12  norm          1.6630        1.4410       -.57437E-07   -.40263E-05
  13  Prefactor     9.4253        31.158        .49102E-06   -.45045E-05
  14  Prefactor     1.0108        7.8080        .56531E-06   -.50430E-05
  15  Prefactor     .10000E-03    11.085        .14339E-06** at limit **
  16  Prefactor     .45690        .16510       -.16441E-07    .25331E-03
  17  Prefactor     4.8896        11.063        .18394E-06   -.11849E-04
  18  Prefactor     .47505        4.9328        .19730E-06    .10762E-03
  19  Prefactor     .10000E-03    5.6496        .15594E-06** at limit **
  20  Prefactor     23.137        23.862        .17217E-06    .16587E-04
  21  Prefactor     .10000E-03    9.0287        .20180E-06** at limit **
  22  Prefactor     .10000E-03    3.9158        .28898E-06** at limit **
  23  Prefactor     8.2905        19.134        .18863E-06    .32412E-05
  24  Normalizat    1.3334        .22911       -.62254E-06   -.48665E-04
  25  Prefactor     .88178        .11744       -.99087E-06    .62308E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.54504
  norm       = 0.402555
  Prefactor  = 8.0755
  norm       = 5.2763
  Prefactor  = 22.0686
  Prefactor  = 32.9183
  Prefactor  = 4.335
  Prefactor  = 0.14617
  Prefactor  = 0.0001
  norm       = 1.29772
  Prefactor  = 1.44361
  norm       = 1.66302
  Prefactor  = 9.42525
  Prefactor  = 1.01078
  Prefactor  = 0.0001
  Prefactor  = 0.456896
  Prefactor  = 4.88963
  Prefactor  = 0.475053
  Prefactor  = 0.0001
  Prefactor  = 23.1371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.29048
  Normalizat = 1.33343
  Prefactor  = 0.881777
 **********
 **   18 **HESSE 
 **********

 FCN=   8143.618     FROM HESSE     STATUS=OK           449 CALLS     3358 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5450        42.555        .13710E-03   -1.5123    
   2  norm          .40255        .74261        .11386E-02   -1.5581    
   3  Prefactor     8.0755        16.455        .14115E-03   -1.5140    
   4  norm          5.2763        4.5940        .17352E-03   -1.5249    
   5  Prefactor     22.069        19.217        .85249E-04   -1.4768    
   6  Prefactor     32.918        71.225        .34849E-03   -1.4560    
   7  Prefactor     4.3350        14.400        .19332E-03   -1.5292    
   8  Prefactor     .14617        .17023        .40361E-03   -1.5632    
   9  Prefactor     .10000E-03    3.4412        .16342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2977        1.2449        .38841E-04   -1.5480    
  11  Prefactor     1.4436        68.661        .35578E-03   -1.5468    
  12  norm          1.6630        1.4312        .96192E-04   -1.5450    
  13  Prefactor     9.4253        31.148        .13051E-03   -1.5094    
  14  Prefactor     1.0108        21.772        .46252E-02   -1.5507    
  15  Prefactor     .10000E-03    11.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .45690        .16359        .20251E-04   -1.5573    
  17  Prefactor     4.8896        11.005        .18189E-03   -1.5266    
  18  Prefactor     .47505        17.910        .37795E-02   -1.5570    
  19  Prefactor     .10000E-03    5.6616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.137        23.928        .83280E-04   -1.4746    
  21  Prefactor     .10000E-03    9.0369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.9444        .17424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.2905        19.155        .13922E-03   -1.5132    
  24  Normalizat    1.3334        .27445        .31687E-03   -.82574    
  25  Prefactor     .88178        .14038        .20348E-03   -.96781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.215e-08
Minuit parameter uncertainties:
  1  38.1815
  2  0.742628
  3  16.4637
  4  4.59434
  5  19.2223
  6  71.4097
  7  14.4111
  8  0.170234
  9  7.11639e-08
  10  1.24494
  11  19.9354
  12  1.43128
  13  31.2014
  14  9.38568
  15  1.12392e-05
  16  0.163588
  17  11.0091
  18  5.83505
  19  9.17094e-07
  20  23.9375
  21  8.33939e-06
  22  1.18505e-06
  23  19.1694
  24  0.274754
  25  0.140437
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.011e+00  9.386e+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

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  8.818e-01  1.404e-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.333e+00  2.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 9.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484918/likelihoodResults_633830401_634089601_4FGL_J2248.9+2106_daily_bin1522.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) = 8143.48894428
delta logL = 0.129097730723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8143.48301524
delta logL = 0.135026778944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0925       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2886       1.0000          .0000       10.000    
     3 'Normalizat'    1.3040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88959       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8143.483     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      356 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0923        61.401        .17642E-03   -.38974E-03
   2  Index         3.2885        6.5321        .76308E-02   -.80333E-04
   3  Normalizat    1.3040        .27843        .31987E-03   -.14586E-03
   4  Prefactor     .88959        .14544        .20265E-03   -.17251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.09232
  Index      = 3.28848
  Normalizat = 1.30398
  Prefactor  = 0.889587
 **********
 **   18 **HESSE 
 **********

 FCN=   8143.483     FROM HESSE     STATUS=OK            25 CALLS      381 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0923        4.4933        .70568E-05   -1.5499    
   2  Index         3.2885        1.8737        .30523E-03   -.34937    
   3  Normalizat    1.3040        .26306        .12795E-04   -.83448    
   4  Prefactor     .88959        .13802        .81060E-05   -.96506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72258e-10
Minuit parameter uncertainties:
  1  4.43122
  2  1.92731
  3  0.263326
  4  0.138076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484918': 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) = 8143.48301521
delta logL = 0.135026808081

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.092e+00  4.431e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  3.288e+00  1.927e+00  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:  8.896e-01  1.381e-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.304e+00  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 342.246 21.116

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/484918/cmap_HighResolution_633830401_634089601_4FGL_J2248.9+2106_daily_bin1522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', job_status='DONE', photon_flux_upper_limit='9.22e-08', time_completed='2021-09-28 21:31:04.581266', job_id='484918', GAL2='0.89', fit_tolerance='1e-08', EG2='1.30', EG='1.33', time_epoch_completed='1632889864.58', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.35e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1522' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:31:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 484918: <4FGL_J2248.9+2106_daily_bin1522> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1522> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:15:18 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:15:20 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:15:20 2021
Terminated at Tue Sep 28 21:31:05 2021
Results reported at Tue Sep 28 21:31:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1522 342.246 21.1159 633830401 634089601 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 :                                   801.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

