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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1402
RA = 177.154, Dec = 18.6861
tmin = 602726401, tmax = 602985601
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='89862', job_status='RUN', time_executed='2021-09-04 12:09:02.136845', time_epoch_executed='1630782542.14' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89862/ft1_4FGL_J1148.6+1841_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89862/ft2_4FGL_J1148.6+1841_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89862/ft1_4FGL_J1148.6+1841_daily_bin1402.fits outfile=/scratch/kocevski/89862/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1402.fits ra=177.154 dec=18.6861 rad=12.0 tmin=602726401.0 tmax=602985601.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.08
user 2.86
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89862/ft1_filtered_4FGL_J1148.6+1841_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/89862/ft2_4FGL_J1148.6+1841_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/89862/ltcube_602726401_602985601_4FGL_J1148.6+1841_daily_bin1402.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/89862/ft2_4FGL_J1148.6+1841_daily_bin1402.fits
.....................!
real 12.39
user 12.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89862/ft1_filtered_4FGL_J1148.6+1841_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/89862/ft2_4FGL_J1148.6+1841_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/89862/ltcube_602726401_602985601_4FGL_J1148.6+1841_daily_bin1402.fits outfile=/scratch/kocevski/89862/expmap_602726401_602985601_4FGL_J1148.6+1841_daily_bin1402.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/89862/ltcube_602726401_602985601_4FGL_J1148.6+1841_daily_bin1402.fits
.....................!
real 192.63
user 187.29
sys 4.83

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/89862/ft1_filtered_4FGL_J1148.6+1841_daily_bin1402.fits scfile=/scratch/kocevski/89862/ft2_4FGL_J1148.6+1841_daily_bin1402.fits outfile=/scratch/kocevski/89862/cmap_602726401_602985601_4FGL_J1148.6+1841_daily_bin1402.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.50
user 0.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89862/ft1_filtered_4FGL_J1148.6+1841_daily_bin1402.fits scfile=/scratch/kocevski/89862/ft2_4FGL_J1148.6+1841_daily_bin1402.fits outfile=/scratch/kocevski/89862/cmap_HighResolution_602726401_602985601_4FGL_J1148.6+1841_daily_bin1402.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.54
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/89862/ft1_filtered_4FGL_J1148.6+1841_daily_bin1402.fits', '/scratch/kocevski/89862/ft2_4FGL_J1148.6+1841_daily_bin1402.fits', expMap='/scratch/kocevski/89862/expmap_602726401_602985601_4FGL_J1148.6+1841_daily_bin1402.fits', expCube='/scratch/kocevski/89862/ltcube_602726401_602985601_4FGL_J1148.6+1841_daily_bin1402.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/89862/Model_4FGL_J1148.6+1841_daily_bin1402.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/89862/ft1_filtered_4FGL_J1148.6+1841_daily_bin1402.fits
Spacecraft file(s): /scratch/kocevski/89862/ft2_4FGL_J1148.6+1841_daily_bin1402.fits
Exposure map: /scratch/kocevski/89862/expmap_602726401_602985601_4FGL_J1148.6+1841_daily_bin1402.fits
Exposure cube: /scratch/kocevski/89862/ltcube_602726401_602985601_4FGL_J1148.6+1841_daily_bin1402.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/89862/Model_4FGL_J1148.6+1841_daily_bin1402.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) = 1475.29731053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7562       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.792       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3011       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.729       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .99147       1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.439       1.0000         .10000E-03   10000.    
    12 'norm      '    6.0426       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0704       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0390       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.2457       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .64540       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0243       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=   1475.275     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2742 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    328.89        .58345E-05** at limit **
   2  Prefactor     4.6899        68.059        .87898E-05   -.44290E-04
   3  norm          .10000E-03    14.451       -.27223E-06** at limit **
   4  norm          .10000E-03    20.117        .22980E-06** at limit **
   5  Prefactor     15.891        49.277        .43214E-06    .14463E-04
   6  Prefactor     2.1996        772.77       -.28001E-04    .69425E-06
   7  Prefactor     .10000E-03    50.747        .53059E-06** at limit **
   8  Prefactor     64.748        87.521       -.50679E-05   -.60679E-04
   9  Prefactor     .10000E-03    24.757        .97720E-07** at limit **
  10  Prefactor     .99139        9.3089        .38716E-05    .18453E-04
  11  Prefactor     51.443        34.213        .37291E-06    .77830E-05
  12  norm          6.0431        3.9714        .32310E-06   -.22414E-03
  13  Prefactor     .10000E-03    16.334        .14754E-06** at limit **
  14  Prefactor     8.0705        7.8347       -.10118E-06   -.50545E-04
  15  Prefactor     .10000E-03    73.715       -.45921E-06** at limit **
  16  Prefactor     .10000E-03    2.2379        .24428E-07** at limit **
  17  Prefactor     8.0404        6.7157        .23703E-06   -.32325E-04
  18  Prefactor     .10000E-03    3.7347        .48420E-07** at limit **
  19  norm          .10000E-03    .12688        .49520E-07** at limit **
  20  norm          3.2461        6.9767        .38084E-06   -.20588E-04
  21  Prefactor     .10000E-03    7.7162        .28065E-07** at limit **
  22  Prefactor     .10000E-03    15.704       -.19470E-06** at limit **
  23  Normalizat    .64480        .39387       -.20993E-05   -.28929E-04
  24  Prefactor     1.0248        .34789       -.96476E-06   -.29804E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.68995
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.8913
  Prefactor  = 2.1996
  Prefactor  = 0.0001
  Prefactor  = 64.7484
  Prefactor  = 0.0001
  Prefactor  = 0.991388
  Prefactor  = 51.443
  norm       = 6.04308
  Prefactor  = 0.0001
  Prefactor  = 8.07051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.04043
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.24612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.644801
  Prefactor  = 1.02482
 **********
 **   18 **HESSE 
 **********

 FCN=   1475.275     FROM HESSE     STATUS=OK           395 CALLS     3137 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    329.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6899        67.902        .92247E-03   -1.5275    
   3  norm          .10000E-03    14.449        .14262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    20.117        .16832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.891        50.090        .10079E-03   -1.4910    
   6  Prefactor     2.1996        807.31        .27053E-02   -1.5411    
   7  Prefactor     .10000E-03    50.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     64.748        85.370        .49881E-04   -1.4097    
   9  Prefactor     .10000E-03    24.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .99139        8.9760        .17301E-03   -1.5509    
  11  Prefactor     51.443        34.237        .55918E-04   -1.4272    
  12  norm          6.0431        3.9787        .28635E-03   -1.5216    
  13  Prefactor     .10000E-03    16.348        .15166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0705        7.8297        .10079E-03   -1.5140    
  15  Prefactor     .10000E-03    73.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2433        .56029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.0404        6.7422        .81982E-04   -1.5141    
  18  Prefactor     .10000E-03    3.7374        .72477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .13038        .26659E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2461        6.9646        .14185E-03   -1.5348    
  21  Prefactor     .10000E-03    7.7176        .10422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.706        .14871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .64480        .45314        .30124E-03   -1.0611    
  24  Prefactor     1.0248        .40077        .23714E-03   -.91907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25675e-10
