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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin1002
RA = 177.141, Dec = 26.4986
tmin = 499046401, tmax = 499305601
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='77415', job_status='RUN', time_executed='2021-09-04 11:35:19.290450', time_epoch_executed='1630780519.29' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77415/ft1_4FGL_J1148.5+2629_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77415/ft2_4FGL_J1148.5+2629_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77415/ft1_4FGL_J1148.5+2629_daily_bin1002.fits outfile=/scratch/kocevski/77415/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1002.fits ra=177.141 dec=26.4986 rad=12.0 tmin=499046401.0 tmax=499305601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.26
user 4.03
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77415/ft2_4FGL_J1148.5+2629_daily_bin1002.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/77415/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1002.fits evtable="EVENTS" outfile="/scratch/kocevski/77415/ft1_filtered_4FGL_J1148.5+2629_daily_bin1002.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77415/ft1_filtered_4FGL_J1148.5+2629_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/77415/ft2_4FGL_J1148.5+2629_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/77415/ltcube_499046401_499305601_4FGL_J1148.5+2629_daily_bin1002.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/77415/ft2_4FGL_J1148.5+2629_daily_bin1002.fits
.....................!
real 11.58
user 11.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77415/ft1_filtered_4FGL_J1148.5+2629_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/77415/ft2_4FGL_J1148.5+2629_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/77415/ltcube_499046401_499305601_4FGL_J1148.5+2629_daily_bin1002.fits outfile=/scratch/kocevski/77415/expmap_499046401_499305601_4FGL_J1148.5+2629_daily_bin1002.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/77415/ltcube_499046401_499305601_4FGL_J1148.5+2629_daily_bin1002.fits
.....................!
real 191.23
user 186.78
sys 4.10

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/77415/ft1_filtered_4FGL_J1148.5+2629_daily_bin1002.fits scfile=/scratch/kocevski/77415/ft2_4FGL_J1148.5+2629_daily_bin1002.fits outfile=/scratch/kocevski/77415/cmap_499046401_499305601_4FGL_J1148.5+2629_daily_bin1002.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77415/ft1_filtered_4FGL_J1148.5+2629_daily_bin1002.fits scfile=/scratch/kocevski/77415/ft2_4FGL_J1148.5+2629_daily_bin1002.fits outfile=/scratch/kocevski/77415/cmap_HighResolution_499046401_499305601_4FGL_J1148.5+2629_daily_bin1002.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5482       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11460       1.0000         .10000E-03   10000.    
     3 'norm      '    .12363       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .25312E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2372       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8788       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.483       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4109       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.445       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10726E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .72595       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7889       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0898       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9276       1.0000         .10000E-03   10000.    
    21 'norm      '    7.6962       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8695       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .12090E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1640       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82068       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=   4325.208     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     4013 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5529        13.341       -.16414E-06    .22458E-03
   2  Prefactor     .10753        9.0271       -.53537E-05   -.25797E-03
   3  norm          .13949        26.093        .78728E-05   -.41662E-03
   4  Prefactor     .10000E-03    2.8348       -.30473E-07** at limit **
   5  norm          .10001E-03    9.5473        .12883E-05** at limit **
   6  Prefactor     5.2368        7.3265        .60216E-06    .23879E-03
   7  Prefactor     1.8787        2.0537       -.42756E-07   -.14443E-03
   8  Prefactor     .10000E-03    20.681       -.17050E-05** at limit **
   9  Prefactor     14.482        14.164       -.19722E-06   -.52465E-04
  10  Prefactor     .10000E-03    4.3447        .34598E-07** at limit **
  11  Prefactor     6.4118        5.8642        .31244E-06    .15739E-03
  12  Prefactor     19.433        30.620        .45083E-05    .24954E-03
  13  Prefactor     .10000E-03    20.298       -.18277E-05** at limit **
  14  Prefactor     .72456        2.8512       -.19214E-05    .44166E-03
  15  Prefactor     .10001E-03    24.992        .57097E-05** at limit **
  16  norm          1.7891        1.4103       -.93088E-07    .15338E-03
  17  Prefactor     .10000E-03    1.5439       -.11302E-07** at limit **
  18  Prefactor     .10000E-03    34.627       -.39519E-05** at limit **
  19  Prefactor     3.0899        3.0629       -.13212E-06    .11349E-04
  20  Prefactor     2.9276        3.3785        .22307E-06    .24518E-03
  21  norm          7.6968        3.8254        .62657E-07    .17777E-03
  22  Prefactor     .10000E-03    5.0184       -.45209E-06** at limit **
  23  Prefactor     .10000E-03    1.7832       -.47194E-07** at limit **
  24  Prefactor     1.8690        2.3069       -.58559E-07    .26941E-03
  25  Prefactor     .10000E-03    5.7617        .63938E-06** at limit **
  26  norm          .12008E-01    .22814       -.33567E-07   -.44685E-03
  27  norm          .10000E-03    1.8287       -.47491E-07** at limit **
  28  Prefactor     .10000E-03    6.9322       -.10806E-05** at limit **
  29  Normalizat    1.1644        .21246        .18949E-06   -.30238E-06
  30  Prefactor     .81995        .21730        .96493E-06   -.93997E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55287
  Prefactor  = 0.107535
  norm       = 0.139489
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 5.23679
  Prefactor  = 1.87871
  Prefactor  = 0.000100001
  Prefactor  = 14.4818
  Prefactor  = 0.0001
  Prefactor  = 6.4118
  Prefactor  = 19.4327
  Prefactor  = 0.0001
  Prefactor  = 0.724556
  Prefactor  = 0.000100006
  norm       = 1.78914
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.08993
  Prefactor  = 2.92763
  norm       = 7.69679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86896
  Prefactor  = 0.0001
  norm       = 0.0120081
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16436
  Prefactor  = 0.819948
 **********
 **   18 **HESSE 
 **********

 FCN=   4325.208     FROM HESSE     STATUS=OK           604 CALLS     4617 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5529        13.064        .34241E-03   -1.5459    
   2  Prefactor     .10753        10.101        .16425E-02   -1.5642    
   3  norm          .13949        14.304        .74009E-01   -1.5633    
   4  Prefactor     .10000E-03    2.8442        .10814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    180.47        .37353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2368        7.3500        .17565E-03   -1.5250    
   7  Prefactor     1.8787        2.0489        .94903E-04   -1.5434    
   8  Prefactor     .10000E-03    20.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.482        14.164        .10525E-03   -1.4947    
  10  Prefactor     .10000E-03    4.3473        .13387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4118        5.8725        .14529E-03   -1.5201    
  12  Prefactor     19.433        30.485        .90828E-04   -1.4826    
  13  Prefactor     .10000E-03    20.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .72456        2.8869        .18014E-03   -1.5538    
  15  Prefactor     .10001E-03    25.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7891        1.4000        .65786E-04   -1.5440    
  17  Prefactor     .10000E-03    1.5491        .79776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0899        3.0469        .10751E-03   -1.5356    
  20  Prefactor     2.9276        3.3694        .12303E-03   -1.5366    
  21  norm          7.6968        3.8136        .86171E-04   -1.5153    
  22  Prefactor     .10000E-03    5.0382        .14392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.8416        .17099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.8690        2.2878        .10526E-03   -1.5435    
  25  Prefactor     .10000E-03    5.8731        .15414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .12008E-01    1.1031        .58925E-03   -1.5686    
  27  norm          .10000E-03    1.8334        .86843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.9822        .16937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1644        .24500        .22625E-03   -.87711    
  30  Prefactor     .81995        .25169        .28624E-03   -.98997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31368e-08
