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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1098
RA = 177.154, Dec = 18.6861
tmin = 523929601, tmax = 524188801
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='89380', job_status='RUN', time_executed='2021-09-04 12:09:20.417722', time_epoch_executed='1630782560.42' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89380/ft1_4FGL_J1148.6+1841_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89380/ft2_4FGL_J1148.6+1841_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89380/ft1_4FGL_J1148.6+1841_daily_bin1098.fits outfile=/scratch/kocevski/89380/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1098.fits ra=177.154 dec=18.6861 rad=12.0 tmin=523929601.0 tmax=524188801.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 4.71
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89380/ft1_filtered_4FGL_J1148.6+1841_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/89380/ft2_4FGL_J1148.6+1841_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/89380/ltcube_523929601_524188801_4FGL_J1148.6+1841_daily_bin1098.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/89380/ft2_4FGL_J1148.6+1841_daily_bin1098.fits
.....................!
real 12.82
user 12.11
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89380/ft1_filtered_4FGL_J1148.6+1841_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/89380/ft2_4FGL_J1148.6+1841_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/89380/ltcube_523929601_524188801_4FGL_J1148.6+1841_daily_bin1098.fits outfile=/scratch/kocevski/89380/expmap_523929601_524188801_4FGL_J1148.6+1841_daily_bin1098.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/89380/ltcube_523929601_524188801_4FGL_J1148.6+1841_daily_bin1098.fits
.....................!
real 193.08
user 187.14
sys 4.86

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/89380/ft1_filtered_4FGL_J1148.6+1841_daily_bin1098.fits scfile=/scratch/kocevski/89380/ft2_4FGL_J1148.6+1841_daily_bin1098.fits outfile=/scratch/kocevski/89380/cmap_523929601_524188801_4FGL_J1148.6+1841_daily_bin1098.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89380/ft1_filtered_4FGL_J1148.6+1841_daily_bin1098.fits scfile=/scratch/kocevski/89380/ft2_4FGL_J1148.6+1841_daily_bin1098.fits outfile=/scratch/kocevski/89380/cmap_HighResolution_523929601_524188801_4FGL_J1148.6+1841_daily_bin1098.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2150       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.6035       1.0000         .10000E-03   10000.    
     4 'norm      '    6.8050       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3334       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34628E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0299       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0044       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.417       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7216       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1357       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .18425       1.0000         .10000E-03   10000.    
    20 'norm      '    5.3679       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.940       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3349       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .58758       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=   5585.738     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2737 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2159        28.039        .17104E-06    .13467E-04
   2  Prefactor     .10000E-03    2.4435       -.21738E-07** at limit **
   3  norm          3.6033        8.2060        .43797E-05   -.40681E-04
   4  norm          6.8021        11.009        .12327E-05    .21622E-04
   5  Prefactor     .10000E-03    6.7154       -.16646E-07** at limit **
   6  Prefactor     9.3282        41.433        .71323E-06   -.26092E-07
   7  Prefactor     .10000E-03    6.5571       -.15962E-06** at limit **
   8  Prefactor     .10000E-03    16.189       -.86038E-06** at limit **
   9  Prefactor     1.0405        18.992        .78341E-05    .22315E-04
  10  Prefactor     2.0039        1.4249        .44833E-07    .34602E-03
  11  Prefactor     11.417        9.1720       -.14586E-06    .25135E-04
  12  norm          6.7210        1.7412        .34077E-07    .53135E-03
  13  Prefactor     .10000E-03    4.9107        .31333E-07** at limit **
  14  Prefactor     5.1349        4.0412        .12194E-06    .21988E-03
  15  Prefactor     .10000E-03    38.092        .38753E-08** at limit **
  16  Prefactor     .10000E-03    .91932        .30422E-08** at limit **
  17  Prefactor     .10000E-03    1.5669        .73432E-07** at limit **
  18  Prefactor     .10000E-03    1.8514       -.13772E-07** at limit **
  19  norm          .18430        .23915        .43203E-07    .92123E-04
  20  norm          5.3675        4.7829        .59773E-07    .15016E-04
  21  Prefactor     .10000E-03    12.139        .74228E-06** at limit **
  22  Prefactor     52.957        37.807       -.14658E-05    .42151E-04
  23  Normalizat    1.3350        .18591        .14994E-06    .38471E-03
  24  Prefactor     .58745        .17355       -.80345E-06    .19203E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21592
  Prefactor  = 0.0001
  norm       = 3.60325
  norm       = 6.80205
  Prefactor  = 0.0001
  Prefactor  = 9.32819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.04048
  Prefactor  = 2.00389
  Prefactor  = 11.417
  norm       = 6.72098
  Prefactor  = 0.0001
  Prefactor  = 5.13493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.184301
  norm       = 5.36748
  Prefactor  = 0.000100001
  Prefactor  = 52.9565
  Normalizat = 1.33497
  Prefactor  = 0.587449
 **********
 **   18 **HESSE 
 **********

 FCN=   5585.738     FROM HESSE     STATUS=OK           403 CALLS     3140 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2159        28.741        .40989E-03   -1.5487    
   2  Prefactor     .10000E-03    2.4520        .11409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6033        9.5171        .10643E-02   -1.5328    
   4  norm          6.8021        11.036        .15381E-03   -1.5186    
   5  Prefactor     .10000E-03    6.8056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.3282        41.427        .13118E-03   -1.5097    
   7  Prefactor     .10000E-03    6.5638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    145.50        .56435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0405        27.048        .43239E-02   -1.5504    
  10  Prefactor     2.0039        1.4148        .72195E-04   -1.5425    
  11  Prefactor     11.417        9.1783        .11856E-03   -1.5032    
  12  norm          6.7210        1.7364        .48060E-04   -1.5189    
  13  Prefactor     .10000E-03    4.9141        .16175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.1349        4.0187        .12486E-03   -1.5255    
  15  Prefactor     .10000E-03    38.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .92609        .69927E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.5995        .91272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8540        .99283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .18430        .22715        .38725E-03   -1.5622    
  20  norm          5.3675        4.7748        .14933E-03   -1.5245    
  21  Prefactor     .10000E-03    12.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     52.957        37.831        .55124E-04   -1.4251    
  23  Normalizat    1.3350        .21406        .21694E-03   -.82528    
  24  Prefactor     .58745        .19911        .30863E-03   -1.0812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75162e-10
