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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin148
RA = 192.244, Dec = 48.67
tmin = 277689601, tmax = 277948801
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='916397', job_status='RUN', time_executed='2021-09-06 05:31:29.959598', time_epoch_executed='1630931489.96' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916397

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916397/ft1_4FGL_J1248.9+4840_daily_bin148.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916397/ft2_4FGL_J1248.9+4840_daily_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916397/ft1_4FGL_J1248.9+4840_daily_bin148.fits outfile=/scratch/kocevski/916397/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin148.fits ra=192.244 dec=48.67 rad=12.0 tmin=277689601.0 tmax=277948801.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.56
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/916397/ft2_4FGL_J1248.9+4840_daily_bin148.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/916397/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin148.fits evtable="EVENTS" outfile="/scratch/kocevski/916397/ft1_filtered_4FGL_J1248.9+4840_daily_bin148.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916397/ft1_filtered_4FGL_J1248.9+4840_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/916397/ft2_4FGL_J1248.9+4840_daily_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/916397/ltcube_277689601_277948801_4FGL_J1248.9+4840_daily_bin148.fits outfile=/scratch/kocevski/916397/expmap_277689601_277948801_4FGL_J1248.9+4840_daily_bin148.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/916397/ltcube_277689601_277948801_4FGL_J1248.9+4840_daily_bin148.fits
.....................!
real 192.28
user 186.29
sys 5.25

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/916397/ft1_filtered_4FGL_J1248.9+4840_daily_bin148.fits scfile=/scratch/kocevski/916397/ft2_4FGL_J1248.9+4840_daily_bin148.fits outfile=/scratch/kocevski/916397/cmap_277689601_277948801_4FGL_J1248.9+4840_daily_bin148.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916397/ft1_filtered_4FGL_J1248.9+4840_daily_bin148.fits scfile=/scratch/kocevski/916397/ft2_4FGL_J1248.9+4840_daily_bin148.fits outfile=/scratch/kocevski/916397/cmap_HighResolution_277689601_277948801_4FGL_J1248.9+4840_daily_bin148.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.40
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11138E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11305E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .16819E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2179       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4617       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1791       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4639       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21480       1.0000         .10000E-03   10000.    
    12 'Prefactor '    81.121       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.1908       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7246       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.596       1.0000         .10000E-03   10000.    
    20 'norm      '    6.0429       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.0548       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85594       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1257       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=   6251.200     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2951 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4519        .27574E-06** at limit **
   2  Prefactor     .10008E-03    40.387        .11619E-04** at limit **
   3  norm          .10000E-03    .82181        .80046E-08** at limit **
   4  norm          .10000E-03    4.6994        .23277E-05** at limit **
   5  Prefactor     6.2170        17.677       -.52690E-05   -.20457E-03
   6  Prefactor     2.4615        3.5908       -.87982E-07    .17398E-03
   7  norm          2.1791        1.6984       -.43678E-08   -.41640E-04
   8  Prefactor     .10000E-03    13.808        .78547E-06** at limit **
   9  Prefactor     .10000E-03    7.9520        .13003E-07** at limit **
  10  norm          1.4638        1.4081       -.98613E-09   -.28452E-03
  11  Prefactor     .16667        23.015       -.78904E-05    .58248E-03
  12  Prefactor     81.134        53.877       -.88391E-06   -.10610E-03
  13  Prefactor     .10000E-03    4.6435        .42431E-07** at limit **
  14  Prefactor     .10000E-03    19.421       -.12667E-05** at limit **
  15  norm          .10000E-03    4.7107       -.10921E-06** at limit **
  16  norm          8.1899        4.3169        .38414E-07   -.14160E-04
  17  Prefactor     2.7324        33.599       -.71096E-06    .30542E-04
  18  Prefactor     .10000E-03    29.919        .19094E-05** at limit **
  19  Prefactor     19.588        24.561        .43854E-06    .25170E-04
  20  norm          6.0437        3.6365        .11454E-06   -.14236E-02
  21  Prefactor     .10000E-03    38.663        .17375E-06** at limit **
  22  norm          2.0547        1.2546       -.19582E-07    .98220E-04
  23  norm          .10000E-03    41.463       -.78190E-06** at limit **
  24  Normalizat    .85599        .15038        .10863E-06   -.43724E-03
  25  Prefactor     1.1257        .18942        .19354E-06   -.33067E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100081
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.21696
  Prefactor  = 2.46151
  norm       = 2.17909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.4638
  Prefactor  = 0.166665
  Prefactor  = 81.1337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.18989
  Prefactor  = 2.73239
  Prefactor  = 0.0001
  Prefactor  = 19.5882
  norm       = 6.04373
  Prefactor  = 0.0001
  norm       = 2.0547
  norm       = 0.0001
  Normalizat = 0.85599
  Prefactor  = 1.1257
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.200     FROM HESSE     STATUS=OK           427 CALLS     3378 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4920        .17858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10008E-03    44.992        .48673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .84176        .13983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.949        .31206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2170        18.434        .16099E-03   -1.5209    
   6  Prefactor     2.4615        3.5716        .17372E-03   -1.5394    
   7  norm          2.1791        1.6952        .87554E-04   -1.5413    
   8  Prefactor     .10000E-03    14.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4638        1.4196        .89341E-04   -1.5466    
  11  Prefactor     .16667        118.81        .36858E-02   -1.5626    
  12  Prefactor     81.134        53.900        .44593E-04   -1.3904    
  13  Prefactor     .10000E-03    4.6706        .16634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.7109        .16753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.1899        4.3121        .11410E-03   -1.5136    
  17  Prefactor     2.7324        33.068        .24671E-03   -1.5377    
  18  Prefactor     .10000E-03    30.257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.588        24.440        .90479E-04   -1.4823    
  20  norm          6.0437        3.6089        .11195E-03   -1.5216    
  21  Prefactor     .10000E-03    38.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.0547        1.2484        .66617E-04   -1.5421    
  23  norm          .10000E-03    41.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85599        .17820        .22730E-03   -.98024    
  25  Prefactor     1.1257        .22576        .25793E-03   -.88649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11093e-08
