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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin450
RA = 192.244, Dec = 48.67
tmin = 355968001, tmax = 356227201
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='918008', job_status='RUN', time_executed='2021-09-06 05:37:57.228439', time_epoch_executed='1630931877.23' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918008/ft1_4FGL_J1248.9+4840_daily_bin450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918008/ft2_4FGL_J1248.9+4840_daily_bin450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918008/ft1_4FGL_J1248.9+4840_daily_bin450.fits outfile=/scratch/kocevski/918008/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin450.fits ra=192.244 dec=48.67 rad=12.0 tmin=355968001.0 tmax=356227201.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.35
user 3.13
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918008/ft2_4FGL_J1248.9+4840_daily_bin450.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/918008/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin450.fits evtable="EVENTS" outfile="/scratch/kocevski/918008/ft1_filtered_4FGL_J1248.9+4840_daily_bin450.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.56
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918008/ft1_filtered_4FGL_J1248.9+4840_daily_bin450.fits" evtable="EVENTS" scfile=/scratch/kocevski/918008/ft2_4FGL_J1248.9+4840_daily_bin450.fits sctable="SC_DATA" outfile=/scratch/kocevski/918008/ltcube_355968001_356227201_4FGL_J1248.9+4840_daily_bin450.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/918008/ft2_4FGL_J1248.9+4840_daily_bin450.fits
.....................!
real 11.84
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918008/ft1_filtered_4FGL_J1248.9+4840_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/918008/ft2_4FGL_J1248.9+4840_daily_bin450.fits sctable="SC_DATA" expcube=/scratch/kocevski/918008/ltcube_355968001_356227201_4FGL_J1248.9+4840_daily_bin450.fits outfile=/scratch/kocevski/918008/expmap_355968001_356227201_4FGL_J1248.9+4840_daily_bin450.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/918008/ltcube_355968001_356227201_4FGL_J1248.9+4840_daily_bin450.fits
.....................!
real 190.08
user 184.86
sys 4.81

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/918008/ft1_filtered_4FGL_J1248.9+4840_daily_bin450.fits scfile=/scratch/kocevski/918008/ft2_4FGL_J1248.9+4840_daily_bin450.fits outfile=/scratch/kocevski/918008/cmap_355968001_356227201_4FGL_J1248.9+4840_daily_bin450.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.60
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918008/ft1_filtered_4FGL_J1248.9+4840_daily_bin450.fits scfile=/scratch/kocevski/918008/ft2_4FGL_J1248.9+4840_daily_bin450.fits outfile=/scratch/kocevski/918008/cmap_HighResolution_355968001_356227201_4FGL_J1248.9+4840_daily_bin450.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.66
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2077       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.662       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4406       1.0000         .10000E-03   10000.    
     4 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11069E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3995       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2205       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.049       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.0875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.532       1.0000         .10000E-03   10000.    
    16 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20115E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    54.896       1.0000         .10000E-03   10000.    
    20 'norm      '    .10701E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.368       1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81268       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1739       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=   6275.622     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     2969 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2078        4.4775        .14372E-05   -.62115E-03
   2  Prefactor     14.673        22.374       -.95507E-06   -.10157E-03
   3  norm          1.4410        2.0048        .84647E-07   -.41323E-04
   4  norm          .10000E-03    6.7670        .16885E-06** at limit **
   5  Prefactor     .10000E-03    45.509        .18294E-06** at limit **
   6  Prefactor     4.3996        4.2713        .54946E-06   -.20785E-03
   7  norm          4.2206        2.1323       -.51408E-07    .19556E-05
   8  Prefactor     12.052        17.459        .29641E-06   -.54112E-05
   9  Prefactor     .10000E-03    6.2379        .27722E-07** at limit **
  10  norm          4.0876        1.9120        .28012E-08    .27417E-04
  11  Prefactor     .10000E-03    6.7809       -.84944E-07** at limit **
  12  Prefactor     .10000E-03    16.558        .36101E-08** at limit **
  13  Prefactor     .10000E-03    2.3333        .21244E-07** at limit **
  14  Prefactor     .10000E-03    9.4579        .48618E-07** at limit **
  15  norm          19.529        13.868        .57304E-07    .96601E-05
  16  norm          .10000E-03    3.9579       -.20771E-06** at limit **
  17  Prefactor     .10005E-03    263.01       -.18077E-04** at limit **
  18  Prefactor     .10000E-03    2.7370       -.21821E-07** at limit **
  19  Prefactor     54.781        41.539        .35279E-05    .10132E-03
  20  norm          .10000E-03    1.4215       -.27139E-06** at limit **
  21  Prefactor     .10000E-03    12.801        .20955E-07** at limit **
  22  norm          15.369        2.7162       -.50523E-07    .38871E-03
  23  norm          .10000E-03    35.921       -.12426E-06** at limit **
  24  Normalizat    .81258        .16462       -.20935E-06    .17121E-03
  25  Prefactor     1.1740        .20107       -.67835E-06    .86710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.20781
  Prefactor  = 14.6728
  norm       = 1.44096
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.39958
  norm       = 4.22062
  Prefactor  = 12.0521
  Prefactor  = 0.0001
  norm       = 4.08755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.5293
  norm       = 0.0001
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  Prefactor  = 54.7809
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.3693
  norm       = 0.0001
  Normalizat = 0.812583
  Prefactor  = 1.17397
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.622     FROM HESSE     STATUS=OK           423 CALLS     3392 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2078        4.5473        .71353E-03   -1.5298    
   2  Prefactor     14.673        22.273        .10460E-03   -1.4942    
   3  norm          1.4410        1.9853        .12518E-03   -1.5468    
   4  norm          .10000E-03    6.8979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3996        4.2743        .76330E-03   -1.5288    
   7  norm          4.2206        2.1355        .77885E-04   -1.5297    
   8  Prefactor     12.052        17.469        .11540E-03   -1.5014    
   9  Prefactor     .10000E-03    6.2391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0876        1.9145        .72810E-04   -1.5304    
  11  Prefactor     .10000E-03    6.8777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3370        .11817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.4749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.529        13.869        .90626E-04   -1.4824    
  16  norm          .10000E-03    4.0449        .15378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10005E-03    292.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7378        .12799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     54.781        42.572        .54138E-04   -1.4226    
  20  norm          .10000E-03    2.4169        .18332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.369        2.7157        .51730E-04   -1.4924    
  23  norm          .10000E-03    35.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .81258        .19520        .24891E-03   -.99604    
  25  Prefactor     1.1740        .23888        .26904E-03   -.87136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2226e-10
