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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1302
RA = 177.154, Dec = 18.6861
tmin = 576806401, tmax = 577065601
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='89699', job_status='RUN', time_executed='2021-09-04 12:09:58.303065', time_epoch_executed='1630782598.3' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89699

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89699/ft1_4FGL_J1148.6+1841_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89699/ft2_4FGL_J1148.6+1841_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89699/ft1_4FGL_J1148.6+1841_daily_bin1302.fits outfile=/scratch/kocevski/89699/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1302.fits ra=177.154 dec=18.6861 rad=12.0 tmin=576806401.0 tmax=577065601.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.05
user 2.81
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89699/ft2_4FGL_J1148.6+1841_daily_bin1302.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/89699/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1302.fits evtable="EVENTS" outfile="/scratch/kocevski/89699/ft1_filtered_4FGL_J1148.6+1841_daily_bin1302.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89699/ft1_filtered_4FGL_J1148.6+1841_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/89699/ft2_4FGL_J1148.6+1841_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/89699/ltcube_576806401_577065601_4FGL_J1148.6+1841_daily_bin1302.fits outfile=/scratch/kocevski/89699/expmap_576806401_577065601_4FGL_J1148.6+1841_daily_bin1302.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/89699/ltcube_576806401_577065601_4FGL_J1148.6+1841_daily_bin1302.fits
.....................!
real 189.21
user 184.88
sys 4.02

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/89699/ft1_filtered_4FGL_J1148.6+1841_daily_bin1302.fits scfile=/scratch/kocevski/89699/ft2_4FGL_J1148.6+1841_daily_bin1302.fits outfile=/scratch/kocevski/89699/cmap_576806401_577065601_4FGL_J1148.6+1841_daily_bin1302.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.40
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89699/ft1_filtered_4FGL_J1148.6+1841_daily_bin1302.fits scfile=/scratch/kocevski/89699/ft2_4FGL_J1148.6+1841_daily_bin1302.fits outfile=/scratch/kocevski/89699/cmap_HighResolution_576806401_577065601_4FGL_J1148.6+1841_daily_bin1302.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6344       1.0000         .10000E-03   10000.    
     3 'norm      '    6.3251       1.0000         .10000E-03   10000.    
     4 'norm      '    15.695       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43257E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9662       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7615       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1124       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7532       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15974E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16752       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3458       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .23178       1.0000         .10000E-03   10000.    
    20 'norm      '    5.4359       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.179       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87794       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2788       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=   7559.887     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2379 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3863        .90712E-02** at limit **
   2  Prefactor     8.6340        5.9695        .34104E-02    .12656E-02
   3  norm          6.3253        7.9677        .39900E-02    .24429E-02
   4  norm          15.693        9.5557        .25274E-02    .27147E-03
   5  Prefactor     .10000E-03    2.9032        .90712E-02** at limit **
   6  Prefactor     .10004E-03    32.852        .90712E-02** at limit **
   7  Prefactor     .10002E-03    7.5567        .10614    ** at limit **
   8  Prefactor     .10000E-03    5.5272        .90712E-02** at limit **
   9  Prefactor     9.9702        11.987        .31732E-02   -.17237E-03
  10  Prefactor     2.7614        1.8083        .61234E-02    .14973E-03
  11  Prefactor     7.1107        10.800        .37604E-02    .17605E-03
  12  norm          2.7528        1.2436        .61333E-02    .75780E-04
  13  Prefactor     .10000E-03    13.955        .90712E-02** at limit **
  14  Prefactor     .10000E-03    1.9736        .68758E-01** at limit **
  15  Prefactor     .10000E-03    53.537        .90712E-02** at limit **
  16  Prefactor     .16151        1.3770        .52474E-01    .93831E-03
  17  Prefactor     3.3474        3.4995        .55316E-02    .36935E-03
  18  Prefactor     .10000E-03    3.8110        .90712E-02** at limit **
  19  norm          .23176        .23730        .85192E-02    .19992E-02
  20  norm          5.4355        4.6645        .43087E-02    .37807E-02
  21  Prefactor     22.179        18.727        .21263E-02   -.79715E-04
  22  Prefactor     .10004E-03    34.488        .90712E-02** at limit **
  23  Normalizat    .87804        .17536        .63903E-01   -.31808E-03
  24  Prefactor     1.2788        .17538        .57366E-01   -.39574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.63396
  norm       = 6.3253
  norm       = 15.6926
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 9.97016
  Prefactor  = 2.76135
  Prefactor  = 7.11072
  norm       = 2.75284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.161512
  Prefactor  = 3.34742
  Prefactor  = 0.0001
  norm       = 0.231758
  norm       = 5.43547
  Prefactor  = 22.1792
  Prefactor  = 0.000100036
  Normalizat = 0.878044
  Prefactor  = 1.27885
 **********
 **   18 **HESSE 
 **********

 FCN=   7559.887     FROM HESSE     STATUS=OK           407 CALLS     2786 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3879        .15626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.6340        5.9676        .13642E-03   -1.5120    
   3  norm          6.3253        7.9610        .79800E-03   -1.5205    
   4  norm          15.693        9.5829        .10110E-03   -1.4915    
   5  Prefactor     .10000E-03    2.9078        .14466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    32.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    75.247        .45985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9702        11.835        .12693E-03   -1.5076    
  10  Prefactor     2.7614        1.8009        .89268E-04   -1.5376    
  11  Prefactor     7.1107        10.797        .15041E-03   -1.5175    
  12  norm          2.7528        1.2401        .61714E-04   -1.5376    
  13  Prefactor     .10000E-03    14.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.620        .22530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    53.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .16151        6.6303        .18049E-02   -1.5628    
  17  Prefactor     3.3474        3.4323        .14837E-03   -1.5342    
  18  Prefactor     .10000E-03    3.8344        .16547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .23176        .22267        .39426E-03   -1.5612    
  20  norm          5.4355        4.6481        .83662E-03   -1.5242    
  21  Prefactor     22.179        18.723        .85051E-04   -1.4766    
  22  Prefactor     .10004E-03    34.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .87804        .20490        .28266E-03   -.97236    
  24  Prefactor     1.2788        .20835        .25367E-03   -.83938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77045e-09
