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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin348
RA = 192.244, Dec = 48.67
tmin = 329529601, tmax = 329788801
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='917861', job_status='RUN', time_executed='2021-09-06 05:37:53.977009', time_epoch_executed='1630931873.98' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917861

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917861/ft1_4FGL_J1248.9+4840_daily_bin348.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917861/ft2_4FGL_J1248.9+4840_daily_bin348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917861/ft1_4FGL_J1248.9+4840_daily_bin348.fits outfile=/scratch/kocevski/917861/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin348.fits ra=192.244 dec=48.67 rad=12.0 tmin=329529601.0 tmax=329788801.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.50
user 3.29
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917861/ft1_filtered_4FGL_J1248.9+4840_daily_bin348.fits" evtable="EVENTS" scfile=/scratch/kocevski/917861/ft2_4FGL_J1248.9+4840_daily_bin348.fits sctable="SC_DATA" outfile=/scratch/kocevski/917861/ltcube_329529601_329788801_4FGL_J1248.9+4840_daily_bin348.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/917861/ft2_4FGL_J1248.9+4840_daily_bin348.fits
.....................!
real 11.90
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917861/ft1_filtered_4FGL_J1248.9+4840_daily_bin348.fits evtable="EVENTS" scfile=/scratch/kocevski/917861/ft2_4FGL_J1248.9+4840_daily_bin348.fits sctable="SC_DATA" expcube=/scratch/kocevski/917861/ltcube_329529601_329788801_4FGL_J1248.9+4840_daily_bin348.fits outfile=/scratch/kocevski/917861/expmap_329529601_329788801_4FGL_J1248.9+4840_daily_bin348.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/917861/ltcube_329529601_329788801_4FGL_J1248.9+4840_daily_bin348.fits
.....................!
real 190.36
user 184.85
sys 5.19

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/917861/ft1_filtered_4FGL_J1248.9+4840_daily_bin348.fits scfile=/scratch/kocevski/917861/ft2_4FGL_J1248.9+4840_daily_bin348.fits outfile=/scratch/kocevski/917861/cmap_329529601_329788801_4FGL_J1248.9+4840_daily_bin348.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.74
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917861/ft1_filtered_4FGL_J1248.9+4840_daily_bin348.fits scfile=/scratch/kocevski/917861/ft2_4FGL_J1248.9+4840_daily_bin348.fits outfile=/scratch/kocevski/917861/cmap_HighResolution_329529601_329788801_4FGL_J1248.9+4840_daily_bin348.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.68
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.572       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5994       1.0000         .10000E-03   10000.    
     3 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10342E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.767       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .81151E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7685       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9091       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.021       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2085       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.050       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1440       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    23.937       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3939       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12164E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9155       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.430       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3330       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .72536E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .66272       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3336       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=   6138.383     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2907 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.572        6.3416        .15002E-06    .10224E-03
   2  Prefactor     3.5974        38.259       -.51892E-05   -.48746E-04
   3  norm          .10000E-03    .97110       -.27898E-07** at limit **
   4  norm          .10000E-03    3.6327        .59405E-06** at limit **
   5  Prefactor     17.762        16.330       -.17866E-05   -.33862E-04
   6  Prefactor     .10004E-03    2.3359       -.79271E-06** at limit **
   7  norm          1.7677        1.8601       -.87285E-07   -.66024E-04
   8  Prefactor     5.9148        22.456        .83114E-05   -.29246E-04
   9  Prefactor     20.017        27.181       -.42656E-05   -.34290E-05
  10  norm          2.2085        1.7963       -.17206E-06   -.19014E-03
  11  Prefactor     .10000E-03    3.6188       -.39823E-06** at limit **
  12  Prefactor     13.046        56.767       -.10149E-04   -.50957E-05
  13  Prefactor     9.1440        7.8773       -.21280E-06    .20906E-04
  14  Prefactor     .10000E-03    7.1341        .18915E-05** at limit **
  15  norm          23.937        18.941        .59409E-06    .16258E-05
  16  norm          4.3940        3.4379        .12950E-05   -.87872E-04
  17  Prefactor     .10000E-03    20.669        .11529E-05** at limit **
  18  Prefactor     1.9245        59.608        .18486E-04   -.95677E-05
  19  Prefactor     31.413        33.984       -.19667E-04   -.38525E-04
  20  norm          2.3330        4.1599       -.19192E-05   -.83789E-03
  21  Prefactor     .10000E-03    38.345       -.14142E-04** at limit **
  22  norm          .10019E-03    .63614        .17623E-07** at limit **
  23  norm          .10000E-03    34.939        .14454E-04** at limit **
  24  Normalizat    .66231        .17116        .15197E-05   -.36866E-04
  25  Prefactor     1.3341        .20498        .50204E-06    .23500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.5725
  Prefactor  = 3.59735
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.7621
  Prefactor  = 0.000100045
  norm       = 1.76771
  Prefactor  = 5.91483
  Prefactor  = 20.017
  norm       = 2.20855
  Prefactor  = 0.0001
  Prefactor  = 13.046
  Prefactor  = 9.14403
  Prefactor  = 0.0001
  norm       = 23.937
  norm       = 4.39404
  Prefactor  = 0.000100002
  Prefactor  = 1.92448
  Prefactor  = 31.4132
  norm       = 2.33303
  Prefactor  = 0.0001
  norm       = 0.000100188
  norm       = 0.0001
  Normalizat = 0.662312
  Prefactor  = 1.33408
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.383     FROM HESSE     STATUS=OK           437 CALLS     3344 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.572        6.2924        .72464E-04   -1.4602    
   2  Prefactor     3.5974        37.621        .21298E-03   -1.5329    
   3  norm          .10000E-03    1.0015        .15059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.6713        .14567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.762        16.302        .95020E-04   -1.4865    
   6  Prefactor     .10004E-03    16.680        .22728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7677        1.8138        .10326E-03   -1.5442    
   8  Prefactor     5.9148        22.471        .16520E-03   -1.5222    
   9  Prefactor     20.017        27.158        .89514E-04   -1.4813    
  10  norm          2.2085        1.7928        .91673E-04   -1.5411    
  11  Prefactor     .10000E-03    3.6195        .14550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.046        56.618        .11088E-03   -1.4985    
  13  Prefactor     9.1440        7.8525        .13254E-03   -1.5103    
  14  Prefactor     .10000E-03    7.1365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          23.937        18.925        .81874E-04   -1.4729    
  16  norm          4.3940        3.4312        .12385E-03   -1.5289    
  17  Prefactor     .10000E-03    20.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9245        54.424        .30030E-03   -1.5431    
  19  Prefactor     31.413        33.824        .71470E-04   -1.4586    
  20  norm          2.3330        3.9671        .17510E-03   -1.5402    
  21  Prefactor     .10000E-03    38.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10019E-03    8.7359        .12035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    34.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .66231        .20438        .27301E-03   -1.0540    
  25  Prefactor     1.3341        .24774        .25309E-03   -.82299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35407e-08