Minuit parameter uncertainties:
  1  0.000321663
  2  35.7393
  3  3.08517e-05
  4  7.17813e-06
  5  50.223
  6  85.465
  7  2.87036e-05
  8  85.5319
  9  2.68038e-05
  10  5.96701
  11  34.2501
  12  3.97892
  13  1.90529e-05
  14  7.83068
  15  7.64792e-06
  16  1.27134e-06
  17  6.74282
  18  3.15031e-07
  19  3.21401e-07
  20  6.96629
  21  2.24504e-06
  22  2.20316e-06
  23  0.455798
  24  0.40195
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.680e-05  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.025e+00  4.019e-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:  6.448e-01  4.558e-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: 2.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89862/likelihoodResults_602726401_602985601_4FGL_J1148.6+1841_daily_bin1402.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) = 1475.27533656
delta logL = -0.000191294529941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1475.27514691
delta logL = -1.64733910424e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6137       1.0000          .0000       10.000    
     3 'Normalizat'    .64480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0248       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=   1475.275     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      275 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10937E-03    8.1470        .14629E-01** at limit **
   2  Index         2.4771        5.9258        .50000        .26175E-04
   3  Normalizat    .64480        .58711E-02    .30124E-03   -.26393E-03
   4  Prefactor     1.0248        .57617E-02    .23714E-03   -.31505E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109373
  Index      = 2.47708
  Normalizat = 0.644798
  Prefactor  = 1.02481
 **********
 **   18 **HESSE 
 **********

 FCN=   1475.275     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10937E-03    145.21        .15923E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4771        5.1865        .50000       -.52890    
   3  Normalizat    .64480        .24866E-01    .60248E-04   -1.0611    
   4  Prefactor     1.0248        .24403E-01    .47428E-04   -.91907    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.38934e-09
Minuit parameter uncertainties:
  1  0.0739651
  2  334.84
  3  0.0248664
  4  0.0244028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89862': 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): 102
logL (Free Index) = 1475.27514625
delta logL = -9.86900204225e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.094e-04  7.397e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.477e+00  3.348e+02  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.025e+00  2.440e-02  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:  6.448e-01  2.487e-02  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/89862/cmap_HighResolution_602726401_602985601_4FGL_J1148.6+1841_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', job_status='DONE', photon_flux_upper_limit='2.08e-07', time_completed='2021-09-04 12:16:00.577794', job_id='89862', GAL2='1.02', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1630782960.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-9.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1402' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:16:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 89862: <4FGL_J1148.6+1841_daily_bin1402> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1402> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:06:54 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:06:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 12:06:57 2021
Terminated at Sat Sep  4 12:16:01 2021
Results reported at Sat Sep  4 12:16:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1402 177.154 18.6861 602726401 602985601 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 :                                   407.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            547 sec.

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

