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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin741
RA = 177.141, Dec = 26.4986
tmin = 431395201, tmax = 431654401
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='75730', job_status='RUN', time_executed='2021-09-04 11:26:47.843751', time_epoch_executed='1630780007.84' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75730

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75730/ft1_4FGL_J1148.5+2629_daily_bin741.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75730/ft2_4FGL_J1148.5+2629_daily_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75730/ft1_4FGL_J1148.5+2629_daily_bin741.fits outfile=/scratch/kocevski/75730/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin741.fits ra=177.141 dec=26.4986 rad=12.0 tmin=431395201.0 tmax=431654401.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.66
user 5.37
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75730/ft1_filtered_4FGL_J1148.5+2629_daily_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/75730/ft2_4FGL_J1148.5+2629_daily_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/75730/ltcube_431395201_431654401_4FGL_J1148.5+2629_daily_bin741.fits outfile=/scratch/kocevski/75730/expmap_431395201_431654401_4FGL_J1148.5+2629_daily_bin741.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/75730/ltcube_431395201_431654401_4FGL_J1148.5+2629_daily_bin741.fits
.....................!
real 190.48
user 185.88
sys 4.25

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/75730/ft1_filtered_4FGL_J1148.5+2629_daily_bin741.fits scfile=/scratch/kocevski/75730/ft2_4FGL_J1148.5+2629_daily_bin741.fits outfile=/scratch/kocevski/75730/cmap_431395201_431654401_4FGL_J1148.5+2629_daily_bin741.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75730/ft1_filtered_4FGL_J1148.5+2629_daily_bin741.fits scfile=/scratch/kocevski/75730/ft2_4FGL_J1148.5+2629_daily_bin741.fits outfile=/scratch/kocevski/75730/cmap_HighResolution_431395201_431654401_4FGL_J1148.5+2629_daily_bin741.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.148       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43543       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5926       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4446       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .49184E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1079       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.314       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.621       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.752       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5816       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.143       1.0000         .10000E-03   10000.    
    16 'norm      '    .68631       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8671       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.210       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .78980E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5163       1.0000         .10000E-03   10000.    
    21 'norm      '    16.031       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8005       1.0000         .10000E-03   10000.    
    26 'norm      '    2.1488       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.7216       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1689       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70378       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=   4830.308     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     4006 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.148        10.226       -.45597E-07    .10845E-04
   2  Prefactor     .43528        1.9381        .61262E-07   -.10476E-05
   3  norm          .10000E-03    4.6599        .31920E-07** at limit **
   4  Prefactor     2.5950        7.3139       -.37476E-06    .94203E-04
   5  norm          4.4455        10.439       -.17207E-06    .47267E-04
   6  Prefactor     .10002E-03    8.7144       -.93570E-06** at limit **
   7  Prefactor     2.1077        2.6079       -.12197E-06    .74948E-04
   8  Prefactor     .10000E-03    31.870       -.53109E-06** at limit **
   9  Prefactor     .10000E-03    11.010       -.43221E-07** at limit **
  10  Prefactor     10.316        18.173       -.75118E-07    .32247E-04
  11  Prefactor     .10000E-03    2.7382       -.40735E-06** at limit **
  12  Prefactor     22.634        23.437       -.28689E-06    .27759E-04
  13  Prefactor     13.752        14.509       -.13714E-06    .10723E-03
  14  Prefactor     3.5817        2.4635       -.38530E-07    .15315E-03
  15  Prefactor     25.200        37.677       -.16445E-05   -.51335E-04
  16  norm          .68462        1.0154       -.78887E-08    .12555E-03
  17  Prefactor     2.8724        5.8432        .80397E-06    .40151E-03
  18  Prefactor     13.214        32.971       -.24686E-06    .14521E-04
  19  Prefactor     .10000E-03    2.7572       -.12008E-05** at limit **
  20  Prefactor     8.5263        5.2266        .85401E-06    .87627E-03
  21  norm          16.032        5.2931       -.82456E-09    .99664E-03
  22  Prefactor     .10000E-03    4.8937       -.33377E-07** at limit **
  23  Prefactor     .10037E-03    2.5724       -.90962E-06** at limit **
  24  Prefactor     .10000E-03    .78717        .16112E-07** at limit **
  25  Prefactor     5.8005        5.1911       -.99166E-08    .34500E-04
  26  norm          2.1489        .47775        .63462E-08    .13907E-02
  27  norm          .10000E-03    1.6557        .37407E-07** at limit **
  28  Prefactor     1.7218        8.8509        .98693E-07    .11149E-03
  29  Normalizat    1.1686        .23371        .14625E-05    .26261E-03
  30  Prefactor     .70415        .23083       -.13696E-05    .32298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1481
  Prefactor  = 0.435277
  norm       = 0.0001
  Prefactor  = 2.59499
  norm       = 4.44552
  Prefactor  = 0.000100019
  Prefactor  = 2.1077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3162
  Prefactor  = 0.0001
  Prefactor  = 22.6339
  Prefactor  = 13.7522
  Prefactor  = 3.58172
  Prefactor  = 25.2004
  norm       = 0.68462
  Prefactor  = 2.87235
  Prefactor  = 13.2139
  Prefactor  = 0.0001
  Prefactor  = 8.52628
  norm       = 16.0318
  Prefactor  = 0.0001
  Prefactor  = 0.000100372
  Prefactor  = 0.0001
  Prefactor  = 5.8005
  norm       = 2.14893
  norm       = 0.0001
  Prefactor  = 1.72176
  Normalizat = 1.16863
  Prefactor  = 0.70415
 **********
 **   18 **HESSE 
 **********

 FCN=   4830.308     FROM HESSE     STATUS=OK           598 CALLS     4604 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.148        10.197        .11493E-03   -1.5011    
   2  Prefactor     .43528        1.8340        .18480E-03   -1.5576    
   3  norm          .10000E-03    4.6628        .14652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5950        7.1675        .25341E-03   -1.5386    
   5  norm          4.4455        10.426        .95502E-03   -1.5286    
   6  Prefactor     .10002E-03    34.854        .37300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1077        2.5878        .11977E-03   -1.5418    
   8  Prefactor     .10000E-03    31.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.316        18.148        .12476E-03   -1.5065    
  11  Prefactor     .10000E-03    2.7263        .11175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.634        23.471        .84217E-04   -1.4756    
  13  Prefactor     13.752        14.478        .10801E-03   -1.4966    
  14  Prefactor     3.5817        2.4574        .85272E-04   -1.5329    
  15  Prefactor     25.200        37.743        .79888E-04   -1.4704    
  16  norm          .68462        1.0141        .48037E-04   -1.5542    
  17  Prefactor     2.8724        5.8787        .10950E-02   -1.5369    
  18  Prefactor     13.214        32.926        .11021E-03   -1.4981    
  19  Prefactor     .10000E-03    10.879        .20023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.5263        5.3877        .12227E-03   -1.5124    
  21  norm          16.032        4.9254        .82100E-04   -1.4907    
  22  Prefactor     .10000E-03    4.9274        .15014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10037E-03    26.394        .17658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .79083        .60190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.8005        5.1928        .14557E-03   -1.5226    
  26  norm          2.1489        .47855        .21626E-04   -1.5415    
  27  norm          .10000E-03    1.6586        .87322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.7218        9.0539        .16007E-02   -1.5446    
  29  Normalizat    1.1686        .26534        .24685E-03   -.87578    
  30  Prefactor     .70415        .26503        .32921E-03   -1.0336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46007e-08
