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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin711
RA = 192.244, Dec = 48.67
tmin = 423619201, tmax = 423878401
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='920683', job_status='RUN', time_executed='2021-09-06 05:46:44.907378', time_epoch_executed='1630932404.91' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920683/ft1_4FGL_J1248.9+4840_daily_bin711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920683/ft2_4FGL_J1248.9+4840_daily_bin711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920683/ft1_4FGL_J1248.9+4840_daily_bin711.fits outfile=/scratch/kocevski/920683/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin711.fits ra=192.244 dec=48.67 rad=12.0 tmin=423619201.0 tmax=423878401.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 5.77
user 5.51
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/920683/ft1_filtered_4FGL_J1248.9+4840_daily_bin711.fits" evtable="EVENTS" scfile=/scratch/kocevski/920683/ft2_4FGL_J1248.9+4840_daily_bin711.fits sctable="SC_DATA" outfile=/scratch/kocevski/920683/ltcube_423619201_423878401_4FGL_J1248.9+4840_daily_bin711.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/920683/ft2_4FGL_J1248.9+4840_daily_bin711.fits
.....................!
real 12.00
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920683/ft1_filtered_4FGL_J1248.9+4840_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/920683/ft2_4FGL_J1248.9+4840_daily_bin711.fits sctable="SC_DATA" expcube=/scratch/kocevski/920683/ltcube_423619201_423878401_4FGL_J1248.9+4840_daily_bin711.fits outfile=/scratch/kocevski/920683/expmap_423619201_423878401_4FGL_J1248.9+4840_daily_bin711.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/920683/ltcube_423619201_423878401_4FGL_J1248.9+4840_daily_bin711.fits
.....................!
real 190.27
user 185.18
sys 4.51

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/920683/ft1_filtered_4FGL_J1248.9+4840_daily_bin711.fits scfile=/scratch/kocevski/920683/ft2_4FGL_J1248.9+4840_daily_bin711.fits outfile=/scratch/kocevski/920683/cmap_423619201_423878401_4FGL_J1248.9+4840_daily_bin711.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920683/ft1_filtered_4FGL_J1248.9+4840_daily_bin711.fits scfile=/scratch/kocevski/920683/ft2_4FGL_J1248.9+4840_daily_bin711.fits outfile=/scratch/kocevski/920683/cmap_HighResolution_423619201_423878401_4FGL_J1248.9+4840_daily_bin711.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15656E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0584       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2866       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8499       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.7821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    95.000       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0906       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.034       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4933       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.489       1.0000         .10000E-03   10000.    
    21 'Prefactor '    69.933       1.0000         .10000E-03   10000.    
    22 'norm      '    12.829       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68213       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2411       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=   3008.873     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2832 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9149        .37438E-06** at limit **
   2  Prefactor     4.0644        13.552       -.50635E-05   -.96705E-04
   3  norm          4.2866        3.1615       -.44796E-07   -.13551E-03
   4  norm          3.8502        5.6476       -.30011E-06   -.88243E-04
   5  Prefactor     .10000E-03    10.167       -.21548E-05** at limit **
   6  Prefactor     .10000E-03    3.3780       -.70666E-07** at limit **
   7  norm          6.7808        3.4075        .43046E-07    .23810E-03
   8  Prefactor     94.998        38.159       -.72004E-06    .22628E-04
   9  Prefactor     .10000E-03    15.052        .16710E-05** at limit **
  10  norm          3.0903        2.8948        .28397E-07    .74839E-05
  11  Prefactor     .10000E-03    6.0075       -.44920E-06** at limit **
  12  Prefactor     23.024        69.302       -.17593E-04   -.43121E-06
  13  Prefactor     .10000E-03    16.947       -.66266E-05** at limit **
  14  Prefactor     .10000E-03    13.725        .67679E-05** at limit **
  15  norm          .10000E-03    20.919        .34664E-06** at limit **
  16  norm          1.4923        7.0330       -.13000E-05   -.48473E-03
  17  Prefactor     .10000E-03    21.512        .42913E-05** at limit **
  18  Prefactor     .10000E-03    18.500       -.84767E-05** at limit **
  19  Prefactor     .10000E-03    21.659        .51728E-05** at limit **
  20  norm          11.486        7.4041        .13833E-06    .13811E-03
  21  Prefactor     69.924        62.121       -.85582E-05    .23159E-04
  22  norm          12.829        4.6875        .18806E-05   -.24234E-04
  23  norm          .10000E-03    92.915       -.34200E-05** at limit **
  24  Normalizat    .68213        .23313        .16914E-05    .25667E-04
  25  Prefactor     1.2411        .28982        .62303E-08    .52881E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.06441
  norm       = 4.28665
  norm       = 3.85018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.78075
  Prefactor  = 94.9981
  Prefactor  = 0.0001
  norm       = 3.09034
  Prefactor  = 0.0001
  Prefactor  = 23.0239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.49231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.486
  Prefactor  = 69.9237
  norm       = 12.8289
  norm       = 0.0001
  Normalizat = 0.682135
  Prefactor  = 1.24114
 **********
 **   18 **HESSE 
 **********

 FCN=   3008.873     FROM HESSE     STATUS=OK           423 CALLS     3255 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7582        .17990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0644        13.519        .20015E-03   -1.5305    
   3  norm          4.2866        3.1636        .78685E-04   -1.5294    
   4  norm          3.8502        5.6377        .15320E-03   -1.5316    
   5  Prefactor     .10000E-03    10.172        .17075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3889        .98431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.7808        3.4058        .69482E-04   -1.5187    
   8  Prefactor     94.998        38.114        .41236E-04   -1.3756    
   9  Prefactor     .10000E-03    15.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0903        2.8931        .87582E-04   -1.5356    
  11  Prefactor     .10000E-03    6.0093        .13132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.024        69.227        .83460E-04   -1.4748    
  13  Prefactor     .10000E-03    17.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    20.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4923        7.1461        .27828E-03   -1.5464    
  17  Prefactor     .10000E-03    21.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.486        7.3996        .11562E-03   -1.5030    
  21  Prefactor     69.924        62.015        .24001E-03   -1.4034    
  22  norm          12.829        4.6728        .68897E-04   -1.4991    
  23  norm          .10000E-03    92.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68213        .27648        .26975E-03   -1.0460    
  25  Prefactor     1.2411        .34551        .26326E-03   -.85074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96215e-10
