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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin625
RA = 177.154, Dec = 18.6861
tmin = 401328001, tmax = 401587201
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='86262', job_status='RUN', time_executed='2021-09-04 11:56:47.651785', time_epoch_executed='1630781807.65' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86262/ft1_4FGL_J1148.6+1841_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86262/ft2_4FGL_J1148.6+1841_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86262/ft1_4FGL_J1148.6+1841_daily_bin625.fits outfile=/scratch/kocevski/86262/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin625.fits ra=177.154 dec=18.6861 rad=12.0 tmin=401328001.0 tmax=401587201.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.39
user 3.17
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/86262/ft2_4FGL_J1148.6+1841_daily_bin625.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86262/ft2_4FGL_J1148.6+1841_daily_bin625.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/86262/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin625.fits evtable="EVENTS" outfile="/scratch/kocevski/86262/ft1_filtered_4FGL_J1148.6+1841_daily_bin625.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86262/ft1_filtered_4FGL_J1148.6+1841_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/86262/ft2_4FGL_J1148.6+1841_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/86262/ltcube_401328001_401587201_4FGL_J1148.6+1841_daily_bin625.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/86262/ft2_4FGL_J1148.6+1841_daily_bin625.fits
.....................!
real 12.07
user 11.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86262/ft1_filtered_4FGL_J1148.6+1841_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/86262/ft2_4FGL_J1148.6+1841_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/86262/ltcube_401328001_401587201_4FGL_J1148.6+1841_daily_bin625.fits outfile=/scratch/kocevski/86262/expmap_401328001_401587201_4FGL_J1148.6+1841_daily_bin625.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/86262/ltcube_401328001_401587201_4FGL_J1148.6+1841_daily_bin625.fits
.....................!
real 190.28
user 185.32
sys 4.55

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

Setting source of interest to:
4FGL J1148.6+1841 @ 177.154 18.6861

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/86262/ft1_filtered_4FGL_J1148.6+1841_daily_bin625.fits scfile=/scratch/kocevski/86262/ft2_4FGL_J1148.6+1841_daily_bin625.fits outfile=/scratch/kocevski/86262/cmap_401328001_401587201_4FGL_J1148.6+1841_daily_bin625.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=177.154 yref=18.6861 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86262/ft1_filtered_4FGL_J1148.6+1841_daily_bin625.fits scfile=/scratch/kocevski/86262/ft2_4FGL_J1148.6+1841_daily_bin625.fits outfile=/scratch/kocevski/86262/cmap_HighResolution_401328001_401587201_4FGL_J1148.6+1841_daily_bin625.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=177.154 yref=18.6861 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/86262/ft1_filtered_4FGL_J1148.6+1841_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/86262/ft2_4FGL_J1148.6+1841_daily_bin625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86262/Model_4FGL_J1148.6+1841_daily_bin625.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/86262/ft1_filtered_4FGL_J1148.6+1841_daily_bin625.fits.....................!
real 55.68
user 53.87
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86262/ft1_filtered_4FGL_J1148.6+1841_daily_bin625.fits', '/scratch/kocevski/86262/ft2_4FGL_J1148.6+1841_daily_bin625.fits', expMap='/scratch/kocevski/86262/expmap_401328001_401587201_4FGL_J1148.6+1841_daily_bin625.fits', expCube='/scratch/kocevski/86262/ltcube_401328001_401587201_4FGL_J1148.6+1841_daily_bin625.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86262/Model_4FGL_J1148.6+1841_daily_bin625.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1148.6+1841'

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.462e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/86262/ft1_filtered_4FGL_J1148.6+1841_daily_bin625.fits
Spacecraft file(s): /scratch/kocevski/86262/ft2_4FGL_J1148.6+1841_daily_bin625.fits
Exposure map: /scratch/kocevski/86262/expmap_401328001_401587201_4FGL_J1148.6+1841_daily_bin625.fits
Exposure cube: /scratch/kocevski/86262/ltcube_401328001_401587201_4FGL_J1148.6+1841_daily_bin625.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86262/Model_4FGL_J1148.6+1841_daily_bin625.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) = 5898.0535797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.775       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8611       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24310       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85436       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16679E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9229       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11699E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17762E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10806E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.790       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0538       1.0000         .10000E-03   10000.    
    20 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.824       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8198       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0793       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1313       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5898.050     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2792 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.785        19.413        .24939E-06    .33649E-04
   2  Prefactor     .10000E-03    7.7895       -.28560E-06** at limit **
   3  norm          .10000E-03    3.9611       -.18171E-06** at limit **
   4  norm          .10000E-03    2.6504       -.94579E-07** at limit **
   5  Prefactor     .10000E-03    4.6350       -.17895E-06** at limit **
   6  Prefactor     .10000E-03    25.727       -.13255E-06** at limit **
   7  Prefactor     5.8694        14.352       -.84088E-06   -.42177E-05
   8  Prefactor     .10000E-03    13.353       -.47534E-06** at limit **
   9  Prefactor     .21661        22.479       -.26077E-05   -.12438E-03
  10  Prefactor     .85569        1.1785       -.42315E-07    .31314E-04
  11  Prefactor     .10000E-03    19.865       -.28529E-05** at limit **
  12  norm          1.9237        1.1646       -.44321E-07    .27391E-04
  13  Prefactor     .10281E-03    22.193       -.30478E-05** at limit **
  14  Prefactor     .16278E-01    1.3880        .47826E-07   -.53713E-04
  15  Prefactor     .10000E-03    45.179       -.58444E-06** at limit **
  16  Prefactor     .10000E-03    1.1289       -.13357E-06** at limit **
  17  Prefactor     .10000E-03    1.1054        .21626E-07** at limit **
  18  Prefactor     17.792        7.5828        .13579E-06    .35424E-04
  19  norm          1.0536        .29694       -.17160E-08    .20342E-03
  20  norm          .10000E-03    2.7483        .84389E-06** at limit **
  21  Prefactor     11.776        14.473        .14932E-05    .77526E-04
  22  Prefactor     2.8800        110.30       -.19671E-05    .61243E-05
  23  Normalizat    1.0791        .17874        .36888E-06    .26810E-03
  24  Prefactor     1.1315        .18746        .99227E-06    .22259E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.7854
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.86935
  Prefactor  = 0.0001
  Prefactor  = 0.216606
  Prefactor  = 0.85569
  Prefactor  = 0.0001
  norm       = 1.92373
  Prefactor  = 0.000102807
  Prefactor  = 0.0162782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7919
  norm       = 1.05365
  norm       = 0.0001
  Prefactor  = 11.7757
  Prefactor  = 2.87996
  Normalizat = 1.07906
  Prefactor  = 1.13151
 **********
 **   18 **HESSE 
 **********

 FCN=   5898.050     FROM HESSE     STATUS=OK           413 CALLS     3205 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.785        19.466        .90069E-04   -1.4818    
   2  Prefactor     .10000E-03    7.9594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.9714        .14932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6534        .12212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6524        .16153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8694        14.363        .16588E-03   -1.5223    
   8  Prefactor     .10000E-03    13.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .21661        22.606        .32255E-02   -1.5615    
  10  Prefactor     .85569        1.1783        .50564E-04   -1.5523    
  11  Prefactor     .10000E-03    20.453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9237        1.1648        .62329E-04   -1.5431    
  13  Prefactor     .10281E-03    16.010        .81892E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16278E-01    2.0244        .33516E-01   -1.5683    
  15  Prefactor     .10000E-03    45.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.1604        .15944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.1153        .78787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.792        7.6063        .94958E-04   -1.4864    
  19  norm          1.0536        .29692        .21212E-04   -1.5503    
  20  norm          .10000E-03    2.7354        .12330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.776        14.308        .11650E-03   -1.5022    
  22  Prefactor     2.8800        110.21        .24221E-03   -1.5369    
  23  Normalizat    1.0791        .21189        .25128E-03   -.90427    
  24  Prefactor     1.1315        .22126        .26166E-03   -.88466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39194e-08
