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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1233
RA = 177.154, Dec = 18.6861
tmin = 558921601, tmax = 559180801
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='89595', job_status='RUN', time_executed='2021-09-04 12:08:43.164659', time_epoch_executed='1630782523.16' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89595

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89595/ft1_4FGL_J1148.6+1841_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89595/ft2_4FGL_J1148.6+1841_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89595/ft1_4FGL_J1148.6+1841_daily_bin1233.fits outfile=/scratch/kocevski/89595/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1233.fits ra=177.154 dec=18.6861 rad=12.0 tmin=558921601.0 tmax=559180801.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.54
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89595/ft2_4FGL_J1148.6+1841_daily_bin1233.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/89595/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1233.fits evtable="EVENTS" outfile="/scratch/kocevski/89595/ft1_filtered_4FGL_J1148.6+1841_daily_bin1233.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89595/ft1_filtered_4FGL_J1148.6+1841_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/89595/ft2_4FGL_J1148.6+1841_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/89595/ltcube_558921601_559180801_4FGL_J1148.6+1841_daily_bin1233.fits outfile=/scratch/kocevski/89595/expmap_558921601_559180801_4FGL_J1148.6+1841_daily_bin1233.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/89595/ltcube_558921601_559180801_4FGL_J1148.6+1841_daily_bin1233.fits
.....................!
real 190.50
user 185.40
sys 4.77

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/89595/ft1_filtered_4FGL_J1148.6+1841_daily_bin1233.fits scfile=/scratch/kocevski/89595/ft2_4FGL_J1148.6+1841_daily_bin1233.fits outfile=/scratch/kocevski/89595/cmap_558921601_559180801_4FGL_J1148.6+1841_daily_bin1233.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89595/ft1_filtered_4FGL_J1148.6+1841_daily_bin1233.fits scfile=/scratch/kocevski/89595/ft2_4FGL_J1148.6+1841_daily_bin1233.fits outfile=/scratch/kocevski/89595/cmap_HighResolution_558921601_559180801_4FGL_J1148.6+1841_daily_bin1233.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.61
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9900       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.320       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.072       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.470       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26063E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2697       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.1813       1.0000         .10000E-03   10000.    
    13 'Prefactor '    79.393       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1646       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11478E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11579E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23021E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .34025       1.0000         .10000E-03   10000.    
    20 'norm      '    22.199       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4590       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68933       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=   5600.857     FROM MIGRAD    STATUS=CONVERGED    982 CALLS     3174 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4463        .17052E-02** at limit **
   2  Prefactor     .10000E-03    3.0951        .12828E-02** at limit **
   3  norm          .10000E-03    12.171        .18142E-02** at limit **
   4  norm          3.9803        11.391        .20191E-03    .51126E-04
   5  Prefactor     25.314        14.474        .79610E-04   -.17137E-05
   6  Prefactor     29.020        65.071        .74305E-04    .16830E-04
   7  Prefactor     12.467        14.505        .11343E-03    .52116E-05
   8  Prefactor     .10000E-03    22.553        .83562E-01** at limit **
   9  Prefactor     .10000E-03    4.8965        .16158E-02** at limit **
  10  Prefactor     3.2702        1.9286        .74996E-04    .15023E-03
  11  Prefactor     .10000E-03    8.2332        .18142E-02** at limit **
  12  norm          5.1810        1.6262        .50399E-04    .48273E-04
  13  Prefactor     79.369        41.675        .45072E-04    .26283E-04
  14  Prefactor     1.1656        4.4723        .28921E-03    .26337E-04
  15  Prefactor     .10000E-03    90.130        .18142E-02** at limit **
  16  Prefactor     .10000E-03    5.6196        .23842E-02** at limit **
  17  Prefactor     .10000E-03    2.0345        .10342E-02** at limit **
  18  Prefactor     .10000E-03    17.326        .34341E-02** at limit **
  19  norm          .34029        .24049        .29530E-04    .10279E-03
  20  norm          22.204        8.1871        .85013E-04    .10254E-03
  21  Prefactor     .10000E-03    31.111        .18142E-02** at limit **
  22  Prefactor     .10000E-03    22.364        .18142E-02** at limit **
  23  Normalizat    1.4599        .27451        .25170E-03   -.20009E-04
  24  Prefactor     .68874        .24343        .34571E-03   -.34759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.98027
  Prefactor  = 25.3137
  Prefactor  = 29.02
  Prefactor  = 12.4669
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.27015
  Prefactor  = 0.0001
  norm       = 5.18101
  Prefactor  = 79.3691
  Prefactor  = 1.16559
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.340288
  norm       = 22.2043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.45987
  Prefactor  = 0.688742
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.857     FROM HESSE     STATUS=OK           383 CALLS     3557 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4464        .34103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0954        .25656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9803        11.388        .80764E-05   -1.5309    
   5  Prefactor     25.314        14.474        .31844E-05   -1.4701    
   6  Prefactor     29.020        65.085        .29722E-05   -1.4630    
   7  Prefactor     12.467        14.505        .45374E-05   -1.5002    
   8  Prefactor     .10000E-03    20.743        .88456E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8967        .32316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2702        1.9285        .29999E-05   -1.5346    
  11  Prefactor     .10000E-03    8.2333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.1810        1.6262        .20160E-05   -1.5253    
  13  Prefactor     79.369        41.674        .90145E-05   -1.3924    
  14  Prefactor     1.1656        4.4696        .11568E-04   -1.5492    
  15  Prefactor     .10000E-03    90.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6415        .47684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0349        .20684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.427        .68683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .34029        .24047        .11812E-05   -1.5591    
  20  norm          22.204        8.1821        .17003E-04   -1.4765    
  21  Prefactor     .10000E-03    31.118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.364        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4599        .27474        .10068E-04   -.78912    
  24  Prefactor     .68874        .24366        .13829E-04   -1.0397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03914e-10
