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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1097
RA = 177.154, Dec = 18.6861
tmin = 523670401, tmax = 523929601
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='89378', job_status='RUN', time_executed='2021-09-04 12:08:48.032913', time_epoch_executed='1630782528.03' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1097'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89378

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89378/ft1_4FGL_J1148.6+1841_daily_bin1097.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89378/ft2_4FGL_J1148.6+1841_daily_bin1097.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89378/ft1_4FGL_J1148.6+1841_daily_bin1097.fits outfile=/scratch/kocevski/89378/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1097.fits ra=177.154 dec=18.6861 rad=12.0 tmin=523670401.0 tmax=523929601.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.57
user 3.30
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/89378/ft2_4FGL_J1148.6+1841_daily_bin1097.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89378/ft2_4FGL_J1148.6+1841_daily_bin1097.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/89378/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1097.fits evtable="EVENTS" outfile="/scratch/kocevski/89378/ft1_filtered_4FGL_J1148.6+1841_daily_bin1097.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.55
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89378/ft1_filtered_4FGL_J1148.6+1841_daily_bin1097.fits" evtable="EVENTS" scfile=/scratch/kocevski/89378/ft2_4FGL_J1148.6+1841_daily_bin1097.fits sctable="SC_DATA" outfile=/scratch/kocevski/89378/ltcube_523670401_523929601_4FGL_J1148.6+1841_daily_bin1097.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/89378/ft2_4FGL_J1148.6+1841_daily_bin1097.fits
.....................!
real 13.00
user 12.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89378/ft1_filtered_4FGL_J1148.6+1841_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/89378/ft2_4FGL_J1148.6+1841_daily_bin1097.fits sctable="SC_DATA" expcube=/scratch/kocevski/89378/ltcube_523670401_523929601_4FGL_J1148.6+1841_daily_bin1097.fits outfile=/scratch/kocevski/89378/expmap_523670401_523929601_4FGL_J1148.6+1841_daily_bin1097.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/89378/ltcube_523670401_523929601_4FGL_J1148.6+1841_daily_bin1097.fits
.....................!
real 191.68
user 186.73
sys 4.57

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1148.6+1841 @ 177.154 18.6861

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/89378/ft1_filtered_4FGL_J1148.6+1841_daily_bin1097.fits scfile=/scratch/kocevski/89378/ft2_4FGL_J1148.6+1841_daily_bin1097.fits outfile=/scratch/kocevski/89378/cmap_523670401_523929601_4FGL_J1148.6+1841_daily_bin1097.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.154 yref=18.6861 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/89378/ft1_filtered_4FGL_J1148.6+1841_daily_bin1097.fits scfile=/scratch/kocevski/89378/ft2_4FGL_J1148.6+1841_daily_bin1097.fits outfile=/scratch/kocevski/89378/cmap_HighResolution_523670401_523929601_4FGL_J1148.6+1841_daily_bin1097.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.154 yref=18.6861 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/89378/ft1_filtered_4FGL_J1148.6+1841_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/89378/ft2_4FGL_J1148.6+1841_daily_bin1097.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/89378/Model_4FGL_J1148.6+1841_daily_bin1097.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/89378/ft1_filtered_4FGL_J1148.6+1841_daily_bin1097.fits.....................!
real 54.80
user 53.42
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/89378/ft1_filtered_4FGL_J1148.6+1841_daily_bin1097.fits', '/scratch/kocevski/89378/ft2_4FGL_J1148.6+1841_daily_bin1097.fits', expMap='/scratch/kocevski/89378/expmap_523670401_523929601_4FGL_J1148.6+1841_daily_bin1097.fits', expCube='/scratch/kocevski/89378/ltcube_523670401_523929601_4FGL_J1148.6+1841_daily_bin1097.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/89378/Model_4FGL_J1148.6+1841_daily_bin1097.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1148.6+1841'

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.462e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/89378/ft1_filtered_4FGL_J1148.6+1841_daily_bin1097.fits
Spacecraft file(s): /scratch/kocevski/89378/ft2_4FGL_J1148.6+1841_daily_bin1097.fits
Exposure map: /scratch/kocevski/89378/expmap_523670401_523929601_4FGL_J1148.6+1841_daily_bin1097.fits
Exposure cube: /scratch/kocevski/89378/ltcube_523670401_523929601_4FGL_J1148.6+1841_daily_bin1097.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/89378/Model_4FGL_J1148.6+1841_daily_bin1097.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) = 5660.15261642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.780       1.0000         .10000E-03   10000.    
     4 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18056E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.099       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.146       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5128       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.0907       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11061E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0630       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5260       1.0000         .10000E-03   10000.    
    19 'norm      '    .35775       1.0000         .10000E-03   10000.    
    20 'norm      '    .40994       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.543       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0029       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3966       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68702       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+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=   5660.130     FROM MIGRAD    STATUS=CONVERGED   1001 CALLS     3224 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2734        27.780        .22308E-03   -.17684E-04
   2  Prefactor     .10000E-03    3.9372        .14470E-02** at limit **
   3  norm          14.778        14.816        .10418E-03   -.39284E-04
   4  norm          .10000E-03    2.7382        .12154E-02** at limit **
   5  Prefactor     .10000E-03    11.181        .64885E-01** at limit **
   6  Prefactor     13.133        24.122        .11067E-03   -.50334E-05
   7  Prefactor     .10000E-03    5.0020        .16430E-02** at limit **
   8  Prefactor     12.103        20.051        .11494E-03   -.87337E-04
   9  Prefactor     2.5228        13.147        .25775E-03   -.46268E-04
  10  Prefactor     .10000E-03    2.4171        .16103E-02** at limit **
  11  Prefactor     .10000E-03    5.0926        .16545E-02** at limit **
  12  norm          5.0916        1.6672        .53332E-04   -.12278E-03
  13  Prefactor     .10000E-03    11.179        .18142E-02** at limit **
  14  Prefactor     .10000E-03    6.5367        .25840E-02** at limit **
  15  Prefactor     .10000E-03    60.465        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.1979        .80018E-03** at limit **
  17  Prefactor     3.0616        3.5402        .14348E-03   -.12535E-03
  18  Prefactor     9.4594        11.521        .12984E-03    .88171E-04
  19  norm          .35765        .29156        .35061E-03    .48132E-03
  20  norm          .46820        35.682        .28395E-02    .77521E-04
  21  Prefactor     21.537        17.027        .86296E-04    .82996E-05
  22  Prefactor     1.9959        104.76        .29261E-03   -.41960E-05
  23  Normalizat    1.3968        .23437        .22856E-03   -.65300E-04
  24  Prefactor     .68697        .21274        .30667E-03   -.16667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.27344
  Prefactor  = 0.0001
  norm       = 14.7776
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.133
  Prefactor  = 0.0001
  Prefactor  = 12.1031
  Prefactor  = 2.52277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.09163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.06163
  Prefactor  = 9.45944
  norm       = 0.357645
  norm       = 0.468202
  Prefactor  = 21.5372
  Prefactor  = 1.99587
  Normalizat = 1.39676
  Prefactor  = 0.686974
 **********
 **   18 **HESSE 
 **********

 FCN=   5660.130     FROM HESSE     STATUS=OK           387 CALLS     3611 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2734        27.773        .89231E-05   -1.5346    
   2  Prefactor     .10000E-03    3.9387        .28941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.778        14.814        .41673E-05   -1.4939    
   4  norm          .10000E-03    2.7382        .24308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8213        .71545E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.133        24.122        .44270E-05   -1.4983    
   7  Prefactor     .10000E-03    5.0021        .32861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.103        20.048        .45976E-05   -1.5012    
   9  Prefactor     2.5228        13.139        .10310E-04   -1.5390    
  10  Prefactor     .10000E-03    2.4253        .32206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.0933        .33091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0916        1.6672        .21333E-05   -1.5257    
  13  Prefactor     .10000E-03    11.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5644        .51679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    60.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.1980        .16004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0616        3.5397        .57394E-05   -1.5358    
  18  Prefactor     9.4594        10.908        .51937E-05   -1.5093    
  19  norm          .35765        .29139        .14024E-04   -1.5588    
  20  norm          .46820        32.007        .11358E-03   -1.5571    
  21  Prefactor     21.537        17.015        .34518E-05   -1.4779    
  22  Prefactor     1.9959        104.61        .11705E-04   -1.5425    
  23  Normalizat    1.3968        .23436        .45712E-04   -.80722    
  24  Prefactor     .68697        .21283        .12267E-04   -1.0404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88992e-10
