/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 223 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 = 7432
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1248.9+4840_daily_bin608
RA = 192.244, Dec = 48.67
tmin = 396921601, tmax = 397180801
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='919366', job_status='RUN', time_executed='2021-09-06 05:44:33.090757', time_epoch_executed='1630932273.09' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/919366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/919366/ft1_4FGL_J1248.9+4840_daily_bin608.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/919366/ft2_4FGL_J1248.9+4840_daily_bin608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/919366/ft1_4FGL_J1248.9+4840_daily_bin608.fits outfile=/scratch/kocevski/919366/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin608.fits ra=192.244 dec=48.67 rad=12.0 tmin=396921601.0 tmax=397180801.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.52
user 4.27
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/919366/ft1_filtered_4FGL_J1248.9+4840_daily_bin608.fits evtable="EVENTS" scfile=/scratch/kocevski/919366/ft2_4FGL_J1248.9+4840_daily_bin608.fits sctable="SC_DATA" expcube=/scratch/kocevski/919366/ltcube_396921601_397180801_4FGL_J1248.9+4840_daily_bin608.fits outfile=/scratch/kocevski/919366/expmap_396921601_397180801_4FGL_J1248.9+4840_daily_bin608.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/919366/ltcube_396921601_397180801_4FGL_J1248.9+4840_daily_bin608.fits
.....................!
real 191.41
user 185.17
sys 5.86

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/919366/ft1_filtered_4FGL_J1248.9+4840_daily_bin608.fits scfile=/scratch/kocevski/919366/ft2_4FGL_J1248.9+4840_daily_bin608.fits outfile=/scratch/kocevski/919366/cmap_396921601_397180801_4FGL_J1248.9+4840_daily_bin608.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=192.244 yref=48.67 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4857       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0667       1.0000         .10000E-03   10000.    
     3 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .21615E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.789       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4419       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11697E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.841       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8808       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.469       1.0000         .10000E-03   10000.    
    15 'norm      '    .11855E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    64.709       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.585       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.437       1.0000         .10000E-03   10000.    
    23 'norm      '    27.868       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82475       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1158       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=   5575.913     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2940 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4861        4.6390        .76689E-06   -.92056E-04
   2  Prefactor     5.0554        20.448        .29512E-06    .13921E-04
   3  norm          .10000E-03    .81541        .49917E-06** at limit **
   4  norm          .10002E-03    5.4109        .11135E-05** at limit **
   5  Prefactor     17.763        20.206       -.61281E-06    .80427E-06
   6  Prefactor     .10000E-03    3.1955       -.34495E-06** at limit **
   7  norm          4.4411        2.5171       -.94413E-06   -.48768E-03
   8  Prefactor     .10000E-03    9.2916        .38145E-06** at limit **
   9  Prefactor     .10000E-03    17.608        .67712E-07** at limit **
  10  norm          .10000E-03    1.0453        .19493E-06** at limit **
  11  Prefactor     .10000E-03    4.1484        .22740E-07** at limit **
  12  Prefactor     31.727        54.849       -.13106E-04   -.34885E-03
  13  Prefactor     2.8791        11.691        .18559E-04   -.42101E-03
  14  Prefactor     20.473        21.662        .24913E-06   -.42273E-04
  15  norm          .10000E-03    10.971       -.30194E-05** at limit **
  16  norm          .10000E-03    2.6251       -.10371E-06** at limit **
  17  Prefactor     64.692        37.046        .20021E-07   -.13101E-03
  18  Prefactor     21.582        17.112        .23242E-06   -.57015E-04
  19  Prefactor     .10000E-03    11.615        .11495E-05** at limit **
  20  norm          .10000E-03    3.4820        .17939E-06** at limit **
  21  Prefactor     .10000E-03    142.16        .33417E-05** at limit **
  22  norm          11.437        2.3406        .84684E-07   -.45390E-04
  23  norm          27.767        85.367       -.16994E-04   -.15394E-03
  24  Normalizat    .82481        .17230       -.26095E-05   -.30880E-03
  25  Prefactor     1.1156        .20585       -.77007E-07   -.33173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.48612
  Prefactor  = 5.05544
  norm       = 0.0001
  norm       = 0.000100018
  Prefactor  = 17.7627
  Prefactor  = 0.0001
  norm       = 4.44109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7269
  Prefactor  = 2.87911
  Prefactor  = 20.4728
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 64.6921
  Prefactor  = 21.5816
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4372
  norm       = 27.7674
  Normalizat = 0.824811
  Prefactor  = 1.11564
 **********
 **   18 **HESSE 
 **********

 FCN=   5575.913     FROM HESSE     STATUS=OK           421 CALLS     3361 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4861        4.5270        .18076E-03   -1.5393    
   2  Prefactor     5.0554        19.853        .17863E-03   -1.5258    
   3  norm          .10000E-03    1.4054        .13011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10002E-03    27.691        .31718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.763        19.240        .94962E-04   -1.4865    
   6  Prefactor     .10000E-03    3.2199        .13030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4411        2.5184        .83610E-04   -1.5286    
   8  Prefactor     .10000E-03    9.3225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.3776        .14850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1532        .14851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.727        56.770        .71009E-04   -1.4581    
  13  Prefactor     2.8791        12.348        .11973E-02   -1.5369    
  14  Prefactor     20.473        21.684        .88529E-04   -1.4803    
  15  norm          .10000E-03    10.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6620        .11801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     64.692        37.096        .49888E-04   -1.4098    
  18  Prefactor     21.582        17.078        .86213E-04   -1.4779    
  19  Prefactor     .10000E-03    11.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.5482        .27089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    143.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.437        2.3414        .49722E-04   -1.5031    
  23  norm          27.767        86.969        .75890E-04   -1.4654    
  24  Normalizat    .82481        .20363        .24038E-03   -.99155    
  25  Prefactor     1.1156        .24405        .26631E-03   -.88968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64795e-09
