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


Performing analysis on: 4FGL_J2248.9+2106_daily_bin1106
RA = 342.246, Dec = 21.1159
tmin = 526003201, tmax = 526262401
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='482098', job_status='RUN', time_executed='2021-09-28 21:07:13.590876', time_epoch_executed='1632888433.59' WHERE source_name='4FGL J2248.9+2106' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/482098

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/482098/ft1_4FGL_J2248.9+2106_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/482098/ft2_4FGL_J2248.9+2106_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/482098/ft1_4FGL_J2248.9+2106_daily_bin1106.fits outfile=/scratch/kocevski/482098/ft1_filteredMKT_4FGL_J2248.9+2106_daily_bin1106.fits ra=342.246 dec=21.1159 rad=12.0 tmin=526003201.0 tmax=526262401.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.71
user 3.49
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/482098/ft1_filtered_4FGL_J2248.9+2106_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/482098/ft2_4FGL_J2248.9+2106_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/482098/ltcube_526003201_526262401_4FGL_J2248.9+2106_daily_bin1106.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/482098/ft2_4FGL_J2248.9+2106_daily_bin1106.fits
.....................!
real 12.04
user 11.70
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/482098/ft1_filtered_4FGL_J2248.9+2106_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/482098/ft2_4FGL_J2248.9+2106_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/482098/ltcube_526003201_526262401_4FGL_J2248.9+2106_daily_bin1106.fits outfile=/scratch/kocevski/482098/expmap_526003201_526262401_4FGL_J2248.9+2106_daily_bin1106.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/482098/ltcube_526003201_526262401_4FGL_J2248.9+2106_daily_bin1106.fits
.....................!
real 189.86
user 185.14
sys 4.37

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/482098/ft1_filtered_4FGL_J2248.9+2106_daily_bin1106.fits scfile=/scratch/kocevski/482098/ft2_4FGL_J2248.9+2106_daily_bin1106.fits outfile=/scratch/kocevski/482098/cmap_526003201_526262401_4FGL_J2248.9+2106_daily_bin1106.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .17618       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.623       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .31015       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5680       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0596       1.0000         .10000E-03   10000.    
    10 'norm      '    8.5636       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10383E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.402       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4722       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .57999       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5678       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32222E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6619       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5240       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.860       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4579       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73668       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=   8983.209     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     2637 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.645        .90712E-02** at limit **
   2  norm          .17633        .52041        .30224E-01    .27064E-02
   3  Prefactor     30.615        18.342        .18101E-02    .12962E-03
   4  norm          .10000E-03    1.7402        .90712E-02** at limit **
   5  Prefactor     .63594E-01    13.387        .10469        .10733E-03
   6  Prefactor     .10000E-03    116.74        .90712E-02** at limit **
   7  Prefactor     .10000E-03    9.0706        .90712E-02** at limit **
   8  Prefactor     2.5696        .36578        .45143E-02    .24479E-03
   9  Prefactor     3.0573        8.2504        .57981E-02    .30862E-03
  10  norm          8.5629        1.7091        .34245E-02   -.44142E-04
  11  Prefactor     .10000E-03    4.7452        .90712E-02** at limit **
  12  norm          .10000E-03    .92303        .34118E-01** at limit **
  13  Prefactor     35.402        28.004        .16838E-02    .24333E-04
  14  Prefactor     4.4716        13.485        .47600E-02    .11716E-02
  15  Prefactor     .10000E-03    78.651        .90712E-02** at limit **
  16  Prefactor     .57982        .18545        .47839E-02    .57977E-03
  17  Prefactor     8.5601        13.346        .34237E-02    .43014E-03
  18  Prefactor     .10000E-03    4.5762        .98748E-01** at limit **
  19  Prefactor     8.6538        12.832        .34050E-02   -.27361E-03
  20  Prefactor     7.5178        18.659        .36552E-02    .29739E-03
  21  Prefactor     .10000E-03    30.948        .90712E-02** at limit **
  22  Prefactor     .10000E-03    4.1183        .90712E-02** at limit **
  23  Prefactor     15.850        17.744        .25143E-02   -.17511E-03
  24  Normalizat    1.4580        .23053        .74772E-01    .23521E-04
  25  Prefactor     .73679        .11481        .42887E-01    .29787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.176328
  Prefactor  = 30.6145
  norm       = 0.0001
  Prefactor  = 0.0635936
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 2.56956
  Prefactor  = 3.0573
  norm       = 8.56293
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.4016
  Prefactor  = 4.47157
  Prefactor  = 0.000100001
  Prefactor  = 0.579816
  Prefactor  = 8.56009
  Prefactor  = 0.000100001
  Prefactor  = 8.65378
  Prefactor  = 7.51777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8497
  Normalizat = 1.458
  Prefactor  = 0.73679
 **********
 **   18 **HESSE 
 **********

 FCN=   8983.209     FROM HESSE     STATUS=OK           443 CALLS     3080 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .17633        .57455        .11358E-02   -1.5624    
   3  Prefactor     30.615        18.343        .72404E-04   -1.4601    
   4  norm          .10000E-03    1.7469        .12208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .63594E-01    15.800        .94420E-01   -1.5658    
   6  Prefactor     .10000E-03    117.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.1320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5696        .36908        .19955E-04   -1.5387    
   9  Prefactor     3.0573        8.2389        .23193E-03   -1.5358    
  10  norm          8.5629        1.7093        .53241E-04   -1.5123    
  11  Prefactor     .10000E-03    4.7463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5515        .17001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     35.402        28.057        .67354E-04   -1.4517    
  14  Prefactor     4.4716        12.937        .19040E-03   -1.5285    
  15  Prefactor     .10000E-03    80.620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .57982        .18312        .21258E-04   -1.5556    
  17  Prefactor     8.5601        13.314        .13695E-03   -1.5123    
  18  Prefactor     .10000E-03    41.329        .37836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.6538        12.757        .13620E-03   -1.5120    
  20  Prefactor     7.5178        18.646        .14621E-03   -1.5160    
  21  Prefactor     .10000E-03    31.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.850        17.779        .10057E-03   -1.4912    
  24  Normalizat    1.4580        .27155        .33087E-03   -.78965    
  25  Prefactor     .73679        .13560        .23086E-03   -1.0210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11767e-09
