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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin196
RA = 177.154, Dec = 18.6861
tmin = 290131201, tmax = 290390401
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='82984', job_status='RUN', time_executed='2021-09-04 11:46:48.887018', time_epoch_executed='1630781208.89' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82984

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82984/ft1_4FGL_J1148.6+1841_daily_bin196.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82984/ft2_4FGL_J1148.6+1841_daily_bin196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82984/ft1_4FGL_J1148.6+1841_daily_bin196.fits outfile=/scratch/kocevski/82984/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin196.fits ra=177.154 dec=18.6861 rad=12.0 tmin=290131201.0 tmax=290390401.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.39
user 3.16
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82984/ft1_filtered_4FGL_J1148.6+1841_daily_bin196.fits evtable="EVENTS" scfile=/scratch/kocevski/82984/ft2_4FGL_J1148.6+1841_daily_bin196.fits sctable="SC_DATA" expcube=/scratch/kocevski/82984/ltcube_290131201_290390401_4FGL_J1148.6+1841_daily_bin196.fits outfile=/scratch/kocevski/82984/expmap_290131201_290390401_4FGL_J1148.6+1841_daily_bin196.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/82984/ltcube_290131201_290390401_4FGL_J1148.6+1841_daily_bin196.fits
.....................!
real 190.08
user 185.64
sys 4.09

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/82984/ft1_filtered_4FGL_J1148.6+1841_daily_bin196.fits scfile=/scratch/kocevski/82984/ft2_4FGL_J1148.6+1841_daily_bin196.fits outfile=/scratch/kocevski/82984/cmap_290131201_290390401_4FGL_J1148.6+1841_daily_bin196.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82984/ft1_filtered_4FGL_J1148.6+1841_daily_bin196.fits scfile=/scratch/kocevski/82984/ft2_4FGL_J1148.6+1841_daily_bin196.fits outfile=/scratch/kocevski/82984/cmap_HighResolution_290131201_290390401_4FGL_J1148.6+1841_daily_bin196.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1019       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2344       1.0000         .10000E-03   10000.    
     4 'norm      '    6.4703       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11896E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4145       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9891       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2523       1.0000         .10000E-03   10000.    
    12 'norm      '    7.5374       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10847E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.701       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.786       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.6605       1.0000         .10000E-03   10000.    
    20 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20258E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2987       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .59941       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4736       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=   6062.396     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2760 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1131        14.290        .31208E-06    .61216E-05
   2  Prefactor     .10000E-03    2.3623       -.55234E-07** at limit **
   3  norm          3.2329        10.390        .42146E-05    .54777E-05
   4  norm          6.4711        9.0429        .83450E-07    .85999E-05
   5  Prefactor     .10000E-03    10.031       -.30766E-06** at limit **
   6  Prefactor     .10000E-03    38.209       -.77461E-07** at limit **
   7  Prefactor     .10000E-03    6.7586       -.55208E-07** at limit **
   8  Prefactor     .10000E-03    10.942       -.10032E-06** at limit **
   9  Prefactor     7.4241        12.405        .14322E-06    .58660E-04
  10  Prefactor     1.9894        1.5230        .19715E-07    .46450E-04
  11  Prefactor     9.2505        11.403        .10654E-05    .37801E-04
  12  norm          7.5375        1.7792        .99690E-08    .53786E-04
  13  Prefactor     .10000E-03    9.5077        .96199E-06** at limit **
  14  Prefactor     .10000E-03    2.8897       -.95928E-07** at limit **
  15  Prefactor     35.768        93.709       -.12522E-04   -.13307E-04
  16  Prefactor     .10000E-03    1.5579       -.88237E-07** at limit **
  17  Prefactor     10.785        4.1288        .43708E-07    .18905E-03
  18  Prefactor     .10000E-03    1.7813       -.31083E-07** at limit **
  19  norm          2.6604        .41045        .70654E-08    .52842E-03
  20  norm          .10000E-03    2.1886       -.52760E-07** at limit **
  21  Prefactor     .10000E-03    24.720        .94023E-06** at limit **
  22  Prefactor     1.1209        307.53        .27171E-04   -.12319E-04
  23  Normalizat    .59936        .19605        .49441E-06    .70464E-04
  24  Prefactor     1.4737        .20596       -.71598E-06    .66078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.11309
  Prefactor  = 0.0001
  norm       = 3.23286
  norm       = 6.47114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.42408
  Prefactor  = 1.98943
  Prefactor  = 9.25052
  norm       = 7.53749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.7676
  Prefactor  = 0.0001
  Prefactor  = 10.7848
  Prefactor  = 0.0001
  norm       = 2.66045
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.12095
  Normalizat = 0.599358
  Prefactor  = 1.47368
 **********
 **   18 **HESSE 
 **********

 FCN=   6062.396     FROM HESSE     STATUS=OK           399 CALLS     3159 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1131        14.289        .13285E-03   -1.5104    
   2  Prefactor     .10000E-03    2.3671        .11687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2329        10.426        .11261E-02   -1.5348    
   4  norm          6.4711        9.0558        .15778E-03   -1.5199    
   5  Prefactor     .10000E-03    10.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.7691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.4241        12.239        .14729E-03   -1.5163    
  10  Prefactor     1.9894        1.5189        .80879E-04   -1.5426    
  11  Prefactor     9.2505        11.397        .13176E-03   -1.5100    
  12  norm          7.5375        1.7796        .48668E-04   -1.5159    
  13  Prefactor     .10000E-03    9.5836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5299        .24937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.768        93.779        .67072E-04   -1.4511    
  16  Prefactor     .10000E-03    2.8618        .18363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.785        4.0366        .91407E-04   -1.5051    
  18  Prefactor     .10000E-03    1.7854        .10148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.6604        .41062        .18799E-04   -1.5382    
  20  norm          .10000E-03    2.2054        .11249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1209        310.06        .19395E-02   -1.5496    
  23  Normalizat    .59936        .22529        .33678E-03   -1.0801    
  24  Prefactor     1.4737        .23861        .24547E-03   -.78280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27093e-11
