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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin763
RA = 177.141, Dec = 26.4986
tmin = 437097601, tmax = 437356801
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='76972', job_status='RUN', time_executed='2021-09-04 11:31:16.235994', time_epoch_executed='1630780276.24' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76972

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76972/ft1_4FGL_J1148.5+2629_daily_bin763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76972/ft2_4FGL_J1148.5+2629_daily_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76972/ft1_4FGL_J1148.5+2629_daily_bin763.fits outfile=/scratch/kocevski/76972/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin763.fits ra=177.141 dec=26.4986 rad=12.0 tmin=437097601.0 tmax=437356801.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 5.08
user 4.86
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76972/ft1_filtered_4FGL_J1148.5+2629_daily_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/76972/ft2_4FGL_J1148.5+2629_daily_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/76972/ltcube_437097601_437356801_4FGL_J1148.5+2629_daily_bin763.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/76972/ft2_4FGL_J1148.5+2629_daily_bin763.fits
.....................!
real 12.22
user 11.82
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76972/ft1_filtered_4FGL_J1148.5+2629_daily_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/76972/ft2_4FGL_J1148.5+2629_daily_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/76972/ltcube_437097601_437356801_4FGL_J1148.5+2629_daily_bin763.fits outfile=/scratch/kocevski/76972/expmap_437097601_437356801_4FGL_J1148.5+2629_daily_bin763.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/76972/ltcube_437097601_437356801_4FGL_J1148.5+2629_daily_bin763.fits
.....................!
real 190.23
user 185.02
sys 4.78

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/76972/ft1_filtered_4FGL_J1148.5+2629_daily_bin763.fits scfile=/scratch/kocevski/76972/ft2_4FGL_J1148.5+2629_daily_bin763.fits outfile=/scratch/kocevski/76972/cmap_437097601_437356801_4FGL_J1148.5+2629_daily_bin763.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/76972/ft1_filtered_4FGL_J1148.5+2629_daily_bin763.fits scfile=/scratch/kocevski/76972/ft2_4FGL_J1148.5+2629_daily_bin763.fits outfile=/scratch/kocevski/76972/cmap_HighResolution_437097601_437356801_4FGL_J1148.5+2629_daily_bin763.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.58
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/76972/ft1_filtered_4FGL_J1148.5+2629_daily_bin763.fits', '/scratch/kocevski/76972/ft2_4FGL_J1148.5+2629_daily_bin763.fits', expMap='/scratch/kocevski/76972/expmap_437097601_437356801_4FGL_J1148.5+2629_daily_bin763.fits', expCube='/scratch/kocevski/76972/ltcube_437097601_437356801_4FGL_J1148.5+2629_daily_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/76972/Model_4FGL_J1148.5+2629_daily_bin763.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/76972/ft1_filtered_4FGL_J1148.5+2629_daily_bin763.fits
Spacecraft file(s): /scratch/kocevski/76972/ft2_4FGL_J1148.5+2629_daily_bin763.fits
Exposure map: /scratch/kocevski/76972/expmap_437097601_437356801_4FGL_J1148.5+2629_daily_bin763.fits
Exposure cube: /scratch/kocevski/76972/ltcube_437097601_437356801_4FGL_J1148.5+2629_daily_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/76972/Model_4FGL_J1148.5+2629_daily_bin763.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) = 5979.63733923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1170       1.0000         .10000E-03   10000.    
     5 'norm      '    11.289       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9905       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10659E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.442       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.215       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6429       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .92532       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4608       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9790       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35120       1.0000         .10000E-03   10000.    
    21 'norm      '    11.148       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.043       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8007       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.3264       1.0000         .10000E-03   10000.    
    26 'norm      '    7.8342       1.0000         .10000E-03   10000.    
    27 'norm      '    4.5903       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .22687       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0397       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89099       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=   5979.632     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3926 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.745       -.88598E-05** at limit **
   2  Prefactor     .10000E-03    1.6923        .61072E-07** at limit **
   3  norm          .10000E-03    4.3874        .41678E-06** at limit **
   4  Prefactor     8.1092        10.297        .13087E-05   -.51675E-04
   5  norm          11.279        12.920        .98603E-06   -.51946E-04
   6  Prefactor     6.9917        15.613       -.13348E-05   -.39621E-04
   7  Prefactor     .10000E-03    2.1587        .71808E-06** at limit **
   8  Prefactor     35.439        48.592       -.41721E-05   -.14865E-03
   9  Prefactor     .10000E-03    13.980        .12701E-04** at limit **
  10  Prefactor     27.216        15.580       -.11497E-05   -.23362E-03
  11  Prefactor     3.6582        6.4792       -.75840E-06   -.84173E-03
  12  Prefactor     .10000E-03    6.7239       -.30450E-05** at limit **
  13  Prefactor     .91763        10.902       -.11948E-05   -.26448E-03
  14  Prefactor     .10000E-03    .64521        .80638E-07** at limit **
  15  Prefactor     .10000E-03    8.5855        .10858E-04** at limit **
  16  norm          1.4606        .97134        .17154E-08   -.74584E-04
  17  Prefactor     1.9782        3.4177        .11725E-05   -.31246E-03
  18  Prefactor     .10000E-03    11.787       -.97883E-05** at limit **
  19  Prefactor     .10000E-03    1.2690        .81063E-07** at limit **
  20  Prefactor     .33820        2.1453       -.13556E-05    .56065E-03
  21  norm          11.146        4.0437       -.88980E-07    .17464E-03
  22  Prefactor     12.041        9.0602        .18959E-06    .24286E-05
  23  Prefactor     .10000E-03    1.0926        .25869E-07** at limit **
  24  Prefactor     3.8013        2.3993        .83252E-07    .22359E-03
  25  Prefactor     5.3255        5.2859       -.57746E-07    .17522E-03
  26  norm          7.8341        .74789        .36808E-08    .12240E-02
  27  norm          4.5888        5.0810       -.41484E-06   -.15899E-03
  28  Prefactor     .18523        5.5004       -.17510E-05    .49520E-03
  29  Normalizat    1.0397        .20527        .32303E-06    .91262E-04
  30  Prefactor     .89126        .21635        .37282E-06    .10236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.10923
  norm       = 11.2793
  Prefactor  = 6.9917
  Prefactor  = 0.000100001
  Prefactor  = 35.4394
  Prefactor  = 0.0001
  Prefactor  = 27.2158
  Prefactor  = 3.65818
  Prefactor  = 0.0001
  Prefactor  = 0.917625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46059
  Prefactor  = 1.97819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.338203
  norm       = 11.1464
  Prefactor  = 12.0415
  Prefactor  = 0.0001
  Prefactor  = 3.80129
  Prefactor  = 5.32545
  norm       = 7.8341
  norm       = 4.58877
  Prefactor  = 0.185227
  Normalizat = 1.03974
  Prefactor  = 0.891263
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.632     FROM HESSE     STATUS=OK           596 CALLS     4522 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7627        .19627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.3903        .15819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1092        10.244        .14072E-03   -1.5138    
   5  norm          11.279        12.938        .11924E-03   -1.5036    
   6  Prefactor     6.9917        15.571        .15173E-03   -1.5179    
   7  Prefactor     .10000E-03    3.2309        .19972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.439        45.978        .67316E-04   -1.4517    
   9  Prefactor     .10000E-03    13.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.216        15.616        .76793E-04   -1.4664    
  11  Prefactor     3.6582        6.4168        .21166E-03   -1.5325    
  12  Prefactor     .10000E-03    6.7313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .91763        37.168        .47109E-02   -1.5516    
  14  Prefactor     .10000E-03    .65407        .60625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.5386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4606        .97153        .60048E-04   -1.5466    
  17  Prefactor     1.9782        3.3638        .17821E-03   -1.5427    
  18  Prefactor     .10000E-03    11.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2877        .84899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .33820        8.2533        .21647E-02   -1.5592    
  21  norm          11.146        4.0366        .89409E-04   -1.5040    
  22  Prefactor     12.041        9.0673        .11543E-03   -1.5014    
  23  Prefactor     .10000E-03    1.0988        .78789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.8013        2.3977        .90479E-04   -1.5318    
  25  Prefactor     5.3255        5.2882        .17110E-03   -1.5246    
  26  norm          7.8341        .74881        .19740E-04   -1.5148    
  27  norm          4.5888        5.0764        .17603E-03   -1.5280    
  28  Prefactor     .18523        66.933        .34679E-02   -1.5622    
  29  Normalizat    1.0397        .24658        .27441E-03   -.91711    
  30  Prefactor     .89126        .26097        .32736E-03   -.96447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08202e-08
