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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1390
RA = 177.154, Dec = 18.6861
tmin = 599616001, tmax = 599875201
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='89842', job_status='RUN', time_executed='2021-09-04 12:08:57.805107', time_epoch_executed='1630782537.81' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89842

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89842/ft1_4FGL_J1148.6+1841_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89842/ft2_4FGL_J1148.6+1841_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89842/ft1_4FGL_J1148.6+1841_daily_bin1390.fits outfile=/scratch/kocevski/89842/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1390.fits ra=177.154 dec=18.6861 rad=12.0 tmin=599616001.0 tmax=599875201.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 2.53
user 2.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89842/ft2_4FGL_J1148.6+1841_daily_bin1390.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/89842/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1390.fits evtable="EVENTS" outfile="/scratch/kocevski/89842/ft1_filtered_4FGL_J1148.6+1841_daily_bin1390.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89842/ft1_filtered_4FGL_J1148.6+1841_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/89842/ft2_4FGL_J1148.6+1841_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/89842/ltcube_599616001_599875201_4FGL_J1148.6+1841_daily_bin1390.fits outfile=/scratch/kocevski/89842/expmap_599616001_599875201_4FGL_J1148.6+1841_daily_bin1390.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/89842/ltcube_599616001_599875201_4FGL_J1148.6+1841_daily_bin1390.fits
.....................!
real 191.73
user 186.02
sys 4.35

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/89842/ft1_filtered_4FGL_J1148.6+1841_daily_bin1390.fits scfile=/scratch/kocevski/89842/ft2_4FGL_J1148.6+1841_daily_bin1390.fits outfile=/scratch/kocevski/89842/cmap_599616001_599875201_4FGL_J1148.6+1841_daily_bin1390.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89842/ft1_filtered_4FGL_J1148.6+1841_daily_bin1390.fits scfile=/scratch/kocevski/89842/ft2_4FGL_J1148.6+1841_daily_bin1390.fits outfile=/scratch/kocevski/89842/cmap_HighResolution_599616001_599875201_4FGL_J1148.6+1841_daily_bin1390.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .44606E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    7.5550       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.033       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4325       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6547       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28245       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4129       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7295       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    8.4871       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.099       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86206       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2420       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=   7064.358     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2753 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.617       -.14641E-05** at limit **
   2  Prefactor     .10001E-03    4.7270       -.28420E-06** at limit **
   3  norm          7.5554        7.9844       -.18218E-06   -.99370E-04
   4  norm          .10000E-03    5.2803        .12607E-06** at limit **
   5  Prefactor     .10000E-03    18.965        .18325E-05** at limit **
   6  Prefactor     .10000E-03    9.9850        .16677E-05** at limit **
   7  Prefactor     .10000E-03    8.8081       -.28640E-05** at limit **
   8  Prefactor     11.031        17.602       -.83226E-06   -.12721E-04
   9  Prefactor     .10000E-03    13.803       -.23726E-05** at limit **
  10  Prefactor     1.4334        2.0068       -.15493E-06   -.91873E-03
  11  Prefactor     .10000E-03    3.8173        .21620E-06** at limit **
  12  norm          .10000E-03    .54256       -.11438E-07** at limit **
  13  Prefactor     .10000E-03    10.290        .36589E-05** at limit **
  14  Prefactor     .10000E-03    1.3582       -.24928E-07** at limit **
  15  Prefactor     5.6419        145.81       -.45918E-04   -.16657E-04
  16  Prefactor     .27671        1.3174        .46159E-07   -.84060E-03
  17  Prefactor     2.4146        2.4355       -.31917E-06   -.58012E-03
  18  Prefactor     6.7297        4.1749        .10394E-05    .72978E-04
  19  norm          .10000E-03    .81659E-01   -.19986E-07** at limit **
  20  norm          8.4873        4.6311        .44543E-06    .35516E-04
  21  Prefactor     .10000E-03    7.5806        .13569E-06** at limit **
  22  Prefactor     37.109        32.811        .91293E-05   -.11258E-06
  23  Normalizat    .86197        .16620        .25242E-06    .54875E-04
  24  Prefactor     1.2420        .16718        .12008E-06    .74159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 7.55535
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.031
  Prefactor  = 0.0001
  Prefactor  = 1.43344
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.64188
  Prefactor  = 0.276706
  Prefactor  = 2.41459
  Prefactor  = 6.72966
  norm       = 0.0001
  norm       = 8.48731
  Prefactor  = 0.0001
  Prefactor  = 37.1088
  Normalizat = 0.861971
  Prefactor  = 1.24204
 **********
 **   18 **HESSE 
 **********

 FCN=   7064.358     FROM HESSE     STATUS=OK           401 CALLS     3154 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    44.971        .34791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.5554        7.9811        .14590E-03   -1.5158    
   4  norm          .10000E-03    5.3014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.9905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.031        17.422        .12061E-03   -1.5044    
   9  Prefactor     .10000E-03    13.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4334        1.9722        .12809E-03   -1.5469    
  11  Prefactor     .10000E-03    3.8360        .16038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.0715        .11993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3765        .95565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6419        147.66        .16893E-03   -1.5233    
  16  Prefactor     .27671        4.4367        .16835E-02   -1.5603    
  17  Prefactor     2.4146        2.3936        .11670E-03   -1.5397    
  18  Prefactor     6.7297        4.1719        .13078E-03   -1.5189    
  19  norm          .10000E-03    .11798        .46387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          8.4873        4.6286        .12909E-03   -1.5125    
  21  Prefactor     .10000E-03    7.5923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.109        32.532        .65800E-04   -1.4489    
  23  Normalizat    .86197        .19250        .26351E-03   -.97810    
  24  Prefactor     1.2420        .19732        .23427E-03   -.85047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44108e-09
