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


Performing analysis on: 4FGL_J0748.3+4928_daily_bin1525
RA = 117.082, Dec = 49.4748
tmin = 634608001, tmax = 634867201
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='906021', job_status='RUN', time_executed='2021-08-28 14:24:51.522096', time_epoch_executed='1630185891.52' WHERE source_name='4FGL J0748.3+4928' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906021

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906021/ft1_4FGL_J0748.3+4928_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906021/ft2_4FGL_J0748.3+4928_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906021/ft1_4FGL_J0748.3+4928_daily_bin1525.fits outfile=/scratch/kocevski/906021/ft1_filteredMKT_4FGL_J0748.3+4928_daily_bin1525.fits ra=117.082 dec=49.4748 rad=12.0 tmin=634608001.0 tmax=634867201.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.32
user 2.87
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906021/ft1_filtered_4FGL_J0748.3+4928_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/906021/ft2_4FGL_J0748.3+4928_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/906021/ltcube_634608001_634867201_4FGL_J0748.3+4928_daily_bin1525.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/906021/ft2_4FGL_J0748.3+4928_daily_bin1525.fits
.....................!
real 12.79
user 12.18
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906021/ft1_filtered_4FGL_J0748.3+4928_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/906021/ft2_4FGL_J0748.3+4928_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/906021/ltcube_634608001_634867201_4FGL_J0748.3+4928_daily_bin1525.fits outfile=/scratch/kocevski/906021/expmap_634608001_634867201_4FGL_J0748.3+4928_daily_bin1525.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/906021/ltcube_634608001_634867201_4FGL_J0748.3+4928_daily_bin1525.fits
.....................!
real 191.45
user 185.64
sys 5.44

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/906021/ft1_filtered_4FGL_J0748.3+4928_daily_bin1525.fits scfile=/scratch/kocevski/906021/ft2_4FGL_J0748.3+4928_daily_bin1525.fits outfile=/scratch/kocevski/906021/cmap_634608001_634867201_4FGL_J0748.3+4928_daily_bin1525.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 0.82
user 0.38
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906021/ft1_filtered_4FGL_J0748.3+4928_daily_bin1525.fits scfile=/scratch/kocevski/906021/ft2_4FGL_J0748.3+4928_daily_bin1525.fits outfile=/scratch/kocevski/906021/cmap_HighResolution_634608001_634867201_4FGL_J0748.3+4928_daily_bin1525.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 0.79
user 0.39
sys 0.36

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/906021/ft1_filtered_4FGL_J0748.3+4928_daily_bin1525.fits', '/scratch/kocevski/906021/ft2_4FGL_J0748.3+4928_daily_bin1525.fits', expMap='/scratch/kocevski/906021/expmap_634608001_634867201_4FGL_J0748.3+4928_daily_bin1525.fits', expCube='/scratch/kocevski/906021/ltcube_634608001_634867201_4FGL_J0748.3+4928_daily_bin1525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/906021/Model_4FGL_J0748.3+4928_daily_bin1525.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/906021/ft1_filtered_4FGL_J0748.3+4928_daily_bin1525.fits
Spacecraft file(s): /scratch/kocevski/906021/ft2_4FGL_J0748.3+4928_daily_bin1525.fits
Exposure map: /scratch/kocevski/906021/expmap_634608001_634867201_4FGL_J0748.3+4928_daily_bin1525.fits
Exposure cube: /scratch/kocevski/906021/ltcube_634608001_634867201_4FGL_J0748.3+4928_daily_bin1525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/906021/Model_4FGL_J0748.3+4928_daily_bin1525.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) = 3324.23132809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0782       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4927       1.0000         .10000E-03   10000.    
     4 'norm      '    4.3750       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3833       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.785       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.967       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.555       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0199       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3957       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9322       1.0000         .10000E-03   10000.    
    15 'norm      '    .41984E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8694       1.0000         .10000E-03   10000.    
    20 'norm      '    .10258E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3223       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .99457       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10723E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12408E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    25.883       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.6203       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3699       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .70489       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=   3324.229     FROM MIGRAD    STATUS=CONVERGED    869 CALLS     4588 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0124       -.72742E-07** at limit **
   2  norm          3.0775        5.9301        .20368E-06   -.38730E-05
   3  Prefactor     8.4897        32.234       -.41636E-06   -.50439E-05
   4  norm          4.3740        7.8256        .58899E-05   -.17306E-03
   5  Prefactor     .10000E-03    5.6364        .24308E-07** at limit **
   6  Prefactor     8.3848        13.070        .28056E-06   -.13311E-03
   7  Prefactor     19.777        31.120       -.48129E-05   -.51868E-04
   8  Prefactor     .10000E-03    18.032        .42456E-07** at limit **
   9  norm          .10000E-03    8.8695       -.50238E-07** at limit **
  10  Prefactor     12.954        37.370       -.18494E-05   -.22631E-04
  11  Prefactor     31.542        55.393       -.24300E-05   -.69879E-04
  12  norm          2.0197        1.3251       -.89793E-08    .45958E-04
  13  Prefactor     3.4211        31.398        .13573E-05   -.42299E-04
  14  Prefactor     9.9415        40.769        .97335E-06    .29267E-04
  15  norm          .10000E-03    3.8522       -.51421E-07** at limit **
  16  Prefactor     .10000E-03    13.922       -.17732E-06** at limit **
  17  Prefactor     .10000E-03    38.529       -.17269E-06** at limit **
  18  Prefactor     .10000E-03    20.827        .39305E-06** at limit **
  19  Prefactor     4.8672        12.847        .29984E-06    .26263E-05
  20  norm          .10000E-03    6.1540        .16064E-06** at limit **
  21  norm          2.3227        2.2305       -.44639E-07    .17465E-04
  22  Prefactor     .10000E-03    21.322        .41370E-06** at limit **
  23  norm          .99452        .95934       -.16267E-07    .16823E-03
  24  Prefactor     .10000E-03    37.960       -.96015E-06** at limit **
  25  Prefactor     .10000E-03    16.698       -.36298E-06** at limit **
  26  Prefactor     .10000E-03    129.11       -.17463E-05** at limit **
  27  Prefactor     25.801        51.492       -.10505E-04   -.30773E-03
  28  Prefactor     .10000E-03    13.206        .17344E-06** at limit **
  29  norm          .10000E-03    9.9510       -.30363E-06** at limit **
  30  norm          .10000E-03    20.350        .83159E-07** at limit **
  31  Prefactor     7.6004        69.070       -.46086E-05   -.36633E-04
  32  Normalizat    1.3700        .33064        .61216E-05   -.16541E-03
  33  Prefactor     .70486        .18079       -.46786E-05    .16311E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.07747
  Prefactor  = 8.48968
  norm       = 4.37402
  Prefactor  = 0.0001
  Prefactor  = 8.38477
  Prefactor  = 19.777
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9543
  Prefactor  = 31.5418
  norm       = 2.01968
  Prefactor  = 3.42112
  Prefactor  = 9.94154
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.86719
  norm       = 0.0001
  norm       = 2.32271
  Prefactor  = 0.0001
  norm       = 0.994517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 25.8014
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.60035
  Normalizat = 1.37005
  Prefactor  = 0.704859
 **********
 **   18 **HESSE 
 **********

 FCN=   3324.229     FROM HESSE     STATUS=OK           691 CALLS     5279 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0187        .79855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0775        5.9009        .18007E-03   -1.5357    
   3  Prefactor     8.4897        32.178        .13756E-03   -1.5125    
   4  norm          4.3740        7.9436        .92309E-03   -1.5290    
   5  Prefactor     .10000E-03    5.6373        .13369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3848        13.009        .69228E-03   -1.5129    
   7  Prefactor     19.777        31.144        .90046E-04   -1.4818    
   8  Prefactor     .10000E-03    18.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.9037        .16753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.954        37.551        .11124E-03   -1.4988    
  11  Prefactor     31.542        55.340        .71329E-04   -1.4584    
  12  norm          2.0197        1.3206        .50768E-04   -1.5424    
  13  Prefactor     3.4211        27.111        .21956E-03   -1.5338    
  14  Prefactor     9.9415        40.681        .12715E-03   -1.5077    
  15  norm          .10000E-03    54.647        .20158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8672        12.822        .18229E-03   -1.5267    
  20  norm          .10000E-03    6.4245        .27892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3227        2.2385        .82062E-04   -1.5403    
  22  Prefactor     .10000E-03    21.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .99452        1.0100        .53722E-03   -1.5509    
  24  Prefactor     .10000E-03    37.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    129.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     25.801        54.122        .78740E-04   -1.4692    
  28  Prefactor     .10000E-03    13.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    9.9537        .17764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    20.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     7.6004        70.039        .14527E-03   -1.5157    
  32  Normalizat    1.3700        .38182        .28247E-03   -.81499    
  33  Prefactor     .70486        .20651        .21995E-03   -1.0334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9334e-09