Minuit parameter uncertainties:
  1  6.2925
  2  23.2851
  3  4.43949e-06
  4  1.173e-06
  5  16.3063
  6  0.00172989
  7  1.81385
  8  22.5033
  9  27.1744
  10  1.7928
  11  1.14159e-05
  12  54.443
  13  7.85335
  14  3.72419e-06
  15  18.9298
  16  3.4314
  17  0.000361878
  18  20.4884
  19  33.8448
  20  3.96754
  21  0.000124736
  22  0.00256619
  23  1.23258e-06
  24  0.204619
  25  0.247961
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  5.915e+00  2.250e+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.334e+00  2.480e-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.623e-01  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/917861/likelihoodResults_329529601_329788801_4FGL_J1248.9+4840_daily_bin348.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) = 6137.80980393
delta logL = 0.572942330485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6137.75924949
delta logL = 0.623496777673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2324       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9915       1.0000          .0000       10.000    
     3 'Normalizat'    .60549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3787       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=   6137.759     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      260 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2091        48.096        .68785E-02    .60224E-03
   2  Index         3.9967        3.5884        .11967        .14885E-03
   3  Normalizat    .60546        .47070E-01    .64317E-01    .27543E-04
   4  Prefactor     1.3789        .59342E-01    .56429E-01    .43925E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2091
  Index      = 3.99665
  Normalizat = 0.605464
  Prefactor  = 1.37894
 **********
 **   18 **HESSE 
 **********

 FCN=   6137.759     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2091        95.501        .10474E-03   -1.5411    
   2  Index         3.9967        6.9958        .61974E-02   -.20204    
   3  Normalizat    .60546        .17587        .28459E-03   -1.0775    
   4  Prefactor     1.3789        .22276        .24950E-03   -.80989    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.0689e-07
Minuit parameter uncertainties:
  1  29.0987
  2  6.92273
  3  0.176028
  4  0.222917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917861': 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) = 6137.75924298
delta logL = 0.623503280483

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.209e+00  2.910e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  3.997e+00  6.923e+00  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.379e+00  2.229e-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.055e-01  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 192.244 48.670
Photon Index (Free Index): 4.00 +/- 6.92
Photon Flux (Free Index): 4.97e-08 +/- 4.78e-08
Energy Flux (Free Index): 7.44e-06 +/- 1.22e-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/917861/cmap_HighResolution_329529601_329788801_4FGL_J1248.9+4840_daily_bin348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', comment='SUCCESS', energy_flux2='7.44e-06', dlogl='6.24e-01', photon_flux2='4.97e-08', job_status='DONE', time_completed='2021-09-06 05:50:44.292486', photon_index_error2='6.92', photon_index2='4.00', ts='0.08', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='8.69e-08', energy_flux_error2='1.22e-05', EG='0.66', time_epoch_completed='1630932644.29', return_code='0', job_id='917861', GAL2='1.38', EG2='0.61', return_code2='102', photon_flux_error2='4.78e-08', ts2='1.42', photon_index='2.45' WHERE bin_id='348' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:50:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 917861: <4FGL_J1248.9+4840_daily_bin348> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin348 192.244 48.67 329529601 329788801 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 :                                   768.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