Minuit parameter uncertainties:
  1  4.01832e-07
  2  0.00102241
  3  7.98218
  4  1.54639e-07
  5  8.94267e-06
  6  8.72574e-07
  7  2.85115e-06
  8  17.4305
  9  1.56584e-05
  10  1.97226
  11  4.09156e-05
  12  1.76551e-06
  13  0.00018746
  14  2.33877e-07
  15  57.8852
  16  2.2158
  17  2.39372
  18  4.1721
  19  1.79371e-06
  20  4.62882
  21  9.35599e-05
  22  32.5472
  23  0.192657
  24  0.197441
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.566e-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.242e+00  1.974e-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:  8.620e-01  1.927e-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: 7.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89842/likelihoodResults_599616001_599875201_4FGL_J1148.6+1841_daily_bin1390.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) = 7064.35793244
delta logL = -0.000340446178598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7064.3575934
delta logL = -1.40330666909e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3599       1.0000          .0000       10.000    
     3 'Normalizat'    .86167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2424       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=   7064.358     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      252 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10513E-03    .59280E-01    .10028    ** at limit **
   2  Index         2.4539        5.6264        .50000       -.23925E-04
   3  Normalizat    .86197        .47429E-03    .26351E-03   -.52461E-03
   4  Prefactor     1.2420        .49847E-03    .23427E-03   -.16051E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105134
  Index      = 2.45392
  Normalizat = 0.861966
  Prefactor  = 1.24205
 **********
 **   18 **HESSE 
 **********

 FCN=   7064.358     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10513E-03    39.212        .33707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4539        8.5241        .50000       -.53427    
   3  Normalizat    .86197        .60312E-02    .52703E-04   -.97810    
   4  Prefactor     1.2420        .63387E-02    .46855E-04   -.85047    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17655e-08
Minuit parameter uncertainties:
  1  0.0283955
  2  128.067
  3  0.00603116
  4  0.00633871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89842': 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) = 7064.35759144
delta logL = 5.50960066903e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.051e-04  2.840e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.454e+00  1.281e+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.242e+00  6.339e-03  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:  8.620e-01  6.031e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/89842/cmap_HighResolution_599616001_599875201_4FGL_J1148.6+1841_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2021-09-04 12:21:39.112672', job_id='89842', GAL2='1.24', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630783299.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='5.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1390' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:21:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 89842: <4FGL_J1148.6+1841_daily_bin1390> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1390 177.154 18.6861 599616001 599875201 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 :                                   748.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            886 sec.

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