Minuit parameter uncertainties:
  1  1.02715e-05
  2  5.90202
  3  32.2438
  4  7.94553
  5  2.3206e-07
  6  13.0134
  7  31.1694
  8  3.41054e-06
  9  2.07479e-05
  10  37.6198
  11  55.4304
  12  1.32059
  13  19.2731
  14  40.2684
  15  0.00086539
  16  4.64215e-05
  17  1.50258e-05
  18  2.89894e-05
  19  12.8293
  20  1.69349e-06
  21  2.23853
  22  2.21156e-06
  23  1.01
  24  5.73131e-05
  25  3.21085e-05
  26  0.00127951
  27  54.2248
  28  5.78809e-05
  29  5.05744e-06
  30  6.38193e-05
  31  46.2155
  32  0.382611
  33  0.206734
Done.

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

Extracting fit parameters...

4FGL J0748.3+4928
   Spectrum: PowerLaw
282    Prefactor:  3.421e+00  1.927e+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:  7.049e-01  2.067e-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:  1.370e+00  3.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/906021/likelihoodResults_634608001_634867201_4FGL_J0748.3+4928_daily_bin1525.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) = 3324.22910016
delta logL = 0.000207730536658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3324.22906797
delta logL = 0.000239923269874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5456       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3361       1.0000          .0000       10.000    
     3 'Normalizat'    1.3704       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70484       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.

 FCN=   3324.229     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      243 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5733        438.52        .53665E-02    .56583E-04
   2  Index         2.3328        2.1473        .45415        .84956E-05
   3  Normalizat    1.3705        .32724E-01    .63850E-01    .73471E-05
   4  Prefactor     .70468        .18964E-01    .42466E-01    .12479E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.57325
  Index      = 2.33281
  Normalizat = 1.37048
  Prefactor  = 0.704682
 **********
 **   18 **HESSE 
 **********

 FCN=   3324.229     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5733        30.043        .21466E-03   -1.5330    
   2  Index         2.3328        2.0253        .71951E-02   -.56266    
   3  Normalizat    1.3705        .34581        .28243E-03   -.81486    
   4  Prefactor     .70468        .20092        .21998E-03   -1.0334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10732e-12
