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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin1080
RA = 192.244, Dec = 48.67
tmin = 519264001, tmax = 519523201
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='922819', job_status='RUN', time_executed='2021-09-06 05:51:02.135055', time_epoch_executed='1630932662.14' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='1080'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922819/ft1_4FGL_J1248.9+4840_daily_bin1080.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922819/ft2_4FGL_J1248.9+4840_daily_bin1080.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922819/ft1_4FGL_J1248.9+4840_daily_bin1080.fits outfile=/scratch/kocevski/922819/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1080.fits ra=192.244 dec=48.67 rad=12.0 tmin=519264001.0 tmax=519523201.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.64
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/922819/ft1_filtered_4FGL_J1248.9+4840_daily_bin1080.fits" evtable="EVENTS" scfile=/scratch/kocevski/922819/ft2_4FGL_J1248.9+4840_daily_bin1080.fits sctable="SC_DATA" outfile=/scratch/kocevski/922819/ltcube_519264001_519523201_4FGL_J1248.9+4840_daily_bin1080.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/922819/ft2_4FGL_J1248.9+4840_daily_bin1080.fits
.....................!
real 12.05
user 11.53
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922819/ft1_filtered_4FGL_J1248.9+4840_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/922819/ft2_4FGL_J1248.9+4840_daily_bin1080.fits sctable="SC_DATA" expcube=/scratch/kocevski/922819/ltcube_519264001_519523201_4FGL_J1248.9+4840_daily_bin1080.fits outfile=/scratch/kocevski/922819/expmap_519264001_519523201_4FGL_J1248.9+4840_daily_bin1080.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/922819/ltcube_519264001_519523201_4FGL_J1248.9+4840_daily_bin1080.fits
.....................!
real 191.37
user 185.73
sys 4.69

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/922819/ft1_filtered_4FGL_J1248.9+4840_daily_bin1080.fits scfile=/scratch/kocevski/922819/ft2_4FGL_J1248.9+4840_daily_bin1080.fits outfile=/scratch/kocevski/922819/cmap_519264001_519523201_4FGL_J1248.9+4840_daily_bin1080.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922819/ft1_filtered_4FGL_J1248.9+4840_daily_bin1080.fits scfile=/scratch/kocevski/922819/ft2_4FGL_J1248.9+4840_daily_bin1080.fits outfile=/scratch/kocevski/922819/cmap_HighResolution_519264001_519523201_4FGL_J1248.9+4840_daily_bin1080.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/922819/ft1_filtered_4FGL_J1248.9+4840_daily_bin1080.fits', '/scratch/kocevski/922819/ft2_4FGL_J1248.9+4840_daily_bin1080.fits', expMap='/scratch/kocevski/922819/expmap_519264001_519523201_4FGL_J1248.9+4840_daily_bin1080.fits', expCube='/scratch/kocevski/922819/ltcube_519264001_519523201_4FGL_J1248.9+4840_daily_bin1080.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/922819/Model_4FGL_J1248.9+4840_daily_bin1080.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/922819/ft1_filtered_4FGL_J1248.9+4840_daily_bin1080.fits
Spacecraft file(s): /scratch/kocevski/922819/ft2_4FGL_J1248.9+4840_daily_bin1080.fits
Exposure map: /scratch/kocevski/922819/expmap_519264001_519523201_4FGL_J1248.9+4840_daily_bin1080.fits
Exposure cube: /scratch/kocevski/922819/ltcube_519264001_519523201_4FGL_J1248.9+4840_daily_bin1080.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/922819/Model_4FGL_J1248.9+4840_daily_bin1080.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) = 6483.89073286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2604       1.0000         .10000E-03   10000.    
     4 'norm      '    13.500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.219       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9251       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8356       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8508       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9687       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19126E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9053       1.0000         .10000E-03   10000.    
    15 'norm      '    .17386       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.577       1.0000         .10000E-03   10000.    
    20 'norm      '    16.259       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5233       1.0000         .10000E-03   10000.    
    22 'norm      '    7.9812       1.0000         .10000E-03   10000.    
    23 'norm      '    11.179       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2887       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .49412       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=   6483.845     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     3359 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6959       -.52184E-07** at limit **
   2  Prefactor     .10000E-03    5.3572        .16098E-06** at limit **
   3  norm          6.2601        2.2334        .16265E-06   -.22117E-03
   4  norm          13.499        7.4388       -.96849E-06   -.15376E-03
   5  Prefactor     11.216        17.845        .42144E-05   -.74422E-04
   6  Prefactor     3.9253        5.7361        .18027E-05   -.47643E-03
   7  norm          1.8357        1.6760       -.13454E-07   -.71286E-04
   8  Prefactor     7.8392        18.962        .26634E-04   -.43100E-04
   9  Prefactor     .10000E-03    8.8178        .18909E-06** at limit **
  10  norm          1.9686        1.4788       -.37841E-07   -.17296E-03
  11  Prefactor     .10000E-03    5.2707        .86099E-07** at limit **
  12  Prefactor     .10000E-03    12.487       -.18267E-06** at limit **
  13  Prefactor     .10000E-03    4.3377        .18368E-06** at limit **
  14  Prefactor     4.9005        17.669        .11972E-04   -.44374E-04
  15  norm          .14446        12.527       -.21260E-05    .44823E-03
  16  norm          .10000E-03    1.3269       -.76010E-07** at limit **
  17  Prefactor     .10000E-03    15.226        .68098E-06** at limit **
  18  Prefactor     3.2748        15.008        .30194E-05   -.12297E-03
  19  Prefactor     21.571        24.273        .46555E-05   -.23277E-04
  20  norm          16.259        5.8985        .34891E-06   -.18962E-03
  21  Prefactor     7.5199        29.795       -.27259E-05   -.23576E-04
  22  norm          7.9810        1.9350        .62793E-07   -.11464E-03
  23  norm          11.209        84.474        .55910E-04   -.13502E-05
  24  Normalizat    1.2888        .16602       -.44511E-05    .20219E-03
  25  Prefactor     .49405        .18679       -.11079E-08   -.16982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.26005
  norm       = 13.4988
  Prefactor  = 11.2164
  Prefactor  = 3.92528
  norm       = 1.83572
  Prefactor  = 7.83919
  Prefactor  = 0.0001
  norm       = 1.96864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 4.90047
  norm       = 0.144458
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.27483
  Prefactor  = 21.5711
  norm       = 16.259
  Prefactor  = 7.5199
  norm       = 7.981
  norm       = 11.2094
  Normalizat = 1.28883
  Prefactor  = 0.494051
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.845     FROM HESSE     STATUS=OK           441 CALLS     3800 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7633        .20461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.3631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2601        2.2369        .69009E-04   -1.5208    
   4  norm          13.499        7.4344        .10902E-03   -1.4973    
   5  Prefactor     11.216        17.814        .11961E-03   -1.5038    
   6  Prefactor     3.9253        5.6414        .20363E-03   -1.5312    
   7  norm          1.8357        1.6701        .93231E-04   -1.5437    
   8  Prefactor     7.8392        18.936        .14311E-03   -1.5148    
   9  Prefactor     .10000E-03    8.8221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9686        1.4816        .82463E-04   -1.5427    
  11  Prefactor     .10000E-03    5.2809        .18044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.173        .31765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9005        17.619        .18161E-03   -1.5265    
  15  norm          .14446        15.243        .85226E-01   -1.5632    
  16  norm          .10000E-03    1.3381        .90560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2748        14.699        .22371E-03   -1.5346    
  19  Prefactor     21.571        24.273        .86229E-04   -1.4779    
  20  norm          16.259        5.8558        .99327E-04   -1.4901    
  21  Prefactor     7.5199        29.804        .14621E-03   -1.5159    
  22  norm          7.9810        1.9357        .53113E-04   -1.5143    
  23  norm          11.209        84.773        .11982E-03   -1.5038    
  24  Normalizat    1.2888        .18161        .20027E-03   -.83900    
  25  Prefactor     .49405        .20342        .36686E-03   -1.1225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89608e-09
