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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin662
RA = 192.244, Dec = 48.67
tmin = 410918401, tmax = 411177601
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='919446', job_status='RUN', time_executed='2021-09-06 05:44:54.969495', time_epoch_executed='1630932294.97' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919446

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919446/ft1_4FGL_J1248.9+4840_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919446/ft2_4FGL_J1248.9+4840_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919446/ft1_4FGL_J1248.9+4840_daily_bin662.fits outfile=/scratch/kocevski/919446/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin662.fits ra=192.244 dec=48.67 rad=12.0 tmin=410918401.0 tmax=411177601.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 7.02
user 6.73
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919446/ft1_filtered_4FGL_J1248.9+4840_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/919446/ft2_4FGL_J1248.9+4840_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/919446/ltcube_410918401_411177601_4FGL_J1248.9+4840_daily_bin662.fits outfile=/scratch/kocevski/919446/expmap_410918401_411177601_4FGL_J1248.9+4840_daily_bin662.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/919446/ltcube_410918401_411177601_4FGL_J1248.9+4840_daily_bin662.fits
.....................!
real 191.16
user 185.85
sys 4.96

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/919446/ft1_filtered_4FGL_J1248.9+4840_daily_bin662.fits scfile=/scratch/kocevski/919446/ft2_4FGL_J1248.9+4840_daily_bin662.fits outfile=/scratch/kocevski/919446/cmap_HighResolution_410918401_411177601_4FGL_J1248.9+4840_daily_bin662.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.244 yref=48.67 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.950       1.0000         .10000E-03   10000.    
     3 'norm      '    .46411       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.5903       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.551       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3511       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25826E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.164       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .53412       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .96964       1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10695E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12753E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.819       1.0000         .10000E-03   10000.    
    20 'norm      '    9.8213       1.0000         .10000E-03   10000.    
    21 'Prefactor '    97.154       1.0000         .10000E-03   10000.    
    22 'norm      '    14.250       1.0000         .10000E-03   10000.    
    23 'norm      '    6.1853       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1813       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75920       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=   4815.761     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2962 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3791        .31941E-08** at limit **
   2  Prefactor     65.945        41.020        .29262E-06    .42752E-05
   3  norm          .46397        2.3089       -.11248E-05   -.30205E-04
   4  norm          .10000E-03    6.6077        .42683E-07** at limit **
   5  Prefactor     .10000E-03    17.333        .10747E-06** at limit **
   6  Prefactor     .10000E-03    3.6027        .10509E-06** at limit **
   7  norm          3.5830        4.8246       -.70468E-06   -.39425E-03
   8  Prefactor     .10000E-03    7.0853       -.61227E-07** at limit **
   9  Prefactor     23.565        21.906        .65420E-06    .60359E-04
  10  norm          3.3510        2.7321       -.83192E-08   -.10706E-03
  11  Prefactor     .10000E-03    17.379        .52602E-05** at limit **
  12  Prefactor     44.133        77.553        .27300E-05    .17288E-04
  13  Prefactor     .61393        21.105        .23329E-05   -.82240E-04
  14  Prefactor     .98375        18.280        .36950E-05   -.29246E-03
  15  norm          .10000E-03    9.1409        .26621E-06** at limit **
  16  norm          .10000E-03    1.6791       -.35767E-07** at limit **
  17  Prefactor     .10000E-03    38.427       -.77195E-06** at limit **
  18  Prefactor     .10000E-03    163.63        .54475E-05** at limit **
  19  Prefactor     37.833        46.694       -.98553E-06   -.79405E-04
  20  norm          9.8210        7.1084       -.36186E-06   -.43216E-03
  21  Prefactor     97.104        101.99        .18478E-05   -.21801E-04
  22  norm          14.250        2.6606        .33699E-07   -.21397E-03
  23  norm          6.1630        248.93        .59074E-05    .11491E-04
  24  Normalizat    1.1809        .22635       -.13329E-06   -.14283E-03
  25  Prefactor     .75971        .24984       -.59934E-06   -.21213E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 65.9451
  norm       = 0.46397
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.58295
  Prefactor  = 0.0001
  Prefactor  = 23.5652
  norm       = 3.35096
  Prefactor  = 0.000100001
  Prefactor  = 44.1334
  Prefactor  = 0.613926
  Prefactor  = 0.983752
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.8327
  norm       = 9.82098
  Prefactor  = 97.1037
  norm       = 14.25
  norm       = 6.16297
  Normalizat = 1.18089
  Prefactor  = 0.759709
 **********
 **   18 **HESSE 
 **********

 FCN=   4815.761     FROM HESSE     STATUS=OK           427 CALLS     3389 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3863        .10444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     65.945        41.063        .49420E-04   -1.4082    
   3  norm          .46397        2.2628        .20713E-03   -1.5572    
   4  norm          .10000E-03    6.6389        .17420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.6058        .12865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.5830        5.2869        .15220E-03   -1.5329    
   8  Prefactor     .10000E-03    7.0883        .18042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.565        21.507        .82540E-04   -1.4737    
  10  norm          3.3510        2.7357        .99973E-04   -1.5342    
  11  Prefactor     .10000E-03    18.412        .34502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.133        78.127        .60328E-04   -1.4378    
  13  Prefactor     .61393        219.55        .51652E-02   -1.5551    
  14  Prefactor     .98375        58.828        .45665E-02   -1.5510    
  15  norm          .10000E-03    9.1857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6889        .87783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    168.49        .41188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.833        46.931        .65173E-04   -1.4477    
  20  norm          9.8210        7.1083        .12787E-03   -1.5081    
  21  Prefactor     97.104        102.41        .20390E-03   -1.3734    
  22  norm          14.250        2.6662        .45716E-04   -1.4953    
  23  norm          6.1630        252.39        .16142E-03   -1.5211    
  24  Normalizat    1.1809        .27106        .24350E-03   -.87195    
  25  Prefactor     .75971        .29556        .34350E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16479e-09
