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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1612
RA = 177.154, Dec = 18.6861
tmin = 657158401, tmax = 657417601
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='321522', job_status='RUN', time_executed='2021-12-07 22:32:34.052800', time_epoch_executed='1638945154.05' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/321522

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/321522/ft1_4FGL_J1148.6+1841_daily_bin1612.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/321522/ft2_4FGL_J1148.6+1841_daily_bin1612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/321522/ft1_4FGL_J1148.6+1841_daily_bin1612.fits outfile=/scratch/kocevski/321522/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1612.fits ra=177.154 dec=18.6861 rad=12.0 tmin=657158401.0 tmax=657417601.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.69
user 3.46
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/321522/ft1_filtered_4FGL_J1148.6+1841_daily_bin1612.fits" evtable="EVENTS" scfile=/scratch/kocevski/321522/ft2_4FGL_J1148.6+1841_daily_bin1612.fits sctable="SC_DATA" outfile=/scratch/kocevski/321522/ltcube_657158401_657417601_4FGL_J1148.6+1841_daily_bin1612.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/321522/ft2_4FGL_J1148.6+1841_daily_bin1612.fits
.....................!
real 14.86
user 14.45
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/321522/ft1_filtered_4FGL_J1148.6+1841_daily_bin1612.fits evtable="EVENTS" scfile=/scratch/kocevski/321522/ft2_4FGL_J1148.6+1841_daily_bin1612.fits sctable="SC_DATA" expcube=/scratch/kocevski/321522/ltcube_657158401_657417601_4FGL_J1148.6+1841_daily_bin1612.fits outfile=/scratch/kocevski/321522/expmap_657158401_657417601_4FGL_J1148.6+1841_daily_bin1612.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/321522/ltcube_657158401_657417601_4FGL_J1148.6+1841_daily_bin1612.fits
.....................!
real 191.60
user 185.54
sys 5.56

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/321522/ft1_filtered_4FGL_J1148.6+1841_daily_bin1612.fits scfile=/scratch/kocevski/321522/ft2_4FGL_J1148.6+1841_daily_bin1612.fits outfile=/scratch/kocevski/321522/cmap_657158401_657417601_4FGL_J1148.6+1841_daily_bin1612.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.62
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/321522/ft1_filtered_4FGL_J1148.6+1841_daily_bin1612.fits scfile=/scratch/kocevski/321522/ft2_4FGL_J1148.6+1841_daily_bin1612.fits outfile=/scratch/kocevski/321522/cmap_HighResolution_657158401_657417601_4FGL_J1148.6+1841_daily_bin1612.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.58
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.4938       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    61.277       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0812       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.676       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6036       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7894       1.0000         .10000E-03   10000.    
    12 'norm      '    10.200       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.164       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3532       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0083       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .18235       1.0000         .10000E-03   10000.    
    20 'norm      '    37.470       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2813       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2470       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71226       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=   6192.273     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2706 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7314        .96167E-07** at limit **
   2  Prefactor     .10000E-03    3.0188       -.21476E-07** at limit **
   3  norm          .10000E-03    7.1079        .87776E-07** at limit **
   4  norm          9.5038        11.994        .15625E-06   -.48296E-04
   5  Prefactor     .10000E-03    2.7958       -.29708E-07** at limit **
   6  Prefactor     61.289        36.096        .34255E-05    .51362E-03
   7  Prefactor     2.0742        53.679       -.37930E-05   -.98233E-04
   8  Prefactor     12.671        20.159       -.68619E-06   -.12692E-03
   9  Prefactor     7.6048        7.1899        .56962E-06   -.36785E-03
  10  Prefactor     .10000E-03    .84170        .35127E-08** at limit **
  11  Prefactor     6.7893        8.7266       -.10496E-08   -.27345E-04
  12  norm          10.201        2.0953        .48527E-07    .81298E-04
  13  Prefactor     30.168        17.494        .46650E-06    .16196E-03
  14  Prefactor     .10000E-03    .72354       -.31041E-07** at limit **
  15  Prefactor     .10000E-03    36.365        .11122E-06** at limit **
  16  Prefactor     2.3529        2.2284        .50338E-07   -.10441E-03
  17  Prefactor     2.0085        2.1411        .11343E-07   -.75385E-04
  18  Prefactor     .10000E-03    4.5229       -.92895E-08** at limit **
  19  norm          .18237        .14879        .98513E-08    .10263E-03
  20  norm          37.473        9.1818       -.11417E-07   -.63223E-04
  21  Prefactor     4.2790        9.2214        .34845E-05   -.59826E-03
  22  Prefactor     .10000E-03    13.575       -.30539E-06** at limit **
  23  Normalizat    1.2463        .18372       -.70744E-06    .83965E-04
  24  Prefactor     .71295        .17642        .10639E-06    .57953E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.50382
  Prefactor  = 0.0001
  Prefactor  = 61.289
  Prefactor  = 2.07418
  Prefactor  = 12.6707
  Prefactor  = 7.60478
  Prefactor  = 0.0001
  Prefactor  = 6.78929
  norm       = 10.2007
  Prefactor  = 30.1681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.35292
  Prefactor  = 2.0085
  Prefactor  = 0.0001
  norm       = 0.182375
  norm       = 37.4731
  Prefactor  = 4.27896
  Prefactor  = 0.0001
  Normalizat = 1.2463
  Prefactor  = 0.712949
 **********
 **   18 **HESSE 
 **********

 FCN=   6192.273     FROM HESSE     STATUS=OK           399 CALLS     3105 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0411        .13351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.1521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.5038        12.029        .13006E-03   -1.5091    
   5  Prefactor     .10000E-03    2.7987        .12850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     61.289        38.318        .51258E-04   -1.4141    
   7  Prefactor     2.0742        56.117        .28624E-03   -1.5420    
   8  Prefactor     12.671        20.146        .11251E-03   -1.4996    
   9  Prefactor     7.6048        7.2671        .72717E-03   -1.5156    
  10  Prefactor     .10000E-03    2.2324        .13907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.7893        8.7227        .15399E-03   -1.5187    
  12  norm          10.201        2.0971        .49154E-04   -1.5069    
  13  Prefactor     30.168        17.535        .72951E-04   -1.4609    
  14  Prefactor     .10000E-03    .72475        .65361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3529        2.2116        .10848E-03   -1.5401    
  17  Prefactor     2.0085        2.1286        .11331E-03   -1.5425    
  18  Prefactor     .10000E-03    4.5664        .16319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .18237        .14590        .26477E-04   -1.5623    
  20  norm          37.473        9.1706        .65474E-04   -1.4483    
  21  Prefactor     4.2790        10.169        .97356E-03   -1.5294    
  22  Prefactor     .10000E-03    13.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2463        .21582        .23596E-03   -.85184    
  24  Prefactor     .71295        .20544        .30709E-03   -1.0302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88421e-09
