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


Performing analysis on: 4FGL_J0748.3+4928_daily_bin1456
RA = 117.082, Dec = 49.4748
tmin = 616723201, tmax = 616982401
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='905899', job_status='RUN', time_executed='2021-08-28 14:22:31.108154', time_epoch_executed='1630185751.11' WHERE source_name='4FGL J0748.3+4928' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905899

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905899/ft1_4FGL_J0748.3+4928_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905899/ft2_4FGL_J0748.3+4928_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905899/ft1_4FGL_J0748.3+4928_daily_bin1456.fits outfile=/scratch/kocevski/905899/ft1_filteredMKT_4FGL_J0748.3+4928_daily_bin1456.fits ra=117.082 dec=49.4748 rad=12.0 tmin=616723201.0 tmax=616982401.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 9.35
user 2.88
sys 6.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/905899/ft2_4FGL_J0748.3+4928_daily_bin1456.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905899/ft2_4FGL_J0748.3+4928_daily_bin1456.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/905899/ft1_filteredMKT_4FGL_J0748.3+4928_daily_bin1456.fits evtable="EVENTS" outfile="/scratch/kocevski/905899/ft1_filtered_4FGL_J0748.3+4928_daily_bin1456.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 6.72
user 0.33
sys 6.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905899/ft1_filtered_4FGL_J0748.3+4928_daily_bin1456.fits" evtable="EVENTS" scfile=/scratch/kocevski/905899/ft2_4FGL_J0748.3+4928_daily_bin1456.fits sctable="SC_DATA" outfile=/scratch/kocevski/905899/ltcube_616723201_616982401_4FGL_J0748.3+4928_daily_bin1456.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/905899/ft2_4FGL_J0748.3+4928_daily_bin1456.fits
.....................!
real 19.48
user 12.14
sys 7.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905899/ft1_filtered_4FGL_J0748.3+4928_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/905899/ft2_4FGL_J0748.3+4928_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/905899/ltcube_616723201_616982401_4FGL_J0748.3+4928_daily_bin1456.fits outfile=/scratch/kocevski/905899/expmap_616723201_616982401_4FGL_J0748.3+4928_daily_bin1456.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/905899/ltcube_616723201_616982401_4FGL_J0748.3+4928_daily_bin1456.fits
.....................!
real 199.48
user 186.44
sys 12.59

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J0748.3+4928 @ 117.082 49.4748

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/905899/ft1_filtered_4FGL_J0748.3+4928_daily_bin1456.fits scfile=/scratch/kocevski/905899/ft2_4FGL_J0748.3+4928_daily_bin1456.fits outfile=/scratch/kocevski/905899/cmap_616723201_616982401_4FGL_J0748.3+4928_daily_bin1456.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=117.082 yref=49.4748 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 6.66
user 0.35
sys 6.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905899/ft1_filtered_4FGL_J0748.3+4928_daily_bin1456.fits scfile=/scratch/kocevski/905899/ft2_4FGL_J0748.3+4928_daily_bin1456.fits outfile=/scratch/kocevski/905899/cmap_HighResolution_616723201_616982401_4FGL_J0748.3+4928_daily_bin1456.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=117.082 yref=49.4748 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 6.66
user 0.36
sys 6.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905899/ft1_filtered_4FGL_J0748.3+4928_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/905899/ft2_4FGL_J0748.3+4928_daily_bin1456.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905899/Model_4FGL_J0748.3+4928_daily_bin1456.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/905899/ft1_filtered_4FGL_J0748.3+4928_daily_bin1456.fits.....................!
real 46.93
user 37.16
sys 9.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/905899/ft1_filtered_4FGL_J0748.3+4928_daily_bin1456.fits', '/scratch/kocevski/905899/ft2_4FGL_J0748.3+4928_daily_bin1456.fits', expMap='/scratch/kocevski/905899/expmap_616723201_616982401_4FGL_J0748.3+4928_daily_bin1456.fits', expCube='/scratch/kocevski/905899/ltcube_616723201_616982401_4FGL_J0748.3+4928_daily_bin1456.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/905899/Model_4FGL_J0748.3+4928_daily_bin1456.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0748.3+4928'

4FGL J0748.3+4928
   Spectrum: PowerLaw
