/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 4 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 = 7465
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1148.6+1841_daily_bin236
RA = 177.154, Dec = 18.6861
tmin = 300499201, tmax = 300758401
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='83049', job_status='RUN', time_executed='2021-09-04 11:46:52.356128', time_epoch_executed='1630781212.36' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83049

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83049/ft1_4FGL_J1148.6+1841_daily_bin236.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83049/ft2_4FGL_J1148.6+1841_daily_bin236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83049/ft1_4FGL_J1148.6+1841_daily_bin236.fits outfile=/scratch/kocevski/83049/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin236.fits ra=177.154 dec=18.6861 rad=12.0 tmin=300499201.0 tmax=300758401.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.47
user 3.25
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83049/ft1_filtered_4FGL_J1148.6+1841_daily_bin236.fits evtable="EVENTS" scfile=/scratch/kocevski/83049/ft2_4FGL_J1148.6+1841_daily_bin236.fits sctable="SC_DATA" expcube=/scratch/kocevski/83049/ltcube_300499201_300758401_4FGL_J1148.6+1841_daily_bin236.fits outfile=/scratch/kocevski/83049/expmap_300499201_300758401_4FGL_J1148.6+1841_daily_bin236.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/83049/ltcube_300499201_300758401_4FGL_J1148.6+1841_daily_bin236.fits
.....................!
real 189.95
user 185.24
sys 4.33

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/83049/ft1_filtered_4FGL_J1148.6+1841_daily_bin236.fits scfile=/scratch/kocevski/83049/ft2_4FGL_J1148.6+1841_daily_bin236.fits outfile=/scratch/kocevski/83049/cmap_300499201_300758401_4FGL_J1148.6+1841_daily_bin236.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.543       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7653       1.0000         .10000E-03   10000.    
     3 'norm      '    11.845       1.0000         .10000E-03   10000.    
     4 'norm      '    8.5969       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4360       1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.796       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5095       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.085       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.637       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4817       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14140E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .90832       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8926       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.357       1.0000         .10000E-03   10000.    
    20 'norm      '    .21619E-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'    .72305       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92407       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=   8498.860     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2842 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.543        19.407       -.11488E-05   -.38296E-04
   2  Prefactor     5.7666        5.8492       -.43312E-07   -.81391E-05
   3  norm          11.844        10.590        .53969E-06    .30888E-04
   4  norm          8.5973        10.103        .29073E-07   -.36828E-04
   5  Prefactor     1.4347        1.5232        .58819E-07   -.23444E-03
   6  Prefactor     47.792        41.282       -.39779E-05   -.12079E-03
   7  Prefactor     8.5060        17.598       -.40772E-05   -.11727E-03
   8  Prefactor     25.087        18.055        .85901E-06    .29544E-04
   9  Prefactor     .10000E-03    3.8694       -.11469E-05** at limit **
  10  Prefactor     .10000E-03    .51454       -.14397E-07** at limit **
  11  Prefactor     12.634        10.453        .27942E-06    .49653E-04
  12  norm          5.4816        1.6395       -.26147E-07   -.76283E-04
  13  Prefactor     .10000E-03    8.0820       -.14445E-05** at limit **
  14  Prefactor     .10001E-03    2.4119        .15655E-05** at limit **
  15  Prefactor     .10000E-03    31.849       -.25094E-06** at limit **
  16  Prefactor     .90898        2.4490       -.19347E-06   -.31642E-03
  17  Prefactor     2.8927        3.1041       -.44554E-08   -.10409E-03
  18  Prefactor     .10000E-03    2.3653       -.74687E-07** at limit **
  19  norm          15.357        .82766       -.10072E-07   -.17254E-02
  20  norm          .10000E-03    2.2405        .68791E-06** at limit **
  21  Prefactor     .10000E-03    4.5267       -.30770E-05** at limit **
  22  Prefactor     .10000E-03    11.871        .90917E-06** at limit **
  23  Normalizat    .72302        .18767        .11704E-05   -.25163E-03
  24  Prefactor     .92419        .17731       -.34815E-06   -.17345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5429
  Prefactor  = 5.76664
  norm       = 11.8442
  norm       = 8.59728
  Prefactor  = 1.43466
  Prefactor  = 47.7925
  Prefactor  = 8.50598
  Prefactor  = 25.0869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6341
  norm       = 5.48165
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.908977
  Prefactor  = 2.89271
  Prefactor  = 0.0001
  norm       = 15.3569
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.723022
  Prefactor  = 0.924195
 **********
 **   18 **HESSE 
 **********

 FCN=   8498.860     FROM HESSE     STATUS=OK           405 CALLS     3247 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.543        19.488        .10884E-03   -1.4972    
   2  Prefactor     5.7666        5.9693        .16727E-03   -1.5228    
   3  norm          11.844        10.600        .11639E-03   -1.5020    
   4  norm          8.5973        10.173        .68357E-03   -1.5121    
   5  Prefactor     1.4347        16.280        .18011E-02   -1.5468    
   6  Prefactor     47.792        41.634        .58000E-04   -1.4324    
   7  Prefactor     8.5060        17.707        .13742E-03   -1.5125    
   8  Prefactor     25.087        18.156        .79980E-04   -1.4706    
   9  Prefactor     .10000E-03    3.8918        .17732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .51856        .64476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.634        10.472        .11268E-03   -1.4997    
  12  norm          5.4816        1.6413        .61500E-04   -1.5240    
  13  Prefactor     .10000E-03    8.1372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    4.1623        .25449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .90898        2.3610        .21366E-03   -1.5517    
  17  Prefactor     2.8927        3.0334        .15256E-03   -1.5368    
  18  Prefactor     .10000E-03    2.3791        .13845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.357        .82868        .18550E-04   -1.4924    
  20  norm          .10000E-03    5.8753        .26404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.5992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .72302        .23135        .34773E-03   -1.0299    
  24  Prefactor     .92419        .21472        .31816E-03   -.95301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22436e-09
