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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1005
RA = 177.154, Dec = 18.6861
tmin = 499824001, tmax = 500083201
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='87997', job_status='RUN', time_executed='2021-09-04 12:05:51.404018', time_epoch_executed='1630782351.4' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87997

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87997/ft1_4FGL_J1148.6+1841_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87997/ft2_4FGL_J1148.6+1841_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87997/ft1_4FGL_J1148.6+1841_daily_bin1005.fits outfile=/scratch/kocevski/87997/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1005.fits ra=177.154 dec=18.6861 rad=12.0 tmin=499824001.0 tmax=500083201.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 5.22
user 4.90
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87997/ft1_filtered_4FGL_J1148.6+1841_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/87997/ft2_4FGL_J1148.6+1841_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/87997/ltcube_499824001_500083201_4FGL_J1148.6+1841_daily_bin1005.fits outfile=/scratch/kocevski/87997/expmap_499824001_500083201_4FGL_J1148.6+1841_daily_bin1005.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/87997/ltcube_499824001_500083201_4FGL_J1148.6+1841_daily_bin1005.fits
.....................!
real 190.71
user 185.28
sys 4.46

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/87997/ft1_filtered_4FGL_J1148.6+1841_daily_bin1005.fits scfile=/scratch/kocevski/87997/ft2_4FGL_J1148.6+1841_daily_bin1005.fits outfile=/scratch/kocevski/87997/cmap_499824001_500083201_4FGL_J1148.6+1841_daily_bin1005.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87997/ft1_filtered_4FGL_J1148.6+1841_daily_bin1005.fits scfile=/scratch/kocevski/87997/ft2_4FGL_J1148.6+1841_daily_bin1005.fits outfile=/scratch/kocevski/87997/cmap_HighResolution_499824001_500083201_4FGL_J1148.6+1841_daily_bin1005.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/87997/ft1_filtered_4FGL_J1148.6+1841_daily_bin1005.fits', '/scratch/kocevski/87997/ft2_4FGL_J1148.6+1841_daily_bin1005.fits', expMap='/scratch/kocevski/87997/expmap_499824001_500083201_4FGL_J1148.6+1841_daily_bin1005.fits', expCube='/scratch/kocevski/87997/ltcube_499824001_500083201_4FGL_J1148.6+1841_daily_bin1005.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/87997/Model_4FGL_J1148.6+1841_daily_bin1005.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/87997/ft1_filtered_4FGL_J1148.6+1841_daily_bin1005.fits
Spacecraft file(s): /scratch/kocevski/87997/ft2_4FGL_J1148.6+1841_daily_bin1005.fits
Exposure map: /scratch/kocevski/87997/expmap_499824001_500083201_4FGL_J1148.6+1841_daily_bin1005.fits
Exposure cube: /scratch/kocevski/87997/ltcube_499824001_500083201_4FGL_J1148.6+1841_daily_bin1005.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/87997/Model_4FGL_J1148.6+1841_daily_bin1005.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4652.1302528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.7425       1.0000         .10000E-03   10000.    
     4 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4678       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2618       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24561       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.5206       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7640       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    66.071       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2866       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9564       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .17983       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.160       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93734       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92598       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=   4652.103     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     3125 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.750        .10294E-05** at limit **
   2  Prefactor     .10000E-03    3.6026       -.15736E-07** at limit **
   3  norm          2.7400        10.812        .17081E-04   -.79492E-04
   4  norm          .10000E-03    5.2548       -.16244E-06** at limit **
   5  Prefactor     8.4619        12.752        .23591E-05   -.44709E-04
   6  Prefactor     .10000E-03    16.777       -.41111E-06** at limit **
   7  Prefactor     .10000E-03    9.6447       -.16459E-06** at limit **
   8  Prefactor     8.2595        30.819       -.15205E-05   -.66050E-04
   9  Prefactor     .10000E-03    8.9754        .80177E-06** at limit **
  10  Prefactor     .24690        2.0359        .50118E-06   -.16579E-03
  11  Prefactor     .10000E-03    4.6263       -.60810E-06** at limit **
  12  norm          8.5207        2.3102        .30757E-07   -.13855E-03
  13  Prefactor     3.8404        66.866        .80859E-05    .10436E-03
  14  Prefactor     .10000E-03    3.1517        .15819E-06** at limit **
  15  Prefactor     65.722        146.79       -.20432E-04   -.12787E-03
  16  Prefactor     8.2858        4.1817       -.16057E-07   -.17463E-03
  17  Prefactor     1.9563        3.5990        .74043E-06   -.15399E-04
  18  Prefactor     .10000E-03    2.3509        .17320E-07** at limit **
  19  norm          .17984        .15678        .53426E-08   -.83755E-04
  20  norm          .10000E-03    3.9672       -.18712E-06** at limit **
  21  Prefactor     12.157        11.479        .13651E-06   -.33356E-05
  22  Prefactor     .10000E-03    16.684       -.33534E-06** at limit **
  23  Normalizat    .93735        .20287       -.30764E-06   -.21443E-03
  24  Prefactor     .92591        .19606       -.11170E-05   -.15196E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.74002
  norm       = 0.0001
  Prefactor  = 8.46189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.25952
  Prefactor  = 0.0001
  Prefactor  = 0.246901
  Prefactor  = 0.0001
  norm       = 8.52068
  Prefactor  = 3.84042
  Prefactor  = 0.0001
  Prefactor  = 65.7222
  Prefactor  = 8.28582
  Prefactor  = 1.95628
  Prefactor  = 0.0001
  norm       = 0.179843
  norm       = 0.0001
  Prefactor  = 12.1574
  Prefactor  = 0.0001
  Normalizat = 0.93735
  Prefactor  = 0.925911
 **********
 **   18 **HESSE 
 **********

 FCN=   4652.103     FROM HESSE     STATUS=OK           403 CALLS     3528 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6203        .12639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.7400        10.899        .12292E-02   -1.5377    
   4  norm          .10000E-03    5.2630        .15269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4619        12.762        .68880E-03   -1.5126    
   6  Prefactor     .10000E-03    16.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.2595        29.218        .13948E-03   -1.5133    
   9  Prefactor     .10000E-03    9.0435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .24690        3.0924        .16350E-02   -1.5609    
  11  Prefactor     .10000E-03    4.6364        .14320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.5207        2.3083        .51119E-04   -1.5124    
  13  Prefactor     3.8404        67.535        .20809E-03   -1.5316    
  14  Prefactor     .10000E-03    6.2671        .23128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     65.722        152.63        .24688E-03   -1.4085    
  16  Prefactor     8.2858        4.1180        .88341E-04   -1.5132    
  17  Prefactor     1.9563        3.5551        .15800E-03   -1.5428    
  18  Prefactor     .10000E-03    2.3540        .10213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .17984        .16237        .24441E-03   -1.5623    
  20  norm          .10000E-03    4.0221        .13265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.157        11.480        .11487E-03   -1.5010    
  22  Prefactor     .10000E-03    16.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93735        .23361        .25004E-03   -.95160    
  24  Prefactor     .92591        .22610        .25388E-03   -.95241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35256e-08
