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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin60
RA = 177.154, Dec = 18.6861
tmin = 254880001, tmax = 255139201
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='82751', job_status='RUN', time_executed='2021-09-04 11:48:54.565198', time_epoch_executed='1630781334.57' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82751

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82751/ft1_4FGL_J1148.6+1841_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82751/ft2_4FGL_J1148.6+1841_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82751/ft1_4FGL_J1148.6+1841_daily_bin60.fits outfile=/scratch/kocevski/82751/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin60.fits ra=177.154 dec=18.6861 rad=12.0 tmin=254880001.0 tmax=255139201.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.46
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82751/ft1_filtered_4FGL_J1148.6+1841_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/82751/ft2_4FGL_J1148.6+1841_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/82751/ltcube_254880001_255139201_4FGL_J1148.6+1841_daily_bin60.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/82751/ft2_4FGL_J1148.6+1841_daily_bin60.fits
.....................!
real 14.63
user 13.92
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82751/ft1_filtered_4FGL_J1148.6+1841_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/82751/ft2_4FGL_J1148.6+1841_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/82751/ltcube_254880001_255139201_4FGL_J1148.6+1841_daily_bin60.fits outfile=/scratch/kocevski/82751/expmap_254880001_255139201_4FGL_J1148.6+1841_daily_bin60.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/82751/ltcube_254880001_255139201_4FGL_J1148.6+1841_daily_bin60.fits
.....................!
real 191.93
user 187.04
sys 4.35

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/82751/ft1_filtered_4FGL_J1148.6+1841_daily_bin60.fits scfile=/scratch/kocevski/82751/ft2_4FGL_J1148.6+1841_daily_bin60.fits outfile=/scratch/kocevski/82751/cmap_254880001_255139201_4FGL_J1148.6+1841_daily_bin60.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82751/ft1_filtered_4FGL_J1148.6+1841_daily_bin60.fits scfile=/scratch/kocevski/82751/ft2_4FGL_J1148.6+1841_daily_bin60.fits outfile=/scratch/kocevski/82751/cmap_HighResolution_254880001_255139201_4FGL_J1148.6+1841_daily_bin60.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/82751/ft1_filtered_4FGL_J1148.6+1841_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/82751/ft2_4FGL_J1148.6+1841_daily_bin60.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82751/Model_4FGL_J1148.6+1841_daily_bin60.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/82751/ft1_filtered_4FGL_J1148.6+1841_daily_bin60.fits.....................!
real 58.98
user 57.55
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1724       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.2716       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5047       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .74284       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8764       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .95922       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .21567E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10706E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.3920       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    64.965       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .69982       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3665       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=   6663.722     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2762 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.394       -.81121E-06** at limit **
   2  Prefactor     1.1696        11.881        .35264E-05   -.62097E-04
   3  norm          .10000E-03    3.8854        .22868E-07** at limit **
   4  norm          7.2718        8.6100        .11183E-06   -.12831E-04
   5  Prefactor     .10000E-03    5.1585       -.13991E-06** at limit **
   6  Prefactor     .10000E-03    11.074       -.12491E-06** at limit **
   7  Prefactor     .10000E-03    7.9976        .15487E-06** at limit **
   8  Prefactor     .10000E-03    4.3607        .68503E-07** at limit **
   9  Prefactor     .10000E-03    7.9451        .15739E-06** at limit **
  10  Prefactor     2.5048        1.7287        .68527E-07   -.62096E-04
  11  Prefactor     .10000E-03    1.7866        .13801E-07** at limit **
  12  norm          .74285        .71523        .27315E-07    .32959E-04
  13  Prefactor     .10000E-03    5.1310       -.11251E-07** at limit **
  14  Prefactor     2.8770        4.3378        .57001E-06   -.74266E-04
  15  Prefactor     .10000E-03    20.004        .60541E-06** at limit **
  16  Prefactor     .10000E-03    1.1030       -.91409E-07** at limit **
  17  Prefactor     .96080        1.7387        .39022E-06    .54752E-03
  18  Prefactor     .10001E-03    4.0342       -.49397E-06** at limit **
  19  norm          .10000E-03    .12067        .23387E-07** at limit **
  20  norm          6.3949        4.0416        .30898E-07   -.20422E-05
  21  Prefactor     .10000E-03    9.7998       -.18794E-06** at limit **
  22  Prefactor     64.963        40.962       -.61901E-07   -.31292E-04
  23  Normalizat    .69974        .16310       -.84595E-06   -.56227E-04
  24  Prefactor     1.3666        .16745       -.17916E-06   -.62278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 1.16958
  norm       = 0.0001
  norm       = 7.27175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.50479
  Prefactor  = 0.0001
  norm       = 0.742849
  Prefactor  = 0.0001
  Prefactor  = 2.87701
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.960798
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 6.39491
  Prefactor  = 0.0001
  Prefactor  = 64.9631
  Normalizat = 0.699741
  Prefactor  = 1.36659
 **********
 **   18 **HESSE 
 **********

 FCN=   6663.722     FROM HESSE     STATUS=OK           405 CALLS     3167 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1696        11.531        .42355E-03   -1.5492    
   3  norm          .10000E-03    3.9216        .15714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.2718        8.6130        .14874E-03   -1.5169    
   5  Prefactor     .10000E-03    5.1951        .18114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3673        .16650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.0629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5048        1.7219        .85151E-04   -1.5391    
  11  Prefactor     .10000E-03    1.7887        .10656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .74285        .72076        .65794E-04   -1.5536    
  13  Prefactor     .10000E-03    5.1518        .18059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8770        4.2590        .19072E-03   -1.5369    
  15  Prefactor     .10000E-03    20.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9870        .16377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .96080        1.4966        .14668E-02   -1.5512    
  18  Prefactor     .10001E-03    12.520        .30539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .16584        .82482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.3949        3.9661        .12459E-03   -1.5202    
  21  Prefactor     .10000E-03    9.8194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     64.963        40.887        .49791E-04   -1.4094    
  23  Normalizat    .69974        .19039        .27995E-03   -1.0390    
  24  Prefactor     1.3666        .19691        .22349E-03   -.81348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41137e-10
