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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1027
RA = 177.154, Dec = 18.6861
tmin = 505526401, tmax = 505785601
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='88030', job_status='RUN', time_executed='2021-09-04 12:04:15.308894', time_epoch_executed='1630782255.31' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88030

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88030/ft1_4FGL_J1148.6+1841_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88030/ft2_4FGL_J1148.6+1841_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88030/ft1_4FGL_J1148.6+1841_daily_bin1027.fits outfile=/scratch/kocevski/88030/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1027.fits ra=177.154 dec=18.6861 rad=12.0 tmin=505526401.0 tmax=505785601.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.60
user 3.30
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88030/ft1_filtered_4FGL_J1148.6+1841_daily_bin1027.fits" evtable="EVENTS" scfile=/scratch/kocevski/88030/ft2_4FGL_J1148.6+1841_daily_bin1027.fits sctable="SC_DATA" outfile=/scratch/kocevski/88030/ltcube_505526401_505785601_4FGL_J1148.6+1841_daily_bin1027.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/88030/ft2_4FGL_J1148.6+1841_daily_bin1027.fits
.....................!
real 12.11
user 11.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88030/ft1_filtered_4FGL_J1148.6+1841_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/88030/ft2_4FGL_J1148.6+1841_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/88030/ltcube_505526401_505785601_4FGL_J1148.6+1841_daily_bin1027.fits outfile=/scratch/kocevski/88030/expmap_505526401_505785601_4FGL_J1148.6+1841_daily_bin1027.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/88030/ltcube_505526401_505785601_4FGL_J1148.6+1841_daily_bin1027.fits
.....................!
real 190.15
user 185.61
sys 3.94

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/88030/ft1_filtered_4FGL_J1148.6+1841_daily_bin1027.fits scfile=/scratch/kocevski/88030/ft2_4FGL_J1148.6+1841_daily_bin1027.fits outfile=/scratch/kocevski/88030/cmap_505526401_505785601_4FGL_J1148.6+1841_daily_bin1027.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88030/ft1_filtered_4FGL_J1148.6+1841_daily_bin1027.fits scfile=/scratch/kocevski/88030/ft2_4FGL_J1148.6+1841_daily_bin1027.fits outfile=/scratch/kocevski/88030/cmap_HighResolution_505526401_505785601_4FGL_J1148.6+1841_daily_bin1027.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63427       1.0000         .10000E-03   10000.    
     3 'norm      '    6.2792       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10942E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.753       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.019       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31497       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0256       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9931       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11601E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0366       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3009       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8854       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11962       1.0000         .10000E-03   10000.    
    20 'norm      '    7.7528       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5220       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .41037       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5368.602     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2747 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    8.0836         .0000    ** at limit **
   2  Prefactor     .63109        9.3664         .0000        .32422E-01
   3  norm          6.2777        11.343         .0000        .11494E-02
   4  norm          .10000E-03    13.832         .0000    ** at limit **
   5  Prefactor     .10005E-03    8.0098         .0000    ** at limit **
   6  Prefactor     29.627        47.228         .0000       -.87709E-03
   7  Prefactor     21.440        20.585         .0000        .24461E-02
   8  Prefactor     15.050        21.841         .0000        .34679E-02
   9  Prefactor     .10000E-03    5.4758         .0000    ** at limit **
  10  Prefactor     .31392        1.0951         .0000        .12654E-02
  11  Prefactor     9.0054        10.197         .0000       -.82205E-03
  12  norm          2.9931        1.3699         .0000        .33155E-03
  13  Prefactor     .10000E-03    7.2852         .0000    ** at limit **
  14  Prefactor     .10000E-03    3.3675         .0000    ** at limit **
  15  Prefactor     2.8016        216.91         .0000        .17148E-03
  16  Prefactor     7.2997        4.2227         .0000        .19484E-03
  17  Prefactor     3.8853        3.5122         .0000        .13945E-03
  18  Prefactor     .10000E-03    3.4034         .0000    ** at limit **
  19  norm          .11959        .12720         .0000       -.12263E-02
  20  norm          7.7522        4.5965         .0000       -.45696E-03
  21  Prefactor     .10000E-03    12.916         .0000    ** at limit **
  22  Prefactor     .10000E-03    18.470         .0000    ** at limit **
  23  Normalizat    1.5220        .20489         .0000       -.77919E-04
  24  Prefactor     .41064        .19055         .0000        .30773E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010005
  Prefactor  = 0.631093
  norm       = 6.2777
  norm       = 0.000100003
  Prefactor  = 0.00010005
  Prefactor  = 29.6269
  Prefactor  = 21.4398
  Prefactor  = 15.0498
  Prefactor  = 0.0001
  Prefactor  = 0.31392
  Prefactor  = 9.0054
  norm       = 2.99308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80161
  Prefactor  = 7.29969
  Prefactor  = 3.88528
  Prefactor  = 0.0001
  norm       = 0.119589
  norm       = 7.75217
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.52197
  Prefactor  = 0.410638
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.602     FROM HESSE     STATUS=OK           393 CALLS     3140 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    8.0998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .63109        9.6070        .21554E-02   -1.5549    
   3  norm          6.2777        11.310        .16019E-03   -1.5207    
   4  norm          .10000E-03    13.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10005E-03    8.0546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.627        47.471        .73452E-04   -1.4619    
   7  Prefactor     21.440        20.615        .86407E-04   -1.4782    
   8  Prefactor     15.050        21.489        .10335E-03   -1.4932    
   9  Prefactor     .10000E-03    5.5006        .16743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .31392        1.1223        .13184E-02   -1.5596    
  11  Prefactor     9.0054        10.173        .13341E-03   -1.5108    
  12  norm          2.9931        1.3702        .55542E-04   -1.5362    
  13  Prefactor     .10000E-03    7.2943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4561        .26206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8016        216.45        .23285E-03   -1.5373    
  16  Prefactor     7.2997        4.2079        .10087E-03   -1.5168    
  17  Prefactor     3.8853        3.4954        .11725E-03   -1.5314    
  18  Prefactor     .10000E-03    3.4459        .13192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .11959        .12377        .26103E-04   -1.5639    
  20  norm          7.7522        4.5942        .11774E-03   -1.5151    
  21  Prefactor     .10000E-03    13.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5220        .23349        .20881E-03   -.77163    
  24  Prefactor     .41064        .21189        .36413E-03   -1.1627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55323e-08
