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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin1081
RA = 177.141, Dec = 26.4986
tmin = 519523201, tmax = 519782401
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='79464', job_status='RUN', time_executed='2021-09-04 11:38:23.146934', time_epoch_executed='1630780703.15' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79464

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79464/ft1_4FGL_J1148.5+2629_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79464/ft2_4FGL_J1148.5+2629_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79464/ft1_4FGL_J1148.5+2629_daily_bin1081.fits outfile=/scratch/kocevski/79464/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1081.fits ra=177.141 dec=26.4986 rad=12.0 tmin=519523201.0 tmax=519782401.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 2.89
user 2.70
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/79464/ft1_filtered_4FGL_J1148.5+2629_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/79464/ft2_4FGL_J1148.5+2629_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/79464/ltcube_519523201_519782401_4FGL_J1148.5+2629_daily_bin1081.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/79464/ft2_4FGL_J1148.5+2629_daily_bin1081.fits
.....................!
real 9.82
user 9.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79464/ft1_filtered_4FGL_J1148.5+2629_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/79464/ft2_4FGL_J1148.5+2629_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/79464/ltcube_519523201_519782401_4FGL_J1148.5+2629_daily_bin1081.fits outfile=/scratch/kocevski/79464/expmap_519523201_519782401_4FGL_J1148.5+2629_daily_bin1081.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/79464/ltcube_519523201_519782401_4FGL_J1148.5+2629_daily_bin1081.fits
.....................!
real 190.77
user 185.59
sys 4.83

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/79464/ft1_filtered_4FGL_J1148.5+2629_daily_bin1081.fits scfile=/scratch/kocevski/79464/ft2_4FGL_J1148.5+2629_daily_bin1081.fits outfile=/scratch/kocevski/79464/cmap_519523201_519782401_4FGL_J1148.5+2629_daily_bin1081.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.53
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.963       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    33.463       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11077E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.128       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5032       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14820E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2411       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.193       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7262       1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.058       1.0000         .10000E-03   10000.    
    16 'norm      '    5.7552       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.721       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6677       1.0000         .10000E-03   10000.    
    21 'norm      '    5.1759       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.6035       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6105       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2468       1.0000         .10000E-03   10000.    
    26 'norm      '    .17038E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    17.319       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .22960E-01   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .70494       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3078       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=   5337.254     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     4067 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.960        12.684        .83921E-07   -.18771E-04
   2  Prefactor     .10000E-03    1.5755        .60039E-07** at limit **
   3  norm          33.463        22.599       -.10911E-06   -.54589E-04
   4  Prefactor     .10000E-03    15.703       -.92458E-06** at limit **
   5  norm          .10000E-03    8.3489        .43767E-07** at limit **
   6  Prefactor     28.128        15.882        .14556E-07   -.13418E-04
   7  Prefactor     .10000E-03    1.6711        .72999E-07** at limit **
   8  Prefactor     .10001E-03    30.344       -.31521E-05** at limit **
   9  Prefactor     3.5031        15.574        .16009E-05   -.10759E-03
  10  Prefactor     .10000E-03    36.708        .29387E-05** at limit **
  11  Prefactor     2.2265        7.0559        .18738E-05    .84265E-04
  12  Prefactor     .10000E-03    18.264        .16937E-05** at limit **
  13  Prefactor     43.186        18.246        .91952E-07    .38685E-04
  14  Prefactor     2.7253        2.0197        .69690E-07   -.12385E-03
  15  Prefactor     56.063        35.846        .86616E-06    .58439E-04
  16  norm          5.7547        1.7292        .39118E-07   -.16518E-03
  17  Prefactor     .10000E-03    2.9993       -.38592E-07** at limit **
  18  Prefactor     41.689        38.222       -.31407E-05   -.43188E-03
  19  Prefactor     .10000E-03    3.1490       -.48142E-06** at limit **
  20  Prefactor     3.6679        3.7709        .18472E-05   -.79221E-03
  21  norm          5.1755        3.1873        .68411E-07   -.27906E-06
  22  Prefactor     8.6002        8.9526        .36438E-06   -.30424E-04
  23  Prefactor     .10000E-03    1.6918        .16679E-07** at limit **
  24  Prefactor     4.6083        2.4933        .43290E-08   -.24791E-04
  25  Prefactor     7.2460        7.2922        .18468E-05   -.48064E-03
  26  norm          .17010E-01    .13282        .42061E-07   -.13199E-02
  27  norm          17.315        7.1486       -.37170E-06   -.42791E-04
  28  Prefactor     .10003E-03    9.2352        .11989E-07** at limit **
  29  Normalizat    .70566        .21982       -.72588E-06   -.80721E-04
  30  Prefactor     1.3071        .22904       -.74795E-06   -.39651E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9602
  Prefactor  = 0.0001
  norm       = 33.4628
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.1277
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 3.50313
  Prefactor  = 0.000100002
  Prefactor  = 2.22654
  Prefactor  = 0.000100001
  Prefactor  = 43.1862
  Prefactor  = 2.72532
  Prefactor  = 56.0635
  norm       = 5.75473
  Prefactor  = 0.0001
  Prefactor  = 41.6885
  Prefactor  = 0.0001
  Prefactor  = 3.66787
  norm       = 5.17547
  Prefactor  = 8.60023
  Prefactor  = 0.0001
  Prefactor  = 4.60827
  Prefactor  = 7.24605
  norm       = 0.0170103
  norm       = 17.3154
  Prefactor  = 0.00010003
  Normalizat = 0.705665
  Prefactor  = 1.30711
 **********
 **   18 **HESSE 
 **********

 FCN=   5337.254     FROM HESSE     STATUS=OK           594 CALLS     4661 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.960        12.677        .10025E-03   -1.4909    
   2  Prefactor     .10000E-03    1.6229        .17892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          33.463        22.596        .69271E-04   -1.4550    
   4  Prefactor     .10000E-03    16.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.4135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.128        15.901        .75538E-04   -1.4647    
   7  Prefactor     .10000E-03    1.6948        .91960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    31.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5031        15.279        .21601E-03   -1.5334    
  10  Prefactor     .10000E-03    37.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2265        6.9699        .27454E-03   -1.5410    
  12  Prefactor     .10000E-03    18.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.186        18.241        .60999E-04   -1.4393    
  14  Prefactor     2.7253        2.0187        .85208E-04   -1.5378    
  15  Prefactor     56.063        35.877        .53577E-04   -1.4209    
  16  norm          5.7547        1.7284        .50262E-04   -1.5228    
  17  Prefactor     .10000E-03    3.0355        .12340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     41.689        40.088        .62062E-04   -1.4416    
  19  Prefactor     .10000E-03    3.3032        .25325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6679        3.8527        .70724E-03   -1.5325    
  21  norm          5.1755        3.1772        .97740E-04   -1.5253    
  22  Prefactor     8.6002        8.9502        .13666E-03   -1.5121    
  23  Prefactor     .10000E-03    1.7178        .92525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.6083        2.4635        .79971E-04   -1.5279    
  25  Prefactor     7.2460        7.3567        .74500E-03   -1.5170    
  26  norm          .17010E-01    .24922        .50997E-03   -1.5682    
  27  norm          17.315        7.1408        .96239E-04   -1.4875    
  28  Prefactor     .10003E-03    119.34        .41943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .70566        .25381        .31292E-03   -1.0367    
  30  Prefactor     1.3071        .26749        .27246E-03   -.83096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78575e-08
