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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1455
RA = 177.154, Dec = 18.6861
tmin = 616464001, tmax = 616723201
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='89919', job_status='RUN', time_executed='2021-09-04 12:10:43.835322', time_epoch_executed='1630782643.84' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89919/ft1_4FGL_J1148.6+1841_daily_bin1455.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89919/ft2_4FGL_J1148.6+1841_daily_bin1455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89919/ft1_4FGL_J1148.6+1841_daily_bin1455.fits outfile=/scratch/kocevski/89919/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1455.fits ra=177.154 dec=18.6861 rad=12.0 tmin=616464001.0 tmax=616723201.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.87
user 2.68
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89919/ft2_4FGL_J1148.6+1841_daily_bin1455.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/89919/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1455.fits evtable="EVENTS" outfile="/scratch/kocevski/89919/ft1_filtered_4FGL_J1148.6+1841_daily_bin1455.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/89919/ft1_filtered_4FGL_J1148.6+1841_daily_bin1455.fits" evtable="EVENTS" scfile=/scratch/kocevski/89919/ft2_4FGL_J1148.6+1841_daily_bin1455.fits sctable="SC_DATA" outfile=/scratch/kocevski/89919/ltcube_616464001_616723201_4FGL_J1148.6+1841_daily_bin1455.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/89919/ft2_4FGL_J1148.6+1841_daily_bin1455.fits
.....................!
real 12.36
user 11.98
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89919/ft1_filtered_4FGL_J1148.6+1841_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/89919/ft2_4FGL_J1148.6+1841_daily_bin1455.fits sctable="SC_DATA" expcube=/scratch/kocevski/89919/ltcube_616464001_616723201_4FGL_J1148.6+1841_daily_bin1455.fits outfile=/scratch/kocevski/89919/expmap_616464001_616723201_4FGL_J1148.6+1841_daily_bin1455.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/89919/ltcube_616464001_616723201_4FGL_J1148.6+1841_daily_bin1455.fits
.....................!
real 190.49
user 185.34
sys 4.65

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/89919/ft1_filtered_4FGL_J1148.6+1841_daily_bin1455.fits scfile=/scratch/kocevski/89919/ft2_4FGL_J1148.6+1841_daily_bin1455.fits outfile=/scratch/kocevski/89919/cmap_616464001_616723201_4FGL_J1148.6+1841_daily_bin1455.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 1.44
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89919/ft1_filtered_4FGL_J1148.6+1841_daily_bin1455.fits scfile=/scratch/kocevski/89919/ft2_4FGL_J1148.6+1841_daily_bin1455.fits outfile=/scratch/kocevski/89919/cmap_HighResolution_616464001_616723201_4FGL_J1148.6+1841_daily_bin1455.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.72
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.068       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6218       1.0000         .10000E-03   10000.    
     3 'norm      '    5.1022       1.0000         .10000E-03   10000.    
     4 'norm      '    10.026       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4649       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.888       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0823       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .80908       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .64321       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12426E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .13763       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3139       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11492E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16180E-01   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .60508       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3950       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=   4718.514     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2876 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.068        28.471       -.31984E-06    .23388E-04
   2  Prefactor     1.6208        5.3028        .36964E-05   -.15115E-03
   3  norm          5.1037        9.6165        .37897E-06   -.31278E-04
   4  norm          10.025        16.643        .80804E-06    .14049E-03
   5  Prefactor     3.4642        10.454       -.13214E-05    .40768E-04
   6  Prefactor     12.863        41.053       -.99850E-06    .12486E-04
   7  Prefactor     .10000E-03    44.654       -.53472E-05** at limit **
   8  Prefactor     8.0339        19.206       -.17330E-05    .21012E-03
   9  Prefactor     9.9269        12.949       -.47425E-06    .14907E-03
  10  Prefactor     .81450        1.5003       -.16693E-05   -.51293E-03
  11  Prefactor     .10000E-03    2.4385        .57001E-09** at limit **
  12  norm          .10000E-03    .51996        .15230E-06** at limit **
  13  Prefactor     .10000E-03    3.2664       -.96652E-08** at limit **
  14  Prefactor     .64512        2.4464        .21292E-06    .22530E-03
  15  Prefactor     .10000E-03    15.427        .22274E-07** at limit **
  16  Prefactor     .10000E-03    1.3339       -.38455E-07** at limit **
  17  Prefactor     .10000E-03    2.2096        .83030E-08** at limit **
  18  Prefactor     .10000E-03    2.9363        .15291E-07** at limit **
  19  norm          .13754        .19096        .25222E-08   -.66723E-04
  20  norm          2.3137        3.5024       -.27869E-07    .15030E-04
  21  Prefactor     .10000E-03    31.092       -.92103E-05** at limit **
  22  Prefactor     .10441E-03    35.710       -.26108E-05** at limit **
  23  Normalizat    .60503        .20197        .20420E-05    .37573E-03
  24  Prefactor     1.3951        .19874       -.60543E-06    .62797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.0678
  Prefactor  = 1.6208
  norm       = 5.10367
  norm       = 10.0249
  Prefactor  = 3.4642
  Prefactor  = 12.8631
  Prefactor  = 0.000100001
  Prefactor  = 8.03388
  Prefactor  = 9.92692
  Prefactor  = 0.814496
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.645125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.137544
  norm       = 2.31371
  Prefactor  = 0.000100002
  Prefactor  = 0.000104412
  Normalizat = 0.605032
  Prefactor  = 1.39511
 **********
 **   18 **HESSE 
 **********

 FCN=   4718.514     FROM HESSE     STATUS=OK           417 CALLS     3293 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.068        28.507        .66731E-04   -1.4506    
   2  Prefactor     1.6208        7.4123        .16615E-02   -1.5453    
   3  norm          5.1037        9.6546        .88999E-03   -1.5256    
   4  norm          10.025        16.726        .12655E-03   -1.5075    
   5  Prefactor     3.4642        10.447        .21725E-03   -1.5336    
   6  Prefactor     12.863        40.972        .11158E-03   -1.4991    
   7  Prefactor     .10000E-03    44.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.0339        19.113        .14103E-03   -1.5141    
   9  Prefactor     9.9269        12.908        .12714E-03   -1.5078    
  10  Prefactor     .81450        1.5057        .12251E-02   -1.5527    
  11  Prefactor     .10000E-03    2.4402        .10476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .93237        .95307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2674        .12125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .64512        2.3663        .19781E-03   -1.5547    
  15  Prefactor     .10000E-03    15.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.648        .14887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2623        .19854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.9618        .11484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .13754        .17798        .33088E-03   -1.5634    
  20  norm          2.3137        3.4810        .15326E-03   -1.5404    
  21  Prefactor     .10000E-03    47.399        .42913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10441E-03    34.335        .10852       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .60503        .23044        .29146E-03   -1.0777    
  24  Prefactor     1.3951        .23224        .21416E-03   -.80521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90521e-09