Minuit parameter uncertainties:
  1  1.39273e-05
  2  13.5295
  3  3.16375
  4  5.63852
  5  7.48744e-06
  6  4.10071e-08
  7  3.40589
  8  38.124
  9  2.21959e-06
  10  2.89319
  11  1.05002e-06
  12  69.4704
  13  2.67085e-05
  14  2.02882e-06
  15  8.27266e-05
  16  6.53227
  17  5.81486e-06
  18  2.5631e-05
  19  3.96723e-05
  20  7.40016
  21  62.0721
  22  4.67294
  23  1.87504e-06
  24  0.277047
  25  0.346142
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  9.500e+01  3.812e+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.241e+00  3.461e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  6.821e-01  2.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.79
Ra Dec: 192.244 48.670
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 5.83e-08
Energy Flux (Fixed Index): 4.47e-05 +/- 1.80e-05

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) = 3008.59031234
delta logL = 0.283139001211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3008.59005983
delta logL = 0.283391514623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    123.39       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1643       1.0000          .0000       10.000    
     3 'Normalizat'    .70812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2179       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=   3008.590     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      295 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     123.41        60.201        .18117E-03   -.25703E-04
   2  Index         2.1645        .36710        .37390E-02   -.83951E-05
   3  Normalizat    .70808        .27003        .26510E-03   -.94495E-04
   4  Prefactor     1.2179        .34366        .26530E-03   -.14495E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 123.413
  Index      = 2.16445
  Normalizat = 0.70808
  Prefactor  = 1.21792
 **********
 **   18 **HESSE 
 **********

 FCN=   3008.590     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     123.41        59.405        .36234E-04   -1.3482    
   2  Index         2.1645        .36216        .14956E-03   -.60299    
   3  Normalizat    .70808        .27022        .10604E-04   -1.0357    
   4  Prefactor     1.2179        .34391        .53060E-04   -.85782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4442e-11
Minuit parameter uncertainties:
  1  59.4333
  2  0.362625
  3  0.270725
  4  0.344545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920683': 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) = 3008.59005953
delta logL = 0.2833918097

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.234e+02  5.943e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.164e+00  3.626e-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.218e+00  3.445e-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:  7.081e-01  2.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.22
Ra Dec: 192.244 48.670
Photon Index (Free Index): 2.16 +/- 0.36
Photon Flux (Free Index): 1.25e-07 +/- 5.90e-08
Energy Flux (Free Index): 6.02e-05 +/- 3.78e-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/920683/cmap_HighResolution_423619201_423878401_4FGL_J1248.9+4840_daily_bin711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='6.02e-05', photon_flux_error='5.83e-08', dlogl='2.83e-01', energy_flux='4.47e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-06 05:55:20.402450', photon_index_error2='0.36', photon_index2='2.16', ts='16.79', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='3.78e-05', EG='0.68', time_epoch_completed='1630932920.4', return_code='0', job_id='920683', GAL2='1.22', EG2='0.71', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='5.90e-08', ts2='17.22', photon_index='2.45' WHERE bin_id='711' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:55:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 920683: <4FGL_J1248.9+4840_daily_bin711> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin711> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:45:20 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:45:23 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:23 2021
Terminated at Mon Sep  6 05:55:21 2021
Results reported at Mon Sep  6 05:55:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin711 192.244 48.67 423619201 423878401 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 :                                   511.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             293.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            601 sec.

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