Minuit parameter uncertainties:
  1  4.52761
  2  19.8792
  3  3.38782e-05
  4  0.00141501
  5  19.2464
  6  3.92675e-05
  7  2.51845
  8  4.28084e-05
  9  4.00359e-06
  10  4.86187e-05
  11  6.81021e-06
  12  56.8666
  13  11.9288
  14  21.6926
  15  7.5208e-05
  16  2.05808e-05
  17  37.1093
  18  17.0816
  19  0.000124953
  20  8.71222e-06
  21  0.000484413
  22  2.34143
  23  87.3701
  24  0.203814
  25  0.2443
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  4.281e-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.116e+00  2.443e-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.248e-01  2.038e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/919366/likelihoodResults_396921601_397180801_4FGL_J1248.9+4840_daily_bin608.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) = 5575.91336884
delta logL = -0.000510734183081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5575.91285811
delta logL = -6.33372110315e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4490       1.0000          .0000       10.000    
     3 'Normalizat'    .82481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1156       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=   5575.913     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1795.6        .90712E-02** at limit **
   2  Index         2.4479        5.5070        .50000        .95395E-06
   3  Normalizat    .82481        .93480E-01    .43933E-01   -.67158E-05
   4  Prefactor     1.1156        .11839        .60217E-01   -.20816E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44793
  Normalizat = 0.824811
  Prefactor  = 1.11564
 **********
 **   18 **HESSE 
 **********

 FCN=   5575.913     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4479        5.0681        .50000       -.53567    
   3  Normalizat    .82481        .18886        .24038E-03   -.99155    
   4  Prefactor     1.1156        .24078        .26631E-03   -.88968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22618e-12
Minuit parameter uncertainties:
  1  8.65663e-06
  2  8.76385
  3  0.189012
  4  0.241011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/919366': 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) = 5575.91285811
delta logL = 5.88443072047e-10

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  8.657e-06  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.448e+00  8.764e+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.116e+00  2.410e-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.248e-01  1.890e-01  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/919366/cmap_HighResolution_396921601_397180801_4FGL_J1248.9+4840_daily_bin608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2021-09-06 05:57:01.160411', job_id='919366', GAL2='1.12', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630933021.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='5.88e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='608' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:57:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 919366: <4FGL_J1248.9+4840_daily_bin608> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin608> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 05:40:40 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:40:41 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:40:41 2021
Terminated at Mon Sep  6 05:57:01 2021
Results reported at Mon Sep  6 05:57:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin608 192.244 48.67 396921601 397180801 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 :                                   741.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            981 sec.

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

