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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1291
RA = 177.154, Dec = 18.6861
tmin = 573955201, tmax = 574214401
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='89683', job_status='RUN', time_executed='2021-09-04 12:07:00.204742', time_epoch_executed='1630782420.2' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89683/ft1_4FGL_J1148.6+1841_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89683/ft2_4FGL_J1148.6+1841_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89683/ft1_4FGL_J1148.6+1841_daily_bin1291.fits outfile=/scratch/kocevski/89683/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1291.fits ra=177.154 dec=18.6861 rad=12.0 tmin=573955201.0 tmax=574214401.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.63
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89683/ft2_4FGL_J1148.6+1841_daily_bin1291.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/89683/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1291.fits evtable="EVENTS" outfile="/scratch/kocevski/89683/ft1_filtered_4FGL_J1148.6+1841_daily_bin1291.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.51
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89683/ft1_filtered_4FGL_J1148.6+1841_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/89683/ft2_4FGL_J1148.6+1841_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/89683/ltcube_573955201_574214401_4FGL_J1148.6+1841_daily_bin1291.fits outfile=/scratch/kocevski/89683/expmap_573955201_574214401_4FGL_J1148.6+1841_daily_bin1291.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/89683/ltcube_573955201_574214401_4FGL_J1148.6+1841_daily_bin1291.fits
.....................!
real 190.28
user 185.27
sys 4.61

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/89683/ft1_filtered_4FGL_J1148.6+1841_daily_bin1291.fits scfile=/scratch/kocevski/89683/ft2_4FGL_J1148.6+1841_daily_bin1291.fits outfile=/scratch/kocevski/89683/cmap_573955201_574214401_4FGL_J1148.6+1841_daily_bin1291.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89683/ft1_filtered_4FGL_J1148.6+1841_daily_bin1291.fits scfile=/scratch/kocevski/89683/ft2_4FGL_J1148.6+1841_daily_bin1291.fits outfile=/scratch/kocevski/89683/cmap_HighResolution_573955201_574214401_4FGL_J1148.6+1841_daily_bin1291.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=177.154 yref=18.6861 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.822       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.772       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5777       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2182       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.718       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.124       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3506       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11874E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1336       1.0000         .10000E-03   10000.    
    15 'Prefactor '    98.010       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7067       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .15260       1.0000         .10000E-03   10000.    
    20 'norm      '    7.2184       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    81.208       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95983       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1411       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=   6286.059     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2753 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.822        18.522        .76614E-07   -.22808E-05
   2  Prefactor     25.772        10.625       -.38326E-08   -.99758E-05
   3  norm          .10000E-03    4.8711        .22594E-06** at limit **
   4  norm          .10000E-03    3.3624        .10856E-06** at limit **
   5  Prefactor     5.5773        14.617        .57846E-06   -.45250E-05
   6  Prefactor     .10000E-03    20.202        .25917E-06** at limit **
   7  Prefactor     4.2124        16.865        .75730E-06   -.56047E-05
   8  Prefactor     .10000E-03    40.025        .82310E-06** at limit **
   9  Prefactor     14.717        13.056       -.53570E-06   -.14876E-04
  10  Prefactor     8.3732        2.9293       -.62410E-07   -.95387E-04
  11  Prefactor     15.126        13.732        .19184E-06    .44421E-05
  12  norm          2.3507        1.2183        .37752E-08   -.52371E-04
  13  Prefactor     .10000E-03    7.4929       -.15830E-05** at limit **
  14  Prefactor     8.1337        5.1383        .17758E-05   -.10730E-03
  15  Prefactor     97.843        95.318       -.43164E-06   -.84247E-04
  16  Prefactor     .10000E-03    1.5878       -.19598E-06** at limit **
  17  Prefactor     1.7068        2.0145       -.12414E-06   -.49200E-04
  18  Prefactor     .10000E-03    4.0467       -.44466E-07** at limit **
  19  norm          .15251        .27694        .11975E-06   -.56686E-03
  20  norm          7.2205        5.7148        .10403E-05   -.79907E-04
  21  Prefactor     .10000E-03    7.0687       -.11978E-06** at limit **
  22  Prefactor     81.205        48.213        .37411E-07   -.89724E-05
  23  Normalizat    .95968        .20960        .39388E-06   -.86764E-04
  24  Prefactor     1.1413        .19481       -.18800E-05    .16405E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8225
  Prefactor  = 25.7717
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.57727
  Prefactor  = 0.0001
  Prefactor  = 4.21243
  Prefactor  = 0.0001
  Prefactor  = 14.7174
  Prefactor  = 8.37315
  Prefactor  = 15.126
  norm       = 2.35068
  Prefactor  = 0.0001
  Prefactor  = 8.13374
  Prefactor  = 97.8428
  Prefactor  = 0.0001
  Prefactor  = 1.70679
  Prefactor  = 0.0001
  norm       = 0.152513
  norm       = 7.22046
  Prefactor  = 0.0001
  Prefactor  = 81.2051
  Normalizat = 0.959678
  Prefactor  = 1.14133
 **********
 **   18 **HESSE 
 **********

 FCN=   6286.059     FROM HESSE     STATUS=OK           403 CALLS     3156 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.822        18.532        .87776E-04   -1.4795    
   2  Prefactor     25.772        10.612        .78910E-04   -1.4692    
   3  norm          .10000E-03    4.8934        .17091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.3684        .14198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5773        14.595        .17011E-03   -1.5236    
   6  Prefactor     .10000E-03    20.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.2124        16.857        .19621E-03   -1.5297    
   8  Prefactor     .10000E-03    40.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.717        13.053        .10440E-03   -1.4941    
  10  Prefactor     8.3732        2.9315        .75685E-04   -1.5129    
  11  Prefactor     15.126        13.720        .10299E-03   -1.4930    
  12  norm          2.3507        1.2222        .60820E-04   -1.5401    
  13  Prefactor     .10000E-03    7.4949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1337        5.1714        .66939E-03   -1.5137    
  15  Prefactor     97.843        95.233        .20302E-03   -1.3726    
  16  Prefactor     .10000E-03    1.6639        .19504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7068        2.0053        .11805E-03   -1.5447    
  18  Prefactor     .10000E-03    4.0744        .15564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .15251        .27496        .50471E-04   -1.5630    
  20  norm          7.2205        5.6975        .74648E-03   -1.5170    
  21  Prefactor     .10000E-03    7.0722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     81.205        48.238        .44570E-04   -1.3903    
  23  Normalizat    .95968        .24010        .28632E-03   -.94394    
  24  Prefactor     1.1413        .22316        .26868E-03   -.88156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3926e-10