Minuit parameter uncertainties:
  1  4.54771
  2  22.2855
  3  1.9854
  4  1.62039e-05
  5  6.73474e-05
  6  4.27462
  7  2.1355
  8  17.4769
  9  7.21027e-07
  10  1.91451
  11  2.07696e-05
  12  1.28476e-06
  13  1.16996e-06
  14  5.75343e-06
  15  13.8709
  16  1.62985e-05
  17  0.0074708
  18  9.02838e-07
  19  42.5954
  20  3.46883e-06
  21  2.75593e-06
  22  2.7157
  23  1.99912e-05
  24  0.195371
  25  0.239103
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.205e+01  1.748e+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.174e+00  2.391e-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.126e-01  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/918008/likelihoodResults_355968001_356227201_4FGL_J1248.9+4840_daily_bin450.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) = 6275.61267838
delta logL = 0.00947219941463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6275.39480694
delta logL = 0.227343641864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11049E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5445       1.0000          .0000       10.000    
     3 'Normalizat'    .77028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2209       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=   6275.395     FROM MIGRAD    STATUS=FAILED       106 CALLS      356 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10541E-01    .56965        .45339E-03    .17643    
   2  Index         6.5673        8.0791        .69371E-02   -.77442E-04
   3  Normalizat    .77026        .90003E-01    .25502E-03   -.91477E-04
   4  Prefactor     1.2211        .11347        .26468E-03   -.10412E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6275.395     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      447 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10541E-01    .56965        .14952E-04    .17643    
   2  Index         6.5673        8.0791        .17527E-02   -.77442E-04
   3  Normalizat    .77026        .90003E-01    .64729E-04   -.91477E-04
   4  Prefactor     1.2211        .11347        .98227E-04   -.10412E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6275.395     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      478 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10540E-01    .64890        .42705E-04   -.63425E-02
   2  Index         6.5674        8.1704        .27749E-03   -.65921E-04
   3  Normalizat    .77026        .17071        .10201E-04   -.41013E-04
   4  Prefactor     1.2211        .21381        .10587E-04   -.54979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0105397
  Index      = 6.56736
  Normalizat = 0.770263
  Prefactor  = 1.22114
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.395     FROM HESSE     STATUS=OK            23 CALLS      501 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10540E-01    .34526        .17082E-05   -1.5688    
   2  Index         6.5674        7.6435        .11099E-04    .31885    
   3  Normalizat    .77026        .19475        .20402E-05   -1.0118    
   4  Prefactor     1.2211        .24409        .21175E-05   -.85683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.25536e-11
Minuit parameter uncertainties:
  1  0.120073
  2  5.49708
  3  0.194923
  4  0.244318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918008': 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) = 6275.39479355
delta logL = 0.227357028494

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.054e-02  1.201e-01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  6.567e+00  5.497e+00  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.221e+00  2.443e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  7.703e-01  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 192.244 48.670
Photon Index (Free Index): 6.57 +/- 5.50
Photon Flux (Free Index): 3.73e-08 +/- 4.18e-08
Energy Flux (Free Index): 4.52e-06 +/- 5.36e-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/918008/cmap_HighResolution_355968001_356227201_4FGL_J1248.9+4840_daily_bin450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-03', comment='SUCCESS', energy_flux2='4.52e-06', dlogl='2.27e-01', photon_flux2='3.73e-08', job_status='DONE', time_completed='2021-09-06 05:51:44.128420', photon_index_error2='5.50', photon_index2='6.57', ts='0.68', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='8.54e-08', energy_flux_error2='5.36e-06', EG='0.81', time_epoch_completed='1630932704.13', return_code='0', job_id='918008', GAL2='1.22', EG2='0.77', return_code2='0', photon_flux_error2='4.18e-08', ts2='1.20', photon_index='2.45' WHERE bin_id='450' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:51:44 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin450 192.244 48.67 355968001 356227201 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 :                                   821.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

