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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1012
RA = 177.154, Dec = 18.6861
tmin = 501638401, tmax = 501897601
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='88008', job_status='RUN', time_executed='2021-09-04 12:04:15.904151', time_epoch_executed='1630782255.9' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88008/ft1_4FGL_J1148.6+1841_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88008/ft2_4FGL_J1148.6+1841_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88008/ft1_4FGL_J1148.6+1841_daily_bin1012.fits outfile=/scratch/kocevski/88008/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1012.fits ra=177.154 dec=18.6861 rad=12.0 tmin=501638401.0 tmax=501897601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.52
user 3.22
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88008/ft2_4FGL_J1148.6+1841_daily_bin1012.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/88008/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/88008/ft1_filtered_4FGL_J1148.6+1841_daily_bin1012.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.55
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88008/ft1_filtered_4FGL_J1148.6+1841_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/88008/ft2_4FGL_J1148.6+1841_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/88008/ltcube_501638401_501897601_4FGL_J1148.6+1841_daily_bin1012.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/88008/ft2_4FGL_J1148.6+1841_daily_bin1012.fits
.....................!
real 11.77
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88008/ft1_filtered_4FGL_J1148.6+1841_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/88008/ft2_4FGL_J1148.6+1841_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/88008/ltcube_501638401_501897601_4FGL_J1148.6+1841_daily_bin1012.fits outfile=/scratch/kocevski/88008/expmap_501638401_501897601_4FGL_J1148.6+1841_daily_bin1012.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/88008/ltcube_501638401_501897601_4FGL_J1148.6+1841_daily_bin1012.fits
.....................!
real 189.23
user 184.40
sys 4.31

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/88008/ft1_filtered_4FGL_J1148.6+1841_daily_bin1012.fits scfile=/scratch/kocevski/88008/ft2_4FGL_J1148.6+1841_daily_bin1012.fits outfile=/scratch/kocevski/88008/cmap_501638401_501897601_4FGL_J1148.6+1841_daily_bin1012.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.57
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .55660E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.3200       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.403       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.158       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1695       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.4536       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20262E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2400       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.228       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6662       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12180       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .65520       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1036       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90986       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=   5938.545     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     3194 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1609        .90712E-02** at limit **
   2  Prefactor     .71139E-02    5.4548        .58870E-01    .85390E-04
   3  norm          .10000E-03    3.4942        .90712E-02** at limit **
   4  norm          7.3173        9.5830        .37062E-02   -.46913E-03
   5  Prefactor     .10000E-03    3.3161        .90712E-02** at limit **
   6  Prefactor     26.398        26.504        .19491E-02    .35741E-03
   7  Prefactor     20.154        15.541        .22302E-02   -.10035E-02
   8  Prefactor     1.1714        61.186        .10614E-01   -.73944E-03
   9  Prefactor     .10000E-03    9.4138        .90712E-02** at limit **
  10  Prefactor     .10000E-03    .55539        .90712E-02** at limit **
  11  Prefactor     .10000E-03    8.1869        .90712E-02** at limit **
  12  norm          5.4529        1.6216        .43016E-02    .16092E-04
  13  Prefactor     .24191E-01    6.1437        .91239E-01   -.33934E-03
  14  Prefactor     2.2381        4.0029        .68654E-02    .48629E-03
  15  Prefactor     35.236        55.888        .16880E-02    .73937E-03
  16  Prefactor     .10000E-03    1.4833        .90712E-02** at limit **
  17  Prefactor     6.6652        3.3179        .38854E-02    .19881E-03
  18  Prefactor     .10000E-03    2.7018        .90712E-02** at limit **
  19  norm          .12178        .12800        .60153E-02    .13075E-03
  20  norm          .10000E-03    1.3270        .90712E-02** at limit **
  21  Prefactor     .61069        10.784        .11889        .13513E-03
  22  Prefactor     .10000E-03    28.450        .90712E-02** at limit **
  23  Normalizat    1.1038        .18752        .37854E-01    .43819E-04
  24  Prefactor     .90987        .18316        .45131E-01    .47144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00711391
  norm       = 0.0001
  norm       = 7.31726
  Prefactor  = 0.0001
  Prefactor  = 26.3977
  Prefactor  = 20.1537
  Prefactor  = 1.17144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.45288
  Prefactor  = 0.0241915
  Prefactor  = 2.23812
  Prefactor  = 35.236
  Prefactor  = 0.0001
  Prefactor  = 6.66517
  Prefactor  = 0.0001
  norm       = 0.121782
  norm       = 0.0001
  Prefactor  = 0.610688
  Prefactor  = 0.0001
  Normalizat = 1.10383
  Prefactor  = 0.909869
 **********
 **   18 **HESSE 
 **********

 FCN=   5938.545     FROM HESSE     STATUS=OK           415 CALLS     3609 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .71139E-02    6.5230        .52120E-01   -1.5691    
   3  norm          .10000E-03    3.5020        .14067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.3173        9.5965        .14825E-03   -1.5167    
   5  Prefactor     .10000E-03    3.3209        .13703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.398        26.529        .77962E-04   -1.4680    
   7  Prefactor     20.154        15.530        .89210E-04   -1.4810    
   8  Prefactor     1.1714        61.867        .42454E-03   -1.5492    
   9  Prefactor     .10000E-03    9.5204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .55924        .55970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.4670        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.4529        1.6165        .50894E-04   -1.5241    
  13  Prefactor     .24191E-01    7.9134        .70114E-01   -1.5677    
  14  Prefactor     2.2381        3.9892        .19202E-03   -1.5409    
  15  Prefactor     35.236        55.884        .67519E-04   -1.4520    
  16  Prefactor     .10000E-03    1.5282        .18266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6652        3.3109        .93993E-04   -1.5192    
  18  Prefactor     .10000E-03    2.7257        .12368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .12178        .12419        .27306E-03   -1.5638    
  20  norm          .10000E-03    1.3308        .86691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .61069        93.844        .48660E-02   -1.5552    
  22  Prefactor     .10000E-03    28.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1038        .21637        .23166E-03   -.89629    
  24  Prefactor     .90987        .21261        .26255E-03   -.95797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73919e-08
