/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 118 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 = 7372
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1248.9+4840_daily_bin165
RA = 192.244, Dec = 48.67
tmin = 282096001, tmax = 282355201
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='916424', job_status='RUN', time_executed='2021-09-06 05:33:24.826209', time_epoch_executed='1630931604.83' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916424/ft1_4FGL_J1248.9+4840_daily_bin165.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916424/ft2_4FGL_J1248.9+4840_daily_bin165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916424/ft1_4FGL_J1248.9+4840_daily_bin165.fits outfile=/scratch/kocevski/916424/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin165.fits ra=192.244 dec=48.67 rad=12.0 tmin=282096001.0 tmax=282355201.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.54
user 3.22
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/916424/ft2_4FGL_J1248.9+4840_daily_bin165.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/916424/ft2_4FGL_J1248.9+4840_daily_bin165.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/916424/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin165.fits evtable="EVENTS" outfile="/scratch/kocevski/916424/ft1_filtered_4FGL_J1248.9+4840_daily_bin165.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916424/ft1_filtered_4FGL_J1248.9+4840_daily_bin165.fits" evtable="EVENTS" scfile=/scratch/kocevski/916424/ft2_4FGL_J1248.9+4840_daily_bin165.fits sctable="SC_DATA" outfile=/scratch/kocevski/916424/ltcube_282096001_282355201_4FGL_J1248.9+4840_daily_bin165.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/916424/ft2_4FGL_J1248.9+4840_daily_bin165.fits
.....................!
real 11.73
user 11.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916424/ft1_filtered_4FGL_J1248.9+4840_daily_bin165.fits evtable="EVENTS" scfile=/scratch/kocevski/916424/ft2_4FGL_J1248.9+4840_daily_bin165.fits sctable="SC_DATA" expcube=/scratch/kocevski/916424/ltcube_282096001_282355201_4FGL_J1248.9+4840_daily_bin165.fits outfile=/scratch/kocevski/916424/expmap_282096001_282355201_4FGL_J1248.9+4840_daily_bin165.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/916424/ltcube_282096001_282355201_4FGL_J1248.9+4840_daily_bin165.fits
.....................!
real 190.26
user 185.29
sys 4.24

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/916424/ft1_filtered_4FGL_J1248.9+4840_daily_bin165.fits scfile=/scratch/kocevski/916424/ft2_4FGL_J1248.9+4840_daily_bin165.fits outfile=/scratch/kocevski/916424/cmap_282096001_282355201_4FGL_J1248.9+4840_daily_bin165.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=192.244 yref=48.67 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916424/ft1_filtered_4FGL_J1248.9+4840_daily_bin165.fits scfile=/scratch/kocevski/916424/ft2_4FGL_J1248.9+4840_daily_bin165.fits outfile=/scratch/kocevski/916424/cmap_HighResolution_282096001_282355201_4FGL_J1248.9+4840_daily_bin165.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=192.244 yref=48.67 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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916424/ft1_filtered_4FGL_J1248.9+4840_daily_bin165.fits evtable="EVENTS" scfile=/scratch/kocevski/916424/ft2_4FGL_J1248.9+4840_daily_bin165.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916424/Model_4FGL_J1248.9+4840_daily_bin165.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/916424/ft1_filtered_4FGL_J1248.9+4840_daily_bin165.fits.....................!
real 56.25
user 54.91
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/916424/ft1_filtered_4FGL_J1248.9+4840_daily_bin165.fits', '/scratch/kocevski/916424/ft2_4FGL_J1248.9+4840_daily_bin165.fits', expMap='/scratch/kocevski/916424/expmap_282096001_282355201_4FGL_J1248.9+4840_daily_bin165.fits', expCube='/scratch/kocevski/916424/ltcube_282096001_282355201_4FGL_J1248.9+4840_daily_bin165.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/916424/Model_4FGL_J1248.9+4840_daily_bin165.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/916424/ft1_filtered_4FGL_J1248.9+4840_daily_bin165.fits
Spacecraft file(s): /scratch/kocevski/916424/ft2_4FGL_J1248.9+4840_daily_bin165.fits
Exposure map: /scratch/kocevski/916424/expmap_282096001_282355201_4FGL_J1248.9+4840_daily_bin165.fits
Exposure cube: /scratch/kocevski/916424/ltcube_282096001_282355201_4FGL_J1248.9+4840_daily_bin165.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/916424/Model_4FGL_J1248.9+4840_daily_bin165.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) = 6623.05180686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.508       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8600       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8673       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .99217       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.560       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.4605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7482       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2188       1.0000         .10000E-03   10000.    
    15 'norm      '    30.175       1.0000         .10000E-03   10000.    
    16 'norm      '    15.997       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.762       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19271E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.8759       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1836       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78914       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6622.922     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2470 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0641        .18026E-07** at limit **
   2  Prefactor     18.504        19.455       -.11025E-05    .20304E-05
   3  norm          1.8597        1.7563       -.61046E-07   -.18733E-04
   4  norm          .10000E-03    1.7753        .66001E-10** at limit **
   5  Prefactor     4.8658        10.991       -.15605E-06   -.18696E-05
   6  Prefactor     .10000E-03    1.2565       -.40478E-08** at limit **
   7  norm          .99206        .91053       -.12249E-07    .11527E-04
   8  Prefactor     13.558        14.946       -.69276E-07    .20574E-05
   9  Prefactor     .10000E-03    13.279       -.87972E-07** at limit **
  10  norm          3.4603        1.8863       -.21094E-07   -.35698E-05
  11  Prefactor     1.7439        1.6019        .88708E-07   -.55608E-03
  12  Prefactor     .10000E-03    35.055        .20411E-07** at limit **
  13  Prefactor     .10000E-03    2.5328       -.81502E-08** at limit **
  14  Prefactor     6.2220        12.485       -.54596E-07   -.43998E-04
  15  norm          30.175        16.298       -.27066E-07    .34250E-05
  16  norm          15.997        4.9827        .33452E-06   -.68627E-05
  17  Prefactor     19.752        33.827       -.99951E-05   -.18668E-04
  18  Prefactor     .10000E-03    35.735        .42943E-05** at limit **
  19  Prefactor     .10000E-03    49.807        .72330E-06** at limit **
  20  norm          .10000E-03    1.1664        .25201E-07** at limit **
  21  Prefactor     .10000E-03    22.685        .39290E-06** at limit **
  22  norm          2.8758        1.2762        .59030E-07    .67609E-04
  23  norm          .10000E-03    33.480       -.39845E-05** at limit **
  24  Normalizat    1.1839        .15726        .95351E-06   -.10173E-03
  25  Prefactor     .78887        .18742       -.15946E-06    .10341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.5042
  norm       = 1.85967
  norm       = 0.0001
  Prefactor  = 4.8658
  Prefactor  = 0.0001
  norm       = 0.992057
  Prefactor  = 13.5575
  Prefactor  = 0.0001
  norm       = 3.46031
  Prefactor  = 1.74385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.22201
  norm       = 30.1752
  norm       = 15.9972
  Prefactor  = 19.7516
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.87584
  norm       = 0.0001
  Normalizat = 1.18391
  Prefactor  = 0.788867
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.922     FROM HESSE     STATUS=OK           427 CALLS     2897 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0711        .81836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.504        19.430        .93098E-04   -1.4847    
   3  norm          1.8597        1.7542        .10036E-03   -1.5435    
   4  norm          .10000E-03    1.7775        .10587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8658        10.978        .18233E-03   -1.5267    
   6  Prefactor     .10000E-03    1.2586        .89079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .99206        .96590        .72554E-03   -1.5509    
   8  Prefactor     13.558        14.957        .10877E-03   -1.4971    
   9  Prefactor     .10000E-03    13.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4603        1.8864        .80066E-04   -1.5336    
  11  Prefactor     1.7439        7.2394        .15858E-02   -1.5444    
  12  Prefactor     .10000E-03    35.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5371        .12648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2220        12.521        .80488E-03   -1.5209    
  15  norm          30.175        16.298        .72937E-04   -1.4609    
  16  norm          15.997        4.9825        .95915E-04   -1.4908    
  17  Prefactor     19.752        33.913        .90098E-04   -1.4819    
  18  Prefactor     .10000E-03    37.213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    50.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1752        .85815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.8758        1.2751        .59270E-04   -1.5369    
  23  norm          .10000E-03    33.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1839        .18101        .20857E-03   -.87102    
  25  Prefactor     .78887        .21597        .30770E-03   -1.0014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10818e-09