Minuit parameter uncertainties:
  1  12.6795
  2  1.93231e-06
  3  22.6021
  4  0.000133132
  5  3.39467e-06
  6  15.903
  7  7.57238e-06
  8  0.000875656
  9  14.638
  10  0.000580099
  11  6.97244
  12  0.000309518
  13  18.2432
  14  2.0187
  15  35.8912
  16  1.72844
  17  6.81198e-06
  18  40.1134
  19  4.15872e-05
  20  3.85292
  21  3.1773
  22  8.95162
  23  2.84374e-06
  24  2.46354
  25  7.35761
  26  0.129837
  27  7.14111
  28  0.00380727
  29  0.254237
  30  0.267776
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  3.095e-04  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.307e+00  2.678e-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.057e-01  2.542e-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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/79464/likelihoodResults_519523201_519782401_4FGL_J1148.5+2629_daily_bin1081.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) = 5337.25466321
delta logL = -0.000257104118646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5337.25440677
delta logL = -6.67018866807e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8191       1.0000          .0000       10.000    
     3 'Normalizat'    .70568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3071       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5337.254     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      271 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    16.313        .18142E-02** at limit **
   2  Index         2.8625        6.4122        .20000E-01   -.27618E-04
   3  Normalizat    .70566        .22539        .31292E-03   -.10296E-03
   4  Prefactor     1.3071        .26063        .27246E-03    .19557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Index      = 2.86247
  Normalizat = 0.705661
  Prefactor  = 1.30711
 **********
 **   18 **HESSE 
 **********

 FCN=   5337.254     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    16.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8625        6.4105        .40000E-02   -.44173    
   3  Normalizat    .70566        .22556        .12517E-04   -1.0367    
   4  Prefactor     1.3071        .26082        .54491E-04   -.83096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06232e-09
Minuit parameter uncertainties:
  1  0.000905576
  2  4.52101
  3  0.225853
  4  0.261085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79464': 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) = 5337.25440649
delta logL = -3.81000063499e-07

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  9.056e-04  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.862e+00  4.521e+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:  1.307e+00  2.611e-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.057e-01  2.259e-01  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/79464/cmap_HighResolution_519523201_519782401_4FGL_J1148.5+2629_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.03e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-04 11:52:17.738669', job_id='79464', GAL2='1.31', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630781537.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='-3.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='1081' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:52:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 79464: <4FGL_J1148.5+2629_daily_bin1081> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin1081> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 11:36:17 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:36:19 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:36:19 2021
Terminated at Sat Sep  4 11:52:18 2021
Results reported at Sat Sep  4 11:52:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin1081 177.141 26.4986 519523201 519782401 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 :                                   834.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

