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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin949
RA = 192.244, Dec = 48.67
tmin = 485308801, tmax = 485568001
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='922606', job_status='RUN', time_executed='2021-09-06 05:50:41.450987', time_epoch_executed='1630932641.45' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922606

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922606/ft1_4FGL_J1248.9+4840_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922606/ft2_4FGL_J1248.9+4840_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922606/ft1_4FGL_J1248.9+4840_daily_bin949.fits outfile=/scratch/kocevski/922606/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin949.fits ra=192.244 dec=48.67 rad=12.0 tmin=485308801.0 tmax=485568001.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 5.69
user 5.41
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922606/ft1_filtered_4FGL_J1248.9+4840_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/922606/ft2_4FGL_J1248.9+4840_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/922606/ltcube_485308801_485568001_4FGL_J1248.9+4840_daily_bin949.fits outfile=/scratch/kocevski/922606/expmap_485308801_485568001_4FGL_J1248.9+4840_daily_bin949.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/922606/ltcube_485308801_485568001_4FGL_J1248.9+4840_daily_bin949.fits
.....................!
real 192.32
user 187.72
sys 4.08

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/922606/ft1_filtered_4FGL_J1248.9+4840_daily_bin949.fits scfile=/scratch/kocevski/922606/ft2_4FGL_J1248.9+4840_daily_bin949.fits outfile=/scratch/kocevski/922606/cmap_485308801_485568001_4FGL_J1248.9+4840_daily_bin949.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922606/ft1_filtered_4FGL_J1248.9+4840_daily_bin949.fits scfile=/scratch/kocevski/922606/ft2_4FGL_J1248.9+4840_daily_bin949.fits outfile=/scratch/kocevski/922606/cmap_HighResolution_485308801_485568001_4FGL_J1248.9+4840_daily_bin949.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6984       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .22905E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0320       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8192       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.171       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.2070       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8752       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1397       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3544       1.0000         .10000E-03   10000.    
    15 'norm      '    17.385       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.198       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .60752       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12448E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .29323E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.521       1.0000         .10000E-03   10000.    
    22 'norm      '    .10535E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95499       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0852       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=   6248.845     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2905 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6979        3.0928       -.25886E-06   -.62205E-04
   2  Prefactor     .10000E-03    10.992        .78633E-05** at limit **
   3  norm          .10000E-03    .63656       -.72238E-07** at limit **
   4  norm          .10004E-03    4.6533       -.32260E-05** at limit **
   5  Prefactor     1.0217        11.577        .56513E-07    .42074E-04
   6  Prefactor     .10000E-03    2.9531       -.72357E-07** at limit **
   7  norm          1.8187        1.4616       -.13610E-06    .26045E-04
   8  Prefactor     23.162        18.750       -.20443E-05    .89158E-04
   9  Prefactor     .10000E-03    6.5363        .18266E-07** at limit **
  10  norm          5.2064        2.4816       -.74954E-07    .89023E-04
  11  Prefactor     7.8741        8.4442        .10276E-05    .54839E-04
  12  Prefactor     .10000E-03    17.918       -.16359E-05** at limit **
  13  Prefactor     5.1382        5.0946        .15669E-05    .10607E-03
  14  Prefactor     6.3453        24.045       -.12329E-04   -.24907E-04
  15  norm          17.377        18.065       -.17977E-05    .91455E-05
  16  norm          .10000E-03    1.3960        .79761E-07** at limit **
  17  Prefactor     51.189        34.180       -.59741E-05    .35991E-06
  18  Prefactor     .54115        7.9132        .11707E-05   -.46749E-04
  19  Prefactor     .10000E-03    50.813       -.71337E-06** at limit **
  20  norm          .10000E-03    1.8401        .90261E-07** at limit **
  21  Prefactor     46.501        53.278       -.22714E-04   -.27931E-04
  22  norm          .10000E-03    .66196       -.43082E-07** at limit **
  23  norm          .10000E-03    34.922        .34569E-05** at limit **
  24  Normalizat    .95541        .16069        .30676E-05    .15169E-03
  25  Prefactor     1.0850        .19544        .89219E-06    .31037E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69794
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100043
  Prefactor  = 1.02168
  Prefactor  = 0.0001
  norm       = 1.81865
  Prefactor  = 23.1616
  Prefactor  = 0.0001
  norm       = 5.20645
  Prefactor  = 7.87415
  Prefactor  = 0.0001
  Prefactor  = 5.13815
  Prefactor  = 6.34531
  norm       = 17.3768
  norm       = 0.0001
  Prefactor  = 51.189
  Prefactor  = 0.54115
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 46.5008
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.955413
  Prefactor  = 1.085
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.845     FROM HESSE     STATUS=OK           435 CALLS     3340 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6979        3.0926        .98339E-04   -1.5231    
   2  Prefactor     .10000E-03    11.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .64642        .61552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10004E-03    10.732        .30624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0217        62.494        .48034E-02   -1.5506    
   6  Prefactor     .10000E-03    2.9826        .13256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8187        1.4661        .83077E-04   -1.5438    
   8  Prefactor     23.162        18.716        .83213E-04   -1.4745    
   9  Prefactor     .10000E-03    6.5374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.2064        2.4814        .82867E-04   -1.5252    
  11  Prefactor     7.8741        8.4292        .14288E-03   -1.5147    
  12  Prefactor     .10000E-03    17.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1382        5.1020        .17260E-03   -1.5255    
  14  Prefactor     6.3453        24.067        .15923E-03   -1.5204    
  15  norm          17.377        18.075        .96059E-04   -1.4874    
  16  norm          .10000E-03    1.4089        .91176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     51.189        34.121        .56049E-04   -1.4276    
  18  Prefactor     .54115        57.003        .41116E-02   -1.5561    
  19  Prefactor     .10000E-03    51.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.7392        .20364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.501        53.406        .58786E-04   -1.4343    
  22  norm          .10000E-03    3.0828        .12429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    34.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95541        .18962        .22990E-03   -.94539    
  25  Prefactor     1.0850        .23232        .27272E-03   -.89947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48614e-08