Minuit parameter uncertainties:
  1  9.01064
  2  2.08381
  3  2.82472
  4  1.06558e-06
  5  0.00302082
  6  7.35125
  7  2.04898
  8  0.000231719
  9  14.1674
  10  2.05764e-06
  11  5.87298
  12  30.5093
  13  0.000158087
  14  2.8875
  15  0.000785906
  16  1.40001
  17  1.07753e-06
  18  0.00065692
  19  3.04701
  20  3.36965
  21  3.81377
  22  2.33539e-05
  23  5.30112e-06
  24  2.28793
  25  3.59091e-05
  26  0.229225
  27  1.91348e-06
  28  7.55544e-05
  29  0.245243
  30  0.252049
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.943e+01  3.051e+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:  8.199e-01  2.520e-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.164e+00  2.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/77415/likelihoodResults_499046401_499305601_4FGL_J1148.5+2629_daily_bin1002.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) = 4323.90132348
delta logL = 1.30713523378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4323.87575119
delta logL = 1.33270752037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2782       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3684       1.0000          .0000       10.000    
     3 'Normalizat'    1.0622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89749       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=   4323.876     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      253 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2833        67.324        .43737E-02    .10506E-02
   2  Index         5.3683        7.4222        .15820        .18908E-03
   3  Normalizat    1.0622        .76945E-01    .39804E-01   -.25511E-03
   4  Prefactor     .89752        .83572E-01    .44973E-01   -.11153E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28329
  Index      = 5.36829
  Normalizat = 1.06215
  Prefactor  = 0.897517
 **********
 **   18 **HESSE 
 **********

 FCN=   4323.876     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      284 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2833        101.11        .88920E-04   -1.5248    
   2  Index         5.3683        7.6787        .63970E-02    .73725E-01
   3  Normalizat    1.0622        .24100        .23486E-03   -.90976    
   4  Prefactor     .89752        .25269        .27473E-03   -.96228    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67006e-09
Minuit parameter uncertainties:
  1  46.3152
  2  7.87092
  3  0.241247
  4  0.253024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77415': 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) = 4323.8757504
delta logL = 1.3327083066

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  5.283e+00  4.632e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  5.368e+00  7.871e+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:  8.975e-01  2.530e-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.062e+00  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 177.141 26.499
Photon Index (Free Index): 5.37 +/- 7.87
Photon Flux (Free Index): 1.34e-07 +/- 9.28e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.78e-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/77415/cmap_HighResolution_499046401_499305601_4FGL_J1148.5+2629_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', energy_flux2='1.73e-05', dlogl='1.33e+00', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-04 11:47:25.692192', photon_index_error2='7.87', photon_index2='5.37', ts='0.68', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='1.78e-05', EG='1.16', time_epoch_completed='1630781245.69', return_code='0', job_id='77415', GAL2='0.90', EG2='1.06', return_code2='102', photon_flux_error2='9.28e-08', ts2='3.64', photon_index='2.92' WHERE bin_id='1002' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:47:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 77415: <4FGL_J1148.5+2629_daily_bin1002> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin1002> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 11:31:34 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:31:36 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:36 2021
Terminated at Sat Sep  4 11:47:26 2021
Results reported at Sat Sep  4 11:47:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin1002 177.141 26.4986 499046401 499305601 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 :                                   725.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            952 sec.

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

