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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1060
RA = 177.154, Dec = 18.6861
tmin = 514080001, tmax = 514339201
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='89315', job_status='RUN', time_executed='2021-09-04 12:09:04.459033', time_epoch_executed='1630782544.46' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89315

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89315/ft1_4FGL_J1148.6+1841_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89315/ft2_4FGL_J1148.6+1841_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89315/ft1_4FGL_J1148.6+1841_daily_bin1060.fits outfile=/scratch/kocevski/89315/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1060.fits ra=177.154 dec=18.6861 rad=12.0 tmin=514080001.0 tmax=514339201.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.65
user 3.40
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89315/ft1_filtered_4FGL_J1148.6+1841_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/89315/ft2_4FGL_J1148.6+1841_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/89315/ltcube_514080001_514339201_4FGL_J1148.6+1841_daily_bin1060.fits outfile=/scratch/kocevski/89315/expmap_514080001_514339201_4FGL_J1148.6+1841_daily_bin1060.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/89315/ltcube_514080001_514339201_4FGL_J1148.6+1841_daily_bin1060.fits
.....................!
real 191.80
user 186.84
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/89315/ft1_filtered_4FGL_J1148.6+1841_daily_bin1060.fits scfile=/scratch/kocevski/89315/ft2_4FGL_J1148.6+1841_daily_bin1060.fits outfile=/scratch/kocevski/89315/cmap_514080001_514339201_4FGL_J1148.6+1841_daily_bin1060.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.303       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14392E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    9.8694       1.0000         .10000E-03   10000.    
     4 'norm      '    12.402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.592       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6878       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.817       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9220       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8132       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.843       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16582E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .95033       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3751       1.0000         .10000E-03   10000.    
    19 'norm      '    .72533E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    16.468       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99759       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0711       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=   6107.804     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2815 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.284        24.068        .12606E-04   -.39323E-04
   2  Prefactor     .10000E-03    6.2517        .24917E-06** at limit **
   3  norm          9.8704        10.354        .89154E-06   -.65166E-04
   4  norm          12.400        13.310        .13601E-05   -.13159E-03
   5  Prefactor     .10000E-03    16.279        .25284E-06** at limit **
   6  Prefactor     17.599        47.010        .41304E-05   -.20770E-04
   7  Prefactor     .10000E-03    6.3842       -.10144E-06** at limit **
   8  Prefactor     2.6758        34.030        .29147E-04   -.63611E-04
   9  Prefactor     12.819        12.947        .23288E-07   -.11344E-03
  10  Prefactor     1.9968        1.3917       -.37756E-06   -.58900E-03
  11  Prefactor     1.9191        7.7905       -.11408E-04   -.44979E-03
  12  norm          1.8132        1.2792       -.15963E-06   -.83495E-03
  13  Prefactor     21.824        17.661        .18013E-04    .16984E-03
  14  Prefactor     .10000E-03    2.6453        .14534E-06** at limit **
  15  Prefactor     .10002E-03    190.15       -.40915E-04** at limit **
  16  Prefactor     .95058        1.8258       -.36386E-07   -.62598E-03
  17  Prefactor     .10000E-03    .95362        .13203E-07** at limit **
  18  Prefactor     6.3759        6.3624       -.28580E-05   -.31568E-03
  19  norm          .69232E-02    .16826        .30242E-06   -.19106E-02
  20  norm          16.469        7.3827       -.63629E-06   -.20563E-03
  21  Prefactor     .10000E-03    18.788        .91526E-06** at limit **
  22  Prefactor     .10000E-03    26.115       -.28473E-05** at limit **
  23  Normalizat    .99758        .20008       -.63920E-05   -.76983E-04
  24  Prefactor     1.0709        .18625        .39761E-06   -.37721E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2839
  Prefactor  = 0.000100002
  norm       = 9.87043
  norm       = 12.4003
  Prefactor  = 0.0001
  Prefactor  = 17.5987
  Prefactor  = 0.0001
  Prefactor  = 2.67578
  Prefactor  = 12.8192
  Prefactor  = 1.99677
  Prefactor  = 1.91914
  norm       = 1.81317
  Prefactor  = 21.8235
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.950584
  Prefactor  = 0.0001
  Prefactor  = 6.3759
  norm       = 0.00692322
  norm       = 16.4687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.997583
  Prefactor  = 1.07088
 **********
 **   18 **HESSE 
 **********

 FCN=   6107.804     FROM HESSE     STATUS=OK           407 CALLS     3222 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.284        23.923        .10591E-03   -1.4952    
   2  Prefactor     .10000E-03    23.723        .37256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.8704        10.332        .12755E-03   -1.5080    
   4  norm          12.400        13.337        .11375E-03   -1.5004    
   5  Prefactor     .10000E-03    16.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.599        47.082        .95490E-04   -1.4869    
   7  Prefactor     .10000E-03    6.3904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6758        33.124        .24852E-03   -1.5381    
   9  Prefactor     12.819        12.943        .11189E-03   -1.4992    
  10  Prefactor     1.9968        1.3924        .73315E-04   -1.5425    
  11  Prefactor     1.9191        7.9180        .29971E-03   -1.5431    
  12  norm          1.8132        1.2769        .70884E-04   -1.5439    
  13  Prefactor     21.824        17.692        .85702E-04   -1.4773    
  14  Prefactor     .10000E-03    2.6798        .12395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    192.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .95058        1.4370        .13981E-02   -1.5513    
  17  Prefactor     .10000E-03    .95867        .74479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3759        6.3591        .15897E-03   -1.5203    
  19  norm          .69232E-02    1.2288        .59660E-03   -1.5691    
  20  norm          16.469        7.3824        .98696E-04   -1.4896    
  21  Prefactor     .10000E-03    19.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99758        .23353        .26227E-03   -.93111    
  24  Prefactor     1.0709        .22136        .25774E-03   -.90403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81606e-09
