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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin750
RA = 192.244, Dec = 48.67
tmin = 433728001, tmax = 433987201
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='920738', job_status='RUN', time_executed='2021-09-06 05:45:36.193326', time_epoch_executed='1630932336.19' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920738/ft1_4FGL_J1248.9+4840_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920738/ft2_4FGL_J1248.9+4840_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920738/ft1_4FGL_J1248.9+4840_daily_bin750.fits outfile=/scratch/kocevski/920738/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin750.fits ra=192.244 dec=48.67 rad=12.0 tmin=433728001.0 tmax=433987201.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 6.11
user 5.81
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/920738/ft1_filtered_4FGL_J1248.9+4840_daily_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/920738/ft2_4FGL_J1248.9+4840_daily_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/920738/ltcube_433728001_433987201_4FGL_J1248.9+4840_daily_bin750.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/920738/ft2_4FGL_J1248.9+4840_daily_bin750.fits
.....................!
real 12.17
user 11.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920738/ft1_filtered_4FGL_J1248.9+4840_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/920738/ft2_4FGL_J1248.9+4840_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/920738/ltcube_433728001_433987201_4FGL_J1248.9+4840_daily_bin750.fits outfile=/scratch/kocevski/920738/expmap_433728001_433987201_4FGL_J1248.9+4840_daily_bin750.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/920738/ltcube_433728001_433987201_4FGL_J1248.9+4840_daily_bin750.fits
.....................!
real 190.48
user 185.78
sys 4.22

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/920738/ft1_filtered_4FGL_J1248.9+4840_daily_bin750.fits scfile=/scratch/kocevski/920738/ft2_4FGL_J1248.9+4840_daily_bin750.fits outfile=/scratch/kocevski/920738/cmap_433728001_433987201_4FGL_J1248.9+4840_daily_bin750.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920738/ft1_filtered_4FGL_J1248.9+4840_daily_bin750.fits scfile=/scratch/kocevski/920738/ft2_4FGL_J1248.9+4840_daily_bin750.fits outfile=/scratch/kocevski/920738/cmap_HighResolution_433728001_433987201_4FGL_J1248.9+4840_daily_bin750.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.206       1.0000         .10000E-03   10000.    
     3 'norm      '    .19896E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.730       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .55347       1.0000         .10000E-03   10000.    
     7 'norm      '    7.6383       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4009       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.887       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14313       1.0000         .10000E-03   10000.    
    15 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.684       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.701       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0191       1.0000         .10000E-03   10000.    
    23 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .66783       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.5703       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=   3892.151     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     2976 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2872        .67881E-06** at limit **
   2  Prefactor     28.205        32.936       -.15405E-04   -.46757E-04
   3  norm          .10004E-03    3.0091        .99745E-06** at limit **
   4  norm          .10000E-03    6.8868       -.39290E-07** at limit **
   5  Prefactor     20.720        29.049        .76257E-05   -.23640E-04
   6  Prefactor     .61500        12.762       -.10221E-05    .28908E-04
   7  norm          7.6307        6.0636        .88313E-07    .99813E-04
   8  Prefactor     .10000E-03    12.015        .75587E-05** at limit **
   9  Prefactor     .10000E-03    13.333       -.12021E-04** at limit **
  10  norm          1.4008        2.7212       -.18698E-06   -.39895E-03
  11  Prefactor     .10000E-03    8.2184       -.51910E-07** at limit **
  12  Prefactor     43.921        98.813       -.17861E-05    .49086E-04
  13  Prefactor     .10000E-03    10.918        .38630E-05** at limit **
  14  Prefactor     .10639E-03    52.452       -.36745E-05** at limit **
  15  norm          .10000E-03    11.324       -.13686E-04** at limit **
  16  norm          .10000E-03    1.8183        .91983E-07** at limit **
  17  Prefactor     .10000E-03    19.200       -.98771E-06** at limit **
  18  Prefactor     45.691        37.747       -.25789E-04   -.13890E-04
  19  Prefactor     .10000E-03    12.059        .86026E-05** at limit **
  20  norm          10.698        7.9854        .85411E-05   -.46823E-04
  21  Prefactor     .10000E-03    45.356        .22681E-05** at limit **
  22  norm          3.0187        1.6755       -.19194E-06   -.88059E-04
  23  norm          .10000E-03    70.055       -.41284E-05** at limit **
  24  Normalizat    .66874        .23666        .29517E-05    .10897E-03
  25  Prefactor     1.5694        .27488        .63996E-06    .15542E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 28.2054
  norm       = 0.000100045
  norm       = 0.0001
  Prefactor  = 20.7202
  Prefactor  = 0.614997
  norm       = 7.63068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.40079
  Prefactor  = 0.0001
  Prefactor  = 43.9212
  Prefactor  = 0.0001
  Prefactor  = 0.000106394
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.6905
  Prefactor  = 0.0001
  norm       = 10.6975
  Prefactor  = 0.0001
  norm       = 3.01868
  norm       = 0.0001
  Normalizat = 0.668736
  Prefactor  = 1.56938
 **********
 **   18 **HESSE 
 **********

 FCN=   3892.151     FROM HESSE     STATUS=OK           433 CALLS     3409 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3117        .11032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.205        32.967        .75435E-04   -1.4645    
   3  norm          .10004E-03    14.500        .20634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.8998        .15980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.720        29.042        .87970E-04   -1.4797    
   6  Prefactor     .61500        148.07        .39251E-02   -1.5551    
   7  norm          7.6307        7.1774        .12260E-03   -1.5155    
   8  Prefactor     .10000E-03    12.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4008        2.6857        .13847E-03   -1.5471    
  11  Prefactor     .10000E-03    8.2331        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     43.921        99.191        .60517E-04   -1.4382    
  13  Prefactor     .10000E-03    10.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10639E-03    62.124        .10464       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8259        .82145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.691        37.777        .59320E-04   -1.4355    
  19  Prefactor     .10000E-03    12.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.698        7.9640        .12248E-03   -1.5054    
  21  Prefactor     .10000E-03    45.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0187        1.6730        .57344E-04   -1.5360    
  23  norm          .10000E-03    70.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .66874        .27973        .29999E-03   -1.0514    
  25  Prefactor     1.5694        .32961        .25569E-03   -.75615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65146e-09
