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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin660
RA = 177.141, Dec = 26.4986
tmin = 410400001, tmax = 410659201
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='75604', job_status='RUN', time_executed='2021-09-04 11:26:42.635257', time_epoch_executed='1630780002.64' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75604

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75604/ft1_4FGL_J1148.5+2629_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75604/ft2_4FGL_J1148.5+2629_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75604/ft1_4FGL_J1148.5+2629_daily_bin660.fits outfile=/scratch/kocevski/75604/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin660.fits ra=177.141 dec=26.4986 rad=12.0 tmin=410400001.0 tmax=410659201.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 6.64
user 6.33
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/75604/ft2_4FGL_J1148.5+2629_daily_bin660.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75604/ft2_4FGL_J1148.5+2629_daily_bin660.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/75604/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin660.fits evtable="EVENTS" outfile="/scratch/kocevski/75604/ft1_filtered_4FGL_J1148.5+2629_daily_bin660.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75604/ft1_filtered_4FGL_J1148.5+2629_daily_bin660.fits" evtable="EVENTS" scfile=/scratch/kocevski/75604/ft2_4FGL_J1148.5+2629_daily_bin660.fits sctable="SC_DATA" outfile=/scratch/kocevski/75604/ltcube_410400001_410659201_4FGL_J1148.5+2629_daily_bin660.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/75604/ft2_4FGL_J1148.5+2629_daily_bin660.fits
.....................!
real 12.33
user 11.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75604/ft1_filtered_4FGL_J1148.5+2629_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/75604/ft2_4FGL_J1148.5+2629_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/75604/ltcube_410400001_410659201_4FGL_J1148.5+2629_daily_bin660.fits outfile=/scratch/kocevski/75604/expmap_410400001_410659201_4FGL_J1148.5+2629_daily_bin660.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/75604/ltcube_410400001_410659201_4FGL_J1148.5+2629_daily_bin660.fits
.....................!
real 190.91
user 185.09
sys 4.93

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1148.5+2629 @ 177.141 26.4986

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/75604/ft1_filtered_4FGL_J1148.5+2629_daily_bin660.fits scfile=/scratch/kocevski/75604/ft2_4FGL_J1148.5+2629_daily_bin660.fits outfile=/scratch/kocevski/75604/cmap_410400001_410659201_4FGL_J1148.5+2629_daily_bin660.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.141 yref=26.4986 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75604/ft1_filtered_4FGL_J1148.5+2629_daily_bin660.fits scfile=/scratch/kocevski/75604/ft2_4FGL_J1148.5+2629_daily_bin660.fits outfile=/scratch/kocevski/75604/cmap_HighResolution_410400001_410659201_4FGL_J1148.5+2629_daily_bin660.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.141 yref=26.4986 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75604/ft1_filtered_4FGL_J1148.5+2629_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/75604/ft2_4FGL_J1148.5+2629_daily_bin660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75604/Model_4FGL_J1148.5+2629_daily_bin660.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/75604/ft1_filtered_4FGL_J1148.5+2629_daily_bin660.fits.....................!
real 45.83
user 43.18
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75604/ft1_filtered_4FGL_J1148.5+2629_daily_bin660.fits', '/scratch/kocevski/75604/ft2_4FGL_J1148.5+2629_daily_bin660.fits', expMap='/scratch/kocevski/75604/expmap_410400001_410659201_4FGL_J1148.5+2629_daily_bin660.fits', expCube='/scratch/kocevski/75604/ltcube_410400001_410659201_4FGL_J1148.5+2629_daily_bin660.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75604/Model_4FGL_J1148.5+2629_daily_bin660.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1148.5+2629'

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  3.615e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.924e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/75604/ft1_filtered_4FGL_J1148.5+2629_daily_bin660.fits
Spacecraft file(s): /scratch/kocevski/75604/ft2_4FGL_J1148.5+2629_daily_bin660.fits
Exposure map: /scratch/kocevski/75604/expmap_410400001_410659201_4FGL_J1148.5+2629_daily_bin660.fits
Exposure cube: /scratch/kocevski/75604/ltcube_410400001_410659201_4FGL_J1148.5+2629_daily_bin660.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75604/Model_4FGL_J1148.5+2629_daily_bin660.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) = 4212.09115449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3781       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.145       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    53.046       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.736       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4552       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1991       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0477       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10893E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1806       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5861       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.851       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3625       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1934       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.2604       1.0000         .10000E-03   10000.    
    27 'norm      '    12.417       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.3404       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .86904       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0362       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4212.088     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3904 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3725        14.885        .57950E-06   -.32516E-04
   2  Prefactor     .10000E-03    2.6877       -.11281E-06** at limit **
   3  norm          .10000E-03    6.3461       -.50939E-06** at limit **
   4  Prefactor     .10000E-03    3.4725       -.42812E-07** at limit **
   5  norm          .10000E-03    9.9771        .11651E-06** at limit **
   6  Prefactor     28.149        18.169        .74169E-06    .22573E-03
   7  Prefactor     .10000E-03    2.7844       -.10877E-06** at limit **
   8  Prefactor     53.046        60.675       -.27329E-06   -.29165E-04
   9  Prefactor     47.740        23.402        .77746E-06    .33374E-03
  10  Prefactor     .10000E-03    8.7491        .12084E-05** at limit **
  11  Prefactor     2.4551        4.3455        .14196E-05   -.17671E-02
  12  Prefactor     1.2173        67.753       -.34663E-05   -.14084E-03
  13  Prefactor     8.0494        11.119        .81234E-07   -.70233E-04
  14  Prefactor     .10000E-03    2.4285        .22707E-05** at limit **
  15  Prefactor     .10000E-03    25.168       -.62497E-06** at limit **
  16  norm          2.1805        1.4258        .68412E-07   -.12711E-03
  17  Prefactor     4.5869        4.2268       -.15478E-07   -.23682E-03
  18  Prefactor     .10000E-03    11.994       -.14806E-05** at limit **
  19  Prefactor     .10000E-03    3.0935       -.45845E-07** at limit **
  20  Prefactor     .10000E-03    1.8394       -.21199E-07** at limit **
  21  norm          10.851        6.0121        .15293E-07   -.32631E-03
  22  Prefactor     .10000E-03    4.8643        .15301E-06** at limit **
  23  Prefactor     3.3627        4.0987       -.16344E-06   -.41656E-03
  24  Prefactor     1.1927        2.3233        .83519E-07   -.60486E-04
  25  Prefactor     .10000E-03    18.853        .14439E-05** at limit **
  26  norm          5.2605        .75142        .21774E-07   -.36081E-03
  27  norm          12.411        8.2452        .22048E-06    .30218E-04
  28  Prefactor     7.3414        11.698        .22575E-06   -.19130E-03
  29  Normalizat    .86867        .25097       -.33158E-05   -.32804E-03
  30  Prefactor     1.0366        .25170        .18859E-05   -.27056E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.37254
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.1495
  Prefactor  = 0.0001
  Prefactor  = 53.0464
  Prefactor  = 47.7402
  Prefactor  = 0.000100002
  Prefactor  = 2.45509
  Prefactor  = 1.21733
  Prefactor  = 8.04943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18049
  Prefactor  = 4.58691
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8514
  Prefactor  = 0.0001
  Prefactor  = 3.36268
  Prefactor  = 1.19272
  Prefactor  = 0.000100003
  norm       = 5.26045
  norm       = 12.4114
  Prefactor  = 7.3414
  Normalizat = 0.868666
  Prefactor  = 1.03657
 **********
 **   18 **HESSE 
 **********

 FCN=   4212.088     FROM HESSE     STATUS=OK           582 CALLS     4486 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3725        14.855        .19249E-03   -1.5290    
   2  Prefactor     .10000E-03    2.7223        .20523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.3782        .15999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4796        .11810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.149        18.319        .75517E-04   -1.4646    
   7  Prefactor     .10000E-03    2.8245        .21016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     53.046        61.108        .55069E-04   -1.4250    
   9  Prefactor     47.740        23.860        .58037E-04   -1.4325    
  10  Prefactor     .10000E-03    8.9248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4551        7.6765        .13052E-02   -1.5395    
  12  Prefactor     1.2173        75.329        .41475E-03   -1.5487    
  13  Prefactor     8.0494        11.122        .14133E-03   -1.5140    
  14  Prefactor     .10000E-03    3.1806        .16684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1805        1.4262        .60205E-04   -1.5413    
  17  Prefactor     4.5869        4.2293        .12319E-03   -1.5280    
  18  Prefactor     .10000E-03    12.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.1935        .22260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8504        .85943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.851        6.0270        .10133E-03   -1.5049    
  22  Prefactor     .10000E-03    4.8984        .13987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.3627        4.1063        .12542E-03   -1.5341    
  24  Prefactor     1.1927        2.2573        .13101E-03   -1.5490    
  25  Prefactor     .10000E-03    19.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.2605        .75254        .20201E-04   -1.5249    
  27  norm          12.411        8.2093        .11368E-03   -1.5003    
  28  Prefactor     7.3414        11.736        .74019E-03   -1.5166    
  29  Normalizat    .86867        .28927        .28288E-03   -.97570    
  30  Prefactor     1.0366        .28922        .29579E-03   -.91520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.54812e-09
