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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1332
RA = 177.154, Dec = 18.6861
tmin = 584582401, tmax = 584841601
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='89752', job_status='RUN', time_executed='2021-09-04 12:10:39.175120', time_epoch_executed='1630782639.18' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89752

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89752/ft1_4FGL_J1148.6+1841_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89752/ft2_4FGL_J1148.6+1841_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89752/ft1_4FGL_J1148.6+1841_daily_bin1332.fits outfile=/scratch/kocevski/89752/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1332.fits ra=177.154 dec=18.6861 rad=12.0 tmin=584582401.0 tmax=584841601.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 2.88
user 2.60
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89752/ft2_4FGL_J1148.6+1841_daily_bin1332.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/89752/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1332.fits evtable="EVENTS" outfile="/scratch/kocevski/89752/ft1_filtered_4FGL_J1148.6+1841_daily_bin1332.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.30
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89752/ft1_filtered_4FGL_J1148.6+1841_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/89752/ft2_4FGL_J1148.6+1841_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/89752/ltcube_584582401_584841601_4FGL_J1148.6+1841_daily_bin1332.fits outfile=/scratch/kocevski/89752/expmap_584582401_584841601_4FGL_J1148.6+1841_daily_bin1332.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/89752/ltcube_584582401_584841601_4FGL_J1148.6+1841_daily_bin1332.fits
.....................!
real 189.49
user 184.16
sys 4.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/89752/ft1_filtered_4FGL_J1148.6+1841_daily_bin1332.fits scfile=/scratch/kocevski/89752/ft2_4FGL_J1148.6+1841_daily_bin1332.fits outfile=/scratch/kocevski/89752/cmap_584582401_584841601_4FGL_J1148.6+1841_daily_bin1332.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.74
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89752/ft1_filtered_4FGL_J1148.6+1841_daily_bin1332.fits scfile=/scratch/kocevski/89752/ft2_4FGL_J1148.6+1841_daily_bin1332.fits outfile=/scratch/kocevski/89752/cmap_HighResolution_584582401_584841601_4FGL_J1148.6+1841_daily_bin1332.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.69
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5786       1.0000         .10000E-03   10000.    
     3 'norm      '    8.3664       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1643       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8427       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14068E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.288       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12941E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12445E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1586       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.638       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12832E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10606E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.098       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.723       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2460       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77032       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=   5868.091     FROM MIGRAD    STATUS=CONVERGED    992 CALLS     3629 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3345        .18142E-02** at limit **
   2  Prefactor     3.5788        5.4520        .21358E-03   -.65473E-05
   3  norm          8.3632        11.361        .13860E-03   -.37486E-04
   4  norm          2.1653        9.2412        .13998E-02    .13401E-04
   5  Prefactor     6.8421        9.7019        .15338E-03   -.50403E-05
   6  Prefactor     .10000E-03    236.73        .36285E-03** at limit **
   7  Prefactor     17.289        15.095        .96326E-04    .86157E-05
   8  Prefactor     .10000E-03    10.716        .18142E-02** at limit **
   9  Prefactor     .10001E-03    9.8689        .56813E-01** at limit **
  10  Prefactor     .10000E-03    4.4848        .12823E-02** at limit **
  11  Prefactor     .10000E-03    16.304        .36285E-03** at limit **
  12  norm          .10000E-03    .27500        .77181E-04** at limit **
  13  Prefactor     7.1566        13.467        .14992E-03    .10844E-04
  14  Prefactor     .10000E-03    .96555        .73282E-03** at limit **
  15  Prefactor     35.637        54.789        .67131E-04    .67402E-05
  16  Prefactor     .10000E-03    3.5822        .16540E-02** at limit **
  17  Prefactor     .10000E-03    .47176        .51319E-03** at limit **
  18  Prefactor     .10000E-03    1.8769        .10226E-02** at limit **
  19  norm          .10118E-03    .20476        .75421E-02** at limit **
  20  norm          14.098        5.8602        .10668E-03    .11478E-03
  21  Prefactor     15.725        11.753        .10101E-03    .11706E-04
  22  Prefactor     .10000E-03    29.127        .18142E-02** at limit **
  23  Normalizat    1.2460        .20177        .21717E-03    .11228E-03
  24  Prefactor     .77029        .19767        .27314E-03    .10081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.57879
  norm       = 8.36317
  norm       = 2.16528
  Prefactor  = 6.84205
  Prefactor  = 0.0001
  Prefactor  = 17.2886
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.15664
  Prefactor  = 0.0001
  Prefactor  = 35.6369
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101177
  norm       = 14.0981
  Prefactor  = 15.7253
  Prefactor  = 0.0001
  Normalizat = 1.24597
  Prefactor  = 0.77029
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.091     FROM HESSE     STATUS=OK           395 CALLS     4024 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5788        5.4519        .85431E-05   -1.5330    
   3  norm          8.3632        11.360        .55439E-05   -1.5130    
   4  norm          2.1653        9.2321        .55992E-04   -1.5414    
   5  Prefactor     6.8421        9.7015        .61352E-05   -1.5185    
   6  Prefactor     .10000E-03    236.74        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.289        15.095        .38530E-05   -1.4876    
   8  Prefactor     .10000E-03    10.719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    8.2880        .64068E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5363        .25645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.305        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .27500        .15436E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.1566        13.465        .59970E-05   -1.5173    
  14  Prefactor     .10000E-03    .96558        .14656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.637        54.790        .13426E-04   -1.4513    
  16  Prefactor     .10000E-03    3.6171        .33079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .47177        .10264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8770        .20452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10118E-03    .16100        .88647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.098        5.8604        .42671E-05   -1.4957    
  21  Prefactor     15.725        11.753        .40403E-05   -1.4915    
  22  Prefactor     .10000E-03    29.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2460        .20199        .43433E-04   -.85194    
  24  Prefactor     .77029        .19785        .10925E-04   -1.0083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.98426e-11
