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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin785
RA = 192.244, Dec = 48.67
tmin = 442800001, tmax = 443059201
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='920788', job_status='RUN', time_executed='2021-09-06 05:49:35.864227', time_epoch_executed='1630932575.86' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920788

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920788/ft1_4FGL_J1248.9+4840_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920788/ft2_4FGL_J1248.9+4840_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920788/ft1_4FGL_J1248.9+4840_daily_bin785.fits outfile=/scratch/kocevski/920788/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin785.fits ra=192.244 dec=48.67 rad=12.0 tmin=442800001.0 tmax=443059201.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.47
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/920788/ft1_filtered_4FGL_J1248.9+4840_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/920788/ft2_4FGL_J1248.9+4840_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/920788/ltcube_442800001_443059201_4FGL_J1248.9+4840_daily_bin785.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/920788/ft2_4FGL_J1248.9+4840_daily_bin785.fits
.....................!
real 12.08
user 11.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920788/ft1_filtered_4FGL_J1248.9+4840_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/920788/ft2_4FGL_J1248.9+4840_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/920788/ltcube_442800001_443059201_4FGL_J1248.9+4840_daily_bin785.fits outfile=/scratch/kocevski/920788/expmap_442800001_443059201_4FGL_J1248.9+4840_daily_bin785.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/920788/ltcube_442800001_443059201_4FGL_J1248.9+4840_daily_bin785.fits
.....................!
real 191.95
user 186.19
sys 5.39

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/920788/ft1_filtered_4FGL_J1248.9+4840_daily_bin785.fits scfile=/scratch/kocevski/920788/ft2_4FGL_J1248.9+4840_daily_bin785.fits outfile=/scratch/kocevski/920788/cmap_442800001_443059201_4FGL_J1248.9+4840_daily_bin785.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920788/ft1_filtered_4FGL_J1248.9+4840_daily_bin785.fits scfile=/scratch/kocevski/920788/ft2_4FGL_J1248.9+4840_daily_bin785.fits outfile=/scratch/kocevski/920788/cmap_HighResolution_442800001_443059201_4FGL_J1248.9+4840_daily_bin785.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.59
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.3381       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.634       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6938       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8529       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10951E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.299       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7398       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1704       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.643       1.0000         .10000E-03   10000.    
    15 'norm      '    17.164       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1059       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4367       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.289       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7176       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.144       1.0000         .10000E-03   10000.    
    22 'norm      '    19.751       1.0000         .10000E-03   10000.    
    23 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96786       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84945       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=   5766.969     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2542 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4636        .57263E-07** at limit **
   2  Prefactor     .10000E-03    12.170        .25523E-06** at limit **
   3  norm          .10000E-03    1.3853        .11697E-06** at limit **
   4  norm          5.3321        10.023       -.42529E-05   -.12175E-03
   5  Prefactor     13.632        26.872       -.32520E-05    .53494E-04
   6  Prefactor     4.6927        5.9299       -.29302E-05   -.28340E-03
   7  norm          3.8530        2.1581        .22094E-06    .14609E-03
   8  Prefactor     .10000E-03    85.764       -.10309E-04** at limit **
   9  Prefactor     11.300        13.755       -.70908E-05    .14703E-05
  10  norm          1.7397        1.9061       -.34058E-07   -.94172E-04
  11  Prefactor     6.1705        6.4563        .83656E-06    .61308E-04
  12  Prefactor     .10000E-03    11.402       -.13554E-06** at limit **
  13  Prefactor     .10000E-03    5.5273        .86569E-08** at limit **
  14  Prefactor     24.641        19.617       -.18916E-05    .38952E-05
  15  norm          17.164        10.919       -.39052E-05    .30703E-04
  16  norm          2.1056        2.7472        .82359E-07    .79442E-05
  17  Prefactor     6.4469        37.883       -.12156E-04    .52062E-04
  18  Prefactor     12.288        18.325        .19838E-04    .13049E-03
  19  Prefactor     .10000E-03    88.288       -.19116E-04** at limit **
  20  norm          1.7181        3.1132       -.32980E-05   -.84080E-03
  21  Prefactor     13.907        42.881       -.15843E-04   -.91329E-05
  22  norm          19.751        2.8549       -.26583E-09    .60845E-03
  23  norm          .10000E-03    119.00        .34571E-04** at limit **
  24  Normalizat    .96808        .16511       -.23088E-08    .33128E-03
  25  Prefactor     .84921        .19502        .24804E-05    .10145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.33207
  Prefactor  = 13.6323
  Prefactor  = 4.69267
  norm       = 3.85296
  Prefactor  = 0.000100001
  Prefactor  = 11.2999
  norm       = 1.73972
  Prefactor  = 6.17054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.6405
  norm       = 17.1637
  norm       = 2.10565
  Prefactor  = 6.44685
  Prefactor  = 12.2881
  Prefactor  = 0.000100002
  norm       = 1.71805
  Prefactor  = 13.9067
  norm       = 19.7513
  norm       = 0.0001
  Normalizat = 0.96808
  Prefactor  = 0.84921
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.969     FROM HESSE     STATUS=OK           431 CALLS     2973 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4894        .89677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.4428        .17429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.3321        9.9253        .17395E-03   -1.5246    
   5  Prefactor     13.632        26.662        .10848E-03   -1.4969    
   6  Prefactor     4.6927        5.9365        .18574E-03   -1.5275    
   7  norm          3.8530        2.1586        .79625E-04   -1.5315    
   8  Prefactor     .10000E-03    87.909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.300        13.741        .11918E-03   -1.5036    
  10  norm          1.7397        1.8954        .10600E-03   -1.5444    
  11  Prefactor     6.1705        6.4561        .16161E-03   -1.5211    
  12  Prefactor     .10000E-03    11.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.5571        .17431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.641        19.619        .80694E-04   -1.4715    
  15  norm          17.164        10.909        .96675E-04   -1.4879    
  16  norm          2.1056        2.7232        .13637E-03   -1.5418    
  17  Prefactor     6.4469        37.222        .15819E-03   -1.5200    
  18  Prefactor     12.288        18.361        .11427E-03   -1.5007    
  19  Prefactor     .10000E-03    89.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7181        3.0860        .16652E-03   -1.5446    
  21  Prefactor     13.907        42.989        .10650E-03   -1.4962    
  22  norm          19.751        2.8568        .46907E-04   -1.4819    
  23  norm          .10000E-03    118.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96808        .19697        .22488E-03   -.94108    
  25  Prefactor     .84921        .23108        .29371E-03   -.97939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54515e-10