Minuit parameter uncertainties:
  1  2.69881e-06
  2  0.427841
  3  2.36493e-06
  4  9.59849
  5  1.3323e-07
  6  26.5405
  7  15.5331
  8  17.0441
  9  3.6093e-06
  10  1.60791e-06
  11  1.2826e-05
  12  1.61655
  13  0.873377
  14  3.98966
  15  55.9676
  16  2.61066e-06
  17  3.31099
  18  7.93611e-07
  19  0.124193
  20  1.96169e-06
  21  15.1636
  22  4.45561e-05
  23  0.216539
  24  0.212807
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  3.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.099e-01  2.128e-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.104e+00  2.165e-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.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88008/likelihoodResults_501638401_501897601_4FGL_J1148.6+1841_daily_bin1012.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) = 5938.54579873
delta logL = -0.000500619761624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5938.54529824
delta logL = -1.25095539261e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3212       1.0000          .0000       10.000    
     3 'Normalizat'    1.1038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90994       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=   5938.545     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8345        .90712E-02** at limit **
   2  Index         2.3200        5.6733        .50000        .11239E-05
   3  Normalizat    1.1038        .33822E-02    .37848E-01    .36613E-04
   4  Prefactor     .90987        .35341E-02    .45132E-01    .37852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32
  Normalizat = 1.10383
  Prefactor  = 0.909869
 **********
 **   18 **HESSE 
 **********

 FCN=   5938.545     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3200        5.6629        .50000       -.56569    
   3  Normalizat    1.1038        .14662E-01    .23166E-03   -.89629    
   4  Prefactor     .90987        .15315E-01    .26255E-03   -.95797    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30693e-08
Minuit parameter uncertainties:
  1  0.000102961
  2  449.642
  3  0.0146616
  4  0.0153149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88008': 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) = 5938.54529811
delta logL = 6.77573552821e-10

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.030e-04  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.320e+00  4.496e+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.099e-01  1.531e-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:  1.104e+00  1.466e-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/88008/cmap_HighResolution_501638401_501897601_4FGL_J1148.6+1841_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2021-09-04 12:16:17.160697', job_id='88008', GAL2='0.91', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630782977.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='6.78e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1012' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:16:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 88008: <4FGL_J1148.6+1841_daily_bin1012> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1012> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 12:01:44 2021
Job was executed on host(s) <bullet0240>, 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:17 2021
Results reported at Sat Sep  4 12:16:17 2021

Your job looked like:

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

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