Minuit parameter uncertainties:
  1  1.93096e-06
  2  5.45265
  3  11.3629
  4  8.94417
  5  9.70376
  6  0.000220745
  7  15.0983
  8  9.62618e-07
  9  0.000457898
  10  3.97689e-05
  11  1.18867e-05
  12  9.66805e-09
  13  13.4711
  14  2.20403e-07
  15  54.8678
  16  4.31331e-06
  17  4.3044e-08
  18  7.41641e-06
  19  0.000870677
  20  5.86069
  21  11.7548
  22  6.32982e-06
  23  0.202119
  24  0.198028
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  4.579e-04  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:  7.703e-01  1.980e-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.246e+00  2.021e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89752/likelihoodResults_584582401_584841601_4FGL_J1148.6+1841_daily_bin1332.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) = 5868.09148427
delta logL = -2.4411708182e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5867.75869958
delta logL = 0.332760273463

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41316       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8761       1.0000          .0000       10.000    
     3 'Normalizat'    1.2049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79136       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=   5867.759     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      277 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41326        7.6573        .10911E-01   -.57949E-03
   2  Index         3.8763        2.2922        .15962        .19276E-03
   3  Normalizat    1.2050        .29537E-01    .49832E-01    .49704E-05
   4  Prefactor     .79133        .30082E-01    .43605E-01    .17476E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.413263
  Index      = 3.8763
  Normalizat = 1.205
  Prefactor  = 0.791325
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.759     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      310 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41326        34.829        .62943E-04   -1.5579    
   2  Index         3.8763        6.7716        .55696E-02   -.22668    
   3  Normalizat    1.2050        .18417        .22031E-03   -.86449    
   4  Prefactor     .79133        .18358        .26978E-03   -1.0005    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90399e-07
Minuit parameter uncertainties:
  1  7.59139
  2  8.33734
  3  0.18427
  4  0.18372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89752': 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) = 5867.75869935
delta logL = 0.33276050047

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  4.133e-01  7.591e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  3.876e+00  8.337e+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:  7.913e-01  1.837e-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.205e+00  1.843e-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/89752/cmap_HighResolution_584582401_584841601_4FGL_J1148.6+1841_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-09-04 12:23:17.368650', job_id='89752', GAL2='0.79', fit_tolerance='1e-08', EG2='1.20', EG='1.25', time_epoch_completed='1630783397.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.33e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1332' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:23:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 89752: <4FGL_J1148.6+1841_daily_bin1332> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1332> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:06:45 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:06:47 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:47 2021
Terminated at Sat Sep  4 12:23:18 2021
Results reported at Sat Sep  4 12:23:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1332 177.154 18.6861 584582401 584841601 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 :                                   743.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

