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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin968
RA = 192.244, Dec = 48.67
tmin = 490233601, tmax = 490492801
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='922638', job_status='RUN', time_executed='2021-09-06 05:51:57.382744', time_epoch_executed='1630932717.38' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/922638

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/922638/ft1_4FGL_J1248.9+4840_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/922638/ft2_4FGL_J1248.9+4840_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/922638/ft1_4FGL_J1248.9+4840_daily_bin968.fits outfile=/scratch/kocevski/922638/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin968.fits ra=192.244 dec=48.67 rad=12.0 tmin=490233601.0 tmax=490492801.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.68
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/922638/ft2_4FGL_J1248.9+4840_daily_bin968.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/922638/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin968.fits evtable="EVENTS" outfile="/scratch/kocevski/922638/ft1_filtered_4FGL_J1248.9+4840_daily_bin968.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/922638/ft1_filtered_4FGL_J1248.9+4840_daily_bin968.fits" evtable="EVENTS" scfile=/scratch/kocevski/922638/ft2_4FGL_J1248.9+4840_daily_bin968.fits sctable="SC_DATA" outfile=/scratch/kocevski/922638/ltcube_490233601_490492801_4FGL_J1248.9+4840_daily_bin968.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/922638/ft2_4FGL_J1248.9+4840_daily_bin968.fits
.....................!
real 11.84
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/922638/ft1_filtered_4FGL_J1248.9+4840_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/922638/ft2_4FGL_J1248.9+4840_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/922638/ltcube_490233601_490492801_4FGL_J1248.9+4840_daily_bin968.fits outfile=/scratch/kocevski/922638/expmap_490233601_490492801_4FGL_J1248.9+4840_daily_bin968.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/922638/ltcube_490233601_490492801_4FGL_J1248.9+4840_daily_bin968.fits
.....................!
real 189.65
user 185.29
sys 3.95

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/922638/ft1_filtered_4FGL_J1248.9+4840_daily_bin968.fits scfile=/scratch/kocevski/922638/ft2_4FGL_J1248.9+4840_daily_bin968.fits outfile=/scratch/kocevski/922638/cmap_490233601_490492801_4FGL_J1248.9+4840_daily_bin968.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.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/922638/ft1_filtered_4FGL_J1248.9+4840_daily_bin968.fits scfile=/scratch/kocevski/922638/ft2_4FGL_J1248.9+4840_daily_bin968.fits outfile=/scratch/kocevski/922638/cmap_HighResolution_490233601_490492801_4FGL_J1248.9+4840_daily_bin968.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.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99453       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0092       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2472       1.0000         .10000E-03   10000.    
     4 'norm      '    7.2522       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6339       1.0000         .10000E-03   10000.    
     7 'norm      '    .33162       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24898       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.310       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0590       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1471       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .31909E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8802       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8138       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.6995       1.0000         .10000E-03   10000.    
    23 'norm      '    279.32       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3111       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89635       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=   6278.385     FROM MIGRAD    STATUS=CONVERGED   1082 CALLS     3051 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99400        3.5636        .24642E-03   -.77968E-05
   2  Prefactor     6.0037        16.810        .16380E-03    .61773E-04
   3  norm          1.2469        1.4341        .10001E-03    .26567E-03
   4  norm          7.2546        6.2842        .14894E-03    .24868E-03
   5  Prefactor     .10000E-03    13.858        .18142E-02** at limit **
   6  Prefactor     3.6326        4.7710        .18821E-03   -.28462E-03
   7  norm          .33171        1.1938        .14145E-02   -.86609E-03
   8  Prefactor     .24516E-02    31.386        .96754E-01** at limit **
   9  Prefactor     17.309        16.829        .96265E-04    .53805E-04
  10  norm          2.0592        1.8433        .98728E-04    .15937E-03
  11  Prefactor     .10000E-03    2.8005        .12948E-02** at limit **
  12  Prefactor     .10000E-03    112.70        .18142E-02** at limit **
  13  Prefactor     6.1453        7.4614        .16192E-03   -.15516E-03
  14  Prefactor     .10000E-03    7.6423        .18142E-02** at limit **
  15  norm          .10370E-03    13.581        .91572E-01** at limit **
  16  norm          1.8807        2.3233        .13096E-03    .24160E-03
  17  Prefactor     .10000E-03    27.688        .18142E-02** at limit **
  18  Prefactor     3.7962        19.472        .20668E-03    .18757E-04
  19  Prefactor     .10000E-03    20.023        .18142E-02** at limit **
  20  norm          .10000E-03    5.3949        .35105E-03** at limit **
  21  Prefactor     .10000E-03    23.160        .18142E-02** at limit **
  22  norm          1.6991        1.4858        .87316E-04    .31626E-03
  23  norm          279.13        155.19        .12137E-03   -.20953E-03
  24  Normalizat    1.3116        .21037        .21654E-03    .69826E-03
  25  Prefactor     .89595        .24427        .31233E-03    .31322E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.993999
  Prefactor  = 6.00368
  norm       = 1.24685
  norm       = 7.25458
  Prefactor  = 0.0001
  Prefactor  = 3.63261
  norm       = 0.331714
  Prefactor  = 0.00245161
  Prefactor  = 17.3091
  norm       = 2.05925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.14526
  Prefactor  = 0.0001
  norm       = 0.000103698
  norm       = 1.88066
  Prefactor  = 0.0001
  Prefactor  = 3.79619
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.69913
  norm       = 279.13
  Normalizat = 1.3116
  Prefactor  = 0.895954
 **********
 **   18 **HESSE 
 **********

 FCN=   6278.385     FROM HESSE     STATUS=OK           423 CALLS     3474 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99400        3.5595        .98569E-05   -1.5509    
   2  Prefactor     6.0037        16.795        .65518E-05   -1.5218    
   3  norm          1.2469        1.4340        .40003E-05   -1.5485    
   4  norm          7.2546        6.2841        .59578E-05   -1.5169    
   5  Prefactor     .10000E-03    13.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6326        4.7661        .75286E-05   -1.5327    
   7  norm          .33171        1.1913        .56578E-04   -1.5593    
   8  Prefactor     .24516E-02    27.465        .10485       -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.309        16.829        .19253E-04   -1.4876    
  10  norm          2.0592        1.8433        .39491E-05   -1.5421    
  11  Prefactor     .10000E-03    2.8005        .25897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    112.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1453        7.4601        .64770E-05   -1.5212    
  14  Prefactor     .10000E-03    7.6424        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10370E-03    13.377        .92755E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8807        2.3233        .52384E-05   -1.5434    
  17  Prefactor     .10000E-03    27.693        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7962        19.463        .82673E-05   -1.5318    
  19  Prefactor     .10000E-03    20.025        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.3950        .70210E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.160        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6991        1.4858        .34927E-05   -1.5447    
  23  norm          279.13        155.19        .24275E-04   -1.2351    
  24  Normalizat    1.3116        .21046        .43309E-04   -.83221    
  25  Prefactor     .89595        .24449        .12493E-04   -.96283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03349e-09
