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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin20
RA = 177.154, Dec = 18.6861
tmin = 244512001, tmax = 244771201
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='81583', job_status='RUN', time_executed='2021-09-04 11:45:40.979817', time_epoch_executed='1630781140.98' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81583

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81583/ft1_4FGL_J1148.6+1841_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81583/ft2_4FGL_J1148.6+1841_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81583/ft1_4FGL_J1148.6+1841_daily_bin20.fits outfile=/scratch/kocevski/81583/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin20.fits ra=177.154 dec=18.6861 rad=12.0 tmin=244512001.0 tmax=244771201.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.45
user 1.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/81583/ft1_filtered_4FGL_J1148.6+1841_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/81583/ft2_4FGL_J1148.6+1841_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/81583/ltcube_244512001_244771201_4FGL_J1148.6+1841_daily_bin20.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/81583/ft2_4FGL_J1148.6+1841_daily_bin20.fits
.....................!
real 13.50
user 13.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81583/ft1_filtered_4FGL_J1148.6+1841_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/81583/ft2_4FGL_J1148.6+1841_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/81583/ltcube_244512001_244771201_4FGL_J1148.6+1841_daily_bin20.fits outfile=/scratch/kocevski/81583/expmap_244512001_244771201_4FGL_J1148.6+1841_daily_bin20.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/81583/ltcube_244512001_244771201_4FGL_J1148.6+1841_daily_bin20.fits
.....................!
real 191.63
user 186.99
sys 4.25

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/81583/ft1_filtered_4FGL_J1148.6+1841_daily_bin20.fits scfile=/scratch/kocevski/81583/ft2_4FGL_J1148.6+1841_daily_bin20.fits outfile=/scratch/kocevski/81583/cmap_244512001_244771201_4FGL_J1148.6+1841_daily_bin20.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81583/ft1_filtered_4FGL_J1148.6+1841_daily_bin20.fits scfile=/scratch/kocevski/81583/ft2_4FGL_J1148.6+1841_daily_bin20.fits outfile=/scratch/kocevski/81583/cmap_HighResolution_244512001_244771201_4FGL_J1148.6+1841_daily_bin20.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2876       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1768       1.0000         .10000E-03   10000.    
     3 'norm      '    .33885E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.046       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3858       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8150       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.688       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3642       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12634       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7061       1.0000         .10000E-03   10000.    
    19 'norm      '    .25303       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1927       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81706       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=   4753.215     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     2438 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2404        21.951       -.59947E-06   -.21251E-04
   2  Prefactor     2.1851        7.0152       -.17027E-05   -.43072E-03
   3  norm          .21485        9.6764       -.90217E-06   -.14634E-04
   4  norm          .10000E-03    10.153       -.81921E-07** at limit **
   5  Prefactor     .10000E-03    8.1326        .52564E-09** at limit **
   6  Prefactor     .10000E-03    13.937        .27239E-07** at limit **
   7  Prefactor     14.049        14.292       -.23447E-05    .11419E-05
   8  Prefactor     8.3998        19.335        .62754E-05   -.17602E-04
   9  Prefactor     .10000E-03    1.9178        .79104E-08** at limit **
  10  Prefactor     .10000E-03    .69133       -.95829E-07** at limit **
  11  Prefactor     .10000E-03    7.9925        .93115E-07** at limit **
  12  norm          1.8155        1.2562       -.12166E-06   -.31793E-03
  13  Prefactor     20.698        16.323       -.36820E-05    .17632E-04
  14  Prefactor     2.3669        3.4964       -.23628E-06   -.34267E-03
  15  Prefactor     .10000E-03    24.979        .24837E-07** at limit **
  16  Prefactor     .10000E-03    1.2187        .45532E-07** at limit **
  17  Prefactor     .13699        2.1554       -.74686E-06   -.33038E-03
  18  Prefactor     2.7077        4.6482       -.22557E-06   -.23506E-03
  19  norm          .25319        .21060       -.47548E-08   -.13332E-03
  20  norm          .10000E-03    2.7919        .63553E-08** at limit **
  21  Prefactor     .10000E-03    4.7530        .18365E-08** at limit **
  22  Prefactor     .10000E-03    15.382       -.40457E-07** at limit **
  23  Normalizat    1.1923        .19541        .12288E-06    .17351E-03
  24  Prefactor     .81684        .19016        .58222E-06    .96043E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.24043
  Prefactor  = 2.18512
  norm       = 0.214846
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0495
  Prefactor  = 8.39984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8155
  Prefactor  = 20.6976
  Prefactor  = 2.36692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.136988
  Prefactor  = 2.70765
  norm       = 0.253185
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.19227
  Prefactor  = 0.816837
 **********
 **   18 **HESSE 
 **********

 FCN=   4753.215     FROM HESSE     STATUS=OK           401 CALLS     2839 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2404        21.978        .16008E-03   -1.5208    
   2  Prefactor     2.1851        7.2430        .27906E-03   -1.5412    
   3  norm          .21485        106.59        .40966E-02   -1.5615    
   4  norm          .10000E-03    10.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.049        14.249        .10687E-03   -1.4958    
   8  Prefactor     8.3998        18.918        .13844E-03   -1.5128    
   9  Prefactor     .10000E-03    1.9181        .93243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .70122        .55972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.0539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8155        1.2489        .62152E-04   -1.5438    
  13  Prefactor     20.698        16.188        .88061E-04   -1.4798    
  14  Prefactor     2.3669        3.4924        .15023E-03   -1.5400    
  15  Prefactor     .10000E-03    24.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2309        .74172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .13699        6.1526        .19485E-02   -1.5634    
  18  Prefactor     2.7077        4.6391        .18913E-03   -1.5379    
  19  norm          .25319        .20634        .27510E-04   -1.5607    
  20  norm          .10000E-03    2.8010        .11243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7557        .14680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1923        .22032        .21989E-03   -.86842    
  24  Prefactor     .81684        .21424        .26716E-03   -.99111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9654e-08