Minuit parameter uncertainties:
  1  23.9391
  2  0.000429781
  3  10.3334
  4  13.3404
  5  5.80813e-05
  6  47.1821
  7  8.63155e-06
  8  18.8416
  9  12.9454
  10  1.39238
  11  7.79791
  12  1.27688
  13  17.6962
  14  1.38739e-05
  15  0.00374609
  16  1.43707
  17  1.28384e-06
  18  6.35977
  19  0.183138
  20  7.38276
  21  5.40214e-05
  22  5.77247e-05
  23  0.233766
  24  0.22155
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.282e+01  1.295e+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.071e+00  2.215e-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:  9.976e-01  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 177.154 18.686
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 4.19e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/89315/likelihoodResults_514080001_514339201_4FGL_J1148.6+1841_daily_bin1060.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) = 6107.76274195
delta logL = 0.0412267390147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6107.76090293
delta logL = 0.0430657589477

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2058       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5920       1.0000          .0000       10.000    
     3 'Normalizat'    .98462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0808       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=   6107.761     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      301 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2014        22.441        .13209E-03   -.28540E-03
   2  Index         2.5927        1.3484        .73114E-02   -.31091E-04
   3  Normalizat    .98443        .22517        .26382E-03    .18681E-03
   4  Prefactor     1.0810        .22637        .25669E-03   -.14527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.20139
  Index      = 2.59266
  Normalizat = 0.984427
  Prefactor  = 1.08102
 **********
 **   18 **HESSE 
 **********

 FCN=   6107.761     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2014        16.518        .52837E-05   -1.5101    
   2  Index         2.5927        .99785        .29246E-03   -.50233    
   3  Normalizat    .98443        .22199        .10553E-04   -.93554    
   4  Prefactor     1.0810        .22316        .10268E-04   -.90076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54237e-10
Minuit parameter uncertainties:
  1  16.5259
  2  1.00668
  3  0.2222
  4  0.223352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89315': 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): 0
logL (Free Index) = 6107.76090179
delta logL = 0.0430669002326

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  9.201e+00  1.653e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.593e+00  1.007e+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.081e+00  2.234e-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:  9.844e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 177.154 18.686
Photon Index (Free Index): 2.59 +/- 1.01
Photon Flux (Free Index): 5.00e-08 +/- 5.42e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.42e-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/89315/cmap_HighResolution_514080001_514339201_4FGL_J1148.6+1841_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.88e-03', comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='1.32e-05', photon_flux_error='4.19e-08', dlogl='4.31e-02', energy_flux='1.52e-05', photon_flux2='5.00e-08', job_status='DONE', time_completed='2021-09-04 12:20:47.083089', photon_index_error2='1.01', photon_index2='2.59', ts='1.26', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.42e-05', EG='1.00', time_epoch_completed='1630783247.08', return_code='0', job_id='89315', GAL2='1.08', EG2='0.98', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='5.42e-08', ts2='1.34', photon_index='2.32' WHERE bin_id='1060' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:20:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 89315: <4FGL_J1148.6+1841_daily_bin1060> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1060 177.154 18.6861 514080001 514339201 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 :                                   698.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            874 sec.

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

