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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1095
RA = 177.154, Dec = 18.6861
tmin = 523152001, tmax = 523411201
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='89375', job_status='RUN', time_executed='2021-09-04 12:08:22.298510', time_epoch_executed='1630782502.3' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89375

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89375/ft1_4FGL_J1148.6+1841_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89375/ft2_4FGL_J1148.6+1841_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89375/ft1_4FGL_J1148.6+1841_daily_bin1095.fits outfile=/scratch/kocevski/89375/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1095.fits ra=177.154 dec=18.6861 rad=12.0 tmin=523152001.0 tmax=523411201.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 4.24
user 3.95
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89375/ft1_filtered_4FGL_J1148.6+1841_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/89375/ft2_4FGL_J1148.6+1841_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/89375/ltcube_523152001_523411201_4FGL_J1148.6+1841_daily_bin1095.fits outfile=/scratch/kocevski/89375/expmap_523152001_523411201_4FGL_J1148.6+1841_daily_bin1095.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/89375/ltcube_523152001_523411201_4FGL_J1148.6+1841_daily_bin1095.fits
.....................!
real 191.48
user 185.67
sys 4.49

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/89375/ft1_filtered_4FGL_J1148.6+1841_daily_bin1095.fits scfile=/scratch/kocevski/89375/ft2_4FGL_J1148.6+1841_daily_bin1095.fits outfile=/scratch/kocevski/89375/cmap_523152001_523411201_4FGL_J1148.6+1841_daily_bin1095.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89375/ft1_filtered_4FGL_J1148.6+1841_daily_bin1095.fits scfile=/scratch/kocevski/89375/ft2_4FGL_J1148.6+1841_daily_bin1095.fits outfile=/scratch/kocevski/89375/cmap_HighResolution_523152001_523411201_4FGL_J1148.6+1841_daily_bin1095.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/89375/ft1_filtered_4FGL_J1148.6+1841_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/89375/ft2_4FGL_J1148.6+1841_daily_bin1095.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/89375/Model_4FGL_J1148.6+1841_daily_bin1095.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/89375/ft1_filtered_4FGL_J1148.6+1841_daily_bin1095.fits.....................!
real 59.43
user 57.60
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91367       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.275       1.0000         .10000E-03   10000.    
     4 'norm      '    15.138       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37058E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.433       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8053       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.309       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9426       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.6507       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10857E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15008E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .53706       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0387       1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.7847       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.967       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .42360E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5092       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .56258       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=   6251.839     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2790 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91745        15.852       -.18755E-05   -.39697E-05
   2  Prefactor     .10000E-03    2.6869       -.25892E-08** at limit **
   3  norm          12.271        10.683       -.71642E-05   -.32846E-03
   4  norm          15.136        15.756        .24087E-05   -.36094E-05
   5  Prefactor     .10000E-03    5.7158       -.24942E-07** at limit **
   6  Prefactor     .10001E-03    189.47        .78125E-04** at limit **
   7  Prefactor     10.433        21.616       -.18571E-05   -.14212E-04
   8  Prefactor     9.8247        30.703       -.34822E-05   -.16397E-04
   9  Prefactor     41.315        15.806        .20232E-06   -.67142E-04
  10  Prefactor     3.9423        2.5936        .35281E-07   -.14595E-03
  11  Prefactor     .10000E-03    4.2763       -.69472E-08** at limit **
  12  norm          9.6509        2.2210        .23943E-07    .78281E-04
  13  Prefactor     .10000E-03    15.824        .21440E-06** at limit **
  14  Prefactor     .10000E-03    1.8213        .71784E-08** at limit **
  15  Prefactor     .10001E-03    336.64       -.10357E-03** at limit **
  16  Prefactor     .53782        1.9768       -.13633E-05   -.16171E-02
  17  Prefactor     .10000E-03    1.5014        .10926E-07** at limit **
  18  Prefactor     2.0352        5.8493       -.38995E-05   -.76708E-03
  19  norm          .10000E-03    .10997        .26015E-07** at limit **
  20  norm          3.7850        4.6121        .46403E-06   -.99155E-04
  21  Prefactor     13.941        15.307        .11311E-05    .49072E-04
  22  Prefactor     .10001E-03    283.78       -.39979E-05** at limit **
  23  Normalizat    1.5087        .20442        .49970E-06   -.59215E-04
  24  Prefactor     .56280        .18650        .17837E-05   -.26550E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.917449
  Prefactor  = 0.0001
  norm       = 12.2707
  norm       = 15.1359
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 10.4328
  Prefactor  = 9.82474
  Prefactor  = 41.315
  Prefactor  = 3.9423
  Prefactor  = 0.0001
  norm       = 9.65095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.537822
  Prefactor  = 0.0001
  Prefactor  = 2.0352
  norm       = 0.0001
  norm       = 3.78504
  Prefactor  = 13.9407
  Prefactor  = 0.000100007
  Normalizat = 1.50874
  Prefactor  = 0.562799
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.839     FROM HESSE     STATUS=OK           405 CALLS     3195 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91745        124.10        .59792E-02   -1.5516    
   2  Prefactor     .10000E-03    2.6924        .12656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.271        10.768        .11433E-03   -1.5007    
   4  norm          15.136        15.839        .10294E-03   -1.4930    
   5  Prefactor     .10000E-03    5.7418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    191.60        .42596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.433        21.594        .12405E-03   -1.5062    
   8  Prefactor     9.8247        30.651        .12797E-03   -1.5081    
   9  Prefactor     41.315        15.845        .62369E-04   -1.4422    
  10  Prefactor     3.9423        2.5762        .91115E-04   -1.5311    
  11  Prefactor     .10000E-03    4.2870        .15967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.6509        2.2193        .53638E-04   -1.5087    
  13  Prefactor     .10000E-03    15.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.8466        .10413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    336.63        .20470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .53782        1.9556        .20509E-03   -1.5561    
  17  Prefactor     .10000E-03    1.5210        .94473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0352        5.8595        .28964E-03   -1.5423    
  19  norm          .10000E-03    .24704        .50181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7850        4.5720        .17107E-03   -1.5319    
  21  Prefactor     13.941        15.195        .10718E-03   -1.4961    
  22  Prefactor     .10001E-03    290.99        .42474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5087        .24234        .23233E-03   -.77533    
  24  Prefactor     .56280        .21770        .34603E-03   -1.0918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21719e-08
