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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin428
RA = 192.244, Dec = 48.67
tmin = 350265601, tmax = 350524801
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='917985', job_status='RUN', time_executed='2021-09-06 05:36:23.395143', time_epoch_executed='1630931783.4' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='428'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917985

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917985/ft1_4FGL_J1248.9+4840_daily_bin428.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917985/ft2_4FGL_J1248.9+4840_daily_bin428.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917985/ft1_4FGL_J1248.9+4840_daily_bin428.fits outfile=/scratch/kocevski/917985/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin428.fits ra=192.244 dec=48.67 rad=12.0 tmin=350265601.0 tmax=350524801.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.34
user 3.09
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917985/ft1_filtered_4FGL_J1248.9+4840_daily_bin428.fits" evtable="EVENTS" scfile=/scratch/kocevski/917985/ft2_4FGL_J1248.9+4840_daily_bin428.fits sctable="SC_DATA" outfile=/scratch/kocevski/917985/ltcube_350265601_350524801_4FGL_J1248.9+4840_daily_bin428.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/917985/ft2_4FGL_J1248.9+4840_daily_bin428.fits
.....................!
real 12.05
user 11.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917985/ft1_filtered_4FGL_J1248.9+4840_daily_bin428.fits evtable="EVENTS" scfile=/scratch/kocevski/917985/ft2_4FGL_J1248.9+4840_daily_bin428.fits sctable="SC_DATA" expcube=/scratch/kocevski/917985/ltcube_350265601_350524801_4FGL_J1248.9+4840_daily_bin428.fits outfile=/scratch/kocevski/917985/expmap_350265601_350524801_4FGL_J1248.9+4840_daily_bin428.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/917985/ltcube_350265601_350524801_4FGL_J1248.9+4840_daily_bin428.fits
.....................!
real 190.36
user 184.86
sys 5.08

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/917985/ft1_filtered_4FGL_J1248.9+4840_daily_bin428.fits scfile=/scratch/kocevski/917985/ft2_4FGL_J1248.9+4840_daily_bin428.fits outfile=/scratch/kocevski/917985/cmap_350265601_350524801_4FGL_J1248.9+4840_daily_bin428.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.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3966       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2517       1.0000         .10000E-03   10000.    
     4 'norm      '    7.9344       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3099       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.3525       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.889       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.672       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    123.32       1.0000         .10000E-03   10000.    
    22 'norm      '    9.2257       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82330       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1031       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=   5861.012     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2862 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3970        1.6292        .46681E-07   -.67482E-04
   2  Prefactor     .10000E-03    9.9349        .97038E-06** at limit **
   3  norm          3.2517        2.2270        .14633E-06   -.44628E-04
   4  norm          7.9344        5.3242        .11597E-06   -.18360E-04
   5  Prefactor     .10000E-03    5.8318       -.27013E-06** at limit **
   6  Prefactor     .10000E-03    2.8279        .53621E-07** at limit **
   7  norm          1.3100        1.5095        .29910E-07   -.10335E-03
   8  Prefactor     .10000E-03    16.265        .14948E-05** at limit **
   9  Prefactor     .10000E-03    8.9370       -.11554E-05** at limit **
  10  norm          5.3524        2.6368        .48871E-07   -.53380E-04
  11  Prefactor     .10000E-03    2.8445        .51444E-07** at limit **
  12  Prefactor     .10000E-03    17.267       -.13544E-05** at limit **
  13  Prefactor     .10000E-03    6.5214        .59975E-06** at limit **
  14  Prefactor     .10000E-03    5.9152        .43618E-07** at limit **
  15  norm          .10000E-03    4.2845        .33594E-07** at limit **
  16  norm          .10000E-03    1.9724        .11778E-06** at limit **
  17  Prefactor     69.904        44.420       -.42987E-05   -.76498E-05
  18  Prefactor     .10001E-03    59.446       -.48713E-05** at limit **
  19  Prefactor     25.613        39.965        .10577E-04    .40719E-04
  20  norm          1.4024        4.0351        .85673E-05   -.12813E-03
  21  Prefactor     123.28        67.792        .38332E-05    .50897E-04
  22  norm          9.2259        2.3642       -.99557E-07   -.18007E-04
  23  norm          .10000E-03    69.652        .57746E-05** at limit **
  24  Normalizat    .82329        .16283       -.11020E-05   -.16997E-04
  25  Prefactor     1.1031        .20025       -.11199E-05   -.58842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39699
  Prefactor  = 0.0001
  norm       = 3.25173
  norm       = 7.93445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.30996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.35243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 69.9044
  Prefactor  = 0.000100008
  Prefactor  = 25.6129
  norm       = 1.40236
  Prefactor  = 123.277
  norm       = 9.22595
  norm       = 0.0001
  Normalizat = 0.82329
  Prefactor  = 1.10314
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.012     FROM HESSE     STATUS=OK           423 CALLS     3285 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3970        1.6194        .10245E-03   -1.5472    
   2  Prefactor     .10000E-03    10.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2517        2.2333        .89311E-04   -1.5347    
   4  norm          7.9344        5.3235        .14020E-03   -1.5145    
   5  Prefactor     .10000E-03    5.8393        .18054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8470        .12566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3100        1.4811        .98081E-04   -1.5479    
   8  Prefactor     .10000E-03    16.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.9500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.3524        2.6362        .84237E-04   -1.5245    
  11  Prefactor     .10000E-03    2.8467        .12610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2869        .15477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0035        .10492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     69.904        44.419        .48016E-04   -1.4034    
  18  Prefactor     .10001E-03    62.734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.613        39.943        .79062E-04   -1.4695    
  20  norm          1.4024        4.0404        .12430E-02   -1.5471    
  21  Prefactor     123.28        67.976        .18122E-03   -1.3483    
  22  norm          9.2259        2.3647        .56961E-04   -1.5100    
  23  norm          .10000E-03    69.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82329        .19299        .24103E-03   -.99211    
  25  Prefactor     1.1031        .23747        .26766E-03   -.89366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88479e-10
