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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin273
RA = 192.244, Dec = 48.67
tmin = 310089601, tmax = 310348801
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='917741', job_status='RUN', time_executed='2021-09-06 05:36:54.433073', time_epoch_executed='1630931814.43' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917741/ft1_4FGL_J1248.9+4840_daily_bin273.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917741/ft2_4FGL_J1248.9+4840_daily_bin273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917741/ft1_4FGL_J1248.9+4840_daily_bin273.fits outfile=/scratch/kocevski/917741/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin273.fits ra=192.244 dec=48.67 rad=12.0 tmin=310089601.0 tmax=310348801.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.57
user 3.15
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917741/ft1_filtered_4FGL_J1248.9+4840_daily_bin273.fits evtable="EVENTS" scfile=/scratch/kocevski/917741/ft2_4FGL_J1248.9+4840_daily_bin273.fits sctable="SC_DATA" expcube=/scratch/kocevski/917741/ltcube_310089601_310348801_4FGL_J1248.9+4840_daily_bin273.fits outfile=/scratch/kocevski/917741/expmap_310089601_310348801_4FGL_J1248.9+4840_daily_bin273.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/917741/ltcube_310089601_310348801_4FGL_J1248.9+4840_daily_bin273.fits
.....................!
real 193.19
user 187.08
sys 5.42

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/917741/ft1_filtered_4FGL_J1248.9+4840_daily_bin273.fits scfile=/scratch/kocevski/917741/ft2_4FGL_J1248.9+4840_daily_bin273.fits outfile=/scratch/kocevski/917741/cmap_310089601_310348801_4FGL_J1248.9+4840_daily_bin273.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917741/ft1_filtered_4FGL_J1248.9+4840_daily_bin273.fits scfile=/scratch/kocevski/917741/ft2_4FGL_J1248.9+4840_daily_bin273.fits outfile=/scratch/kocevski/917741/cmap_HighResolution_310089601_310348801_4FGL_J1248.9+4840_daily_bin273.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75590       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.172       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6435       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2958       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11941E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .93996E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.596       1.0000         .10000E-03   10000.    
    10 'norm      '    5.0565       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.069       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2842       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11948E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.171       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    65.154       1.0000         .10000E-03   10000.    
    22 'norm      '    4.2252       1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0567       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99632       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=   6608.795     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2903 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75575        3.3846       -.12168E-05   -.25071E-03
   2  Prefactor     14.201        18.592        .28999E-05    .13611E-03
   3  norm          2.6450        1.9575        .50132E-07    .17362E-04
   4  norm          .10000E-03    1.4115        .99103E-07** at limit **
   5  Prefactor     2.2959        8.3153        .42839E-05    .12107E-03
   6  Prefactor     .10000E-03    3.2478        .24001E-06** at limit **
   7  norm          .10000E-03    .55233        .14134E-07** at limit **
   8  Prefactor     .10457E-03    12.755        .27536E-05** at limit **
   9  Prefactor     26.597        22.697        .12850E-06   -.25693E-05
  10  norm          5.0564        2.3794       -.41838E-09   -.18639E-03
  11  Prefactor     14.069        11.636        .26521E-07   -.97001E-05
  12  Prefactor     .10000E-03    20.801       -.37648E-06** at limit **
  13  Prefactor     2.2896        12.760       -.18385E-06   -.35209E-04
  14  Prefactor     .10000E-03    15.330        .18155E-06** at limit **
  15  norm          .10000E-03    7.8927        .11887E-06** at limit **
  16  norm          .10000E-03    1.2283        .24835E-07** at limit **
  17  Prefactor     36.164        27.022       -.18390E-06   -.34043E-04
  18  Prefactor     .10000E-03    30.100       -.17597E-06** at limit **
  19  Prefactor     .10000E-03    8.5969       -.23897E-07** at limit **
  20  norm          .10000E-03    1.7009       -.10104E-06** at limit **
  21  Prefactor     65.055        51.286        .49614E-05   -.36452E-05
  22  norm          4.2256        1.5314        .18007E-07   -.48798E-04
  23  norm          .10000E-03    32.146       -.56732E-06** at limit **
  24  Normalizat    1.0562        .16293        .47114E-06   -.15739E-03
  25  Prefactor     .99687        .19610       -.15640E-05   -.11959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.755749
  Prefactor  = 14.2007
  norm       = 2.64498
  norm       = 0.0001
  Prefactor  = 2.29593
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000104571
  Prefactor  = 26.5973
  norm       = 5.05635
  Prefactor  = 14.0693
  Prefactor  = 0.0001
  Prefactor  = 2.28961
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 36.1641
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 65.0553
  norm       = 4.22563
  norm       = 0.0001
  Normalizat = 1.05623
  Prefactor  = 0.996871
 **********
 **   18 **HESSE 
 **********

 FCN=   6608.795     FROM HESSE     STATUS=OK           435 CALLS     3338 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75575        3.1876        .24425E-03   -1.5534    
   2  Prefactor     14.201        18.086        .10639E-03   -1.4954    
   3  norm          2.6450        1.9557        .93332E-04   -1.5383    
   4  norm          .10000E-03    1.4164        .94322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2959        8.3363        .13544E-02   -1.5405    
   6  Prefactor     .10000E-03    7.4707        .27723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .55447        .58928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10457E-03    14.181        .83375E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.597        22.691        .77680E-04   -1.4676    
  10  norm          5.0564        2.3783        .83100E-04   -1.5258    
  11  Prefactor     14.069        11.633        .10679E-03   -1.4958    
  12  Prefactor     .10000E-03    20.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2896        12.255        .27164E-03   -1.5405    
  14  Prefactor     .10000E-03    15.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.9197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2336        .87958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.164        27.036        .66636E-04   -1.4505    
  18  Prefactor     .10000E-03    30.764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7159        .10350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     65.055        50.659        .24859E-03   -1.4093    
  22  norm          4.2256        1.5305        .58606E-04   -1.5297    
  23  norm          .10000E-03    32.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0562        .18795        .22113E-03   -.91170    
  25  Prefactor     .99687        .22529        .28439E-03   -.92834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56679e-09