Minuit parameter uncertainties:
  1  0.00127375
  2  4.92515
  3  11.3134
  4  0.000379613
  5  0.00127028
  6  47.5314
  7  20.6213
  8  21.5
  9  9.10392e-06
  10  1.12241
  11  10.1748
  12  1.3702
  13  5.31601e-05
  14  2.58884e-05
  15  49.4363
  16  4.2081
  17  3.49557
  18  2.85929e-05
  19  0.123766
  20  4.59441
  21  0.000201102
  22  6.54748e-05
  23  0.233657
  24  0.212294
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  9.104e-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:  4.106e-01  2.123e-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.522e+00  2.337e-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: 6.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88030/likelihoodResults_505526401_505785601_4FGL_J1148.6+1841_daily_bin1027.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) = 5368.60319718
delta logL = -0.000863343042511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5368.60233387
delta logL = -2.80779204331e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3025       1.0000          .0000       10.000    
     3 'Normalizat'    1.5220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41068       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=   5368.602     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      245 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10161E-03    62.765        .17015E-02** at limit **
   2  Index         2.2369        5.8184        .50000        .25258E-04
   3  Normalizat    1.5220        .15438E-01    .20881E-03   -.27931E-04
   4  Prefactor     .41064        .14879E-01    .36413E-03   -.16110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101608
  Index      = 2.2369
  Normalizat = 1.52197
  Prefactor  = 0.410638
 **********
 **   18 **HESSE 
 **********

 FCN=   5368.602     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10161E-03    266.40        .34030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2369        5.8904        .50000       -.58550    
   3  Normalizat    1.5220        .33243E-01    .83523E-05   -.77163    
   4  Prefactor     .41064        .32038E-01    .14565E-04   -1.1627    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.06378e-08
Minuit parameter uncertainties:
  1  0.0415812
  2  608.111
  3  0.0332438
  4  0.032039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88030': 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) = 5368.6023334
delta logL = 4.4218631956e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.016e-04  4.158e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.237e+00  6.081e+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:  4.106e-01  3.204e-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.522e+00  3.324e-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/88030/cmap_HighResolution_505526401_505785601_4FGL_J1148.6+1841_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-03', job_status='DONE', photon_flux_upper_limit='6.78e-08', time_completed='2021-09-04 12:14:57.749339', job_id='88030', GAL2='0.41', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1630782897.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.41', dlogl='4.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1027' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:14:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 88030: <4FGL_J1148.6+1841_daily_bin1027> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1027> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 12:01:46 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:01:48 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:48 2021
Terminated at Sat Sep  4 12:14:58 2021
Results reported at Sat Sep  4 12:14:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1027 177.154 18.6861 505526401 505785601 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 :                                   640.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

