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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin560
RA = 342.246, Dec = 21.1159
tmin = 384480001, tmax = 384739201
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='479245', job_status='RUN', time_executed='2021-09-28 20:55:54.761650', time_epoch_executed='1632887754.76' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479245/ft1_4FGL_J2248.9+2106_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479245/ft2_4FGL_J2248.9+2106_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479245/ft1_4FGL_J2248.9+2106_daily_bin560.fits outfile=/scratch/kocevski/479245/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin560.fits ra=342.246 dec=21.1159 rad=12.0 tmin=384480001.0 tmax=384739201.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.89
user 3.68
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479245/ft1_filtered_4FGL_J2248.9+2106_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/479245/ft2_4FGL_J2248.9+2106_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/479245/ltcube_384480001_384739201_4FGL_J2248.9+2106_daily_bin560.fits outfile=/scratch/kocevski/479245/expmap_384480001_384739201_4FGL_J2248.9+2106_daily_bin560.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/479245/ltcube_384480001_384739201_4FGL_J2248.9+2106_daily_bin560.fits
.....................!
real 191.46
user 185.72
sys 5.29

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/479245/ft1_filtered_4FGL_J2248.9+2106_daily_bin560.fits scfile=/scratch/kocevski/479245/ft2_4FGL_J2248.9+2106_daily_bin560.fits outfile=/scratch/kocevski/479245/cmap_384480001_384739201_4FGL_J2248.9+2106_daily_bin560.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479245/ft1_filtered_4FGL_J2248.9+2106_daily_bin560.fits scfile=/scratch/kocevski/479245/ft2_4FGL_J2248.9+2106_daily_bin560.fits outfile=/scratch/kocevski/479245/cmap_HighResolution_384480001_384739201_4FGL_J2248.9+2106_daily_bin560.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.123       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.450       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3845       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54678       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.9958       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9207       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.769       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6330       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36336E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7987       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.795       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.287       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .66401       1.0000         .10000E-03   10000.    
    23 'Prefactor '    60.729       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99655       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97894       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=   8975.559     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2937 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.136        .17500E-05** at limit **
   2  norm          .10000E-03    .41786       -.34212E-07** at limit **
   3  Prefactor     16.122        16.858        .41355E-06    .10369E-03
   4  norm          .10000E-03    1.8409        .12008E-07** at limit **
   5  Prefactor     21.456        18.983        .64879E-06    .81390E-04
   6  Prefactor     .10000E-03    51.193       -.56942E-06** at limit **
   7  Prefactor     4.3862        6.8065        .68238E-06    .75707E-03
   8  Prefactor     .54678        .22359        .17568E-07    .16805E-02
   9  Prefactor     .10000E-03    5.3625        .15003E-06** at limit **
  10  norm          7.9961        1.6700        .47228E-07    .38151E-03
  11  Prefactor     .10000E-03    5.2562       -.16168E-06** at limit **
  12  norm          1.9207        1.3209       -.13259E-06   -.11524E-02
  13  Prefactor     .10000E-03    15.563       -.18097E-05** at limit **
  14  Prefactor     .10000E-03    4.2743        .35954E-08** at limit **
  15  Prefactor     16.764        19.623        .48501E-07    .10937E-03
  16  Prefactor     1.6331        .24514        .15540E-07    .31726E-02
  17  Prefactor     .10000E-03    5.7275       -.16623E-06** at limit **
  18  Prefactor     .10048E-03    5.1167       -.39480E-05** at limit **
  19  Prefactor     5.7950        12.102        .22475E-05    .38416E-03
  20  Prefactor     29.798        22.768        .28186E-06   -.49655E-04
  21  Prefactor     23.289        20.510        .28700E-06   -.11594E-04
  22  Prefactor     .67065        20.811        .18823E-04   -.27050E-03
  23  Prefactor     60.717        31.127       -.38596E-05   -.97112E-03
  24  Normalizat    .99631        .23696       -.26686E-05   -.14105E-03
  25  Prefactor     .97904        .12008        .73974E-06    .49268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.1224
  norm       = 0.0001
  Prefactor  = 21.4558
  Prefactor  = 0.0001
  Prefactor  = 4.38624
  Prefactor  = 0.546782
  Prefactor  = 0.0001
  norm       = 7.99607
  Prefactor  = 0.0001
  norm       = 1.92069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7638
  Prefactor  = 1.63308
  Prefactor  = 0.0001
  Prefactor  = 0.000100478
  Prefactor  = 5.79504
  Prefactor  = 29.7985
  Prefactor  = 23.2894
  Prefactor  = 0.670649
  Prefactor  = 60.7171
  Normalizat = 0.996311
  Prefactor  = 0.979035
 **********
 **   18 **HESSE 
 **********

 FCN=   8975.559     FROM HESSE     STATUS=OK           437 CALLS     3374 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .43483        .11947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.122        16.866        .99747E-04   -1.4905    
   4  norm          .10000E-03    1.8558        .12551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.456        18.976        .86484E-04   -1.4781    
   6  Prefactor     .10000E-03    51.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3862        6.7890        .19234E-03   -1.5289    
   8  Prefactor     .54678        .22148        .26341E-04   -1.5560    
   9  Prefactor     .10000E-03    5.4020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.9961        1.6712        .53418E-04   -1.5142    
  11  Prefactor     .10000E-03    5.2580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9207        1.3323        .88088E-04   -1.5431    
  13  Prefactor     .10000E-03    15.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.764        19.659        .97806E-04   -1.4889    
  16  Prefactor     1.6331        .24656        .16821E-04   -1.5452    
  17  Prefactor     .10000E-03    5.7617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10048E-03    4.8924        .63496E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7950        12.188        .16679E-03   -1.5226    
  20  Prefactor     29.798        22.797        .73400E-04   -1.4616    
  21  Prefactor     23.289        20.509        .83006E-04   -1.4742    
  22  Prefactor     .67065        22.002        .32062E-02   -1.5544    
  23  Prefactor     60.717        31.081        .51487E-04   -1.4148    
  24  Normalizat    .99631        .27572        .38314E-03   -.93154    
  25  Prefactor     .97904        .14117        .20815E-03   -.93432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54549e-09