Minuit parameter uncertainties:
  1  19.0812
  2  3.49221e-06
  3  14.818
  4  2.24029e-06
  5  7.46766e-05
  6  24.1402
  7  1.96874e-06
  8  20.0591
  9  11.5183
  10  1.37079e-05
  11  2.17964e-06
  12  1.66721
  13  5.99598e-06
  14  3.52228e-05
  15  3.94131e-05
  16  2.62969e-06
  17  3.53998
  18  10.9099
  19  0.291387
  20  7.74582
  21  17.0191
  22  28.9523
  23  0.234544
  24  0.213077
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  2.523e+00  1.152e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  6.870e-01  2.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.397e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89378/likelihoodResults_523670401_523929601_4FGL_J1148.6+1841_daily_bin1097.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) = 5659.90125773
delta logL = 0.229153690385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5659.78764779
delta logL = 0.342763625868

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53631       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9910       1.0000          .0000       10.000    
     3 'Normalizat'    1.3377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72070       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5659.788     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      238 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53561        11.126        .11418E-01    .15487E-02
   2  Index         3.9918        2.9585        .99262E-01    .18301E-03
   3  Normalizat    1.3376        .40469E-01    .52653E-01   -.15184E-04
   4  Prefactor     .72079        .39792E-01    .67806E-01   -.34952E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.535612
  Index      = 3.99177
  Normalizat = 1.33763
  Prefactor  = 0.720791
 **********
 **   18 **HESSE 
 **********

 FCN=   5659.788     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53561        35.155        .62828E-04   -1.5562    
   2  Index         3.9918        6.9827        .61078E-02   -.20304    
   3  Normalizat    1.3376        .18639        .23280E-03   -.82450    
   4  Prefactor     .72079        .18107        .30003E-03   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6259e-09
Minuit parameter uncertainties:
  1  8.68314
  2  7.20152
  3  0.186485
  4  0.181222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89378': 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) = 5659.78764748
delta logL = 0.342763937105

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  5.356e-01  8.683e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  3.992e+00  7.202e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  7.208e-01  1.812e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.338e+00  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 177.154 18.686

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/89378/cmap_HighResolution_523670401_523929601_4FGL_J1148.6+1841_daily_bin1097.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.90e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-04 12:20:37.741642', job_id='89378', GAL2='0.72', fit_tolerance='1e-08', EG2='1.34', EG='1.40', time_epoch_completed='1630783237.74', return_code2='102', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='3.43e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1097' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:20:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 89378: <4FGL_J1148.6+1841_daily_bin1097> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1097> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:06:17 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:06:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 12:06:20 2021
Terminated at Sat Sep  4 12:20:38 2021
Results reported at Sat Sep  4 12:20:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1097 177.154 18.6861 523670401 523929601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1148.6+1841 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   703.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            861 sec.

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