Minuit parameter uncertainties:
  1  1.78432e-06
  2  19.4362
  3  1.75421
  4  4.28405e-07
  5  10.9821
  6  7.37199e-07
  7  0.965919
  8  14.9607
  9  5.74915e-06
  10  1.88647
  11  7.10748
  12  2.90653e-07
  13  1.494e-06
  14  12.5258
  15  16.3003
  16  4.98266
  17  33.9463
  18  2.13415e-05
  19  0.00090844
  20  2.51411e-06
  21  6.56266e-06
  22  1.27509
  23  5.25561e-06
  24  0.181103
  25  0.216205
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.356e+01  1.496e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  7.889e-01  2.162e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.184e+00  1.811e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.63
Ra Dec: 192.244 48.670
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.08e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 6.39e-06 +/- 7.05e-06

TS (Fixed Index): 1.63
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 7.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916424/likelihoodResults_282096001_282355201_4FGL_J1248.9+4840_daily_bin165.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) = 6622.92177075
delta logL = 0.000461584869299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6622.92164407
delta logL = 0.0005882661344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.343       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4898       1.0000          .0000       10.000    
     3 'Normalizat'    1.1827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78961       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+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=   6622.922     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      248 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.340        16.643        .10966E-03    .36073E-03
   2  Index         2.4892        1.1654        .10476E-01    .86253E-04
   3  Normalizat    1.1827        .17863        .20866E-03   -.45391E-03
   4  Prefactor     .78970        .21633        .30755E-03   -.33376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3405
  Index      = 2.48917
  Normalizat = 1.18275
  Prefactor  = 0.789701
 **********
 **   18 **HESSE 
 **********

 FCN=   6622.922     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.340        16.073        .21931E-04   -1.4977    
   2  Index         2.4892        1.1249        .41905E-03   -.52610    
   3  Normalizat    1.1827        .17845        .41732E-04   -.87138    
   4  Prefactor     .78970        .21631        .12302E-04   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74622e-10