282    Prefactor:  1.597e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.379e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.243e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/905899/ft1_filtered_4FGL_J0748.3+4928_daily_bin1456.fits
Spacecraft file(s): /scratch/kocevski/905899/ft2_4FGL_J0748.3+4928_daily_bin1456.fits
Exposure map: /scratch/kocevski/905899/expmap_616723201_616982401_4FGL_J0748.3+4928_daily_bin1456.fits
Exposure cube: /scratch/kocevski/905899/ltcube_616723201_616982401_4FGL_J0748.3+4928_daily_bin1456.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/905899/Model_4FGL_J0748.3+4928_daily_bin1456.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) = 2928.61404354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75483       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.515       1.0000         .10000E-03   10000.    
     4 'norm      '    .12364E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8265       1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.552       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.164       1.0000         .10000E-03   10000.    
     9 'norm      '    16.808       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10992E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .46149       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3201       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .65717E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0849       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    29.334       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15679E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.905       1.0000         .10000E-03   10000.    
    26 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .15424E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    28.126       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .70941E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .68738       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .94678       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2922.716     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     4787 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75552        3.8226        .10910E-06   -.37833E-04
   2  norm          .10000E-03    1.7308       -.34395E-07** at limit **
   3  Prefactor     34.514        35.277        .75221E-07    .17750E-06
   4  norm          .10000E-03    5.4112       -.66585E-06** at limit **
   5  Prefactor     .10000E-03    7.8690        .41637E-07** at limit **
   6  Prefactor     1.8234        9.1076        .85660E-06    .27494E-04
   7  Prefactor     45.548        30.722       -.33754E-06   -.73519E-04
   8  Prefactor     15.160        23.759       -.46229E-06   -.12130E-03
   9  norm          16.810        14.531        .15767E-06    .11313E-04
  10  Prefactor     .10001E-03    66.836        .93050E-05** at limit **
  11  Prefactor     .10003E-03    253.02        .20826E-04** at limit **
  12  norm          .46132        1.0758       -.18435E-06   -.64536E-03
  13  Prefactor     22.960        23.901       -.22468E-05   -.89209E-04
  14  Prefactor     .10000E-03    15.558       -.49095E-06** at limit **
  15  norm          1.3202        5.1830        .47880E-05   -.70266E-03
  16  Prefactor     .10077E-03    18.898        .20507E-05** at limit **
  17  Prefactor     .10000E-03    51.708       -.25812E-05** at limit **
  18  Prefactor     1.1088        60.772        .54233E-05   -.13073E-03
  19  Prefactor     .10000E-03    8.9960       -.15580E-06** at limit **
  20  norm          29.336        10.965        .42173E-06    .57080E-04
  21  norm          .10000E-03    1.5860       -.96257E-07** at limit **
  22  Prefactor     .10000E-03    14.179        .21697E-05** at limit **
  23  norm          .10000E-03    1.2881        .88955E-09** at limit **
  24  Prefactor     .10004E-03    161.61       -.21552E-04** at limit **
  25  Prefactor     12.899        11.937       -.86633E-06   -.26591E-03
  26  Prefactor    10000.0        1971.3       -.98161E-04** at limit **
  27  Prefactor     .10001E-03    230.50        .10887E-04** at limit **
  28  Prefactor     .10000E-03    13.758       -.18667E-05** at limit **
  29  norm          .10001E-03    88.846       -.74605E-05** at limit **
  30  norm          28.113        77.408        .34114E-05    .24308E-04
  31  Prefactor     .10000E-03    355.79        .72165E-05** at limit **
  32  Normalizat    .68752        .33031       -.26659E-05   -.19798E-03
  33  Prefactor     .94677        .18513        .42660E-06   -.29508E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.755522
  norm       = 0.0001
  Prefactor  = 34.5142
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.82336
  Prefactor  = 45.5481
  Prefactor  = 15.1599
  norm       = 16.81
  Prefactor  = 0.000100008
  Prefactor  = 0.000100029
  norm       = 0.461323
  Prefactor  = 22.96
  Prefactor  = 0.0001
  norm       = 1.32021
  Prefactor  = 0.00010077
  Prefactor  = 0.000100001
  Prefactor  = 1.10883
  Prefactor  = 0.0001
  norm       = 29.3363
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 12.899
  Prefactor  = 10000
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 28.113
  Prefactor  = 0.000100004
  Normalizat = 0.687524
  Prefactor  = 0.946771
 **********
 **   18 **HESSE 
 **********

 FCN=   2922.716     FROM HESSE     STATUS=OK           693 CALLS     5480 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75552        3.6859        .20001E-03   -1.5534    
   2  norm          .10000E-03    1.7354        .69450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.514        35.324        .68211E-04   -1.4532    
   4  norm          .10000E-03    9.4502        .23187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8742        .14812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8234        8.3481        .28407E-03   -1.5438    
   7  Prefactor     45.548        30.525        .59405E-04   -1.4357    
   8  Prefactor     15.160        23.915        .10285E-03   -1.4929    
   9  norm          16.810        14.448        .97692E-04   -1.4888    
  10  Prefactor     .10001E-03    67.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    257.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .46132        1.0170        .80075E-03   -1.5572    
  13  Prefactor     22.960        24.079        .83595E-04   -1.4749    
  14  Prefactor     .10000E-03    15.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3202        5.6496        .11295E-02   -1.5478    
  16  Prefactor     .10077E-03    228.23        .45091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    51.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1088        488.59        .74142E-02   -1.5497    
  19  Prefactor     .10000E-03    8.9976        .15839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          29.336        10.957        .73973E-04   -1.4624    
  21  norm          .10000E-03    1.5931        .66461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.2884        .59924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10004E-03    162.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.899        11.939        .11151E-03   -1.4990    
  26  Prefactor    10000.0        1986.5        .20463E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    230.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    13.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10001E-03    88.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          28.113        77.434        .75542E-04   -1.4647    
  31  Prefactor     .10000E-03    358.94        .20972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .68752        .37283        .35951E-03   -1.0439    
  33  Prefactor     .94677        .21276        .18913E-03   -.94525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62969e-09
