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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin706
RA = 192.244, Dec = 48.67
tmin = 422323201, tmax = 422582401
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='920676', job_status='RUN', time_executed='2021-09-06 05:45:45.088223', time_epoch_executed='1630932345.09' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='706'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920676

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920676/ft1_4FGL_J1248.9+4840_daily_bin706.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920676/ft2_4FGL_J1248.9+4840_daily_bin706.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920676/ft1_4FGL_J1248.9+4840_daily_bin706.fits outfile=/scratch/kocevski/920676/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin706.fits ra=192.244 dec=48.67 rad=12.0 tmin=422323201.0 tmax=422582401.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.52
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/920676/ft1_filtered_4FGL_J1248.9+4840_daily_bin706.fits" evtable="EVENTS" scfile=/scratch/kocevski/920676/ft2_4FGL_J1248.9+4840_daily_bin706.fits sctable="SC_DATA" outfile=/scratch/kocevski/920676/ltcube_422323201_422582401_4FGL_J1248.9+4840_daily_bin706.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/920676/ft2_4FGL_J1248.9+4840_daily_bin706.fits
.....................!
real 12.09
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920676/ft1_filtered_4FGL_J1248.9+4840_daily_bin706.fits evtable="EVENTS" scfile=/scratch/kocevski/920676/ft2_4FGL_J1248.9+4840_daily_bin706.fits sctable="SC_DATA" expcube=/scratch/kocevski/920676/ltcube_422323201_422582401_4FGL_J1248.9+4840_daily_bin706.fits outfile=/scratch/kocevski/920676/expmap_422323201_422582401_4FGL_J1248.9+4840_daily_bin706.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/920676/ltcube_422323201_422582401_4FGL_J1248.9+4840_daily_bin706.fits
.....................!
real 192.27
user 187.39
sys 4.36

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/920676/ft1_filtered_4FGL_J1248.9+4840_daily_bin706.fits scfile=/scratch/kocevski/920676/ft2_4FGL_J1248.9+4840_daily_bin706.fits outfile=/scratch/kocevski/920676/cmap_422323201_422582401_4FGL_J1248.9+4840_daily_bin706.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.57
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2114       1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.710       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.8328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.788       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4574       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14979E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0703       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.376       1.0000         .10000E-03   10000.    
    15 'norm      '    14.707       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.194       1.0000         .10000E-03   10000.    
    22 'norm      '    3.5608       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0520       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0389       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6181.506     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2889 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0144         .0000    ** at limit **
   2  Prefactor     .10002E-03    17.660         .0000    ** at limit **
   3  norm          3.2115        1.9746         .0000        .18603E-03
   4  norm          .10000E-03    2.8277         .0000    ** at limit **
   5  Prefactor     25.710        24.393         .0000        .30770E-03
   6  Prefactor     .10000E-03    3.8081         .0000    ** at limit **
   7  norm          5.8329        2.5529         .0000       -.24193E-03
   8  Prefactor     .10001E-03    26.644         .0000    ** at limit **
   9  Prefactor     14.785        25.412         .0000        .69076E-03
  10  norm          1.4573        1.7904         .0000        .39496E-03
  11  Prefactor     .10000E-03    19.321         .0000    ** at limit **
  12  Prefactor     .10000E-03    43.083         .0000    ** at limit **
  13  Prefactor     1.0709        18.066         .0000        .17715E-01
  14  Prefactor     17.375        22.757         .0000        .16605E-03
  15  norm          14.707        14.149         .0000        .20944E-04
  16  norm          .10001E-03    2.0797         .0000    ** at limit **
  17  Prefactor     .10000E-03    15.336         .0000    ** at limit **
  18  Prefactor     .10000E-03    6.8139         .0000    ** at limit **
  19  Prefactor     .10005E-03    22.260         .0000    ** at limit **
  20  norm          .10000E-03    1.5719         .0000    ** at limit **
  21  Prefactor     19.193        42.057         .0000        .11799E-02
  22  norm          3.5609        1.6912         .0000        .19659E-03
  23  norm          .10000E-03    43.121         .0000    ** at limit **
  24  Normalizat    1.0519        .16848         .0000       -.11270E-05
  25  Prefactor     1.0391        .20060         .0000        .29123E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  norm       = 3.21147
  norm       = 0.0001
  Prefactor  = 25.7097
  Prefactor  = 0.0001
  norm       = 5.83289
  Prefactor  = 0.000100009
  Prefactor  = 14.7847
  norm       = 1.45731
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 1.07093
  Prefactor  = 17.3748
  norm       = 14.7069
  norm       = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100052
  norm       = 0.0001
  Prefactor  = 19.1926
  norm       = 3.56089
  norm       = 0.000100002
  Normalizat = 1.05188
  Prefactor  = 1.0391
 **********
 **   18 **HESSE 
 **********

 FCN=   6181.506     FROM HESSE     STATUS=OK           421 CALLS     3310 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0332        .77310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    18.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2115        1.9727        .83128E-04   -1.5350    
   4  norm          .10000E-03    2.8340        .12898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.710        24.428        .79004E-04   -1.4693    
   6  Prefactor     .10000E-03    3.8551        .14966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.8329        2.5369        .78600E-04   -1.5225    
   8  Prefactor     .10001E-03    26.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.785        25.298        .10415E-03   -1.4939    
  10  norm          1.4573        1.7709        .11266E-03   -1.5467    
  11  Prefactor     .10000E-03    19.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0709        18.354        .23478E-02   -1.5501    
  14  Prefactor     17.375        22.744        .96083E-04   -1.4874    
  15  norm          14.707        14.151        .10444E-03   -1.4941    
  16  norm          .10001E-03    26.263        .21802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.8356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    22.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.5852        .96233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.193        42.125        .91420E-04   -1.4831    
  22  norm          3.5609        1.6905        .67701E-04   -1.5331    
  23  norm          .10000E-03    43.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0519        .19925        .22637E-03   -.91312    
  25  Prefactor     1.0391        .23748        .28131E-03   -.91437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10337e-08