Minuit parameter uncertainties:
  1  1.83993e-05
  2  1.19907e-05
  3  2.23698
  4  7.43489
  5  17.8224
  6  5.64216
  7  1.67012
  8  18.9502
  9  1.24793e-06
  10  1.48166
  11  3.36672e-05
  12  9.64257e-07
  13  0.000569632
  14  17.6377
  15  2.96754
  16  9.19036e-06
  17  4.92239e-05
  18  13.8818
  19  24.284
  20  5.85601
  21  29.8633
  22  1.93573
  23  61.7744
  24  0.181697
  25  0.20372
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  7.839e+00  1.895e+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:  4.941e-01  2.037e-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.289e+00  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/922819/likelihoodResults_519264001_519523201_4FGL_J1248.9+4840_daily_bin1080.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) = 6482.64244297
delta logL = 1.20243317702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6482.62101697
delta logL = 1.22385917703

Fit tolerance = 1e-08

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

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

 FCN=   6482.621     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      251 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2652        26.474        .68227E-02   -.41458E-03
   2  Index         4.1564        2.7746        .13031        .15227E-03
   3  Normalizat    1.2180        .45434E-01    .34464E-01    .30614E-05
   4  Prefactor     .54445        .52733E-01    .79133E-01    .35127E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.26518
  Index      = 4.15637
  Normalizat = 1.218
  Prefactor  = 0.544449
 **********
 **   18 **HESSE 
 **********

 FCN=   6482.621     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2652        107.78        .80564E-04   -1.5407    
   2  Index         4.1564        7.0650        .46734E-02   -.16954    
   3  Normalizat    1.2180        .18032        .20484E-03   -.86048    
   4  Prefactor     .54445        .20973        .35048E-03   -1.0998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94415e-08
Minuit parameter uncertainties:
  1  31.309
  2  7.41178
  3  0.180412
  4  0.210032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922819': 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) = 6482.62101687
delta logL = 1.22385928292

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.265e+00  3.131e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  4.156e+00  7.412e+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:  5.444e-01  2.100e-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.218e+00  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 192.244 48.670
Photon Index (Free Index): 4.16 +/- 7.41
Photon Flux (Free Index): 6.88e-08 +/- 5.09e-08
Energy Flux (Free Index): 1.00e-05 +/- 1.15e-05

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/922819/cmap_HighResolution_519264001_519523201_4FGL_J1248.9+4840_daily_bin1080.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', comment='SUCCESS', energy_flux2='1.00e-05', dlogl='1.22e+00', photon_flux2='6.88e-08', job_status='DONE', time_completed='2021-09-06 06:05:23.771833', photon_index_error2='7.41', photon_index2='4.16', ts='0.20', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', photon_flux_upper_limit='8.00e-08', energy_flux_error2='1.15e-05', EG='1.29', time_epoch_completed='1630933523.77', return_code='0', job_id='922819', GAL2='0.54', EG2='1.22', return_code2='0', photon_flux_error2='5.09e-08', ts2='2.78', photon_index='2.45' WHERE bin_id='1080' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:05:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 922819: <4FGL_J1248.9+4840_daily_bin1080> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin1080> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 05:50:44 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:50:45 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:50:45 2021
Terminated at Mon Sep  6 06:05:25 2021
Results reported at Mon Sep  6 06:05:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin1080 192.244 48.67 519264001 519523201 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 :                                   850.32 sec.
    Max Memory :                                 618 MB
    Average Memory :                             303.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