Minuit parameter uncertainties:
  1  3.52439e-06
  2  8.25179e-07
  3  0.000141153
  4  11.3946
  5  14.476
  6  65.2444
  7  14.5092
  8  6.26026e-05
  9  7.49574e-07
  10  1.92851
  11  2.61349e-05
  12  1.62626
  13  41.6893
  14  4.47084
  15  0.0004757
  16  0.000168278
  17  1.5709e-06
  18  5.24367e-05
  19  0.240476
  20  8.18256
  21  1.11193e-05
  22  5.77056e-05
  23  0.275015
  24  0.244038
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  7.496e-07  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:  6.887e-01  2.440e-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.460e+00  2.750e-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/89595/likelihoodResults_558921601_559180801_4FGL_J1148.6+1841_daily_bin1233.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) = 5600.85780604
delta logL = -0.000965260141129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5600.85684073
delta logL = 5.51353878109e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3006       1.0000          .0000       10.000    
     3 'Normalizat'    1.4599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68877       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=   5600.857     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10333E-03    3.7180        .16486E-01** at limit **
   2  Index         2.2007        5.0635        .50000        .32244E-04
   3  Normalizat    1.4599        .44869E-02    .25170E-03    .80851E-05
   4  Prefactor     .68874        .44271E-02    .34572E-03    .45315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103333
  Index      = 2.20074
  Normalizat = 1.45987
  Prefactor  = 0.688743
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.857     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10333E-03    72.394        .17008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2007        8.7776        .50000       -.59421    
   3  Normalizat    1.4599        .20025E-01    .10068E-04   -.78912    
   4  Prefactor     .68874        .19758E-01    .13829E-04   -1.0397    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.80852e-08
Minuit parameter uncertainties:
  1  0.0311059
  2  380.195
  3  0.0200249
  4  0.0197581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89595': 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) = 5600.85684006
delta logL = 7.23936864233e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.033e-04  3.111e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.201e+00  3.802e+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:  6.887e-01  1.976e-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.460e+00  2.002e-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/89595/cmap_HighResolution_558921601_559180801_4FGL_J1148.6+1841_daily_bin1233.png

Cleaning up...

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

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:20:18.845851', job_id='89595', GAL2='0.69', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1630783218.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='7.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1233' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:20:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 89595: <4FGL_J1148.6+1841_daily_bin1233> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1233> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:06:34 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:06:36 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:06:36 2021
Terminated at Sat Sep  4 12:20:19 2021
Results reported at Sat Sep  4 12:20:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1233 177.154 18.6861 558921601 559180801 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 :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

