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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin41
RA = 177.154, Dec = 18.6861
tmin = 249955201, tmax = 250214401
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='82722', job_status='RUN', time_executed='2021-09-04 11:48:53.937550', time_epoch_executed='1630781333.94' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82722

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82722/ft1_4FGL_J1148.6+1841_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82722/ft2_4FGL_J1148.6+1841_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82722/ft1_4FGL_J1148.6+1841_daily_bin41.fits outfile=/scratch/kocevski/82722/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin41.fits ra=177.154 dec=18.6861 rad=12.0 tmin=249955201.0 tmax=250214401.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.42
user 1.25
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82722/ft1_filtered_4FGL_J1148.6+1841_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/82722/ft2_4FGL_J1148.6+1841_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/82722/ltcube_249955201_250214401_4FGL_J1148.6+1841_daily_bin41.fits outfile=/scratch/kocevski/82722/expmap_249955201_250214401_4FGL_J1148.6+1841_daily_bin41.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/82722/ltcube_249955201_250214401_4FGL_J1148.6+1841_daily_bin41.fits
.....................!
real 191.46
user 185.91
sys 5.11

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/82722/ft1_filtered_4FGL_J1148.6+1841_daily_bin41.fits scfile=/scratch/kocevski/82722/ft2_4FGL_J1148.6+1841_daily_bin41.fits outfile=/scratch/kocevski/82722/cmap_249955201_250214401_4FGL_J1148.6+1841_daily_bin41.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82722/ft1_filtered_4FGL_J1148.6+1841_daily_bin41.fits scfile=/scratch/kocevski/82722/ft2_4FGL_J1148.6+1841_daily_bin41.fits outfile=/scratch/kocevski/82722/cmap_HighResolution_249955201_250214401_4FGL_J1148.6+1841_daily_bin41.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.2491       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6484       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25286E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7243       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3773       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3379       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .23109       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.338       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0222       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1398       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=   6207.982     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2347 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7824       -.31368E-05** at limit **
   2  Prefactor     .10000E-03    3.8500       -.11048E-06** at limit **
   3  norm          .10000E-03    6.4530        .31704E-05** at limit **
   4  norm          4.2461        10.052       -.12064E-05   -.14028E-03
   5  Prefactor     3.6476        8.1886       -.54285E-06   -.19032E-03
   6  Prefactor     .10000E-03    9.1537        .17769E-05** at limit **
   7  Prefactor     .10000E-03    7.3544       -.36854E-05** at limit **
   8  Prefactor     .10000E-03    3.4459        .30755E-07** at limit **
   9  Prefactor     .10004E-03    7.5243        .26384E-06** at limit **
  10  Prefactor     .10000E-03    .45647       -.26194E-07** at limit **
  11  Prefactor     6.7214        9.2438       -.52581E-06   -.84775E-04
  12  norm          4.3770        1.5746       -.26292E-07   -.14432E-03
  13  Prefactor     .10000E-03    13.653       -.10429E-05** at limit **
  14  Prefactor     .10000E-03    2.2882        .62357E-07** at limit **
  15  Prefactor     .10000E-03    32.838        .12323E-05** at limit **
  16  Prefactor     1.3383        2.4073       -.43185E-06   -.92706E-03
  17  Prefactor     .10000E-03    2.1300        .12577E-06** at limit **
  18  Prefactor     .10000E-03    6.0458        .22364E-05** at limit **
  19  norm          .23103        .22211       -.54251E-07   -.24492E-02
  20  norm          .10000E-03    4.6226        .28991E-06** at limit **
  21  Prefactor     .10000E-03    6.9634       -.19691E-06** at limit **
  22  Prefactor     30.328        28.041       -.46283E-05    .21530E-05
  23  Normalizat    1.0222        .17989        .63942E-06   -.94500E-04
  24  Prefactor     1.1400        .18242       -.55216E-07   -.62523E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.24612
  Prefactor  = 3.64759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 6.72135
  norm       = 4.37702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.33828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.231026
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3284
  Normalizat = 1.02224
  Prefactor  = 1.13996
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.982     FROM HESSE     STATUS=OK           399 CALLS     2746 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9008        .15093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.4207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.2461        10.120        .19547E-03   -1.5296    
   5  Prefactor     3.6476        8.2152        .21149E-03   -1.5326    
   6  Prefactor     .10000E-03    9.1407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4477        .14284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    92.263        .40909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .46187        .51969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7214        9.2531        .15474E-03   -1.5189    
  12  norm          4.3770        1.5748        .57057E-04   -1.5290    
  13  Prefactor     .10000E-03    13.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3183        .11616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3383        2.4147        .15705E-03   -1.5477    
  17  Prefactor     .10000E-03    2.2168        .22362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.1499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .23103        .21259        .34433E-03   -1.5612    
  20  norm          .10000E-03    4.7011        .16528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.9701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     30.328        27.862        .72742E-04   -1.4606    
  23  Normalizat    1.0222        .21189        .24794E-03   -.92289    
  24  Prefactor     1.1400        .21615        .24814E-03   -.88199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50949e-10
Minuit parameter uncertainties:
  1  2.563e-08
  2  1.04909e-06
  3  8.50553e-06
  4  10.1243
  5  8.21771
  6  2.85903e-06
  7  2.57711e-06
  8  1.27586e-08
  9  0.00365323
  10  1.66139e-07
  11  9.25508
  12  1.57484
  13  9.71808e-06
  14  2.1659e-06
  15  7.71413e-06
  16  2.41491
  17  1.10937e-05
  18  1.53326e-05
  19  0.212588
  20  7.49179e-06
  21  2.97011e-05
  22  27.8741
  23  0.212065
  24  0.216321
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  3.653e-03  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.140e+00  2.163e-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.022e+00  2.121e-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: 8.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82722/likelihoodResults_249955201_250214401_4FGL_J1148.6+1841_daily_bin41.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) = 6207.98252818
delta logL = -5.01955155414e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6207.98252816
delta logL = -5.01747763337e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96296E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3226       1.0000          .0000       10.000    
     3 'Normalizat'    1.0223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1399       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=   6207.982     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      219 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .18662        .90719E-01** at limit **
   2  Index         2.3443        5.4226        .50000        .70290E-05
   3  Normalizat    1.0222        .71722E-03    .43039E-01    .92035E-04
   4  Prefactor     1.1400        .75673E-03    .56118E-01    .89937E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.34427
  Normalizat = 1.02224
  Prefactor  = 1.13996
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.982     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      254 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    59.776        .40238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3443        8.7248        .50000       -.55995    
   3  Normalizat    1.0222        .34783E-02    .24794E-03   -.92289    
   4  Prefactor     1.1400        .36689E-02    .24814E-03   -.88199    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.64171e-09
Minuit parameter uncertainties:
  1  0.00140538
  2  45.4303
  3  0.00347826
  4  0.00366892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82722': 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) = 6207.98247798
delta logL = 6.14090822637e-09

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.405e-03  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.344e+00  4.543e+01  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.140e+00  3.669e-03  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.022e+00  3.478e-03  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/82722/cmap_HighResolution_249955201_250214401_4FGL_J1148.6+1841_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.55e-08', time_completed='2021-09-04 12:00:00.341891', job_id='82722', GAL2='1.14', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630782000.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='6.14e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='41' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:00:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 82722: <4FGL_J1148.6+1841_daily_bin41> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin41 177.154 18.6861 249955201 250214401 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 :                                   665.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            833 sec.

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