Minuit parameter uncertainties:
  1  14.8672
  2  7.64918e-06
  3  9.07396e-05
  4  9.09472e-06
  5  2.06156e-05
  6  18.3231
  7  2.0678e-06
  8  61.1808
  9  23.8643
  10  0.000236571
  11  7.67953
  12  19.1766
  13  11.1248
  14  1.31128e-05
  15  0.000206249
  16  1.42626
  17  4.22955
  18  0.000374321
  19  1.23668e-06
  20  4.21509e-07
  21  6.02738
  22  2.84952e-05
  23  4.10666
  24  2.25742
  25  0.000444422
  26  0.752543
  27  8.21007
  28  11.7398
  29  0.289787
  30  0.289652
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.217e+00  1.918e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.924e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.037e+00  2.897e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  8.687e-01  2.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 177.141 26.499
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75604/likelihoodResults_410400001_410659201_4FGL_J1148.5+2629_daily_bin660.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) = 4210.30021101
delta logL = 1.78749206243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4210.16048126
delta logL = 1.92722181946

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16872E-01   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .74862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1270       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4210.160     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      294 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16868E-01    1.7052        .91071E-03    .20078E-02
   2  Index        10.0000        9.6242        .50000    ** at limit **
   3  Normalizat    .74870        .21752        .68224E-01    .15213E-04
   4  Prefactor     1.1270        .24564        .64496E-01    .47123E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0168675
  Index      = 10
  Normalizat = 0.748703
  Prefactor  = 1.12697
 **********
 **   18 **HESSE 
 **********

 FCN=   4210.160     FROM HESSE     STATUS=OK            35 CALLS      329 TOTAL
                     EDM=   .58E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16868E-01    .16947E-01    .56320E-05   -1.5682    
   2  Index        10.0000        6.1592        .35058        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .74870        .25524        .30189E-03   -1.0200    
   4  Prefactor     1.1270        .28779        .28526E-03   -.88609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81448e-13
