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


Performing analysis on: 4FGL_J2248.9+2106_monthly_bin115
RA = 342.246, Dec = 21.1159
tmin = 535075201, tmax = 537667201
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='559161', job_status='RUN', time_executed='2021-11-08 01:59:15.114271', time_epoch_executed='1636365555.11' WHERE source_name='4FGL J2248.9+2106' and cadence='monthly' and bin_id='115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/559161

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/559161/ft1_4FGL_J2248.9+2106_monthly_bin115.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/559161/ft2_4FGL_J2248.9+2106_monthly_bin115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/559161/ft1_4FGL_J2248.9+2106_monthly_bin115.fits outfile=/scratch/kocevski/559161/ft1_filteredMKT_4FGL_J2248.9+2106_monthly_bin115.fits ra=342.246 dec=21.1159 rad=12.0 tmin=535075201.0 tmax=537667201.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 36.09
user 35.15
sys 0.86

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/559161/ft2_4FGL_J2248.9+2106_monthly_bin115.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/559161/ft1_filteredMKT_4FGL_J2248.9+2106_monthly_bin115.fits evtable="EVENTS" outfile="/scratch/kocevski/559161/ft1_filtered_4FGL_J2248.9+2106_monthly_bin115.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.86
user 0.66
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/559161/ft1_filtered_4FGL_J2248.9+2106_monthly_bin115.fits evtable="EVENTS" scfile=/scratch/kocevski/559161/ft2_4FGL_J2248.9+2106_monthly_bin115.fits sctable="SC_DATA" expcube=/scratch/kocevski/559161/ltcube_535075201_537667201_4FGL_J2248.9+2106_monthly_bin115.fits outfile=/scratch/kocevski/559161/expmap_535075201_537667201_4FGL_J2248.9+2106_monthly_bin115.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/559161/ltcube_535075201_537667201_4FGL_J2248.9+2106_monthly_bin115.fits
.....................!
real 191.80
user 186.32
sys 4.90

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/559161/ft1_filtered_4FGL_J2248.9+2106_monthly_bin115.fits scfile=/scratch/kocevski/559161/ft2_4FGL_J2248.9+2106_monthly_bin115.fits outfile=/scratch/kocevski/559161/cmap_535075201_537667201_4FGL_J2248.9+2106_monthly_bin115.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.80
user 0.62
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/559161/ft1_filtered_4FGL_J2248.9+2106_monthly_bin115.fits scfile=/scratch/kocevski/559161/ft2_4FGL_J2248.9+2106_monthly_bin115.fits outfile=/scratch/kocevski/559161/cmap_HighResolution_535075201_537667201_4FGL_J2248.9+2106_monthly_bin115.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.81
user 0.65
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.146       1.0000         .10000E-03   10000.    
     2 'norm      '    .13939E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .98089       1.0000         .10000E-03   10000.    
     4 'norm      '    .97620       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1025       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .61085E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10986E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.922       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0406       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7628       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8770       1.0000         .10000E-03   10000.    
    12 'norm      '    .83844       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.254       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3671       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5488       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7123       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4466       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0574       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7702       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.3234       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0119       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99985       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   122776.6     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2659 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.220        10.384         .0000        .15912E-02
   2  norm          .10000E-03    .40323E-01     .0000    ** at limit **
   3  Prefactor     .98511        2.7476         .0000        .18078    
   4  norm          .97639        .94253         .0000        .39022E-02
   5  Prefactor     1.1019        3.0660         .0000        .10475    
   6  Prefactor     .10116E-03    39.264         .0000    ** at limit **
   7  Prefactor     .10000E-03    1.6384         .0000    ** at limit **
   8  Prefactor     16.922        .25770         .0000       -.11511E-02
   9  Prefactor     4.0363        3.0590         .0000        .16918E-01
  10  norm          2.7629        .40068         .0000        .37859E-02
  11  Prefactor     7.8804        4.8474         .0000        .39647E-03
  12  norm          .83847        .47971         .0000        .95782E-02
  13  Prefactor     11.203        8.5477         .0000        .56945E-02
  14  Prefactor     .10000E-03    .53710         .0000    ** at limit **
  15  Prefactor     1.3616        2.2991         .0000        .49528E-01
  16  Prefactor     2.5489        .94129E-01     .0000        .14887E-02
  17  Prefactor     .10005E-03    .54444         .0000    ** at limit **
  18  Prefactor     2.7132        2.0302         .0000        .82470E-01
  19  Prefactor     .10000E-03    1.1232         .0000    ** at limit **
  20  Prefactor     3.4472        5.3185         .0000        .15375E-02
  21  Prefactor     3.0627        4.0568         .0000       -.18895E-02
  22  Prefactor     3.7645        2.0109         .0000        .50083E-02
  23  Prefactor     9.3245        4.4846         .0000        .52674E-03
  24  Normalizat    1.0119        .74402E-01     .0000        .36479E-03
  25  Prefactor     .99981        .38531E-01     .0000       -.34020E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2197
  norm       = 0.0001
  Prefactor  = 0.985108
  norm       = 0.976393
  Prefactor  = 1.10194
  Prefactor  = 0.000101159
  Prefactor  = 0.0001
  Prefactor  = 16.922
  Prefactor  = 4.03626
  norm       = 2.76287
  Prefactor  = 7.88036
  norm       = 0.838466
  Prefactor  = 11.203
  Prefactor  = 0.0001
  Prefactor  = 1.36165
  Prefactor  = 2.54895
  Prefactor  = 0.000100052
  Prefactor  = 2.71322
  Prefactor  = 0.0001
  Prefactor  = 3.44722
  Prefactor  = 3.0627
  Prefactor  = 3.76445
  Prefactor  = 9.32455
  Normalizat = 1.01194
  Prefactor  = 0.999814
 **********
 **   18 **HESSE 
 **********

 FCN=   122776.6     FROM HESSE     STATUS=OK           465 CALLS     3124 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.220        10.385        .89236E-04   -1.4808    
   2  norm          .10000E-03    .53759E-01    .27064E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .98511        2.7387        .26196E-02   -1.5509    
   4  norm          .97639        .94001        .32368E-03   -1.5510    
   5  Prefactor     1.1019        3.0332        .22601E-02   -1.5498    
   6  Prefactor     .10116E-03    40.577        .42109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6832        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.922        .25730        .20980E-04   -1.4885    
   9  Prefactor     4.0363        3.0554        .10030E-02   -1.5306    
  10  norm          2.7629        .39995        .79106E-04   -1.5376    
  11  Prefactor     7.8804        4.8435        .14287E-03   -1.5146    
  12  norm          .83847        .36271        .17533E-02   -1.5525    
  13  Prefactor     11.203        8.5581        .11942E-03   -1.5038    
  14  Prefactor     .10000E-03    .53738        .88994E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3616        2.2592        .18655E-02   -1.5475    
  16  Prefactor     2.5489        .94370E-01    .19320E-04   -1.5389    
  17  Prefactor     .10005E-03    .57460        .86300E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7132        2.0242        .12366E-02   -1.5379    
  19  Prefactor     .10000E-03    1.1588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4472        5.3104        .21785E-03   -1.5337    
  21  Prefactor     3.0627        4.0467        .23201E-03   -1.5358    
  22  Prefactor     3.7645        2.0046        .20792E-03   -1.5320    
  23  Prefactor     9.3245        4.4759        .13125E-03   -1.5097    
  24  Normalizat    1.0119        .86867E-01    .46703E-03   -.92632    
  25  Prefactor     .99981        .45366E-01    .25237E-03   -.92736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79705e-08