Minuit parameter uncertainties:
  1  3.56025
  2  16.8078
  3  1.43405
  4  6.28462
  5  5.67967e-05
  6  4.76657
  7  1.19137
  8  0.508514
  9  16.8336
  10  1.84335
  11  1.09429e-06
  12  0.000250895
  13  7.4612
  14  4.54452e-06
  15  0.0140706
  16  2.32341
  17  4.69886e-05
  18  17.2001
  19  4.25884e-05
  20  8.3068e-06
  21  3.80229e-05
  22  1.4858
  23  155.419
  24  0.210599
  25  0.244787
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.452e-03  5.085e-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:  8.960e-01  2.448e-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.312e+00  2.106e-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: 9.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/922638/likelihoodResults_490233601_490492801_4FGL_J1248.9+4840_daily_bin968.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) = 6278.38532454
delta logL = 4.0017766878e-10

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6278.38532454
delta logL = 7.93988874648e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24516E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4501       1.0000          .0000       10.000    
     3 'Normalizat'    1.3116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89596       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=   6276.881     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      322 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54481        4.7428        .79694E-02    .15218E-02
   2  Index         5.0579        2.3938        .10825        .14877E-03
   3  Normalizat    1.1873        .44387E-01    .51009E-01    .11681E-03
   4  Prefactor     .99269        .54323E-01    .67443E-01   -.13329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.544808
  Index      = 5.05794
  Normalizat = 1.18727
  Prefactor  = 0.992688
 **********
 **   18 **HESSE 
 **********

 FCN=   6276.881     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      353 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54481        10.746        .36009E-04   -1.5560    
   2  Index         5.0579        3.9074        .41262E-02    .11587E-01
   3  Normalizat    1.1873        .18276        .22553E-03   -.86997    
   4  Prefactor     .99269        .21840        .29832E-03   -.92974    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11668e-07
Minuit parameter uncertainties:
  1  4.83966
  2  4.48525
  3  0.182858
  4  0.218597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/922638': 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) = 6276.88119828
delta logL = 1.50412625707

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  5.448e-01  4.840e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  5.058e+00  4.485e+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:  9.927e-01  2.186e-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.187e+00  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.26
Ra Dec: 192.244 48.670
Photon Index (Free Index): 5.06 +/- 4.49
Photon Flux (Free Index): 9.42e-08 +/- 6.02e-08
Energy Flux (Free Index): 1.25e-05 +/- 9.62e-06

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/922638/cmap_HighResolution_490233601_490492801_4FGL_J1248.9+4840_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', comment='SUCCESS', energy_flux2='1.25e-05', dlogl='1.50e+00', photon_flux2='9.42e-08', job_status='DONE', time_completed='2021-09-06 06:05:38.900445', photon_index_error2='4.49', photon_index2='5.06', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='9.00e-08', energy_flux_error2='9.62e-06', EG='1.31', time_epoch_completed='1630933538.9', return_code='0', job_id='922638', GAL2='0.99', EG2='1.19', return_code2='102', photon_flux_error2='6.02e-08', ts2='3.26', photon_index='2.45' WHERE bin_id='968' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:05:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 922638: <4FGL_J1248.9+4840_daily_bin968> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin968 192.244 48.67 490233601 490492801 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 :                                   801.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            908 sec.

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

