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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1490
RA = 177.154, Dec = 18.6861
tmin = 625536001, tmax = 625795201
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='89969', job_status='RUN', time_executed='2021-09-04 12:09:45.594887', time_epoch_executed='1630782585.59' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89969

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89969/ft1_4FGL_J1148.6+1841_daily_bin1490.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89969/ft2_4FGL_J1148.6+1841_daily_bin1490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89969/ft1_4FGL_J1148.6+1841_daily_bin1490.fits outfile=/scratch/kocevski/89969/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1490.fits ra=177.154 dec=18.6861 rad=12.0 tmin=625536001.0 tmax=625795201.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.59
user 3.37
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89969/ft1_filtered_4FGL_J1148.6+1841_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/89969/ft2_4FGL_J1148.6+1841_daily_bin1490.fits sctable="SC_DATA" expcube=/scratch/kocevski/89969/ltcube_625536001_625795201_4FGL_J1148.6+1841_daily_bin1490.fits outfile=/scratch/kocevski/89969/expmap_625536001_625795201_4FGL_J1148.6+1841_daily_bin1490.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/89969/ltcube_625536001_625795201_4FGL_J1148.6+1841_daily_bin1490.fits
.....................!
real 190.39
user 186.12
sys 3.92

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/89969/ft1_filtered_4FGL_J1148.6+1841_daily_bin1490.fits scfile=/scratch/kocevski/89969/ft2_4FGL_J1148.6+1841_daily_bin1490.fits outfile=/scratch/kocevski/89969/cmap_625536001_625795201_4FGL_J1148.6+1841_daily_bin1490.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/89969/ft1_filtered_4FGL_J1148.6+1841_daily_bin1490.fits scfile=/scratch/kocevski/89969/ft2_4FGL_J1148.6+1841_daily_bin1490.fits outfile=/scratch/kocevski/89969/cmap_HighResolution_625536001_625795201_4FGL_J1148.6+1841_daily_bin1490.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.56
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11838E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    21.319       1.0000         .10000E-03   10000.    
     4 'norm      '    .10552E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4169       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.938       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18425E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0739       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.705       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1368       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1014       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30570       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.0436       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11564E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.789       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97445       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1977       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=   5520.907     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2845 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.042       -.21326E-05** at limit **
   2  Prefactor     .10004E-03    60.698       -.22916E-04** at limit **
   3  norm          21.319        12.459        .10951E-06    .41912E-04
   4  norm          .10000E-03    21.653        .18858E-05** at limit **
   5  Prefactor     2.4185        5.5815       -.64354E-06   -.57901E-04
   6  Prefactor     .10000E-03    15.214        .29858E-06** at limit **
   7  Prefactor     21.922        24.347        .70819E-06    .24725E-03
   8  Prefactor     .10000E-03    78.497       -.34274E-05** at limit **
   9  Prefactor     .10000E-03    4.6002        .71395E-07** at limit **
  10  Prefactor     1.0728        1.6972        .48405E-07    .11572E-02
  11  Prefactor     18.702        12.144        .17531E-06    .43203E-04
  12  norm          2.1368        1.2736        .56865E-07    .10490E-02
  13  Prefactor     .10000E-03    4.9369       -.46630E-07** at limit **
  14  Prefactor     3.1015        3.0529        .33670E-06    .81356E-03
  15  Prefactor     .10005E-03    111.01        .68493E-05** at limit **
  16  Prefactor     .30542        1.9624       -.73721E-06    .45690E-03
  17  Prefactor     .10002E-03    1.6115        .57008E-06** at limit **
  18  Prefactor     .10000E-03    1.7799        .37466E-07** at limit **
  19  norm          .10000E-03    .51428E-01    .32345E-07** at limit **
  20  norm          6.0434        4.7262       -.27395E-06   -.52328E-03
  21  Prefactor     .10000E-03    10.506       -.27050E-06** at limit **
  22  Prefactor     48.759        38.491        .32197E-05    .63711E-03
  23  Normalizat    .97422        .18871        .11267E-06    .24473E-03
  24  Prefactor     1.1979        .19337       -.76427E-06    .38186E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100042
  norm       = 21.3192
  norm       = 0.000100004
  Prefactor  = 2.41853
  Prefactor  = 0.0001
  Prefactor  = 21.9219
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.07283
  Prefactor  = 18.7017
  norm       = 2.13678
  Prefactor  = 0.0001
  Prefactor  = 3.10152
  Prefactor  = 0.000100047
  Prefactor  = 0.305422
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.04339
  Prefactor  = 0.000100001
  Prefactor  = 48.7586
  Normalizat = 0.974224
  Prefactor  = 1.19793
 **********
 **   18 **HESSE 
 **********

 FCN=   5520.907     FROM HESSE     STATUS=OK           399 CALLS     3244 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    59.960        .36498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.319        12.452        .86748E-04   -1.4784    
   4  norm          .10000E-03    22.479        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4185        5.5314        .25804E-03   -1.5397    
   6  Prefactor     .10000E-03    15.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.922        24.431        .85517E-04   -1.4771    
   8  Prefactor     .10000E-03    80.841        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6136        .15562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0728        1.6555        .11644E-03   -1.5501    
  11  Prefactor     18.702        12.136        .92607E-04   -1.4843    
  12  norm          2.1368        1.2726        .62286E-04   -1.5416    
  13  Prefactor     .10000E-03    4.9526        .16124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1015        3.0580        .12382E-03   -1.5356    
  15  Prefactor     .10005E-03    113.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .30542        1.9853        .20200E-03   -1.5597    
  17  Prefactor     .10002E-03    63.744        .17288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.7830        .96802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .54108E-01    .32858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.0434        4.7357        .13919E-03   -1.5216    
  21  Prefactor     .10000E-03    10.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     48.759        39.673        .57410E-04   -1.4310    
  23  Normalizat    .97422        .21740        .25433E-03   -.93899    
  24  Prefactor     1.1979        .22698        .24842E-03   -.86395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24401e-09