Minuit parameter uncertainties:
  1  1.51521e-06
  2  41.0804
  3  2.04918
  4  1.41508e-05
  5  2.94825e-05
  6  7.26808e-06
  7  5.28761
  8  3.21917e-06
  9  21.5139
  10  2.73579
  11  0.000296972
  12  78.3094
  13  23.3041
  14  15.2297
  15  1.71559e-05
  16  2.24183e-06
  17  0.000103125
  18  0.000171056
  19  46.9764
  20  7.1089
  21  102.593
  22  2.66619
  23  79.2385
  24  0.271386
  25  0.296172
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  3.219e-06  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:  7.597e-01  2.962e-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.181e+00  2.714e-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: 5.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919446/likelihoodResults_410918401_411177601_4FGL_J1248.9+4840_daily_bin662.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) = 4815.76206105
delta logL = -0.000657320366372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4815.76140368
delta logL = 4.98057488585e-08

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.4316       1.0000          .0000       10.000    
     3 'Normalizat'    1.1810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75962       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=   4815.761     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      260 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.915        .18142E-01** at limit **
   2  Index         1.8722        5.5693        .50000        .29881E-06
   3  Normalizat    1.1809        .96603E-02    .24350E-03    .39542E-03
   4  Prefactor     .75971        .11219E-01    .34351E-03    .26384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87218
  Normalizat = 1.18089
  Prefactor  = 0.759713
 **********
 **   18 **HESSE 
 **********

 FCN=   4815.761     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      289 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    302.59        .20513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8722        5.9173        .50000       -.67585    
   3  Normalizat    1.1809        .30873E-01    .48699E-04   -.87195    
   4  Prefactor     .75971        .35854E-01    .13740E-04   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.845e-09
Minuit parameter uncertainties:
  1  0.000353117
  2  1057.89
  3  0.0308736
  4  0.035855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919446': 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) = 4815.76140213
delta logL = 1.59709452419e-06

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  3.531e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  1.872e+00  1.058e+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:  7.597e-01  3.586e-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:  1.181e+00  3.087e-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/919446/cmap_HighResolution_410918401_411177601_4FGL_J1248.9+4840_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-03', job_status='DONE', photon_flux_upper_limit='5.85e-08', time_completed='2021-09-06 05:56:17.806280', job_id='919446', GAL2='0.76', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630932977.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='662' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:56:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 919446: <4FGL_J1248.9+4840_daily_bin662> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin662> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 05:40:45 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:40:46 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:40:46 2021
Terminated at Mon Sep  6 05:56:18 2021
Results reported at Mon Sep  6 05:56:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin662 192.244 48.67 410918401 411177601 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 :                                   680.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