Minuit parameter uncertainties:
  1  1.61945
  2  1.76272e-05
  3  2.23332
  4  5.32383
  5  4.04666e-06
  6  3.54729e-06
  7  1.48115
  8  3.46014e-05
  9  2.65965e-06
  10  2.63625
  11  2.94049e-06
  12  4.31309e-07
  13  1.06522e-05
  14  4.22141e-06
  15  2.26208e-06
  16  6.57273e-06
  17  44.4402
  18  0.00145805
  19  39.9849
  20  4.04123
  21  68.0195
  22  2.36475
  23  2.74512e-05
  24  0.193151
  25  0.237699
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  3.460e-05  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.103e+00  2.377e-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.233e-01  1.932e-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: 6.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917985/likelihoodResults_350265601_350524801_4FGL_J1248.9+4840_daily_bin428.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) = 5861.01239147
delta logL = -0.000291346322228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5861.01210015
delta logL = -2.65408743871e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4476       1.0000          .0000       10.000    
     3 'Normalizat'    .82326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1032       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5861.012     FROM MIGRAD    STATUS=FAILED        89 CALLS      241 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    1172.1        .18142E-02** at limit **
   2  Index         2.4003        7.7332        .50000        .71436E-06
   3  Normalizat    .82329        .37248E-01    .24103E-03   -.18867E-06
   4  Prefactor     1.1031        .47349E-01    .26766E-03    .42475E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5861.012     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      401 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    1172.1        .61351E-03** at limit **
   2  Index         2.4003        7.7332        .66740E-05    .71436E-06
   3  Normalizat    .82329        .37248E-01    .12379E-06   -.18867E-06
   4  Prefactor     1.1031        .47349E-01    .51257E-07    .42475E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5861.012     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      441 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6677.9        .36285E-03** at limit **
   2  Index         2.3520        6.1040        .50000        .65461E-07
   3  Normalizat    .82329        .12709        .96411E-05    .66035E-05
   4  Prefactor     1.1031        .15994        .10706E-04    .65836E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.35202
  Normalizat = 0.823289
  Prefactor  = 1.10314
 **********
 **   18 **HESSE 
 **********

 FCN=   5861.012     FROM HESSE     STATUS=OK            29 CALLS      470 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.346        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3520        5.8225        .50000       -.55812    
   3  Normalizat    .82329        .18479        .19282E-05   -.99211    
   4  Prefactor     1.1031        .23514        .21413E-05   -.89366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29056e-10
Minuit parameter uncertainties:
  1  0.00050027
  2  428.389
  3  0.184929
  4  0.235365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917985': 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) = 5861.01210011
delta logL = 1.67256075656e-08

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  5.003e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.352e+00  4.284e+02  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.103e+00  2.354e-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.233e-01  1.849e-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/917985/cmap_HighResolution_350265601_350524801_4FGL_J1248.9+4840_daily_bin428.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-06 05:49:18.476540', job_id='917985', GAL2='1.10', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630932558.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.67e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='428' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:49:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 917985: <4FGL_J1248.9+4840_daily_bin428> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin428 192.244 48.67 350265601 350524801 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 :                                   767.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