Minuit parameter uncertainties:
  1  9.35488e-05
  2  32.9882
  3  0.00161197
  4  4.34687e-05
  5  29.0615
  6  19.1315
  7  7.17825
  8  1.67701e-05
  9  2.05737e-06
  10  2.68593
  11  1.74009e-06
  12  99.5672
  13  9.70899e-06
  14  0.0399012
  15  2.25803e-05
  16  2.31649e-07
  17  1.24421e-05
  18  37.7971
  19  4.82861e-06
  20  7.96477
  21  0.000187342
  22  1.67298
  23  2.859e-06
  24  0.280329
  25  0.330061
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.677e-05  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.569e+00  3.301e-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:  6.687e-01  2.803e-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: 8.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/920738/likelihoodResults_433728001_433987201_4FGL_J1248.9+4840_daily_bin750.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) = 3892.15178015
delta logL = -0.000394365501506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3892.15138575
delta logL = 3.55144038622e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4339       1.0000          .0000       10.000    
     3 'Normalizat'    .66873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5694       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=   3892.151     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      229 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    119.06        .18142E-01** at limit **
   2  Index         1.8643        5.3106        .47550        .12555E-06
   3  Normalizat    .66874        .15367E-01    .29999E-03    .10137E-04
   4  Prefactor     1.5694        .19246E-01    .25569E-03    .17643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 1.86432
  Normalizat = 0.668736
  Prefactor  = 1.56938
 **********
 **   18 **HESSE 
 **********

 FCN=   3892.151     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      258 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1207.7        .23785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8643        5.7731        .50000       -.67787    
   3  Normalizat    .66874        .54948E-01    .12000E-04   -1.0514    
   4  Prefactor     1.5694        .68816E-01    .51137E-04   -.75615    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31108e-08
Minuit parameter uncertainties:
  1  0.00576391
  2  2351.22
  3  0.0549524
  4  0.0688206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920738': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3892.15138491
delta logL = 8.83427219378e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  5.764e-03  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  1.864e+00  2.351e+03  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.569e+00  6.882e-02  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:  6.687e-01  5.495e-02  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/920738/cmap_HighResolution_433728001_433987201_4FGL_J1248.9+4840_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.90e-03', job_status='DONE', photon_flux_upper_limit='8.90e-08', time_completed='2021-09-06 05:55:47.198727', job_id='920738', GAL2='1.57', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630932947.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.57', dlogl='8.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='750' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:55:47 PDT 2021


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

Job <4FGL_J1248.9+4840_daily_bin750> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:45:24 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:45:26 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:45:26 2021
Terminated at Mon Sep  6 05:55:47 2021
Results reported at Mon Sep  6 05:55:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin750 192.244 48.67 433728001 433987201 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 :                                   607.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            623 sec.

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