Minuit parameter uncertainties:
  1  10.3864
  2  1.67258e-06
  3  2.73904
  4  0.940028
  5  3.03363
  6  0.0137229
  7  5.47033e-06
  8  0.257304
  9  3.05553
  10  0.399949
  11  4.84372
  12  0.362714
  13  8.55902
  14  1.33849e-06
  15  2.25931
  16  0.0943705
  17  0.000344299
  18  2.02423
  19  2.11017e-06
  20  5.31111
  21  4.04704
  22  2.00459
  23  4.47608
  24  0.086879
  25  0.0453679
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  1.338e-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.998e-01  4.537e-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:  1.012e+00  8.688e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/559161/likelihoodResults_535075201_537667201_4FGL_J2248.9+2106_monthly_bin115.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) = 122776.554048
delta logL = -0.00114149911678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 122776.552905
delta logL = 6.05825334787e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3542       1.0000          .0000       10.000    
     3 'Normalizat'    1.0120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99978       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=   122776.6     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      249 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .39551E-02    .90712E-01** at limit **
   2  Index         2.4145        6.1946        .50000       -.10275E-03
   3  Normalizat    1.0119        .17769E-03    .10535        .71231E-03
   4  Prefactor     .99981        .95985E-04    .46264E-01    .56484E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.41453
  Normalizat = 1.01194
  Prefactor  = 0.999814
 **********
 **   18 **HESSE 
 **********

 FCN=   122776.6     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      292 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    .48647E-02    .80704E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4145        6.1779        .50000       -.54345    
   3  Normalizat    1.0119        .18530E-03    .46703E-03   -.92632    
   4  Prefactor     .99981        .10041E-03    .25237E-03   -.92736    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44578e-08
Minuit parameter uncertainties:
  1  1.23105e-05
  2  5.05336
  3  0.000185296
  4  0.000100412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/559161': 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) = 122776.552903
delta logL = 3.05064895656e-06

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  1.231e-05  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.415e+00  5.053e+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:  9.998e-01  1.004e-04  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.012e+00  1.853e-04  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 -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/559161/cmap_HighResolution_535075201_537667201_4FGL_J2248.9+2106_monthly_bin115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-03', job_status='DONE', photon_flux_upper_limit='1.68e-08', time_completed='2021-11-08 04:58:54.062561', job_id='559161', GAL2='1.00', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1636376334.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='115' AND source_name='4FGL J2248.9+2106' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Nov  8 04:58:54 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 559161: <4FGL_J2248.9+2106_monthly_bin115> in cluster <slac> Done

Job <4FGL_J2248.9+2106_monthly_bin115> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Nov  8 01:55:19 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov  8 01:55:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov  8 01:55:20 2021
Terminated at Mon Nov  8 04:58:55 2021
Results reported at Mon Nov  8 04:58:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_monthly_bin115 342.246 21.1159 535075201 537667201 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 :                                   9108.00 sec.
    Max Memory :                                 790 MB
    Average Memory :                             411.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11014 sec.
    Turnaround time :                            11016 sec.

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