Minuit parameter uncertainties:
  1  18.5372
  2  10.6125
  3  4.81231e-06
  4  5.56778e-07
  5  14.6042
  6  1.09366e-05
  7  16.8613
  8  1.29293e-05
  9  13.0557
  10  2.93151
  11  13.7226
  12  1.22226
  13  1.18421e-05
  14  5.17167
  15  95.382
  16  1.03478e-05
  17  2.00534
  18  1.4303e-05
  19  0.274957
  20  5.69789
  21  1.38597e-06
  22  48.2608
  23  0.240373
  24  0.223347
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.472e+01  1.306e+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.141e+00  2.233e-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.597e-01  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.85
Ra Dec: 177.154 18.686
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.76e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.54e-05

TS (Fixed Index): 1.85
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89683/likelihoodResults_573955201_574214401_4FGL_J1148.6+1841_daily_bin1291.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) = 6284.80695383
delta logL = 1.25251146142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6284.79658268
delta logL = 1.26288260897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2947       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4870       1.0000          .0000       10.000    
     3 'Normalizat'    .88352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1882       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=   6284.797     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      266 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2915        31.371        .55764E-02    .35004E-03
   2  Index         3.4874        2.4242        .95090E-01    .17702E-03
   3  Normalizat    .88349        .71175E-01    .67112E-01    .25118E-04
   4  Prefactor     1.1882        .68282E-01    .59661E-01    .24286E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.29151
  Index      = 3.48744
  Normalizat = 0.88349
  Prefactor  = 1.18823
 **********
 **   18 **HESSE 
 **********

 FCN=   6284.797     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2915        32.179        .77371E-04   -1.5345    
   2  Index         3.4874        2.7936        .36749E-02   -.30733    
   3  Normalizat    .88349        .23940        .29689E-03   -.97043    
   4  Prefactor     1.1882        .24001        .26383E-03   -.86694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99757e-07
Minuit parameter uncertainties:
  1  20.5975
  2  2.98501
  3  0.239687
  4  0.240234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89683': 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) = 6284.79658253
delta logL = 1.26288276219

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  3.292e+00  2.060e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  3.487e+00  2.985e+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.188e+00  2.402e-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:  8.835e-01  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 177.154 18.686
Photon Index (Free Index): 3.49 +/- 2.99
Photon Flux (Free Index): 1.18e-07 +/- 8.00e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.45e-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/89683/cmap_HighResolution_573955201_574214401_4FGL_J1148.6+1841_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.76e-08', energy_flux2='1.98e-05', photon_flux_error='4.22e-08', dlogl='1.26e+00', energy_flux='1.74e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-04 12:18:42.705176', photon_index_error2='2.99', photon_index2='3.49', ts='1.85', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.45e-05', EG='0.96', time_epoch_completed='1630783122.71', return_code='0', job_id='89683', GAL2='1.19', EG2='0.88', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='8.00e-08', ts2='4.52', photon_index='2.32' WHERE bin_id='1291' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:18:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 89683: <4FGL_J1148.6+1841_daily_bin1291> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1291> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:06:41 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:06:42 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:42 2021
Terminated at Sat Sep  4 12:18:45 2021
Results reported at Sat Sep  4 12:18:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1291 177.154 18.6861 573955201 574214401 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 :                                   697.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            724 sec.

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

