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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin323
RA = 192.244, Dec = 48.67
tmin = 323049601, tmax = 323308801
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='917821', job_status='RUN', time_executed='2021-09-06 05:36:29.642247', time_epoch_executed='1630931789.64' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917821

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917821/ft1_4FGL_J1248.9+4840_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917821/ft2_4FGL_J1248.9+4840_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917821/ft1_4FGL_J1248.9+4840_daily_bin323.fits outfile=/scratch/kocevski/917821/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin323.fits ra=192.244 dec=48.67 rad=12.0 tmin=323049601.0 tmax=323308801.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.36
user 3.14
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917821/ft2_4FGL_J1248.9+4840_daily_bin323.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/917821/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin323.fits evtable="EVENTS" outfile="/scratch/kocevski/917821/ft1_filtered_4FGL_J1248.9+4840_daily_bin323.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/917821/ft1_filtered_4FGL_J1248.9+4840_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/917821/ft2_4FGL_J1248.9+4840_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/917821/ltcube_323049601_323308801_4FGL_J1248.9+4840_daily_bin323.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/917821/ft2_4FGL_J1248.9+4840_daily_bin323.fits
.....................!
real 11.96
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917821/ft1_filtered_4FGL_J1248.9+4840_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/917821/ft2_4FGL_J1248.9+4840_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/917821/ltcube_323049601_323308801_4FGL_J1248.9+4840_daily_bin323.fits outfile=/scratch/kocevski/917821/expmap_323049601_323308801_4FGL_J1248.9+4840_daily_bin323.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/917821/ltcube_323049601_323308801_4FGL_J1248.9+4840_daily_bin323.fits
.....................!
real 191.04
user 186.42
sys 4.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/917821/ft1_filtered_4FGL_J1248.9+4840_daily_bin323.fits scfile=/scratch/kocevski/917821/ft2_4FGL_J1248.9+4840_daily_bin323.fits outfile=/scratch/kocevski/917821/cmap_323049601_323308801_4FGL_J1248.9+4840_daily_bin323.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.59
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917821/ft1_filtered_4FGL_J1248.9+4840_daily_bin323.fits scfile=/scratch/kocevski/917821/ft2_4FGL_J1248.9+4840_daily_bin323.fits outfile=/scratch/kocevski/917821/cmap_HighResolution_323049601_323308801_4FGL_J1248.9+4840_daily_bin323.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.62
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.269       1.0000         .10000E-03   10000.    
     3 'norm      '    .33305       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6547       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2969       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6427       1.0000         .10000E-03   10000.    
    10 'norm      '    5.7192       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35348       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.350       1.0000         .10000E-03   10000.    
    15 'norm      '    29.361       1.0000         .10000E-03   10000.    
    16 'norm      '    .12421E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.140       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.100       1.0000         .10000E-03   10000.    
    19 'Prefactor '    82.804       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6019       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.7461       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82600       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1561       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5366.192     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     2027 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9466        .55497E-06** at limit **
   2  Prefactor     38.267        1.1809       -.63924E-06    .46237E-03
   3  norm          .33391        2.1972       -.22106E-05    .21907E-03
   4  norm          .10000E-03    2.4169        .61360E-06** at limit **
   5  Prefactor     .10000E-03    6.0394        .42306E-06** at limit **
   6  Prefactor     .10000E-03    2.7940       -.41064E-05** at limit **
   7  norm          3.6548        2.0510        .61172E-07    .39282E-03
   8  Prefactor     4.2957        1.0370        .73181E-06    .67300E-04
   9  Prefactor     2.6434        1.0568        .10859E-05    .10556E-03
  10  norm          5.7191        2.5573       -.18320E-05   -.81412E-04
  11  Prefactor     .34997        .65976        .11397E-05    .37843E-03
  12  Prefactor     .10000E-03    16.986       -.41728E-05** at limit **
  13  Prefactor     .10000E-03    2.8625        .44104E-05** at limit **
  14  Prefactor     25.358        3.4097        .40992E-05   -.18682E-02
  15  norm          29.359        1.0097       -.12995E-06   -.63898E-05
  16  norm          .10000E-03    4.6503       -.28001E-06** at limit **
  17  Prefactor     20.122        6.9302       -.96738E-05    .52686E-02
  18  Prefactor     11.100        1.0378        .51398E-06    .42890E-04
  19  Prefactor     82.797        2.7809       -.18092E-05    .38927E-02
  20  norm          1.6012        2.3453        .18581E-06    .25267E-03
  21  Prefactor     .10017E-03    43.243        .53834E-04** at limit **
  22  norm          2.7456        1.7026        .83453E-07    .28828E-03
  23  norm          .10043E-03    49.987       -.65393E-04** at limit **
  24  Normalizat    .82618        .19478        .25311E-05    .15063E-03
  25  Prefactor     1.1559        .24625       -.21074E-06    .14074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 38.2672
  norm       = 0.33391
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.65479
  Prefactor  = 4.2957
  Prefactor  = 2.64344
  norm       = 5.7191
  Prefactor  = 0.349975
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 25.3579
  norm       = 29.3593
  norm       = 0.0001
  Prefactor  = 20.1224
  Prefactor  = 11.1002
  Prefactor  = 82.7969
  norm       = 1.60123
  Prefactor  = 0.000100166
  norm       = 2.74563
  norm       = 0.00010043
  Normalizat = 0.826183
  Prefactor  = 1.15586
 **********
 **   18 **HESSE 
 **********

 FCN=   5366.192     FROM HESSE     STATUS=OK           487 CALLS     2514 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9134        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.267        20.866        .16197E-02   -1.4470    
   3  norm          .33391        2.1824        .10569E-01   -1.5592    
   4  norm          .10000E-03    2.4024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.0302        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6548        2.0488        .52825E-02   -1.5326    
   8  Prefactor     4.2957        12.938        .48587E-02   -1.5293    
   9  Prefactor     2.6434        31.361        .62700E-02   -1.5383    
  10  norm          5.7191        2.5584        .41989E-02   -1.5230    
  11  Prefactor     .34997        8.9937        .73351E-01   -1.5590    
  12  Prefactor     .10000E-03    16.984        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8593        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.358        25.175        .19891E-02   -1.4700    
  15  norm          29.359        16.171        .18485E-02   -1.4624    
  16  norm          .10000E-03    4.4407        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.122        31.786        .22312E-02   -1.4811    
  18  Prefactor     11.100        12.513        .30062E-02   -1.5042    
  19  Prefactor     82.797        43.677        .11035E-02   -1.3886    
  20  norm          1.6012        2.3972        .83732E-02   -1.5455    
  21  Prefactor     .10017E-03    44.694        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.7456        1.7231        .61418E-02   -1.5377    
  23  norm          .10043E-03    52.973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82618        .17096        .43949E-01   -.99105    
  25  Prefactor     1.1559        .20910        .59664E-01   -.87701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59279e-07