Minuit parameter uncertainties:
  1  19.4725
  2  1.87706e-05
  3  4.20194e-06
  4  1.6726e-06
  5  5.8249e-06
  6  8.79679e-06
  7  14.3711
  8  1.49128e-05
  9  4.42634
  10  1.17837
  11  3.21989e-05
  12  1.16484
  13  0.0134107
  14  0.361962
  15  1.98602e-05
  16  2.79429e-06
  17  2.13942e-06
  18  7.60675
  19  0.296918
  20  3.15363e-06
  21  14.3118
  22  35.7024
  23  0.212053
  24  0.221441
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  2.166e-01  4.426e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.132e+00  2.214e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.079e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 5.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86262/likelihoodResults_401328001_401587201_4FGL_J1148.6+1841_daily_bin625.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): 102
logL (Free Index) = 5898.02094163
delta logL = 0.0287737243279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5897.83271161
delta logL = 0.217003749502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8888       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4993       1.0000          .0000       10.000    
     3 'Normalizat'    1.0867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1194       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+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=   5897.833     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      280 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8892        7.4005        .20461E-03   -.52785E-05
   2  Index         1.5000        .84266        .14364E-01   -.42278E-04
   3  Normalizat    1.0865        .20611        .25051E-03   -.41979E-04
   4  Prefactor     1.1197        .22029        .26275E-03   -.25875E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88918
  Index      = 1.49999
  Normalizat = 1.08653
  Prefactor  = 1.11969
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.833     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8892        7.4225        .81843E-05   -1.5314    
   2  Index         1.5000        .84552        .28729E-02   -.77540    
   3  Normalizat    1.0865        .20631        .10020E-04   -.90185    
   4  Prefactor     1.1197        .22051        .10510E-04   -.88840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36613e-12
Minuit parameter uncertainties:
  1  7.42424
  2  0.853625
  3  0.206461
  4  0.220687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86262': 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) = 5897.83271033
delta logL = 0.217005029711

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  3.889e+00  7.424e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  1.500e+00  8.536e-01  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.120e+00  2.207e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.087e+00  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 177.154 18.686

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/86262/cmap_HighResolution_401328001_401587201_4FGL_J1148.6+1841_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-03', job_status='DONE', photon_flux_upper_limit='5.43e-08', time_completed='2021-09-04 12:08:20.986935', job_id='86262', GAL2='1.12', fit_tolerance='1e-08', EG2='1.09', EG='1.08', time_epoch_completed='1630782500.99', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.17e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='625' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:08:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 86262: <4FGL_J1148.6+1841_daily_bin625> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin625> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 11:56:22 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:56:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 11:56:23 2021
Terminated at Sat Sep  4 12:08:21 2021
Results reported at Sat Sep  4 12:08:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin625 177.154 18.6861 401328001 401587201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1148.6+1841 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   693.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            719 sec.

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

