/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 91 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 = 7399
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1248.9+4840_daily_bin155
RA = 192.244, Dec = 48.67
tmin = 279504001, tmax = 279763201
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='916407', job_status='RUN', time_executed='2021-09-06 05:32:56.481996', time_epoch_executed='1630931576.48' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916407/ft1_4FGL_J1248.9+4840_daily_bin155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916407/ft2_4FGL_J1248.9+4840_daily_bin155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916407/ft1_4FGL_J1248.9+4840_daily_bin155.fits outfile=/scratch/kocevski/916407/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin155.fits ra=192.244 dec=48.67 rad=12.0 tmin=279504001.0 tmax=279763201.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.69
user 3.32
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916407/ft1_filtered_4FGL_J1248.9+4840_daily_bin155.fits evtable="EVENTS" scfile=/scratch/kocevski/916407/ft2_4FGL_J1248.9+4840_daily_bin155.fits sctable="SC_DATA" expcube=/scratch/kocevski/916407/ltcube_279504001_279763201_4FGL_J1248.9+4840_daily_bin155.fits outfile=/scratch/kocevski/916407/expmap_279504001_279763201_4FGL_J1248.9+4840_daily_bin155.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/916407/ltcube_279504001_279763201_4FGL_J1248.9+4840_daily_bin155.fits
.....................!
real 190.74
user 184.91
sys 4.60

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/916407/ft1_filtered_4FGL_J1248.9+4840_daily_bin155.fits scfile=/scratch/kocevski/916407/ft2_4FGL_J1248.9+4840_daily_bin155.fits outfile=/scratch/kocevski/916407/cmap_279504001_279763201_4FGL_J1248.9+4840_daily_bin155.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916407/ft1_filtered_4FGL_J1248.9+4840_daily_bin155.fits scfile=/scratch/kocevski/916407/ft2_4FGL_J1248.9+4840_daily_bin155.fits outfile=/scratch/kocevski/916407/cmap_HighResolution_279504001_279763201_4FGL_J1248.9+4840_daily_bin155.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.169       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1077       1.0000         .10000E-03   10000.    
     4 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.3667       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.191       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3637       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    42.669       1.0000         .10000E-03   10000.    
    16 'norm      '    9.8912       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3730       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1946       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.462       1.0000         .10000E-03   10000.    
    20 'norm      '    .14632E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    99.161       1.0000         .10000E-03   10000.    
    22 'norm      '    1.1225       1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .66342       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.5543       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=   6557.329     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2841 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3788        .33544E-07** at limit **
   2  Prefactor     15.172        18.386       -.15914E-06   -.24497E-05
   3  norm          4.1083        2.4567       -.33205E-07   -.28982E-04
   4  norm          .10000E-03    2.0520        .25487E-07** at limit **
   5  Prefactor     .10000E-03    4.8066        .78627E-08** at limit **
   6  Prefactor     .10000E-03    2.2064        .24465E-07** at limit **
   7  norm          4.3669        2.3498        .15689E-07   -.51128E-04
   8  Prefactor     11.191        17.297       -.51044E-07   -.34159E-05
   9  Prefactor     .10000E-03    5.5438       -.68041E-08** at limit **
  10  norm          2.3637        1.9660        .16584E-07   -.40929E-04
  11  Prefactor     .10000E-03    2.9219        .16694E-07** at limit **
  12  Prefactor     .10000E-03    26.397        .21361E-07** at limit **
  13  Prefactor     .10000E-03    5.0356        .82178E-07** at limit **
  14  Prefactor     .10000E-03    10.954        .32159E-07** at limit **
  15  norm          42.666        21.688       -.37290E-07   -.63065E-05
  16  norm          9.8905        4.4954        .73756E-07    .35874E-05
  17  Prefactor     6.4002        62.543       -.49611E-05    .22456E-04
  18  Prefactor     7.1691        17.112        .23438E-05    .62821E-04
  19  Prefactor     43.419        49.475        .25754E-05   -.17064E-04
  20  norm          .10000E-03    3.8335       -.77087E-06** at limit **
  21  Prefactor     99.140        64.217       -.12896E-06    .20492E-05
  22  norm          1.1229        .98595       -.11635E-06    .61262E-04
  23  norm          .10000E-03    51.111       -.18118E-07** at limit **
  24  Normalizat    .66305        .17739        .15593E-05   -.17898E-04
  25  Prefactor     1.5547        .21548       -.82541E-06    .13604E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.1718
  norm       = 4.10832
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.36686
  Prefactor  = 11.1909
  Prefactor  = 0.0001
  norm       = 2.36369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 42.6658
  norm       = 9.89054
  Prefactor  = 6.40016
  Prefactor  = 7.16913
  Prefactor  = 43.4189
  norm       = 0.000100001
  Prefactor  = 99.1403
  norm       = 1.12291
  norm       = 0.0001
  Normalizat = 0.663052
  Prefactor  = 1.55465
 **********
 **   18 **HESSE 
 **********

 FCN=   6557.329     FROM HESSE     STATUS=OK           427 CALLS     3268 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3873        .92706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.172        18.375        .10284E-03   -1.4929    
   3  norm          4.1083        2.4584        .92610E-04   -1.5303    
   4  norm          .10000E-03    2.0561        .11327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8074        .17336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2138        .11739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3669        2.3476        .87945E-04   -1.5290    
   8  Prefactor     11.191        17.296        .11976E-03   -1.5039    
   9  Prefactor     .10000E-03    5.5417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3637        1.9624        .10011E-03   -1.5400    
  11  Prefactor     .10000E-03    2.9233        .13518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0596        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          42.666        21.696        .61371E-04   -1.4401    
  16  norm          9.8905        4.4909        .11098E-03   -1.5079    
  17  Prefactor     6.4002        58.639        .15899E-03   -1.5202    
  18  Prefactor     7.1691        17.076        .14954E-03   -1.5172    
  19  Prefactor     43.419        48.568        .60811E-04   -1.4389    
  20  norm          .10000E-03    9.3561        .29763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     99.140        64.110        .40370E-04   -1.3713    
  22  norm          1.1229        .99464        .72420E-04   -1.5496    
  23  norm          .10000E-03    51.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .66305        .20272        .29051E-03   -1.0537    
  25  Prefactor     1.5547        .25068        .25536E-03   -.76020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12991e-10