Minuit parameter uncertainties:
  1  7.87408e-05
  2  0.00382186
  3  1.24016e-06
  4  0.000141445
  5  18.4506
  6  3.5719
  7  1.69525
  8  4.36944e-05
  9  6.62874e-06
  10  1.41967
  11  8.91498
  12  53.932
  13  1.47088e-06
  14  0.000148732
  15  2.42045e-05
  16  4.31223
  17  19.0238
  18  0.000206117
  19  24.452
  20  3.60907
  21  4.22409e-05
  22  1.24842
  23  0.000216902
  24  0.178322
  25  0.22595
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  4.369e-05  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.126e+00  2.260e-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:  8.560e-01  1.783e-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: 4.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916397/likelihoodResults_277689601_277948801_4FGL_J1248.9+4840_daily_bin148.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) = 6251.20008338
delta logL = -0.000337431930348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6251.19974653
delta logL = -5.89381670579e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12628E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4036       1.0000          .0000       10.000    
     3 'Normalizat'    .85595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1258       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=   6251.200     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      249 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10334E-03    .95375        .84205E-01** at limit **
   2  Index         2.3157        5.9753        .50000        .19456E-04
   3  Normalizat    .85599        .12604E-02    .22730E-03   -.12574E-03
   4  Prefactor     1.1257        .16249E-02    .25793E-03   -.31343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103339
  Index      = 2.31573
  Normalizat = 0.855993
  Prefactor  = 1.1257
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.200     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      280 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10334E-03    47.083        .43752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3157        8.5648        .50000       -.56670    
   3  Normalizat    .85599        .59352E-02    .90920E-05   -.98024    
   4  Prefactor     1.1257        .76519E-02    .51586E-04   -.88649    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0317e-09
Minuit parameter uncertainties:
  1  0.0250959
  2  152.018
  3  0.00593517
  4  0.00765196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916397': 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) = 6251.19974527
delta logL = 6.78602191329e-07

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.033e-04  2.510e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.316e+00  1.520e+02  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.126e+00  7.652e-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:  8.560e-01  5.935e-03  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/916397/cmap_HighResolution_277689601_277948801_4FGL_J1248.9+4840_daily_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-03', job_status='DONE', photon_flux_upper_limit='4.36e-08', time_completed='2021-09-06 05:44:42.688472', job_id='916397', GAL2='1.13', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630932282.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='6.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='148' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:44:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 916397: <4FGL_J1248.9+4840_daily_bin148> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin148 192.244 48.67 277689601 277948801 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 :                                   789.42 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             290.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            818 sec.

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