Minuit parameter uncertainties:
  1  0.00055857
  2  0.00319411
  3  12.4531
  4  0.00056604
  5  5.53255
  6  8.7497e-05
  7  24.4422
  8  0.000861377
  9  1.74267e-05
  10  1.65553
  11  12.1376
  12  1.27261
  13  9.31988e-06
  14  3.05816
  15  0.00462602
  16  1.55719
  17  0.00199674
  18  7.89914e-06
  19  7.87683e-07
  20  4.73598
  21  0.000190618
  22  39.6946
  23  0.217602
  24  0.227169
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.743e-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.198e+00  2.272e-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:  9.742e-01  2.176e-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: 6.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89969/likelihoodResults_625536001_625795201_4FGL_J1148.6+1841_daily_bin1490.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) = 5520.90792415
delta logL = -0.00103103960555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5520.9068931
delta logL = 1.66710378835e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2979       1.0000          .0000       10.000    
     3 'Normalizat'    .97424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1979       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=   5520.907     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10325E-03    2.2816        .15954E-01** at limit **
   2  Index         2.1972        6.9648        .50000        .36624E-04
   3  Normalizat    .97422        .30701E-02    .25433E-03   -.10160E-03
   4  Prefactor     1.1979        .33007E-02    .24842E-03    .64755E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103254
  Index      = 2.19722
  Normalizat = 0.974219
  Prefactor  = 1.19793
 **********
 **   18 **HESSE 
 **********

 FCN=   5520.907     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10325E-03    64.242        .16491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1972        6.2048        .50000       -.59506    
   3  Normalizat    .97422        .16445E-01    .10173E-04   -.93899    
   4  Prefactor     1.1979        .17680E-01    .99370E-05   -.86395    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.38624e-08
Minuit parameter uncertainties:
  1  0.0289474
  2  336.071
  3  0.0164454
  4  0.0176799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89969': 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) = 5520.9068922
delta logL = 9.17285433388e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.033e-04  2.895e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.197e+00  3.361e+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.198e+00  1.768e-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:  9.742e-01  1.645e-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/89969/cmap_HighResolution_625536001_625795201_4FGL_J1148.6+1841_daily_bin1490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2021-09-04 12:20:55.772651', job_id='89969', GAL2='1.20', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630783255.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='9.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1490' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:20:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 89969: <4FGL_J1148.6+1841_daily_bin1490> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1490> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:07:04 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:07:06 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:07:06 2021
Terminated at Sat Sep  4 12:20:56 2021
Results reported at Sat Sep  4 12:20:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1490 177.154 18.6861 625536001 625795201 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 :                                   665.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