Minuit parameter uncertainties:
  1  2.71997e-05
  2  8.33445e-06
  3  10.9065
  4  1.11245e-06
  5  12.7657
  6  7.50241e-05
  7  3.8119e-07
  8  29.2684
  9  8.60878e-06
  10  1.74735
  11  3.22849e-05
  12  2.30828
  13  32.2516
  14  1.52201e-05
  15  153.557
  16  4.11815
  17  3.55546
  18  1.26723e-06
  19  0.162368
  20  9.8668e-07
  21  11.4819
  22  4.85169e-06
  23  0.233859
  24  0.226328
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  8.609e-06  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:  9.259e-01  2.263e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  9.374e-01  2.339e-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: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87997/likelihoodResults_499824001_500083201_4FGL_J1148.6+1841_daily_bin1005.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) = 4652.10347447
delta logL = -0.000527028494616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4652.10294786
delta logL = -4.20944161306e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11093E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2942       1.0000          .0000       10.000    
     3 'Normalizat'    .93734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92594       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=   4652.103     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      242 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10310E-03    3.0545        .18142E-01** at limit **
   2  Index         2.2048        5.7350        .50000        .20534E-04
   3  Normalizat    .93735        .26870E-02    .25004E-03    .87296E-05
   4  Prefactor     .92591        .27280E-02    .25388E-03    .12270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103102
  Index      = 2.20476
  Normalizat = 0.937351
  Prefactor  = 0.925911
 **********
 **   18 **HESSE 
 **********

 FCN=   4652.103     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10310E-03    375.27        .42121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2048        5.5082        .50000       -.59324    
   3  Normalizat    .93735        .30743E-01    .10002E-04   -.95160    
   4  Prefactor     .92591        .31209E-01    .10155E-04   -.95241    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43622e-08
Minuit parameter uncertainties:
  1  0.0686694
  2  676.298
  3  0.0307434
  4  0.03121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87997': 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) = 4652.10294692
delta logL = 5.21010406374e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.031e-04  6.867e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.205e+00  6.763e+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:  9.259e-01  3.121e-02  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  9.374e-01  3.074e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.154 18.686

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/87997/cmap_HighResolution_499824001_500083201_4FGL_J1148.6+1841_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-03', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-09-04 12:16:14.827409', job_id='87997', GAL2='0.93', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630782974.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='5.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1005' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:16:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 87997: <4FGL_J1148.6+1841_daily_bin1005> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1005> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 12:01:43 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:01:45 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:01:45 2021
Terminated at Sat Sep  4 12:16:15 2021
Results reported at Sat Sep  4 12:16:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1005 177.154 18.6861 499824001 500083201 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 :                                   621.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