Minuit parameter uncertainties:
  1  2.18814e-05
  2  2.66513e-06
  3  9.51193e-07
  4  10.2462
  5  12.9415
  6  15.58
  7  0.000126512
  8  46.0239
  9  1.09611e-05
  10  15.6185
  11  6.41802
  12  7.32711e-07
  13  11.6873
  14  5.86675e-07
  15  2.18812e-06
  16  0.971542
  17  3.36413
  18  2.05255e-06
  19  4.98609e-06
  20  3.34144
  21  4.03671
  22  9.06835
  23  1.18838e-06
  24  2.39779
  25  5.28867
  26  0.748806
  27  5.07689
  28  7.04816
  29  0.246856
  30  0.261333
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  7.327e-07  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:  8.913e-01  2.613e-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:  1.040e+00  2.469e-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: 7.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/76972/likelihoodResults_437097601_437356801_4FGL_J1148.5+2629_daily_bin763.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): 102
logL (Free Index) = 5979.6331287
delta logL = -0.000706236697624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5979.63242247
delta logL = -3.46790329786e-09

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 'Index     '    2.9231       1.0000          .0000       10.000    
     3 'Normalizat'    1.0397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89127       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=   5979.632     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    81.166        .90712E-02** at limit **
   2  Index         2.9227        6.4560        .50000        .63724E-06
   3  Normalizat    1.0397        .17381E-01    .62045E-01    .24488E-04
   4  Prefactor     .89126        .19449E-01    .73978E-01    .16446E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.92266
  Normalizat = 1.03974
  Prefactor  = 0.891262
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.632     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    391.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9227        5.5361        .50000       -.42846    
   3  Normalizat    1.0397        .40530E-01    .27441E-03   -.91711    
   4  Prefactor     .89126        .45322E-01    .32736E-03   -.96447    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.12214e-08
Minuit parameter uncertainties:
  1  1.16084e-05
  2  2027.88
  3  0.0405312
  4  0.0453241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76972': 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): 102
logL (Free Index) = 5979.63242246
delta logL = 1.42790668178e-10

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.161e-05  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.923e+00  2.028e+03  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:  8.913e-01  4.532e-02  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:  1.040e+00  4.053e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.141 26.499

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/76972/cmap_HighResolution_437097601_437356801_4FGL_J1148.5+2629_daily_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.05e-08', time_completed='2021-09-04 11:46:43.796149', job_id='76972', GAL2='0.89', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630781203.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.43e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='763' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:46:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 76972: <4FGL_J1148.5+2629_daily_bin763> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin763> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 11:30:58 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:31:00 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:31:00 2021
Terminated at Sat Sep  4 11:46:44 2021
Results reported at Sat Sep  4 11:46:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin763 177.141 26.4986 437097601 437356801 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 :                                   924.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            946 sec.

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