Minuit parameter uncertainties:
  1  5.0178e-05
  2  5.968
  3  7.96235
  4  9.5838
  5  1.57025e-05
  6  0.00234809
  7  0.00255526
  8  6.72506e-05
  9  11.8378
  10  1.8009
  11  10.8004
  12  1.24016
  13  2.39479e-05
  14  2.60421e-05
  15  0.000319041
  16  2.06926
  17  3.43253
  18  3.79129e-05
  19  0.222666
  20  4.64844
  21  18.7282
  22  0.0022427
  23  0.205082
  24  0.208486
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  9.970e+00  1.184e+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.279e+00  2.085e-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.780e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/89699/likelihoodResults_576806401_577065601_4FGL_J1148.6+1841_daily_bin1302.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) = 7559.6752183
delta logL = 0.211756074413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7559.66700013
delta logL = 0.21997423815

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1623       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7986       1.0000          .0000       10.000    
     3 'Normalizat'    .85765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2902       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7559.667     FROM MIGRAD    STATUS=FAILED        89 CALLS      289 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1615        12.201        .16172E-03   -.89278E-05
   2  Index         2.7987        .94758        .68116E-02    .67803E-03
   3  Normalizat    .85767        .19786        .28571E-03   -.22474E-03
   4  Prefactor     1.2901        .20752        .25269E-03   -.28279E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7559.667     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      363 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1615        12.201        .13997E-03   -1.5211    
   2  Index         2.7987        .94758        .87935E-03   -.45589    
   3  Normalizat    .85767        .19786        .17109E-03   -.97964    
   4  Prefactor     1.2901        .20752        .15507E-03   -.83601    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7559.667     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      400 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1615        10.041        .64689E-05   -.12654E-04
   2  Index         2.7987        .78054        .13623E-02    .48318E-05
   3  Normalizat    .85767        .19762        .11428E-04   -.79583E-06
   4  Prefactor     1.2901        .20707        .50538E-04   -.62987E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.16147
  Index      = 2.7987
  Normalizat = 0.857675
  Prefactor  = 1.29014
 **********
 **   18 **HESSE 
 **********

 FCN=   7559.667     FROM HESSE     STATUS=OK            23 CALLS      423 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1615        9.7295        .12938E-05   -1.5211    
   2  Index         2.7987        .75602        .54492E-04   -.45589    
   3  Normalizat    .85767        .19768        .22857E-05   -.97964    
   4  Prefactor     1.2901        .20707        .10108E-04   -.83601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15824e-12
Minuit parameter uncertainties:
  1  9.732
  2  0.759641
  3  0.197848
  4  0.207199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89699': 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) = 7559.6670001
delta logL = 0.219974275325

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  6.161e+00  9.732e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.799e+00  7.596e-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:  1.290e+00  2.072e-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.577e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 177.154 18.686
Photon Index (Free Index): 2.80 +/- 0.76
Photon Flux (Free Index): 5.08e-08 +/- 5.16e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/89699/cmap_HighResolution_576806401_577065601_4FGL_J1148.6+1841_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.53e-03', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='2.20e-01', photon_flux2='5.08e-08', job_status='DONE', time_completed='2021-09-04 12:22:25.557532', photon_index_error2='0.76', photon_index2='2.80', ts='0.88', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.12e-05', EG='0.88', time_epoch_completed='1630783345.56', return_code='0', job_id='89699', GAL2='1.29', EG2='0.86', return_code2='0', photon_flux_error2='5.16e-08', ts2='1.32', photon_index='2.32' WHERE bin_id='1302' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:22:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 89699: <4FGL_J1148.6+1841_daily_bin1302> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1302 177.154 18.6861 576806401 577065601 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 :                                   744.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

