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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin1031
RA = 177.141, Dec = 26.4986
tmin = 506563201, tmax = 506822401
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='79386', job_status='RUN', time_executed='2021-09-04 11:36:25.821655', time_epoch_executed='1630780585.82' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='1031'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79386

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79386/ft1_4FGL_J1148.5+2629_daily_bin1031.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79386/ft2_4FGL_J1148.5+2629_daily_bin1031.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79386/ft1_4FGL_J1148.5+2629_daily_bin1031.fits outfile=/scratch/kocevski/79386/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1031.fits ra=177.141 dec=26.4986 rad=12.0 tmin=506563201.0 tmax=506822401.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 3.36
user 3.16
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79386/ft1_filtered_4FGL_J1148.5+2629_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/79386/ft2_4FGL_J1148.5+2629_daily_bin1031.fits sctable="SC_DATA" expcube=/scratch/kocevski/79386/ltcube_506563201_506822401_4FGL_J1148.5+2629_daily_bin1031.fits outfile=/scratch/kocevski/79386/expmap_506563201_506822401_4FGL_J1148.5+2629_daily_bin1031.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/79386/ltcube_506563201_506822401_4FGL_J1148.5+2629_daily_bin1031.fits
.....................!
real 191.20
user 184.81
sys 6.02

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/79386/ft1_filtered_4FGL_J1148.5+2629_daily_bin1031.fits scfile=/scratch/kocevski/79386/ft2_4FGL_J1148.5+2629_daily_bin1031.fits outfile=/scratch/kocevski/79386/cmap_506563201_506822401_4FGL_J1148.5+2629_daily_bin1031.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/79386/ft1_filtered_4FGL_J1148.5+2629_daily_bin1031.fits scfile=/scratch/kocevski/79386/ft2_4FGL_J1148.5+2629_daily_bin1031.fits outfile=/scratch/kocevski/79386/cmap_HighResolution_506563201_506822401_4FGL_J1148.5+2629_daily_bin1031.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5055       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2137       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9691       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9552       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7660       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.250       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.018       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7752       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .91538E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    7.5169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8033       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11181E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4786       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5196       1.0000         .10000E-03   10000.    
    21 'norm      '    5.0900       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1471       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .19034       1.0000         .10000E-03   10000.    
    27 'norm      '    7.6111       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.7744       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85206       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1334       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=   6141.675     FROM MIGRAD    STATUS=CONVERGED   1401 CALLS     4069 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2834        .15801E-02** at limit **
   2  Prefactor     .10000E-03    .82721        .69229E-03** at limit **
   3  norm          .10000E-03    10.067        .18142E-02** at limit **
   4  Prefactor     3.5058        6.0233        .10797E-02    .13386E-03
   5  norm          .10000E-03    4.0286        .15314E-02** at limit **
   6  Prefactor     2.2143        5.8511        .13822E-02    .25411E-03
   7  Prefactor     2.9692        2.2969        .99105E-04   -.31317E-04
   8  Prefactor     .10000E-03    18.070        .18142E-02** at limit **
   9  Prefactor     4.5854        22.236        .18811E-03    .13900E-04
  10  Prefactor     3.9510        12.214        .20283E-03    .69392E-04
  11  Prefactor     9.7663        6.3882        .12823E-03    .58072E-04
  12  Prefactor     12.249        17.204        .11445E-03   -.15635E-03
  13  Prefactor     14.019        11.997        .10698E-03    .58767E-04
  14  Prefactor     2.7757        2.0286        .88840E-04    .10365E-04
  15  Prefactor     .74492E-01    33.519        .98669E-01    .90585E-04
  16  norm          7.5168        1.7194        .46521E-04   -.53665E-03
  17  Prefactor     4.8036        4.5341        .14810E-03    .25255E-04
  18  Prefactor     .10000E-03    196.05        .36285E-02** at limit **
  19  Prefactor     4.4792        4.0911        .62224E-03    .13785E-03
  20  Prefactor     3.5193        4.4697        .15969E-03    .12629E-03
  21  norm          5.0898        2.9183        .97460E-04   -.13962E-02
  22  Prefactor     6.1466        6.3528        .80962E-03    .43979E-04
  23  Prefactor     .10000E-03    1.4095        .89857E-03** at limit **
  24  Prefactor     .10001E-03    3.4960        .18314E-02** at limit **
  25  Prefactor     .10000E-03    9.6024        .29824E-02** at limit **
  26  norm          .19040        .23696        .41119E-03    .98114E-02
  27  norm          7.6116        4.3628        .11943E-03    .21323E-03
  28  Prefactor     6.7739        7.8627        .15416E-03   -.32279E-03
  29  Normalizat    .85189        .22293        .26723E-03   -.55859E-04
  30  Prefactor     1.1335        .23364        .27014E-03   -.30209E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.50578
  norm       = 0.0001
  Prefactor  = 2.21429
  Prefactor  = 2.96916
  Prefactor  = 0.0001
  Prefactor  = 4.58538
  Prefactor  = 3.95104
  Prefactor  = 9.76627
  Prefactor  = 12.2494
  Prefactor  = 14.0189
  Prefactor  = 2.77569
  Prefactor  = 0.0744915
  norm       = 7.51685
  Prefactor  = 4.80359
  Prefactor  = 0.000100003
  Prefactor  = 4.47924
  Prefactor  = 3.51932
  norm       = 5.08982
  Prefactor  = 6.14662
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100002
  norm       = 0.190395
  norm       = 7.61162
  Prefactor  = 6.77394
  Normalizat = 0.851886
  Prefactor  = 1.13353
 **********
 **   18 **HESSE 
 **********

 FCN=   6141.675     FROM HESSE     STATUS=OK           576 CALLS     4645 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2840        .31602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .82726        .13846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5058        6.0200        .43187E-04   -1.5333    
   5  norm          .10000E-03    4.0293        .30628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2143        5.8475        .55288E-04   -1.5410    
   7  Prefactor     2.9692        2.2967        .39642E-05   -1.5363    
   8  Prefactor     .10000E-03    18.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5854        22.161        .75244E-05   -1.5280    
  10  Prefactor     3.9510        12.195        .81130E-05   -1.5310    
  11  Prefactor     9.7663        6.3843        .51292E-05   -1.5083    
  12  Prefactor     12.249        17.202        .45780E-05   -1.5008    
  13  Prefactor     14.019        11.996        .42792E-05   -1.4959    
  14  Prefactor     2.7757        2.0284        .35536E-05   -1.5375    
  15  Prefactor     .74492E-01    30.443        .10442       -1.5653    
  16  norm          7.5168        1.7194        .93043E-05   -1.5160    
  17  Prefactor     4.8036        4.5327        .59239E-05   -1.5270    
  18  Prefactor     .10000E-03    197.38        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4792        4.0876        .24890E-04   -1.5285    
  20  Prefactor     3.5193        4.4675        .63876E-05   -1.5333    
  21  norm          5.0898        2.9175        .38984E-05   -1.5257    
  22  Prefactor     6.1466        6.3521        .32385E-04   -1.5212    
  23  Prefactor     .10000E-03    1.4096        .17971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    3.5174        .36629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.6605        .59648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .19040        .23675        .82238E-04   -1.5621    
  27  norm          7.6116        4.3619        .47771E-05   -1.5156    
  28  Prefactor     6.7739        7.8621        .61663E-05   -1.5187    
  29  Normalizat    .85189        .22285        .10689E-04   -.98172    
  30  Prefactor     1.1335        .23382        .54027E-04   -.88402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78915e-09