Minuit parameter uncertainties:
  1  0.0169468
  2  1.33819e-05
  3  0.255649
  4  0.28819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75604': 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) = 4210.16047946
delta logL = 1.92722362053

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.687e-02  1.695e-02  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.000e+01  1.338e-05  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.127e+00  2.882e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  7.487e-01  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 177.141 26.499
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 8.94e-08 +/- 8.70e-08
Energy Flux (Free Index): 9.99e-06 +/- 9.79e-06

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/75604/cmap_HighResolution_410400001_410659201_4FGL_J1148.5+2629_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.56e-03', comment='SUCCESS', energy_flux2='9.99e-06', dlogl='1.93e+00', photon_flux2='8.94e-08', job_status='DONE', time_completed='2021-09-04 11:39:25.375556', photon_index_error2='0.00', photon_index2='10.00', ts='0.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='9.79e-06', EG='0.87', time_epoch_completed='1630780765.38', return_code='0', job_id='75604', GAL2='1.13', EG2='0.75', return_code2='0', photon_flux_error2='8.70e-08', ts2='4.07', photon_index='2.92' WHERE bin_id='660' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:39:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 75604: <4FGL_J1148.5+2629_daily_bin660> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin660> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 11:26:22 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:26:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 11:26:24 2021
Terminated at Sat Sep  4 11:39:26 2021
Results reported at Sat Sep  4 11:39:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin660 177.141 26.4986 410400001 410659201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1148.5+2629 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   757.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

