/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 200 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 = 7677
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1148.6+1841_daily_bin23
RA = 177.154, Dec = 18.6861
tmin = 245289601, tmax = 245548801
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='81588', job_status='RUN', time_executed='2021-09-04 11:45:42.133228', time_epoch_executed='1630781142.13' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81588/ft1_4FGL_J1148.6+1841_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81588/ft2_4FGL_J1148.6+1841_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81588/ft1_4FGL_J1148.6+1841_daily_bin23.fits outfile=/scratch/kocevski/81588/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin23.fits ra=177.154 dec=18.6861 rad=12.0 tmin=245289601.0 tmax=245548801.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 1.45
user 1.28
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81588/ft1_filtered_4FGL_J1148.6+1841_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/81588/ft2_4FGL_J1148.6+1841_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/81588/ltcube_245289601_245548801_4FGL_J1148.6+1841_daily_bin23.fits outfile=/scratch/kocevski/81588/expmap_245289601_245548801_4FGL_J1148.6+1841_daily_bin23.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/81588/ltcube_245289601_245548801_4FGL_J1148.6+1841_daily_bin23.fits
.....................!
real 191.25
user 186.02
sys 4.19

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/81588/ft1_filtered_4FGL_J1148.6+1841_daily_bin23.fits scfile=/scratch/kocevski/81588/ft2_4FGL_J1148.6+1841_daily_bin23.fits outfile=/scratch/kocevski/81588/cmap_245289601_245548801_4FGL_J1148.6+1841_daily_bin23.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81588/ft1_filtered_4FGL_J1148.6+1841_daily_bin23.fits scfile=/scratch/kocevski/81588/ft2_4FGL_J1148.6+1841_daily_bin23.fits outfile=/scratch/kocevski/81588/cmap_HighResolution_245289601_245548801_4FGL_J1148.6+1841_daily_bin23.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10874E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11160E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.991       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.413       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .55544       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11094E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.6110       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3670       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4137       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1293       1.0000         .10000E-03   10000.    
    19 'norm      '    .17071       1.0000         .10000E-03   10000.    
    20 'norm      '    6.2560       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.682       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .64218       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3560       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=   5480.549     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2738 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.263        .44182E-06** at limit **
   2  Prefactor     .10000E-03    3.5427       -.60822E-07** at limit **
   3  norm          .10000E-03    4.2271       -.10012E-06** at limit **
   4  norm          .10000E-03    5.8444        .11300E-06** at limit **
   5  Prefactor     .10001E-03    23.442        .11112E-04** at limit **
   6  Prefactor     14.994        32.885       -.15852E-05    .22746E-04
   7  Prefactor     13.440        23.713       -.35496E-05   -.32728E-03
   8  Prefactor     .53087        37.269       -.13911E-04    .29116E-03
   9  Prefactor     .10000E-03    2.3063       -.31727E-07** at limit **
  10  Prefactor     .10000E-03    .71022       -.38672E-06** at limit **
  11  Prefactor     .10000E-03    3.1343       -.86543E-07** at limit **
  12  norm          2.6112        1.3155        .34506E-07    .47753E-03
  13  Prefactor     .10000E-03    5.7752       -.82650E-07** at limit **
  14  Prefactor     1.3675        2.5615       -.28009E-06    .33263E-03
  15  Prefactor     .10000E-03    22.910        .88983E-06** at limit **
  16  Prefactor     .10000E-03    .92124        .10121E-06** at limit **
  17  Prefactor     1.4131        2.8746       -.66063E-06    .26082E-03
  18  Prefactor     1.1246        7.1165       -.21727E-05    .39846E-03
  19  norm          .17089        .21314       -.49479E-08    .22502E-02
  20  norm          6.2571        5.4834        .56933E-06    .74671E-03
  21  Prefactor     21.683        13.773       -.16516E-06    .39341E-04
  22  Prefactor     .10000E-03    14.034       -.24255E-06** at limit **
  23  Normalizat    .64220        .18300        .21108E-05    .47160E-03
  24  Prefactor     1.3561        .18408        .12144E-05    .10060E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 14.9939
  Prefactor  = 13.4399
  Prefactor  = 0.530867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.61121
  Prefactor  = 0.0001
  Prefactor  = 1.36754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41312
  Prefactor  = 1.12459
  norm       = 0.170888
  norm       = 6.25709
  Prefactor  = 21.6829
  Prefactor  = 0.0001
  Normalizat = 0.642198
  Prefactor  = 1.35611
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.549     FROM HESSE     STATUS=OK           399 CALLS     3137 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.5539        .13605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.2393        .14865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    23.490        .34243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    33.272        .36244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.994        32.894        .10345E-03   -1.4933    
   7  Prefactor     13.440        24.450        .10937E-03   -1.4975    
   8  Prefactor     .53087        91.180        .43122E-02   -1.5562    
   9  Prefactor     .10000E-03    2.3091        .10980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1305        .11921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1420        .12801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6112        1.3118        .57847E-04   -1.5385    
  13  Prefactor     .10000E-03    5.7939        .17376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3675        2.5245        .15551E-03   -1.5474    
  15  Prefactor     .10000E-03    22.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .92888        .69251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4131        2.8572        .16848E-03   -1.5470    
  18  Prefactor     1.1246        7.1596        .35967E-03   -1.5496    
  19  norm          .17089        .19912        .35614E-03   -1.5625    
  20  norm          6.2571        5.4456        .14836E-03   -1.5208    
  21  Prefactor     21.683        13.771        .86020E-04   -1.4776    
  22  Prefactor     .10000E-03    14.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .64220        .21004        .28248E-03   -1.0622    
  24  Prefactor     1.3561        .21954        .21955E-03   -.81654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3546e-09
