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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin260
RA = 192.244, Dec = 48.67
tmin = 306720001, tmax = 306979201
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='917721', job_status='RUN', time_executed='2021-09-06 05:36:05.595833', time_epoch_executed='1630931765.6' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917721/ft1_4FGL_J1248.9+4840_daily_bin260.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917721/ft2_4FGL_J1248.9+4840_daily_bin260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917721/ft1_4FGL_J1248.9+4840_daily_bin260.fits outfile=/scratch/kocevski/917721/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin260.fits ra=192.244 dec=48.67 rad=12.0 tmin=306720001.0 tmax=306979201.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 4.90
user 4.69
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917721/ft1_filtered_4FGL_J1248.9+4840_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/917721/ft2_4FGL_J1248.9+4840_daily_bin260.fits sctable="SC_DATA" expcube=/scratch/kocevski/917721/ltcube_306720001_306979201_4FGL_J1248.9+4840_daily_bin260.fits outfile=/scratch/kocevski/917721/expmap_306720001_306979201_4FGL_J1248.9+4840_daily_bin260.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/917721/ltcube_306720001_306979201_4FGL_J1248.9+4840_daily_bin260.fits
.....................!
real 190.81
user 186.10
sys 4.35

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/917721/ft1_filtered_4FGL_J1248.9+4840_daily_bin260.fits scfile=/scratch/kocevski/917721/ft2_4FGL_J1248.9+4840_daily_bin260.fits outfile=/scratch/kocevski/917721/cmap_306720001_306979201_4FGL_J1248.9+4840_daily_bin260.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.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4802       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7587       1.0000         .10000E-03   10000.    
     3 'norm      '    10.112       1.0000         .10000E-03   10000.    
     4 'norm      '    6.5309       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9429       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7721       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.292       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .14562E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42156E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5180       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    60.817       1.0000         .10000E-03   10000.    
    16 'norm      '    8.2979       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3113       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .15923E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.5427       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95824       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96377       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=   5656.543     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2922 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4800        5.1036        .42290E-07   -.27887E-03
   2  Prefactor     9.7564        25.702       -.59456E-06   -.27572E-04
   3  norm          10.112        3.2342        .32177E-07   -.16945E-03
   4  norm          6.5315        9.0159       -.76071E-06   -.29382E-03
   5  Prefactor     .10000E-03    34.624        .13258E-04** at limit **
   6  Prefactor     6.9431        5.3419       -.67288E-06    .46555E-04
   7  norm          3.7721        2.0160        .10043E-06    .52827E-04
   8  Prefactor     25.284        24.068        .84452E-06   -.98762E-04
   9  Prefactor     .10000E-03    13.209        .24354E-05** at limit **
  10  norm          .10000E-03    1.2371        .74406E-07** at limit **
  11  Prefactor     .10000E-03    5.6121       -.50916E-07** at limit **
  12  Prefactor     .10001E-03    258.73       -.52748E-04** at limit **
  13  Prefactor     6.5182        7.1967       -.19100E-06   -.10613E-03
  14  Prefactor     .10000E-03    15.438       -.61771E-05** at limit **
  15  norm          60.746        29.174        .58904E-05   -.17126E-03
  16  norm          8.2966        6.0710        .15816E-05   -.70261E-03
  17  Prefactor     .10000E-03    11.374       -.91255E-06** at limit **
  18  Prefactor     9.3652        18.335       -.12163E-04   -.45530E-03
  19  Prefactor     .10000E-03    9.7780        .10504E-06** at limit **
  20  norm          .10001E-03    2.5744        .26142E-05** at limit **
  21  Prefactor     .10000E-03    16.379        .37955E-05** at limit **
  22  norm          3.5427        1.6781       -.90919E-08   -.27307E-03
  23  norm          .10001E-03    39.020       -.18335E-04** at limit **
  24  Normalizat    .95834        .18441        .10232E-05   -.44642E-03
  25  Prefactor     .96361        .21944       -.15175E-05   -.24519E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.48004
  Prefactor  = 9.7564
  norm       = 10.1119
  norm       = 6.53146
  Prefactor  = 0.000100003
  Prefactor  = 6.94313
  norm       = 3.77213
  Prefactor  = 25.2843
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 6.51815
  Prefactor  = 0.000100001
  norm       = 60.746
  norm       = 8.29657
  Prefactor  = 0.0001
  Prefactor  = 9.36516
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 3.54269
  norm       = 0.000100005
  Normalizat = 0.958341
  Prefactor  = 0.963615
 **********
 **   18 **HESSE 
 **********

 FCN=   5656.543     FROM HESSE     STATUS=OK           429 CALLS     3351 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4800        5.0830        .12204E-03   -1.5199    
   2  Prefactor     9.7564        25.612        .12828E-03   -1.5083    
   3  norm          10.112        3.2432        .72342E-04   -1.5072    
   4  norm          6.5315        9.0073        .15704E-03   -1.5197    
   5  Prefactor     .10000E-03    34.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.9431        5.3424        .14483E-03   -1.5181    
   7  norm          3.7721        2.0187        .74545E-04   -1.5320    
   8  Prefactor     25.284        24.086        .79654E-04   -1.4702    
   9  Prefactor     .10000E-03    13.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.7125        .16238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6235        .17400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    260.21        .19428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5182        7.1920        .15719E-03   -1.5197    
  14  Prefactor     .10000E-03    15.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          60.746        29.171        .51450E-04   -1.4148    
  16  norm          8.2966        6.0447        .13917E-03   -1.5132    
  17  Prefactor     .10000E-03    11.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.3652        17.850        .13134E-03   -1.5096    
  19  Prefactor     .10000E-03    9.7831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    13.285        .21693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.5427        1.6769        .64695E-04   -1.5332    
  23  norm          .10001E-03    38.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95834        .22000        .24157E-03   -.94439    
  25  Prefactor     .96361        .26028        .29607E-03   -.93952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00229e-09