Minuit parameter uncertainties:
  1  3.33764
  2  1.11768e-06
  3  35.3454
  4  6.78996e-05
  5  4.09155e-06
  6  7.80454
  7  30.5357
  8  23.9299
  9  14.4506
  10  0.00142895
  11  0.00543979
  12  1.01702
  13  24.0897
  14  3.87175e-05
  15  5.46276
  16  0.0266105
  17  0.000352251
  18  46.9399
  19  9.45444e-06
  20  10.958
  21  4.10232e-06
  22  0.000137944
  23  1.50309e-07
  24  0.00514762
  25  11.9416
  26  0.0846177
  27  0.00309092
  28  0.000137716
  29  0.00134658
  30  77.7126
  31  0.0023359
  32  0.37421
  33  0.212951
Done.

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

Extracting fit parameters...

4FGL J0748.3+4928
   Spectrum: PowerLaw
282    Prefactor:  2.296e+01  2.409e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.379e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.243e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  9.468e-01  2.130e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  6.875e-01  3.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 117.082 49.475
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 6.69e-08 +/- 7.02e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 2.37e-05

TS (Fixed Index): 1.93
Ra Dec: 117.082 49.475
Photon Flux Upper Limit: 2.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905899/likelihoodResults_616723201_616982401_4FGL_J0748.3+4928_daily_bin1456.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) = 2922.70694778
delta logL = 0.0090991385573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2922.69970481
delta logL = 0.0163421169586

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.545       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2449       1.0000          .0000       10.000    
     3 'Normalizat'    .69239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94478       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+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=   2922.700     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      236 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.541        32.317        .77754E-04    .63423E-03
   2  Index         2.2457        .74535        .58898E-02    .25585E-03
   3  Normalizat    .69265        .33792        .35835E-03   -.15249E-03
   4  Prefactor     .94482        .20695        .18930E-03   -.32303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5406
  Index      = 2.24574
  Normalizat = 0.692649
  Prefactor  = 0.944823
 **********
 **   18 **HESSE 
 **********

 FCN=   2922.700     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.541        31.315        .15551E-04   -1.4677    
   2  Index         2.2457        .72228        .23559E-03   -.58338    
   3  Normalizat    .69265        .33802        .14334E-04   -1.0418    
   4  Prefactor     .94482        .20703        .37861E-04   -.94592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66719e-09
Minuit parameter uncertainties:
  1  31.3348
  2  0.725937
  3  0.339038
  4  0.207203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905899': 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) = 2922.69970179
delta logL = 0.0163451335084

Extracting fit parameters...

4FGL J0748.3+4928
   Spectrum: PowerLaw
282    Prefactor:  2.654e+01  3.133e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.246e+00  7.259e-01  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  1.243e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  9.448e-01  2.072e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  6.926e-01  3.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 117.082 49.475
Photon Index (Free Index): 2.25 +/- 0.73
Photon Flux (Free Index): 6.12e-08 +/- 6.75e-08
Energy Flux (Free Index): 2.53e-05 +/- 2.99e-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/905899/cmap_HighResolution_616723201_616982401_4FGL_J0748.3+4928_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-02', comment='SUCCESS', photon_flux='6.69e-08', energy_flux2='2.53e-05', photon_flux_error='7.02e-08', dlogl='1.63e-02', energy_flux='2.26e-05', photon_flux2='6.12e-08', job_status='DONE', time_completed='2021-08-28 14:35:26.662379', photon_index_error2='0.73', photon_index2='2.25', ts='1.93', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.25e-07', energy_flux_error2='2.99e-05', EG='0.69', time_epoch_completed='1630186526.66', return_code='0', job_id='905899', GAL2='0.94', EG2='0.69', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='6.75e-08', ts2='1.97', photon_index='2.38' WHERE bin_id='1456' AND source_name='4FGL J0748.3+4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 14:35:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 905899: <4FGL_J0748.3+4928_daily_bin1456> in cluster <slac> Done

Job <4FGL_J0748.3+4928_daily_bin1456> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 28 14:20:25 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 14:20:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 14:20:26 2021
Terminated at Sat Aug 28 14:35:28 2021
Results reported at Sat Aug 28 14:35:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0748.3+4928_daily_bin1456 117.082 49.4748 616723201 616982401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0748.3+4928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   858.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