Minuit parameter uncertainties:
  1  0.000259712
  2  7.34641
  3  9.71012e-07
  4  8.61446
  5  1.89586e-05
  6  4.60615e-05
  7  3.29638e-05
  8  1.12558e-05
  9  2.55785e-05
  10  1.72196
  11  7.59556e-07
  12  0.720766
  13  7.08914e-06
  14  4.25942
  15  0.000262196
  16  6.40744e-06
  17  1.49671
  18  0.000521752
  19  2.74005e-06
  20  3.96622
  21  2.86373e-05
  22  40.9051
  23  0.190571
  24  0.197021
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.558e-05  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.367e+00  1.970e-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.997e-01  1.906e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82751/likelihoodResults_254880001_255139201_4FGL_J1148.6+1841_daily_bin60.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) = 6663.72217213
delta logL = -0.000591278073443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6663.721581
delta logL = -1.44754267239e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3281       1.0000          .0000       10.000    
     3 'Normalizat'    .69971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3666       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=   6663.722     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    126.22        .90712E-02** at limit **
   2  Index         2.3336        8.8047        .50000       -.60017E-05
   3  Normalizat    .69974        .16153E-01    .63279E-01    .53347E-04
   4  Prefactor     1.3666        .17492E-01    .50555E-01    .31760E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33357
  Normalizat = 0.699741
  Prefactor  = 1.36659
 **********
 **   18 **HESSE 
 **********

 FCN=   6663.722     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3336        6.1668        .50000       -.56248    
   3  Normalizat    .69974        .18049        .27995E-03   -1.0390    
   4  Prefactor     1.3666        .19578        .22349E-03   -.81348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17491e-11
Minuit parameter uncertainties:
  1  2.31731e-05
  2  4.26344
  3  0.180638
  4  0.195887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82751': 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): 0
logL (Free Index) = 6663.72158084
delta logL = 1.53713699547e-08

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.317e-05  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.334e+00  4.263e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.367e+00  1.959e-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.997e-01  1.806e-01  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/82751/cmap_HighResolution_254880001_255139201_4FGL_J1148.6+1841_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-09-04 12:00:54.936459', job_id='82751', GAL2='1.37', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630782054.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='1.54e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='60' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:00:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 82751: <4FGL_J1148.6+1841_daily_bin60> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin60> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:46:11 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:46:13 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:46:13 2021
Terminated at Sat Sep  4 12:00:55 2021
Results reported at Sat Sep  4 12:00:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin60 177.154 18.6861 254880001 255139201 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 :                                   715.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