Minuit parameter uncertainties:
  1  5.08333
  2  25.6409
  3  3.24325
  4  9.00912
  5  0.000624277
  6  5.34277
  7  2.01877
  8  24.0955
  9  7.30808e-05
  10  7.82496e-06
  11  2.70607e-06
  12  0.00384771
  13  7.19293
  14  0.000180523
  15  29.1777
  16  6.04511
  17  1.12651e-05
  18  17.8605
  19  4.34379e-06
  20  0.000664347
  21  8.09027e-05
  22  1.6769
  23  0.000908732
  24  0.220211
  25  0.260615
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.528e+01  2.410e+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:  9.636e-01  2.606e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  9.583e-01  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 192.244 48.670
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.87e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.13e-05

TS (Fixed Index): 1.67
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917721/likelihoodResults_306720001_306979201_4FGL_J1248.9+4840_daily_bin260.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) = 5656.5401857
delta logL = 0.00315731790124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5656.53872076
delta logL = 0.00462226143827

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.779       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3831       1.0000          .0000       10.000    
     3 'Normalizat'    .96089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96125       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=   5656.539     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.779        30.256        .77414E-04   -.84882E-04
   2  Index         2.3831        .71071        .84322E-02    .24914E-03
   3  Normalizat    .96080        .21173        .24130E-03   -.19430E-03
   4  Prefactor     .96136        .25886        .29637E-03    .22172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.7795
  Index      = 2.38314
  Normalizat = 0.960796
  Prefactor  = 0.961365
 **********
 **   18 **HESSE 
 **********

 FCN=   5656.539     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.779        29.392        .30966E-05   -1.4673    
   2  Index         2.3831        .69028        .16864E-02   -.55080    
   3  Normalizat    .96080        .21187        .96519E-05   -.94356    
   4  Prefactor     .96136        .25902        .11855E-04   -.94029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53405e-10
Minuit parameter uncertainties:
  1  29.4082
  2  0.693333
  3  0.212056
  4  0.25935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917721': 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) = 5656.53872066
delta logL = 0.00462235995838

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.678e+01  2.941e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.383e+00  6.933e-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:  9.614e-01  2.593e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  9.608e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 192.244 48.670
Photon Index (Free Index): 2.38 +/- 0.69
Photon Flux (Free Index): 3.71e-08 +/- 3.93e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.32e-05

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/917721/cmap_HighResolution_306720001_306979201_4FGL_J1248.9+4840_daily_bin260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', comment='SUCCESS', photon_flux='3.87e-08', energy_flux2='1.24e-05', photon_flux_error='3.69e-08', dlogl='4.62e-03', energy_flux='1.19e-05', photon_flux2='3.71e-08', job_status='DONE', time_completed='2021-09-06 05:48:39.246800', photon_index_error2='0.69', photon_index2='2.38', ts='1.67', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.32e-05', EG='0.96', time_epoch_completed='1630932519.25', return_code='0', job_id='917721', GAL2='0.96', EG2='0.96', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='3.93e-08', ts2='1.66', photon_index='2.45' WHERE bin_id='260' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:48:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 917721: <4FGL_J1248.9+4840_daily_bin260> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin260> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 05:35:30 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:35:33 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:35:33 2021
Terminated at Mon Sep  6 05:48:40 2021
Results reported at Mon Sep  6 05:48:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin260 192.244 48.67 306720001 306979201 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 :                                   744.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            790 sec.

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