Minuit parameter uncertainties:
  1  22.006
  2  7.2459
  3  9.58577
  4  1.9544e-05
  5  9.40991e-06
  6  2.79678e-06
  7  14.2523
  8  18.9319
  9  3.43081e-07
  10  7.59116e-06
  11  1.92304e-05
  12  1.24888
  13  16.1917
  14  3.49269
  15  2.30755e-05
  16  5.03935e-06
  17  1.83564
  18  4.6397
  19  0.206341
  20  4.9881e-07
  21  7.11454e-07
  22  2.91392e-06
  23  0.22049
  24  0.214464
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  3.431e-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:  8.168e-01  2.145e-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.192e+00  2.205e-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: 3.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81583/likelihoodResults_244512001_244771201_4FGL_J1148.6+1841_daily_bin20.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) = 4753.21667323
delta logL = -0.00216425902363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4753.21450854
delta logL = 4.31704393122e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2953       1.0000          .0000       10.000    
     3 'Normalizat'    1.1922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81689       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=   4753.214     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      245 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.026        .96912E-02** at limit **
   2  Index         1.5227        5.2117        .50000        .92491E-06
   3  Normalizat    1.1923        .93667E-02    .21989E-03    .15503E-03
   4  Prefactor     .81684        .96545E-02    .26715E-03    .11311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.52268
  Normalizat = 1.19227
  Prefactor  = 0.816837
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.04        .12727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5227        9.1774        .50000       -.76907    
   3  Normalizat    1.1923        .25989E-01    .43978E-04   -.86842    
   4  Prefactor     .81684        .26787E-01    .10686E-04   -.99111    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43373e-08
Minuit parameter uncertainties:
  1  0.00021533
  2  489.024
  3  0.0259891
  4  0.0267877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81583': 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) = 4753.2144969
delta logL = 1.20722143038e-05

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.153e-04  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  1.523e+00  4.890e+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:  8.168e-01  2.679e-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.192e+00  2.599e-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/81583/cmap_HighResolution_244512001_244771201_4FGL_J1148.6+1841_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-03', job_status='DONE', photon_flux_upper_limit='3.64e-08', time_completed='2021-09-04 11:55:27.774294', job_id='81583', GAL2='0.82', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630781727.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.21e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='20' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:55:27 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin20 177.154 18.6861 244512001 244771201 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 :                                   584.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             231.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