Minuit parameter uncertainties:
  1  1.1988e-05
  2  1.31432e-06
  3  2.18709e-05
  4  12.032
  5  2.46513e-06
  6  38.3336
  7  21.5994
  8  20.1567
  9  7.26792
  10  2.85664e-05
  11  8.7243
  12  2.09708
  13  17.5379
  14  8.23202e-07
  15  6.04594e-06
  16  2.21167
  17  2.12871
  18  2.40858e-06
  19  0.145902
  20  9.1709
  21  10.1728
  22  4.10103e-05
  23  0.21597
  24  0.205654
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  7.605e+00  7.268e+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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  7.129e-01  2.057e-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.246e+00  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.12
Ra Dec: 177.154 18.686
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.46e-08 +/- 2.35e-08
Energy Flux (Fixed Index): 9.00e-06 +/- 8.60e-06

TS (Fixed Index): 2.12
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 8.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/321522/likelihoodResults_657158401_657417601_4FGL_J1148.6+1841_daily_bin1612.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) = 6191.92596083
delta logL = 0.347262017691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6191.64585391
delta logL = 0.627368936172

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.737       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4958       1.0000          .0000       10.000    
     3 'Normalizat'    1.2597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70159       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=   6191.646     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      259 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.739        12.560        .10096E-03    .69813E-05
   2  Index         1.4958        .51769        .88347E-02   -.71058E-05
   3  Normalizat    1.2596        .19973        .23477E-03   -.81352E-05
   4  Prefactor     .70166        .20295        .30906E-03    .20747E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7386
  Index      = 1.49584
  Normalizat = 1.25963
  Prefactor  = 0.701664
 **********
 **   18 **HESSE 
 **********

 FCN=   6191.646     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.739        12.599        .40385E-05   -1.4914    
   2  Index         1.4958        .51942        .35339E-03   -.77656    
   3  Normalizat    1.2596        .19990        .93909E-05   -.84780    
   4  Prefactor     .70166        .20313        .12362E-04   -1.0346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40983e-12
Minuit parameter uncertainties:
  1  12.601
  2  0.521273
  3  0.200024
  4  0.203342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/321522': 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) = 6191.6458538
delta logL = 0.627369045367

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  7.017e-01  2.033e-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.260e+00  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.38
Ra Dec: 177.154 18.686
Photon Index (Free Index): 1.50 +/- 0.52
Photon Flux (Free Index): 1.52e-08 +/- 1.44e-08
Energy Flux (Free Index): 4.87e-05 +/- 7.17e-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/321522/cmap_HighResolution_657158401_657417601_4FGL_J1148.6+1841_daily_bin1612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', comment='SUCCESS', photon_flux='2.46e-08', energy_flux2='4.87e-05', photon_flux_error='2.35e-08', dlogl='6.27e-01', energy_flux='9.00e-06', photon_flux2='1.52e-08', job_status='DONE', time_completed='2021-12-07 22:44:35.580182', photon_index_error2='0.52', photon_index2='1.50', ts='2.12', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='8.55e-08', energy_flux_error2='7.17e-05', EG='1.25', time_epoch_completed='1638945875.58', return_code='0', job_id='321522', GAL2='0.70', EG2='1.26', return_code2='0', energy_flux_error='8.60e-06', photon_flux_error2='1.44e-08', ts2='3.38', photon_index='2.32' WHERE bin_id='1612' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 22:44:35 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 321522: <4FGL_J1148.6+1841_daily_bin1612> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1612> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 22:30:29 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 22:32:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 22:32:22 2021
Terminated at Tue Dec  7 22:44:36 2021
Results reported at Tue Dec  7 22:44:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1612 177.154 18.6861 657158401 657417601 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 :                                   720.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             352.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            847 sec.

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