Minuit parameter uncertainties:
  1  2.87532e-06
  2  1.03194e-06
  3  9.28791e-06
  4  6.02104
  5  1.97924e-06
  6  5.84896
  7  2.29681
  8  9.00574e-06
  9  20.1727
  10  12.2023
  11  6.38473
  12  17.2085
  13  11.998
  14  2.02847
  15  3.01132
  16  1.71937
  17  4.53298
  18  0.00165581
  19  4.08788
  20  4.46795
  21  2.91757
  22  6.35283
  23  6.20729e-08
  24  0.000357058
  25  0.000269089
  26  0.23675
  27  4.3621
  28  7.86331
  29  0.223088
  30  0.234029
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
614   Normalization:  8.519e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/79386/likelihoodResults_506563201_506822401_4FGL_J1148.5+2629_daily_bin1031.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) = 6140.9621911
delta logL = 0.712919761628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6140.9463474
delta logL = 0.728763459169

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4663       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8426       1.0000          .0000       10.000    
     3 'Normalizat'    .80468       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1707       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6140.946     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      296 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4500        136.88        .61260E-03   -.41717E-03
   2  Index         4.8456        7.0910        .91454E-02   -.36157E-04
   3  Normalizat    .80450        .19296        .27390E-03   -.16258E-03
   4  Prefactor     1.1709        .22092        .26633E-03   -.63945E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44995
  Index      = 4.84559
  Normalizat = 0.804497
  Prefactor  = 1.17089
 **********
 **   18 **HESSE 
 **********

 FCN=   6140.946     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4500        9.7263        .24504E-04   -1.5286    
   2  Index         4.8456        1.9691        .36581E-03   -.30887E-01
   3  Normalizat    .80450        .20615        .10956E-04   -.99902    
   4  Prefactor     1.1709        .23354        .10653E-04   -.87232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36948e-11
Minuit parameter uncertainties:
  1  9.72973
  2  2.02397
  3  0.20635
  4  0.233743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79386': 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) = 6140.94634518
delta logL = 0.728765682084

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  4.450e+00  9.730e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  4.846e+00  2.024e+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.171e+00  2.337e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  8.045e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 177.141 26.499
Photon Index (Free Index): 4.85 +/- 2.02
Photon Flux (Free Index): 6.47e-08 +/- 5.11e-08
Energy Flux (Free Index): 8.72e-06 +/- 6.94e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/79386/cmap_HighResolution_506563201_506822401_4FGL_J1148.5+2629_daily_bin1031.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-03', comment='SUCCESS', energy_flux2='8.72e-06', dlogl='7.29e-01', photon_flux2='6.47e-08', job_status='DONE', time_completed='2021-09-04 11:52:12.272354', photon_index_error2='2.02', photon_index2='4.85', ts='0.69', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='6.94e-06', EG='0.85', time_epoch_completed='1630781532.27', return_code='0', job_id='79386', GAL2='1.17', EG2='0.80', return_code2='0', photon_flux_error2='5.11e-08', ts2='2.25', photon_index='2.92' WHERE bin_id='1031' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:52:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 79386: <4FGL_J1148.5+2629_daily_bin1031> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin1031 177.141 26.4986 506563201 506822401 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 :                                   943.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