Minuit parameter uncertainties:
  1  28.5174
  2  6.9334
  3  9.6575
  4  16.7337
  5  10.4522
  6  41.0619
  7  0.000476789
  8  19.1279
  9  12.9113
  10  1.50578
  11  3.48855e-06
  12  3.12515e-05
  13  2.87638e-06
  14  2.36659
  15  6.8097e-06
  16  9.53431e-05
  17  1.25142e-05
  18  5.94127e-06
  19  0.177983
  20  3.48133
  21  0.000624444
  22  0.024631
  23  0.230803
  24  0.232412
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  9.927e+00  1.291e+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:  1.395e+00  2.324e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  6.050e-01  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/89919/likelihoodResults_616464001_616723201_4FGL_J1148.6+1841_daily_bin1455.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) = 4717.31245776
delta logL = 1.20194205412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4717.28053518
delta logL = 1.23386462839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66656       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1111       1.0000          .0000       10.000    
     3 'Normalizat'    .51298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4591       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.

 FCN=   4717.281     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      272 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66623        6.8079        .76869E-02    .66508E-03
   2  Index         4.1113        2.3524        .83747E-01    .14830E-03
   3  Normalizat    .51299        .54785E-01    .71112E-01    .28043E-04
   4  Prefactor     1.4591        .58161E-01    .47506E-01   -.36013E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.66623
  Index      = 4.11126
  Normalizat = 0.512992
  Prefactor  = 1.45911
 **********
 **   18 **HESSE 
 **********

 FCN=   4717.281     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      305 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66623        12.996        .34637E-04   -1.5545    
   2  Index         4.1113        3.5080        .33055E-02   -.17870    
   3  Normalizat    .51299        .20694        .31480E-03   -1.1182    
   4  Prefactor     1.4591        .21895        .20999E-03   -.78691    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.23068e-07
Minuit parameter uncertainties:
  1  5.8861
  2  3.90532
  3  0.207254
  4  0.219094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89919': 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) = 4717.28053515
delta logL = 1.23386465951

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  6.662e-01  5.886e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  4.111e+00  3.905e+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:  1.459e+00  2.191e-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:  5.130e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.46
Ra Dec: 177.154 18.686
Photon Index (Free Index): 4.11 +/- 3.91
Photon Flux (Free Index): 9.77e-08 +/- 6.41e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.15e-05

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/89919/cmap_HighResolution_616464001_616723201_4FGL_J1148.6+1841_daily_bin1455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.33e-03', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='1.23e+00', photon_flux2='9.77e-08', job_status='DONE', time_completed='2021-09-04 12:21:12.589124', photon_index_error2='3.91', photon_index2='4.11', ts='0.74', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.15e-05', EG='0.61', time_epoch_completed='1630783272.59', return_code='0', job_id='89919', GAL2='1.46', EG2='0.51', return_code2='102', photon_flux_error2='6.41e-08', ts2='3.46', photon_index='2.32' WHERE bin_id='1455' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:21:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 89919: <4FGL_J1148.6+1841_daily_bin1455> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1455> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:07:00 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:07:01 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:01 2021
Terminated at Sat Sep  4 12:21:13 2021
Results reported at Sat Sep  4 12:21:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1455 177.154 18.6861 616464001 616723201 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 :                                   615.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