Minuit parameter uncertainties:
  1  14.2939
  2  3.32235e-06
  3  10.4316
  4  9.05773
  5  2.88826e-05
  6  6.12515e-05
  7  5.35647e-06
  8  1.86946e-05
  9  12.2432
  10  1.51891
  11  11.4001
  12  1.77966
  13  0.00012103
  14  2.09058e-06
  15  94.1686
  16  2.89888e-06
  17  4.03668
  18  1.53686e-06
  19  0.41062
  20  2.82992e-06
  21  5.01603e-05
  22  37.4816
  23  0.225632
  24  0.238794
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  7.424e+00  1.224e+01  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.474e+00  2.388e-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:  5.994e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82984/likelihoodResults_290131201_290390401_4FGL_J1148.6+1841_daily_bin196.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): 0
logL (Free Index) = 6060.94383126
delta logL = 1.45167341996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6060.81771678
delta logL = 1.57778789225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38981       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3250       1.0000          .0000       10.000    
     3 'Normalizat'    .50518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5359       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=   6060.818     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      277 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38964        3.5844        .65311E-02    .10777E-02
   2  Index         4.3259        2.1525        .90390E-01    .18648E-03
   3  Normalizat    .50526        .52386E-01    .82360E-01    .57555E-04
   4  Prefactor     1.5359        .57116E-01    .54530E-01    .24940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.389638
  Index      = 4.32593
  Normalizat = 0.50526
  Prefactor  = 1.53592
 **********
 **   18 **HESSE 
 **********

 FCN=   6060.818     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      310 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38964        7.3963        .29502E-04   -1.5583    
   2  Index         4.3259        3.4106        .34999E-02   -.13523    
   3  Normalizat    .50526        .19802        .36481E-03   -1.1217    
   4  Prefactor     1.5359        .21517        .24107E-03   -.76539    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.01464e-10
Minuit parameter uncertainties:
  1  3.39527
  2  3.76173
  3  0.198294
  4  0.215297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82984': 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) = 6060.81771178
delta logL = 1.57779289402

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  3.896e-01  3.395e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  4.326e+00  3.762e+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:  1.536e+00  2.153e-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:  5.053e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.85
Ra Dec: 177.154 18.686
Photon Index (Free Index): 4.33 +/- 3.76
Photon Flux (Free Index): 9.36e-08 +/- 5.83e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.06e-05

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/82984/cmap_HighResolution_290131201_290390401_4FGL_J1148.6+1841_daily_bin196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.62e-03', comment='SUCCESS', energy_flux2='1.34e-05', dlogl='1.58e+00', photon_flux2='9.36e-08', job_status='DONE', time_completed='2021-09-04 11:58:37.061919', photon_index_error2='3.76', photon_index2='4.33', ts='0.46', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='1.06e-05', EG='0.60', time_epoch_completed='1630781917.06', return_code='0', job_id='82984', GAL2='1.54', EG2='0.51', return_code2='102', photon_flux_error2='5.83e-08', ts2='3.85', photon_index='2.32' WHERE bin_id='196' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:58:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 82984: <4FGL_J1148.6+1841_daily_bin196> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin196 177.154 18.6861 290131201 290390401 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 :                                   706.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            728 sec.

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