Minuit parameter uncertainties:
  1  16.0784
  2  1.13799
  3  0.178546
  4  0.216546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916424': 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) = 6622.92164295
delta logL = 0.000589377924371

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.334e+01  1.608e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.489e+00  1.138e+00  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  7.897e-01  2.165e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.183e+00  1.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 192.244 48.670
Photon Index (Free Index): 2.49 +/- 1.14
Photon Flux (Free Index): 2.17e-08 +/- 3.57e-08
Energy Flux (Free Index): 6.37e-06 +/- 6.96e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/916424/cmap_HighResolution_282096001_282355201_4FGL_J1248.9+4840_daily_bin165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', comment='SUCCESS', photon_flux='2.08e-08', energy_flux2='6.37e-06', photon_flux_error='2.29e-08', dlogl='5.89e-04', energy_flux='6.39e-06', photon_flux2='2.17e-08', job_status='DONE', time_completed='2021-09-06 05:46:21.375794', photon_index_error2='1.14', photon_index2='2.49', ts='1.63', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='7.95e-08', energy_flux_error2='6.96e-06', EG='1.18', time_epoch_completed='1630932381.38', return_code='0', job_id='916424', GAL2='0.79', EG2='1.18', return_code2='0', energy_flux_error='7.05e-06', photon_flux_error2='3.57e-08', ts2='1.63', photon_index='2.45' WHERE bin_id='165' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:46:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 916424: <4FGL_J1248.9+4840_daily_bin165> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin165> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 05:31:07 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:31:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 05:31:09 2021
Terminated at Mon Sep  6 05:46:22 2021
Results reported at Mon Sep  6 05:46:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin165 192.244 48.67 282096001 282355201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.9+4840 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   773.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             298.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

