/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 70 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 = 7352
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1248.9+4840_daily_bin1526
RA = 192.244, Dec = 48.67
tmin = 634867201, tmax = 635126401
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='924724', job_status='RUN', time_executed='2021-09-06 05:58:00.464603', time_epoch_executed='1630933080.46' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='1526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924724

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924724/ft1_4FGL_J1248.9+4840_daily_bin1526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924724/ft2_4FGL_J1248.9+4840_daily_bin1526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924724/ft1_4FGL_J1248.9+4840_daily_bin1526.fits outfile=/scratch/kocevski/924724/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1526.fits ra=192.244 dec=48.67 rad=12.0 tmin=634867201.0 tmax=635126401.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 2.99
user 2.78
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/924724/ft2_4FGL_J1248.9+4840_daily_bin1526.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/924724/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1526.fits evtable="EVENTS" outfile="/scratch/kocevski/924724/ft1_filtered_4FGL_J1248.9+4840_daily_bin1526.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924724/ft1_filtered_4FGL_J1248.9+4840_daily_bin1526.fits" evtable="EVENTS" scfile=/scratch/kocevski/924724/ft2_4FGL_J1248.9+4840_daily_bin1526.fits sctable="SC_DATA" outfile=/scratch/kocevski/924724/ltcube_634867201_635126401_4FGL_J1248.9+4840_daily_bin1526.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/924724/ft2_4FGL_J1248.9+4840_daily_bin1526.fits
.....................!
real 12.58
user 12.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924724/ft1_filtered_4FGL_J1248.9+4840_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/924724/ft2_4FGL_J1248.9+4840_daily_bin1526.fits sctable="SC_DATA" expcube=/scratch/kocevski/924724/ltcube_634867201_635126401_4FGL_J1248.9+4840_daily_bin1526.fits outfile=/scratch/kocevski/924724/expmap_634867201_635126401_4FGL_J1248.9+4840_daily_bin1526.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/924724/ltcube_634867201_635126401_4FGL_J1248.9+4840_daily_bin1526.fits
.....................!
real 192.89
user 187.59
sys 4.68

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/924724/ft1_filtered_4FGL_J1248.9+4840_daily_bin1526.fits scfile=/scratch/kocevski/924724/ft2_4FGL_J1248.9+4840_daily_bin1526.fits outfile=/scratch/kocevski/924724/cmap_634867201_635126401_4FGL_J1248.9+4840_daily_bin1526.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.62
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924724/ft1_filtered_4FGL_J1248.9+4840_daily_bin1526.fits scfile=/scratch/kocevski/924724/ft2_4FGL_J1248.9+4840_daily_bin1526.fits outfile=/scratch/kocevski/924724/cmap_HighResolution_634867201_635126401_4FGL_J1248.9+4840_daily_bin1526.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.59
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    8.5547       1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.8232       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.6436       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .95969       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1410       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.2258       1.0000         .10000E-03   10000.    
    16 'norm      '    .43497       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.185       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.303       1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.254       1.0000         .10000E-03   10000.    
    22 'norm      '    2.8869       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86548       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2857       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=   4826.108     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2849 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4868       -.11854E-06** at limit **
   2  Prefactor     8.5506        43.984        .13589E-05   -.46732E-05
   3  norm          .10000E-03    1.1205        .81571E-08** at limit **
   4  norm          7.8215        10.931        .92396E-06    .27844E-03
   5  Prefactor     .10000E-03    18.692       -.17998E-05** at limit **
   6  Prefactor     .10000E-03    2.0995        .12789E-07** at limit **
   7  norm          6.6435        2.7959       -.28993E-06   -.67041E-04
   8  Prefactor     .10000E-03    16.254        .83446E-06** at limit **
   9  Prefactor     .10000E-03    16.387        .68682E-06** at limit **
  10  norm          .95843        2.1304        .60694E-07   -.10151E-03
  11  Prefactor     .10000E-03    5.5953        .69867E-07** at limit **
  12  Prefactor     51.233        54.004       -.17210E-06    .19223E-04
  13  Prefactor     2.1416        8.7204        .94190E-05   -.13585E-04
  14  Prefactor     .10000E-03    7.5589       -.97869E-07** at limit **
  15  norm          9.2259        9.0862       -.27737E-06   -.44713E-05
  16  norm          .43764        3.2711       -.62551E-06   -.27573E-03
  17  Prefactor     43.184        39.601       -.25037E-07   -.85664E-04
  18  Prefactor     .10000E-03    4.3989       -.16542E-06** at limit **
  19  Prefactor     10.299        26.830        .61188E-06   -.42442E-04
  20  norm          .10000E-03    1.5118       -.94079E-07** at limit **
  21  Prefactor     26.243        46.151        .88851E-06   -.71991E-04
  22  norm          2.8871        1.5026        .47923E-07   -.81461E-04
  23  norm          .10000E-03    37.399        .63585E-06** at limit **
  24  Normalizat    .86512        .19577       -.96309E-07    .23549E-05
  25  Prefactor     1.2861        .23928       -.14759E-05   -.65946E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.55056
  norm       = 0.0001
  norm       = 7.82153
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 6.64346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.958432
  Prefactor  = 0.0001
  Prefactor  = 51.2329
  Prefactor  = 2.14162
  Prefactor  = 0.0001
  norm       = 9.22589
  norm       = 0.437641
  Prefactor  = 43.1843
  Prefactor  = 0.0001
  Prefactor  = 10.2993
  norm       = 0.0001
  Prefactor  = 26.2427
  norm       = 2.88705
  norm       = 0.0001
  Normalizat = 0.865117
  Prefactor  = 1.28613
 **********
 **   18 **HESSE 
 **********

 FCN=   4826.108     FROM HESSE     STATUS=OK           427 CALLS     3276 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4931        .10694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.5506        43.921        .13705E-03   -1.5123    
   3  norm          .10000E-03    1.1395        .71791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.8215        10.973        .14336E-03   -1.5149    
   5  Prefactor     .10000E-03    18.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1077        .98265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.6435        2.7974        .71774E-04   -1.5192    
   8  Prefactor     .10000E-03    16.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .95843        1.9428        .14391E-02   -1.5512    
  11  Prefactor     .10000E-03    5.6059        .16049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.233        54.092        .56033E-04   -1.4275    
  13  Prefactor     2.1416        8.8107        .14084E-02   -1.5415    
  14  Prefactor     .10000E-03    7.5609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.2259        9.0885        .65974E-03   -1.5100    
  16  norm          .43764        5.9424        .23064E-02   -1.5576    
  17  Prefactor     43.184        38.995        .61005E-04   -1.4393    
  18  Prefactor     .10000E-03    4.4039        .14231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.299        26.748        .12483E-03   -1.5066    
  20  norm          .10000E-03    1.5253        .83388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.243        46.336        .78184E-04   -1.4683    
  22  norm          2.8871        1.5004        .58654E-04   -1.5368    
  23  norm          .10000E-03    37.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86512        .23421        .25041E-03   -.97697    
  25  Prefactor     1.2861        .28684        .26555E-03   -.83721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49747e-09