Minuit parameter uncertainties:
  1  11.8291
  2  2.91635e-06
  3  9.52106
  4  11.0394
  5  2.52962e-05
  6  39.3614
  7  1.30371e-05
  8  0.000293474
  9  10.6147
  10  1.41478
  11  9.17947
  12  1.73646
  13  1.0375e-06
  14  4.01891
  15  2.4347e-05
  16  9.53802e-07
  17  4.4317e-06
  18  1.23066e-06
  19  0.227153
  20  4.77514
  21  0.000184042
  22  37.8486
  23  0.214207
  24  0.199351
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.040e+00  1.061e+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:  5.874e-01  1.994e-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.335e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/89380/likelihoodResults_523929601_524188801_4FGL_J1148.6+1841_daily_bin1098.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) = 5585.68739057
delta logL = 0.0510048196202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5585.68501173
delta logL = 0.0533836618779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3998       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9358       1.0000          .0000       10.000    
     3 'Normalizat'    1.3242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59083       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=   5585.685     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      250 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4002        11.729        .25248E-03    .51778E-03
   2  Index         2.9348        2.2546        .97926E-02    .13396E-03
   3  Normalizat    1.3247        .20347        .21764E-03    .67094E-03
   4  Prefactor     .59051        .19757        .30783E-03    .41385E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40018
  Index      = 2.9348
  Normalizat = 1.32472
  Prefactor  = 0.590505
 **********
 **   18 **HESSE 
 **********

 FCN=   5585.685     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4002        6.6270        .10099E-04   -1.5471    
   2  Index         2.9348        1.7274        .39170E-03   -.42579    
   3  Normalizat    1.3247        .20368        .43528E-04   -.82832    
   4  Prefactor     .59051        .19746        .12313E-04   -1.0799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42733e-09
Minuit parameter uncertainties:
  1  6.09316
  2  1.77174
  3  0.203805
  4  0.197688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89380': 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) = 5585.68500868
delta logL = 0.053386711952

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.400e+00  6.093e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.935e+00  1.772e+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:  5.905e-01  1.977e-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.325e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/89380/cmap_HighResolution_523929601_524188801_4FGL_J1148.6+1841_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', job_status='DONE', photon_flux_upper_limit='8.89e-08', time_completed='2021-09-04 12:20:39.024327', job_id='89380', GAL2='0.59', fit_tolerance='1e-08', EG2='1.32', EG='1.33', time_epoch_completed='1630783239.02', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='5.34e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1098' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:20:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 89380: <4FGL_J1148.6+1841_daily_bin1098> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1098 177.154 18.6861 523929601 524188801 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 :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