Minuit parameter uncertainties:
  1  20.736
  2  2.11203
  3  0.346396
  4  0.201131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906021': 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) = 3324.22906565
delta logL = 0.000242238224018

Extracting fit parameters...

4FGL J0748.3+4928
   Spectrum: PowerLaw
282    Prefactor:  3.573e+00  2.074e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.333e+00  2.112e+00  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:  7.047e-01  2.011e-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:  1.370e+00  3.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 117.082 49.475

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/906021/cmap_HighResolution_634608001_634867201_4FGL_J0748.3+4928_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', job_status='DONE', photon_flux_upper_limit='1.73e-07', time_completed='2021-08-28 14:36:51.638539', job_id='906021', GAL2='0.70', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630186611.64', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='2.42e-04', ts2='0.04', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1525' AND source_name='4FGL J0748.3+4928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 14:36:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 906021: <4FGL_J0748.3+4928_daily_bin1525> in cluster <slac> Done

Job <4FGL_J0748.3+4928_daily_bin1525> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 28 14:20:31 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 14:20:44 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:44 2021
Terminated at Sat Aug 28 14:36:52 2021
Results reported at Sat Aug 28 14:36:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0748.3+4928_daily_bin1525 117.082 49.4748 634608001 634867201 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 :                                   702.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            981 sec.

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