Minuit parameter uncertainties:
  1  2.70891e-05
  2  1.51211e-06
  3  16.8706
  4  2.05276e-07
  5  18.9811
  6  3.12596e-05
  7  6.79015
  8  0.22148
  9  1.55656e-05
  10  1.67118
  11  3.04687e-06
  12  1.33237
  13  4.13457e-05
  14  1.77926e-06
  15  19.6669
  16  0.246565
  17  1.39778e-05
  18  0.00306008
  19  12.1929
  20  22.8039
  21  20.5151
  22  7.68504
  23  31.0889
  24  0.276116
  25  0.14122
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  1.779e-06  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.790e-01  1.412e-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:  9.963e-01  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/479245/likelihoodResults_384480001_384739201_4FGL_J2248.9+2106_daily_bin560.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) = 8975.56016804
delta logL = -0.0011103795423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8975.55905748
delta logL = 1.8676109903e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2771       1.0000          .0000       10.000    
     3 'Normalizat'    .99631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97902       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=   8975.559     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10098E-03    33.480        .18142E-02** at limit **
   2  Index         2.2295        5.9953        .50000        .33802E-04
   3  Normalizat    .99632        .15078E-01    .38314E-03   -.11869E-05
   4  Prefactor     .97903        .81847E-02    .20815E-03   -.45880E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010098
  Index      = 2.22954
  Normalizat = 0.996315
  Prefactor  = 0.979033
 **********
 **   18 **HESSE 
 **********

 FCN=   8975.559     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10098E-03    147.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2295        5.6564        .50000       -.58727    
   3  Normalizat    .99632        .32634E-01    .15326E-04   -.93154    
   4  Prefactor     .97903        .17715E-01    .83259E-05   -.93432    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.78963e-08
Minuit parameter uncertainties:
  1  0.024125
  2  341.514
  3  0.0326347
  4  0.017715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479245': 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): 102
logL (Free Index) = 8975.55905716
delta logL = 5.06117430632e-07

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.010e-04  2.413e-02  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.230e+00  3.415e+02  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.790e-01  1.771e-02  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:  9.963e-01  3.263e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/479245/cmap_HighResolution_384480001_384739201_4FGL_J2248.9+2106_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-09-28 21:10:33.754414', job_id='479245', GAL2='0.98', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632888633.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='560' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:10:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 479245: <4FGL_J2248.9+2106_daily_bin560> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin560> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 20:55:37 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 20:55:38 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:55:38 2021
Terminated at Tue Sep 28 21:10:34 2021
Results reported at Tue Sep 28 21:10:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin560 342.246 21.1159 384480001 384739201 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 :                                   877.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             373.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            897 sec.

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