Minuit parameter uncertainties:
  1  7.75726e-06
  2  0.00133814
  3  1.97269
  4  4.72118e-06
  5  24.4373
  6  9.527e-06
  7  2.53691
  8  0.00100744
  9  25.3161
  10  1.77101
  11  0.000460137
  12  0.000557707
  13  8.86982
  14  22.7549
  15  14.1546
  16  0.000970368
  17  0.000185794
  18  3.37252e-06
  19  0.00215637
  20  4.16251e-06
  21  42.1905
  22  1.6905
  23  0.000512268
  24  0.199391
  25  0.237716
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.007e-03  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.039e+00  2.377e-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.052e+00  1.994e-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.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/920676/likelihoodResults_422323201_422582401_4FGL_J1248.9+4840_daily_bin706.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) = 6181.50639906
delta logL = -0.000177725780304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6181.50622163
delta logL = -3.01433829009e-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.3687       1.0000          .0000       10.000    
     3 'Normalizat'    1.0519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0391       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=   6181.506     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      276 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6864.7        .18142E-02** at limit **
   2  Index         2.4077        6.0668        .50000       -.15224E-04
   3  Normalizat    1.0519        .75257E-01    .22637E-03   -.42940E-04
   4  Prefactor     1.0391        .93317E-01    .28131E-03   -.18562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.40766
  Normalizat = 1.05188
  Prefactor  = 1.0391
 **********
 **   18 **HESSE 
 **********

 FCN=   6181.506     FROM HESSE     STATUS=OK            29 CALLS      305 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    28.583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4077        6.2002        .50000       -.54506    
   3  Normalizat    1.0519        .18993        .90548E-05   -.91312    
   4  Prefactor     1.0391        .23556        .11253E-04   -.91437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81742e-10
Minuit parameter uncertainties:
  1  0.000814848
  2  4.61535
  3  0.190054
  4  0.235794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920676': 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) = 6181.50622149
delta logL = -1.53364453581e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  8.148e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.408e+00  4.615e+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.039e+00  2.358e-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.052e+00  1.901e-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/920676/cmap_HighResolution_422323201_422582401_4FGL_J1248.9+4840_daily_bin706.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='7.93e-08', time_completed='2021-09-06 05:58:44.092944', job_id='920676', GAL2='1.04', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630933124.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-1.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='706' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:58:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 920676: <4FGL_J1248.9+4840_daily_bin706> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin706 192.244 48.67 422323201 422582401 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 :                                   776.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            804 sec.

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