Minuit parameter uncertainties:
  1  1.69931e-06
  2  18.3814
  3  2.45849
  4  1.71217e-06
  5  5.03296e-06
  6  2.70306e-06
  7  2.34761
  8  17.3033
  9  4.12312e-06
  10  1.96246
  11  9.39063e-07
  12  6.18911e-06
  13  2.02324e-06
  14  9.44274e-06
  15  21.6998
  16  4.49106
  17  38.7953
  18  17.088
  19  48.6126
  20  0.000235279
  21  64.1552
  22  0.994657
  23  3.28938e-06
  24  0.202946
  25  0.250876
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.119e+01  1.730e+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.555e+00  2.509e-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.631e-01  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/916407/likelihoodResults_279504001_279763201_4FGL_J1248.9+4840_daily_bin155.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) = 6557.1917663
delta logL = 0.137413651795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6557.18659744
delta logL = 0.142582510639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.650       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0576       1.0000          .0000       10.000    
     3 'Normalizat'    .66793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5480       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=   6557.187     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      298 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.651        23.899        .95333E-04   -.28819E-03
   2  Index         2.0576        .66883        .98208E-02   -.14046E-03
   3  Normalizat    .66806        .19235        .28946E-03    .81498E-04
   4  Prefactor     1.5479        .24871        .25576E-03    .12071E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6513
  Index      = 2.05757
  Normalizat = 0.668055
  Prefactor  = 1.54786
 **********
 **   18 **HESSE 
 **********

 FCN=   6557.187     FROM HESSE     STATUS=OK            23 CALLS      321 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.651        23.648        .19067E-04   -1.4867    
   2  Index         2.0576        .66198        .39283E-03   -.62918    
   3  Normalizat    .66806        .19248        .11578E-04   -1.0517    
   4  Prefactor     1.5479        .24888        .51153E-04   -.76208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13823e-10
Minuit parameter uncertainties:
  1  23.6603
  2  0.664979
  3  0.192676
  4  0.249081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916407': 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) = 6557.1865972
delta logL = 0.142582750964

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.765e+01  2.366e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.058e+00  6.650e-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.548e+00  2.491e-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.681e-01  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/916407/cmap_HighResolution_279504001_279763201_4FGL_J1248.9+4840_daily_bin155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-03', job_status='DONE', photon_flux_upper_limit='8.25e-08', time_completed='2021-09-06 05:46:14.897748', job_id='916407', GAL2='1.55', fit_tolerance='1e-08', EG2='0.67', EG='0.66', time_epoch_completed='1630932374.9', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='1.55', dlogl='1.43e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='155' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:46:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 916407: <4FGL_J1248.9+4840_daily_bin155> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin155 192.244 48.67 279504001 279763201 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 :                                   794.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