Minuit parameter uncertainties:
  1  3.10429
  2  18.0927
  3  1.95576
  4  3.91301e-08
  5  8.34049
  6  4.71707e-05
  7  7.30427e-08
  8  0.0161058
  9  22.6986
  10  2.37834
  11  11.6344
  12  4.71158e-06
  13  10.5972
  14  5.08039e-06
  15  5.38896e-06
  16  9.94616e-08
  17  27.0453
  18  0.000266977
  19  1.31016e-06
  20  5.05678e-06
  21  50.6929
  22  1.53055
  23  4.32593e-06
  24  0.188064
  25  0.225504
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.046e-04  1.611e-02  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.969e-01  2.255e-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.056e+00  1.881e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917741/likelihoodResults_310089601_310348801_4FGL_J1248.9+4840_daily_bin273.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) = 6608.79459073
delta logL = -2.16875314436e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6608.79459072
delta logL = -2.16815078602e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96337E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4501       1.0000          .0000       10.000    
     3 'Normalizat'    1.0562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99688       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.

 FCN=   6608.795     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      242 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    .54925        .10875    ** at limit **
   2  Index         2.2739        5.3367        .50000        .17828E-05
   3  Normalizat    1.0562        .77608E-03    .40158E-01    .22347E-03
   4  Prefactor     .99687        .97751E-03    .46228E-01    .24971E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100066
  Index      = 2.27387
  Normalizat = 1.05623
  Prefactor  = 0.996872
 **********
 **   18 **HESSE 
 **********

 FCN=   6608.795     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      283 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    .78681        .91736E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2739        6.7049        .50000       -.57666    
   3  Normalizat    1.0562        .82723E-03    .22113E-03   -.91170    
   4  Prefactor     .99687        .10417E-02    .28439E-03   -.92834    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.63127e-10
Minuit parameter uncertainties:
  1  0.000454275
  2  37.6614
  3  0.000827231
  4  0.00104174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917741': 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) = 6608.79456885
delta logL = 1.9115395844e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.001e-04  4.543e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.274e+00  3.766e+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.969e-01  1.042e-03  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.056e+00  8.272e-04  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/917741/cmap_HighResolution_310089601_310348801_4FGL_J1248.9+4840_daily_bin273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.77e-08', time_completed='2021-09-06 05:50:47.102588', job_id='917741', GAL2='1.00', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630932647.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='273' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:50:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 917741: <4FGL_J1248.9+4840_daily_bin273> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin273 192.244 48.67 310089601 310348801 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 :                                   819.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