Minuit parameter uncertainties:
  1  10.1982
  2  1.78684
  3  5.87286e-07
  4  7.16987
  5  10.4304
  6  0.00163485
  7  2.58791
  8  7.04215e-05
  9  1.69574e-06
  10  18.1577
  11  8.72274e-06
  12  23.4807
  13  14.4815
  14  2.45745
  15  37.7791
  16  1.01417
  17  5.87986
  18  32.9708
  19  1.07331e-05
  20  5.38797
  21  4.92554
  22  3.49942e-07
  23  0.00626896
  24  7.83479e-07
  25  5.19315
  26  0.478555
  27  2.6863e-07
  28  7.89815
  29  0.265642
  30  0.265511
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  2.263e+01  2.348e+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:  7.041e-01  2.655e-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.169e+00  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.69
Ra Dec: 177.141 26.499
Photon Index (Fixed Index): 2.92 +/- 0.00
Photon Flux (Fixed Index): 5.34e-08 +/- 5.53e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.15e-05

TS (Fixed Index): 1.69
Ra Dec: 177.141 26.499
Photon Flux Upper Limit: 1.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75730/likelihoodResults_431395201_431654401_4FGL_J1148.5+2629_daily_bin741.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) = 4830.16117173
delta logL = 0.147078526754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4830.08348743
delta logL = 0.224762827682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4304       1.0000         .10000E-03   10000.    
     2 'Index     '    5.7890       1.0000          .0000       10.000    
     3 'Normalizat'    1.1007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76981       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=   4830.083     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      272 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4240        41.663        .65623E-02    .17092E-03
   2  Index         5.7911        7.6476        .20406        .56465E-04
   3  Normalizat    1.1007        .66001E-01    .57239E-01   -.40306E-04
   4  Prefactor     .76978        .70566E-01    .71539E-01    .11520E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.42399
  Index      = 5.79113
  Normalizat = 1.10066
  Prefactor  = 0.769782
 **********
 **   18 **HESSE 
 **********

 FCN=   4830.083     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      305 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4240        77.843        .82010E-04   -1.5397    
   2  Index         5.7911        7.8049        .81277E-02    .15889    
   3  Normalizat    1.1007        .22528        .25312E-03   -.89731    
   4  Prefactor     .76978        .23167        .31659E-03   -1.0085    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.22656e-07
Minuit parameter uncertainties:
  1  27.5114
  2  9.87296
  3  0.225481
  4  0.231958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75730': 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) = 4830.08348706
delta logL = 0.224763194356

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  2.424e+00  2.751e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  5.791e+00  9.873e+00  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:  7.698e-01  2.320e-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.101e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.27
Ra Dec: 177.141 26.499
Photon Index (Free Index): 5.79 +/- 9.87
Photon Flux (Free Index): 9.74e-08 +/- 9.06e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.60e-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/75730/cmap_HighResolution_431395201_431654401_4FGL_J1148.5+2629_daily_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='5.34e-08', energy_flux2='1.23e-05', photon_flux_error='5.53e-08', dlogl='2.25e-01', energy_flux='1.11e-05', photon_flux2='9.74e-08', job_status='DONE', time_completed='2021-09-04 11:39:45.141951', photon_index_error2='9.87', photon_index2='5.79', ts='1.69', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='1.60e-05', EG='1.17', time_epoch_completed='1630780785.14', return_code='0', job_id='75730', GAL2='0.77', EG2='1.10', return_code2='102', energy_flux_error='1.15e-05', photon_flux_error2='9.06e-08', ts2='2.27', photon_index='2.92' WHERE bin_id='741' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:39:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 75730: <4FGL_J1148.5+2629_daily_bin741> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin741> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 11:26:30 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:26:32 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:32 2021
Terminated at Sat Sep  4 11:39:45 2021
Results reported at Sat Sep  4 11:39:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin741 177.141 26.4986 431395201 431654401 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 :                                   775.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