Minuit parameter uncertainties:
  1  21.3852
  2  1.94336e-06
  3  10.7701
  4  15.8439
  5  8.8593e-06
  6  0.00209014
  7  21.6103
  8  30.7005
  9  15.8466
  10  2.57625
  11  5.75293e-07
  12  2.21934
  13  1.06087e-05
  14  2.66395e-07
  15  0.00313968
  16  1.95584
  17  1.87976e-06
  18  5.86111
  19  1.45246e-06
  20  4.57241
  21  15.1997
  22  0.00281589
  23  0.242528
  24  0.21802
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  4.132e+01  1.585e+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:  5.628e-01  2.180e-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.509e+00  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.24
Ra Dec: 177.154 18.686
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 1.34e-07 +/- 5.12e-08
Energy Flux (Fixed Index): 4.89e-05 +/- 1.87e-05

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) = 6251.49330369
delta logL = 0.345253554316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6251.49224287
delta logL = 0.346314365671

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.734       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6322       1.0000          .0000       10.000    
     3 'Normalizat'    1.4690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58844       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=   6251.492     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      290 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.740        55.300        .74740E-04   -.28767E-02
   2  Index         2.6325        1.1373        .16472E-01   -.10457E-02
   3  Normalizat    1.4688        .25780        .23472E-03    .57309E-03
   4  Prefactor     .58845        .23581        .33895E-03    .80181E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.7404
  Index      = 2.63247
  Normalizat = 1.46881
  Prefactor  = 0.588448
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.492     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.740        18.864        .14948E-04   -1.4635    
   2  Index         2.6325        .39054        .35526E-03   -.49327    
   3  Normalizat    1.4688        .22895        .46944E-04   -.78658    
   4  Prefactor     .58845        .21519        .67791E-04   -1.0807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83214e-09
Minuit parameter uncertainties:
  1  18.8679
  2  0.391052
  3  0.229109
  4  0.215491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89375': 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) = 6251.49224051
delta logL = 0.346316726282

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  2.874e+01  1.887e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.632e+00  3.911e-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:  5.884e-01  2.155e-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.469e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.80
Ra Dec: 177.154 18.686
Photon Index (Free Index): 2.63 +/- 0.39
Photon Flux (Free Index): 1.69e-07 +/- 7.22e-08
Energy Flux (Free Index): 4.31e-05 +/- 1.62e-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/89375/cmap_HighResolution_523152001_523411201_4FGL_J1148.6+1841_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-07', energy_flux2='4.31e-05', photon_flux_error='5.12e-08', dlogl='3.46e-01', energy_flux='4.89e-05', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-09-04 12:19:07.696472', photon_index_error2='0.39', photon_index2='2.63', ts='14.24', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.51', time_epoch_completed='1630783147.7', return_code='0', job_id='89375', GAL2='0.59', EG2='1.47', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='7.22e-08', ts2='14.80', photon_index='2.32' WHERE bin_id='1095' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:19:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 89375: <4FGL_J1148.6+1841_daily_bin1095> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1095 177.154 18.6861 523152001 523411201 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 :                                   639.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            771 sec.

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