Minuit parameter uncertainties:
  1  1.40626e-05
  2  38.8032
  3  1.27488e-07
  4  10.9757
  5  0.000405343
  6  1.88548e-06
  7  2.79744
  8  0.000154834
  9  0.000141511
  10  1.94288
  11  3.34269e-06
  12  54.1443
  13  8.68972
  14  2.04882e-05
  15  9.08984
  16  3.22533
  17  39.0182
  18  1.51738e-05
  19  26.7795
  20  6.1525e-06
  21  46.3997
  22  1.50042
  23  0.00021883
  24  0.234487
  25  0.287192
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.548e-04  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:  1.286e+00  2.872e-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:  8.651e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/924724/likelihoodResults_634867201_635126401_4FGL_J1248.9+4840_daily_bin1526.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) = 4826.10849232
delta logL = -0.000291787116112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4826.10820079
delta logL = -2.58904037764e-07

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 'Index     '    2.3465       1.0000          .0000       10.000    
     3 'Normalizat'    .86513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2861       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=   4826.108     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      274 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6429.5        .18142E-02** at limit **
   2  Index         2.3629        5.2606        .50000       -.96550E-05
   3  Normalizat    .86511        .11314        .25040E-03   -.75366E-04
   4  Prefactor     1.2861        .14363        .26555E-03    .41869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.36295
  Normalizat = 0.865114
  Prefactor  = 1.28613
 **********
 **   18 **HESSE 
 **********

 FCN=   4826.108     FROM HESSE     STATUS=OK            29 CALLS      303 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3629        6.1805        .50000       -.55555    
   3  Normalizat    .86511        .22243        .10016E-04   -.97697    
   4  Prefactor     1.2861        .28244        .10622E-04   -.83720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31018e-10
Minuit parameter uncertainties:
  1  0.00030722
  2  4.42899
  3  0.222662
  4  0.282777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924724': 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) = 4826.10820074
delta logL = -2.08146957448e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  3.072e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.363e+00  4.429e+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:  1.286e+00  2.828e-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:  8.651e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/924724/cmap_HighResolution_634867201_635126401_4FGL_J1248.9+4840_daily_bin1526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.76e-08', time_completed='2021-09-06 06:09:54.504887', job_id='924724', GAL2='1.29', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630933794.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='-2.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1526' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:09:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 924724: <4FGL_J1248.9+4840_daily_bin1526> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin1526> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 05:55:53 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:55:54 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:55:54 2021
Terminated at Mon Sep  6 06:09:55 2021
Results reported at Mon Sep  6 06:09:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin1526 192.244 48.67 634867201 635126401 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 :                                   674.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

