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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1300
RA = 177.154, Dec = 18.6861
tmin = 576288001, tmax = 576547201
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='89696', job_status='RUN', time_executed='2021-09-04 12:10:28.990268', time_epoch_executed='1630782628.99' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89696

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89696/ft1_4FGL_J1148.6+1841_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89696/ft2_4FGL_J1148.6+1841_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89696/ft1_4FGL_J1148.6+1841_daily_bin1300.fits outfile=/scratch/kocevski/89696/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1300.fits ra=177.154 dec=18.6861 rad=12.0 tmin=576288001.0 tmax=576547201.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.33
user 3.09
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89696/ft1_filtered_4FGL_J1148.6+1841_daily_bin1300.fits" evtable="EVENTS" scfile=/scratch/kocevski/89696/ft2_4FGL_J1148.6+1841_daily_bin1300.fits sctable="SC_DATA" outfile=/scratch/kocevski/89696/ltcube_576288001_576547201_4FGL_J1148.6+1841_daily_bin1300.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/89696/ft2_4FGL_J1148.6+1841_daily_bin1300.fits
.....................!
real 15.21
user 14.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89696/ft1_filtered_4FGL_J1148.6+1841_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/89696/ft2_4FGL_J1148.6+1841_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/89696/ltcube_576288001_576547201_4FGL_J1148.6+1841_daily_bin1300.fits outfile=/scratch/kocevski/89696/expmap_576288001_576547201_4FGL_J1148.6+1841_daily_bin1300.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/89696/ltcube_576288001_576547201_4FGL_J1148.6+1841_daily_bin1300.fits
.....................!
real 190.33
user 184.81
sys 5.17

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/89696/ft1_filtered_4FGL_J1148.6+1841_daily_bin1300.fits scfile=/scratch/kocevski/89696/ft2_4FGL_J1148.6+1841_daily_bin1300.fits outfile=/scratch/kocevski/89696/cmap_576288001_576547201_4FGL_J1148.6+1841_daily_bin1300.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89696/ft1_filtered_4FGL_J1148.6+1841_daily_bin1300.fits scfile=/scratch/kocevski/89696/ft2_4FGL_J1148.6+1841_daily_bin1300.fits outfile=/scratch/kocevski/89696/cmap_HighResolution_576288001_576547201_4FGL_J1148.6+1841_daily_bin1300.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.63
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.8484       1.0000         .10000E-03   10000.    
     4 'norm      '    6.1913       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9423       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8840       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.412       1.0000         .10000E-03   10000.    
    12 'norm      '    .33524       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4655       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0148       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17178       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .67395E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    10.879       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.789       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7773       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6057       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .44731       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=   4456.003     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     3861 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.410       -.22024E-06** at limit **
   2  Prefactor     .10000E-03    1.9165       -.11155E-07** at limit **
   3  norm          5.8488        8.5484        .18955E-06    .41176E-05
   4  norm          6.1929        14.283        .57023E-06   -.69171E-05
   5  Prefactor     .10000E-03    6.6195       -.46071E-07** at limit **
   6  Prefactor     .10000E-03    24.849       -.58324E-07** at limit **
   7  Prefactor     .10000E-03    5.5875       -.16804E-07** at limit **
   8  Prefactor     1.9463        45.677        .13856E-05   -.12812E-04
   9  Prefactor     7.8840        11.142       -.99869E-07   -.62136E-04
  10  Prefactor     .10000E-03    .86572       -.78677E-07** at limit **
  11  Prefactor     26.413        15.048        .62822E-07   -.13662E-04
  12  norm          .33515        .85208        .40786E-06    .71814E-03
  13  Prefactor     .10000E-03    7.3876       -.43383E-06** at limit **
  14  Prefactor     2.4635        5.3140        .95396E-06   -.14404E-03
  15  Prefactor     8.9985        143.75        .36742E-06   -.63823E-05
  16  Prefactor     .18331        2.1059        .61651E-06   -.88964E-03
  17  Prefactor     .10000E-03    1.1275        .69879E-07** at limit **
  18  Prefactor     .10000E-03    2.6359        .12317E-07** at limit **
  19  norm          .67278E-01    .17994        .27652E-06    .11737E-02
  20  norm          10.881        7.5970       -.38782E-07   -.99623E-04
  21  Prefactor     18.792        21.491        .14677E-05    .62016E-04
  22  Prefactor     3.8210        169.90       -.39833E-05    .29223E-05
  23  Normalizat    1.6056        .22628       -.17297E-05   -.12157E-03
  24  Prefactor     .44736        .20888        .20986E-05   -.10197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.84884
  norm       = 6.19287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9463
  Prefactor  = 7.88405
  Prefactor  = 0.0001
  Prefactor  = 26.4131
  norm       = 0.335154
  Prefactor  = 0.0001
  Prefactor  = 2.46352
  Prefactor  = 8.99849
  Prefactor  = 0.183311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0672778
  norm       = 10.881
  Prefactor  = 18.7916
  Prefactor  = 3.82099
  Normalizat = 1.60558
  Prefactor  = 0.44736
 **********
 **   18 **HESSE 
 **********

 FCN=   4456.003     FROM HESSE     STATUS=OK           407 CALLS     4268 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9170        .90249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.8488        8.5410        .16606E-03   -1.5224    
   4  norm          6.1929        14.302        .16134E-03   -1.5210    
   5  Prefactor     .10000E-03    6.6458        .16771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5890        .15411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9463        44.777        .29788E-03   -1.5429    
   9  Prefactor     7.8840        11.117        .14280E-03   -1.5146    
  10  Prefactor     .10000E-03    .88873        .12113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.413        15.034        .77950E-04   -1.4680    
  12  norm          .33515        .77063        .98155E-03   -1.5592    
  13  Prefactor     .10000E-03    7.3844        .17703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4635        5.2440        .20208E-03   -1.5394    
  15  Prefactor     8.9985        143.38        .13349E-03   -1.5108    
  16  Prefactor     .18331        9.8673        .16846E-02   -1.5622    
  17  Prefactor     .10000E-03    1.1323        .69123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6391        .10579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .67278E-01    .17191        .45666E-03   -1.5656    
  20  norm          10.881        7.5926        .12147E-03   -1.5048    
  21  Prefactor     18.792        21.219        .92401E-04   -1.4841    
  22  Prefactor     3.8210        163.16        .20772E-03   -1.5317    
  23  Normalizat    1.6056        .24766        .20472E-03   -.74853    
  24  Prefactor     .44736        .22699        .35529E-03   -1.1446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80857e-09