Minuit parameter uncertainties:
  1  2.05756e-06
  2  1.67482e-05
  3  5.14629e-06
  4  9.92838
  5  26.6852
  6  5.93723
  7  2.15867
  8  0.000696937
  9  13.7445
  10  1.89551
  11  6.45683
  12  5.34535e-06
  13  5.37458e-06
  14  19.6242
  15  10.9099
  16  2.72338
  17  31.0108
  18  18.3697
  19  0.000844841
  20  3.08625
  21  43.0852
  22  2.85677
  23  3.84005e-05
  24  0.197115
  25  0.231345
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  6.969e-04  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.492e-01  2.313e-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:  9.681e-01  1.971e-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: 8.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/920788/likelihoodResults_442800001_443059201_4FGL_J1248.9+4840_daily_bin785.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) = 5766.96896164
delta logL = -5.41472973055e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5766.8779117
delta logL = 0.0909957943049

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8266       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6456       1.0000          .0000       10.000    
     3 'Normalizat'    .94155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86647       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5766.878     FROM MIGRAD    STATUS=FAILED        92 CALLS      309 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8265        452.61        .11225E-02   -.10173E-02
   2  Index         3.6453        6.7146        .94185E-02    .18654E-04
   3  Normalizat    .94158        .15063        .22770E-03    .69900E-06
   4  Prefactor     .86645        .18265        .29107E-03    .58587E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5766.878     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      400 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8265        452.61        .19826E-03   -.10173E-02
   2  Index         3.6453        6.7146        .21871E-02    .18654E-04
   3  Normalizat    .94158        .15063        .18468E-03    .69900E-06
   4  Prefactor     .86645        .18265        .15702E-03    .58587E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5766.878     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      432 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8271        10.808        .44898E-04   -.47932E-03
   2  Index         3.6452        2.3256        .37674E-03   -.62646E-04
   3  Normalizat    .94158        .19507        .91079E-05    .35200E-04
   4  Prefactor     .86645        .23267        .11643E-04    .18748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.8271
  Index      = 3.64517
  Normalizat = 0.941577
  Prefactor  = 0.866446
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.878     FROM HESSE     STATUS=OK            23 CALLS      455 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8271        10.198        .17959E-05   -1.5438    
   2  Index         3.6452        2.2639        .15070E-04   -.27440    
   3  Normalizat    .94158        .19505        .18216E-05   -.95014    
   4  Prefactor     .86645        .23257        .23286E-05   -.97324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81825e-10
Minuit parameter uncertainties:
  1  8.63537
  2  2.35702
  3  0.195199
  4  0.232831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920788': 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) = 5766.87791166
delta logL = 0.0909958325883

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.827e+00  8.635e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  3.645e+00  2.357e+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:  8.664e-01  2.328e-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:  9.416e-01  1.952e-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/920788/cmap_HighResolution_442800001_443059201_4FGL_J1248.9+4840_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.51e-08', time_completed='2021-09-06 06:01:52.609999', job_id='920788', GAL2='0.87', fit_tolerance='1e-08', EG2='0.94', EG='0.97', time_epoch_completed='1630933312.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='9.10e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='785' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:01:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 920788: <4FGL_J1248.9+4840_daily_bin785> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin785> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:45:27 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:45:29 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:45:29 2021
Terminated at Mon Sep  6 06:01:52 2021
Results reported at Mon Sep  6 06:01:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin785 192.244 48.67 442800001 443059201 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 :                                   736.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