Minuit parameter uncertainties:
  1  3.77077e-05
  2  20.87
  3  1.70715
  4  1.77482e-06
  5  3.76393e-05
  6  4.15336e-05
  7  2.04884
  8  12.9465
  9  18.2216
  10  2.55848
  11  3.54836
  12  0.000507876
  13  2.28366e-05
  14  25.1858
  15  16.1731
  16  3.41913e-05
  17  31.8131
  18  12.5164
  19  43.6938
  20  2.39734
  21  0.00545657
  22  1.7231
  23  0.0095501
  24  0.171067
  25  0.209246
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.296e+00  1.295e+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.156e+00  2.092e-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.262e-01  1.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/917821/likelihoodResults_323049601_323308801_4FGL_J1248.9+4840_daily_bin323.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) = 5365.82385157
delta logL = 0.368606556851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5365.7325296
delta logL = 0.459928527113

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7104       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4525       1.0000          .0000       10.000    
     3 'Normalizat'    .83639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1420       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=   5365.733     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      211 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7104        14.534        .32149E-02    .15122E-02
   2  Index         1.4525        .58811        .30373       -.13211E-03
   3  Normalizat    .83636        .16357        .44083E-01   -.14219E-03
   4  Prefactor     1.1420        .20831        .59919E-01   -.69550E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.7104
  Index      = 1.4525
  Normalizat = 0.836356
  Prefactor  = 1.14204
 **********
 **   18 **HESSE 
 **********

 FCN=   5365.733     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7104        14.905        .12860E-03   -1.5085    
   2  Index         1.4525        .75457        .11175E-01   -.78879    
   3  Normalizat    .83636        .19279        .24042E-03   -.98734    
   4  Prefactor     1.1420        .24556        .26499E-03   -.88134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44373e-09
Minuit parameter uncertainties:
  1  14.9105
  2  0.760463
  3  0.192946
  4  0.245805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917821': 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) = 5365.73252958
delta logL = 0.459928539816

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  9.710e+00  1.491e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  1.452e+00  7.605e-01  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.142e+00  2.458e-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.364e-01  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 192.244 48.670
Photon Index (Free Index): 1.45 +/- 0.76
Photon Flux (Free Index): 5.05e-09 +/- 8.32e-09
Energy Flux (Free Index): 1.87e-05 +/- 4.08e-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/917821/cmap_HighResolution_323049601_323308801_4FGL_J1248.9+4840_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.05e-03', comment='SUCCESS', energy_flux2='1.87e-05', dlogl='4.60e-01', photon_flux2='5.05e-09', job_status='DONE', time_completed='2021-09-06 05:47:29.510044', photon_index_error2='0.76', photon_index2='1.45', ts='0.13', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='6.52e-08', energy_flux_error2='4.08e-05', EG='0.83', time_epoch_completed='1630932449.51', return_code='0', job_id='917821', GAL2='1.14', EG2='0.84', return_code2='0', photon_flux_error2='8.32e-09', ts2='1.06', photon_index='2.45' WHERE bin_id='323' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:47:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 917821: <4FGL_J1248.9+4840_daily_bin323> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin323 192.244 48.67 323049601 323308801 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 :                                   649.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            711 sec.

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