Minuit parameter uncertainties:
  1  2.83505e-05
  2  2.95852e-07
  3  8.5428
  4  14.3104
  5  5.36268e-06
  6  7.33716e-06
  7  3.05711e-06
  8  18.6862
  9  11.1199
  10  1.98896e-06
  11  15.0365
  12  0.770656
  13  1.41827e-05
  14  5.24501
  15  72.0438
  16  2.68955
  17  2.44532e-06
  18  1.472e-06
  19  0.171912
  20  7.59325
  21  21.2279
  22  50.0826
  23  0.247846
  24  0.22745
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  7.884e+00  1.112e+01  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:  4.474e-01  2.274e-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.606e+00  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89696/likelihoodResults_576288001_576547201_4FGL_J1148.6+1841_daily_bin1300.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) = 4455.99685133
delta logL = 0.00614561032944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4455.99337942
delta logL = 0.009617521172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8729       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4738       1.0000          .0000       10.000    
     3 'Normalizat'    1.6009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45005       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=   4455.993     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      256 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8693        13.477        .15304E-03   -.53174E-03
   2  Index         2.4743        1.1948        .72928E-02   -.17455E-03
   3  Normalizat    1.6008        .23299        .20497E-03   -.12768E-02
   4  Prefactor     .45016        .22489        .35424E-03   -.84355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.86933
  Index      = 2.47426
  Normalizat = 1.6008
  Prefactor  = 0.450158
 **********
 **   18 **HESSE 
 **********

 FCN=   4455.993     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8693        12.490        .61215E-05   -1.5184    
   2  Index         2.4743        1.1080        .29171E-03   -.52955    
   3  Normalizat    1.6008        .23258        .40994E-04   -.74984    
   4  Prefactor     .45016        .22464        .70848E-04   -1.1432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92974e-09
Minuit parameter uncertainties:
  1  12.4943
  2  1.12055
  3  0.232735
  4  0.225081
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89696': 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) = 4455.99337917
delta logL = 0.00961777016437

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  6.869e+00  1.249e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.474e+00  1.121e+00  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:  4.502e-01  2.251e-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.601e+00  2.327e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.76
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/89696/cmap_HighResolution_576288001_576547201_4FGL_J1148.6+1841_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.88e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-04 12:21:46.434712', job_id='89696', GAL2='0.45', fit_tolerance='1e-08', EG2='1.60', EG='1.61', time_epoch_completed='1630783306.43', return_code2='0', ts='0.76', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='9.62e-03', ts2='0.77', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1300' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:21:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 89696: <4FGL_J1148.6+1841_daily_bin1300> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1300> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:06:42 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:06:43 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:43 2021
Terminated at Sat Sep  4 12:21:47 2021
Results reported at Sat Sep  4 12:21:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1300 177.154 18.6861 576288001 576547201 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 :                                   655.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