Minuit parameter uncertainties:
  1  3.09265
  2  3.6098e-05
  3  4.52172e-06
  4  0.00135397
  5  15.9978
  6  1.63118e-05
  7  1.46612
  8  18.7212
  9  1.05319e-06
  10  2.4815
  11  8.43048
  12  4.29272e-06
  13  5.10242
  14  24.1035
  15  18.081
  16  7.14859e-06
  17  34.1339
  18  11.1179
  19  0.000603895
  20  6.17845e-05
  21  53.4611
  22  1.26688e-05
  23  1.60888e-05
  24  0.189751
  25  0.232536
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.316e+01  1.872e+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:  1.085e+00  2.325e-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:  9.554e-01  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.42
Ra Dec: 192.244 48.670
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.55e-08 +/- 2.86e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 8.82e-06

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

Saving results to:
/scratch/kocevski/922606/likelihoodResults_485308801_485568001_4FGL_J1248.9+4840_daily_bin949.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) = 6248.84414593
delta logL = 0.000643550334644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6248.84372674
delta logL = 0.00106273465462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.500       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4807       1.0000          .0000       10.000    
     3 'Normalizat'    .95453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0855       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=   6248.844     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      255 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.484        24.603        .84444E-04    .28348E-03
   2  Index         2.4791        .65937        .65749E-02    .29815E-04
   3  Normalizat    .95470        .18499        .22997E-03    .10539E-03
   4  Prefactor     1.0857        .23185        .27265E-03    .15265E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4843
  Index      = 2.4791
  Normalizat = 0.954697
  Prefactor  = 1.08567
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.844     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.484        23.430        .16889E-04   -1.4759    
   2  Index         2.4791        .62797        .26300E-03   -.52843    
   3  Normalizat    .95470        .18513        .91990E-05   -.94564    
   4  Prefactor     1.0857        .23201        .10906E-04   -.89926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84129e-10
Minuit parameter uncertainties:
  1  23.4392
  2  0.630201
  3  0.185254
  4  0.232227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922606': 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) = 6248.84371488
delta logL = 0.00107459311403

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.248e+01  2.344e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.479e+00  6.302e-01  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.086e+00  2.322e-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:  9.547e-01  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 192.244 48.670
Photon Index (Free Index): 2.48 +/- 0.63
Photon Flux (Free Index): 3.60e-08 +/- 3.08e-08
Energy Flux (Free Index): 1.07e-05 +/- 9.72e-06

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/922606/cmap_HighResolution_485308801_485568001_4FGL_J1248.9+4840_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.63e-03', comment='SUCCESS', photon_flux='3.55e-08', energy_flux2='1.07e-05', photon_flux_error='2.86e-08', dlogl='1.07e-03', energy_flux='1.09e-05', photon_flux2='3.60e-08', job_status='DONE', time_completed='2021-09-06 06:04:01.232084', photon_index_error2='0.63', photon_index2='2.48', ts='2.42', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='9.84e-08', energy_flux_error2='9.72e-06', EG='0.96', time_epoch_completed='1630933441.23', return_code='0', job_id='922606', GAL2='1.09', EG2='0.95', return_code2='0', energy_flux_error='8.82e-06', photon_flux_error2='3.08e-08', ts2='2.42', photon_index='2.45' WHERE bin_id='949' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:04:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 922606: <4FGL_J1248.9+4840_daily_bin949> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin949 192.244 48.67 485308801 485568001 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 :                                   792.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