Minuit parameter uncertainties:
  1  1.46197e-05
  2  0.574565
  3  18.3464
  4  2.36286e-06
  5  2.00373
  6  0.0011822
  7  2.35784e-06
  8  0.369082
  9  8.24195
  10  1.7093
  11  5.68385e-07
  12  1.14846e-06
  13  28.0676
  14  12.9455
  15  0.000534019
  16  0.183119
  17  13.319
  18  0.000320703
  19  12.7607
  20  18.6607
  21  0.000166227
  22  1.26013e-06
  23  17.7849
  24  0.271822
  25  0.135656
Done.

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

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  4.472e+00  1.295e+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:  7.368e-01  1.357e-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.458e+00  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 342.246 21.116
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/482098/likelihoodResults_526003201_526262401_4FGL_J2248.9+2106_daily_bin1106.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): 0
logL (Free Index) = 8982.87858209
delta logL = 0.330879944864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8982.85981981
delta logL = 0.349642229035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3706       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2497       1.0000          .0000       10.000    
     3 'Normalizat'    1.4063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75146       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=   8982.860     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      267 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3679        62.373        .66529E-02    .16993E-02
   2  Index         3.2504        3.0431        .13124        .31811E-03
   3  Normalizat    1.4064        .58588E-01    .75880E-01    .21333E-03
   4  Prefactor     .75141        .29874E-01    .43082E-01    .21965E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36793
  Index      = 3.25041
  Normalizat = 1.40644
  Prefactor  = 0.751411
 **********
 **   18 **HESSE 
 **********

 FCN=   8982.860     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      300 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3679        149.58        .16005E-03   -1.5400    
   2  Index         3.2504        6.4993        .71528E-02   -.35748    
   3  Normalizat    1.4064        .27098        .33580E-03   -.80443    
   4  Prefactor     .75141        .14454        .22876E-03   -1.0154    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.53087e-09
Minuit parameter uncertainties:
  1  37.7381
  2  7.17596
  3  0.271258
  4  0.144609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/482098': 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) = 8982.85981947
delta logL = 0.349642570318

Extracting fit parameters...

4FGL J2248.9+2106
   Spectrum: PowerLaw
307    Prefactor:  2.368e+00  3.774e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  3.250e+00  7.176e+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:  7.514e-01  1.446e-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.406e+00  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/482098/cmap_HighResolution_526003201_526262401_4FGL_J2248.9+2106_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.19e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-28 21:21:10.155979', job_id='482098', GAL2='0.75', fit_tolerance='1e-08', EG2='1.41', EG='1.46', time_epoch_completed='1632889270.16', return_code2='102', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.50e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1106' AND source_name='4FGL J2248.9+2106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:21:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 482098: <4FGL_J2248.9+2106_daily_bin1106> in cluster <slac> Done

Job <4FGL_J2248.9+2106_daily_bin1106> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 21:05:14 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:05:16 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:05:16 2021
Terminated at Tue Sep 28 21:21:10 2021
Results reported at Tue Sep 28 21:21:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2248.9+2106_daily_bin1106 342.246 21.1159 526003201 526262401 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 :                                   831.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            956 sec.

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