Minuit parameter uncertainties:
  1  0.000290891
  2  2.28203e-05
  3  1.76717e-05
  4  0.00024315
  5  0.000905262
  6  32.9337
  7  24.4681
  8  13.9349
  9  6.58017e-06
  10  7.2196e-06
  11  1.64128e-05
  12  1.31177
  13  2.92239e-05
  14  2.52471
  15  0.000136232
  16  2.43554e-06
  17  2.8575
  18  5.6758
  19  0.199121
  20  5.44602
  21  13.773
  22  5.88095e-05
  23  0.210301
  24  0.219695
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  6.580e-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:  1.356e+00  2.197e-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.422e-01  2.103e-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: 4.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81588/likelihoodResults_245289601_245548801_4FGL_J1148.6+1841_daily_bin23.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) = 5480.5513552
delta logL = -0.00200671948733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5480.54934802
delta logL = 4.60708179162e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2998       1.0000          .0000       10.000    
     3 'Normalizat'    .64222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3561       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=   5480.549     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10340E-03    2.9986        .11222E-01** at limit **
   2  Index         2.1980        5.9229        .50000        .70195E-04
   3  Normalizat    .64220        .45729E-02    .28249E-03    .24550E-04
   4  Prefactor     1.3561        .50104E-02    .21955E-03    .81297E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103401
  Index      = 2.19804
  Normalizat = 0.642202
  Prefactor  = 1.3561
 **********
 **   18 **HESSE 
 **********

 FCN=   5480.549     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10340E-03    45.935        .11618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1980        7.6916        .50000       -.59486    
   3  Normalizat    .64220        .18214E-01    .11299E-04   -1.0622    
   4  Prefactor     1.3561        .19956E-01    .87820E-05   -.81654    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04057e-07
Minuit parameter uncertainties:
  1  0.0250168
  2  299.008
  3  0.0182143
  4  0.0199566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81588': 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) = 5480.54934682
delta logL = 1.65681376529e-06

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.034e-04  2.502e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.198e+00  2.990e+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.356e+00  1.996e-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:  6.422e-01  1.821e-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/81588/cmap_HighResolution_245289601_245548801_4FGL_J1148.6+1841_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.11e-03', job_status='DONE', photon_flux_upper_limit='4.04e-08', time_completed='2021-09-04 11:56:19.326645', job_id='81588', GAL2='1.36', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1630781779.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='1.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='23' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:56:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 81588: <4FGL_J1148.6+1841_daily_bin23> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin23> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:42:12 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:42:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 11:42:14 2021
Terminated at Sat Sep  4 11:56:19 2021
Results reported at Sat Sep  4 11:56:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin23 177.154 18.6861 245289601 245548801 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 :                                   634.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             245.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