Minuit parameter uncertainties:
  1  19.4968
  2  5.96987
  3  10.6018
  4  10.1754
  5  9.6686
  6  41.6592
  7  17.7184
  8  18.1595
  9  2.80584e-05
  10  2.02798e-06
  11  10.4736
  12  1.64127
  13  4.62973e-05
  14  0.000291967
  15  2.21435e-05
  16  2.36125
  17  3.0336
  18  2.94314e-06
  19  0.828685
  20  0.00025635
  21  7.13009e-05
  22  3.17747e-05
  23  0.231668
  24  0.214914
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.242e-01  2.149e-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:  7.230e-01  2.317e-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: 5.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83049/likelihoodResults_300499201_300758401_4FGL_J1148.6+1841_daily_bin236.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) = 8498.8611308
delta logL = -0.0012211704161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8498.85990956
delta logL = 6.02885847911e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3049       1.0000          .0000       10.000    
     3 'Normalizat'    .72308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92416       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=   8498.860     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10098E-03    34.230        .17954E-02** at limit **
   2  Index         2.2576        5.7907        .50000        .33275E-04
   3  Normalizat    .72302        .12957E-01    .34773E-03    .10920E-03
   4  Prefactor     .92419        .13364E-01    .31816E-03    .10849E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100977
  Index      = 2.25763
  Normalizat = 0.723024
  Prefactor  = 0.924194
 **********
 **   18 **HESSE 
 **********

 FCN=   8498.860     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10098E-03    150.19        .35908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2576        7.3206        .50000       -.58054    
   3  Normalizat    .72302        .28088E-01    .13909E-04   -1.0299    
   4  Prefactor     .92419        .28969E-01    .12726E-04   -.95301    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43246e-08
Minuit parameter uncertainties:
  1  0.0242874
  2  389.979
  3  0.0280884
  4  0.0289693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83049': 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) = 8498.85990919
delta logL = 4.37830749433e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.010e-04  2.429e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.258e+00  3.900e+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:  9.242e-01  2.897e-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:  7.230e-01  2.809e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/83049/cmap_HighResolution_300499201_300758401_4FGL_J1148.6+1841_daily_bin236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2021-09-04 12:02:26.665969', job_id='83049', GAL2='0.92', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630782146.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='236' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:02:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 83049: <4FGL_J1148.6+1841_daily_bin236> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin236 177.154 18.6861 300499201 300758401 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 :                                   932.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

