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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin628
RA = 177.154, Dec = 18.6861
tmin = 402105601, tmax = 402364801
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='86268', job_status='RUN', time_executed='2021-09-04 11:56:44.821312', time_epoch_executed='1630781804.82' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86268

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86268/ft1_4FGL_J1148.6+1841_daily_bin628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86268/ft2_4FGL_J1148.6+1841_daily_bin628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86268/ft1_4FGL_J1148.6+1841_daily_bin628.fits outfile=/scratch/kocevski/86268/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin628.fits ra=177.154 dec=18.6861 rad=12.0 tmin=402105601.0 tmax=402364801.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.48
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86268/ft1_filtered_4FGL_J1148.6+1841_daily_bin628.fits" evtable="EVENTS" scfile=/scratch/kocevski/86268/ft2_4FGL_J1148.6+1841_daily_bin628.fits sctable="SC_DATA" outfile=/scratch/kocevski/86268/ltcube_402105601_402364801_4FGL_J1148.6+1841_daily_bin628.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/86268/ft2_4FGL_J1148.6+1841_daily_bin628.fits
.....................!
real 11.88
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86268/ft1_filtered_4FGL_J1148.6+1841_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/86268/ft2_4FGL_J1148.6+1841_daily_bin628.fits sctable="SC_DATA" expcube=/scratch/kocevski/86268/ltcube_402105601_402364801_4FGL_J1148.6+1841_daily_bin628.fits outfile=/scratch/kocevski/86268/expmap_402105601_402364801_4FGL_J1148.6+1841_daily_bin628.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/86268/ltcube_402105601_402364801_4FGL_J1148.6+1841_daily_bin628.fits
.....................!
real 190.03
user 184.19
sys 5.48

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/86268/ft1_filtered_4FGL_J1148.6+1841_daily_bin628.fits scfile=/scratch/kocevski/86268/ft2_4FGL_J1148.6+1841_daily_bin628.fits outfile=/scratch/kocevski/86268/cmap_402105601_402364801_4FGL_J1148.6+1841_daily_bin628.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86268/ft1_filtered_4FGL_J1148.6+1841_daily_bin628.fits scfile=/scratch/kocevski/86268/ft2_4FGL_J1148.6+1841_daily_bin628.fits outfile=/scratch/kocevski/86268/cmap_HighResolution_402105601_402364801_4FGL_J1148.6+1841_daily_bin628.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86268/ft1_filtered_4FGL_J1148.6+1841_daily_bin628.fits', '/scratch/kocevski/86268/ft2_4FGL_J1148.6+1841_daily_bin628.fits', expMap='/scratch/kocevski/86268/expmap_402105601_402364801_4FGL_J1148.6+1841_daily_bin628.fits', expCube='/scratch/kocevski/86268/ltcube_402105601_402364801_4FGL_J1148.6+1841_daily_bin628.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86268/Model_4FGL_J1148.6+1841_daily_bin628.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/86268/ft1_filtered_4FGL_J1148.6+1841_daily_bin628.fits
Spacecraft file(s): /scratch/kocevski/86268/ft2_4FGL_J1148.6+1841_daily_bin628.fits
Exposure map: /scratch/kocevski/86268/expmap_402105601_402364801_4FGL_J1148.6+1841_daily_bin628.fits
Exposure cube: /scratch/kocevski/86268/ltcube_402105601_402364801_4FGL_J1148.6+1841_daily_bin628.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86268/Model_4FGL_J1148.6+1841_daily_bin628.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) = 7243.60123219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5253       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.060       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.8053       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11851E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .22523       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .79920       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1579       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .66073       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3479       1.0000         .10000E-03   10000.    
    19 'norm      '    8.3633       1.0000         .10000E-03   10000.    
    20 'norm      '    8.7750       1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.604       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11511E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0318       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96162       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.

 FCN=   7243.589     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2723 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5255        24.228        .37655E-06    .80985E-04
   2  Prefactor     16.063        8.5676        .61598E-07    .18293E-03
   3  norm          .10000E-03    4.8758        .16059E-05** at limit **
   4  norm          2.8052        7.6166        .88702E-07    .21229E-03
   5  Prefactor     .10000E-03    5.9883        .18761E-06** at limit **
   6  Prefactor     .10000E-03    17.887       -.86812E-06** at limit **
   7  Prefactor     .10000E-03    8.5744        .84604E-06** at limit **
   8  Prefactor     .10000E-03    4.5148       -.10701E-05** at limit **
   9  Prefactor     .10000E-03    6.2251       -.14638E-05** at limit **
  10  Prefactor     .10000E-03    .71206       -.55064E-07** at limit **
  11  Prefactor     .10000E-03    3.4808       -.32812E-07** at limit **
  12  norm          .22518        .83180        .87382E-07    .15662E-02
  13  Prefactor     .76930        55.801       -.11720E-04    .26441E-03
  14  Prefactor     .10000E-03    2.7412       -.18305E-06** at limit **
  15  Prefactor     .10000E-03    24.107        .90786E-06** at limit **
  16  Prefactor     5.1579        3.9710        .23580E-06    .11062E-02
  17  Prefactor     .65745        3.0850        .60543E-06    .60987E-03
  18  Prefactor     6.3478        5.5897       -.64391E-07   -.21436E-03
  19  norm          8.3633        .65750        .24823E-08    .19761E-02
  20  norm          8.7748        5.8253       -.77797E-08    .29218E-04
  21  Prefactor     50.600        24.270        .87993E-06    .40129E-03
  22  Prefactor     .10000E-03    22.371       -.12498E-05** at limit **
  23  Normalizat    1.0319        .18333        .28115E-06    .50294E-03
  24  Prefactor     .96159        .18336        .80282E-06    .45888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.5255
  Prefactor  = 16.0632
  norm       = 0.000100001
  norm       = 2.8052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.225183
  Prefactor  = 0.769295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.15786
  Prefactor  = 0.657453
  Prefactor  = 6.34778
  norm       = 8.36329
  norm       = 8.7748
  Prefactor  = 50.6
  Prefactor  = 0.000100001
  Normalizat = 1.03188
  Prefactor  = 0.961587
 **********
 **   18 **HESSE 
 **********

 FCN=   7243.589     FROM HESSE     STATUS=OK           397 CALLS     3120 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5255        24.508        .25706E-03   -1.5390    
   2  Prefactor     16.063        8.4363        .99942E-04   -1.4906    
   3  norm          .10000E-03    4.9964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8052        7.6665        .24288E-03   -1.5373    
   5  Prefactor     .10000E-03    29.545        .39123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5800        .17777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2289        .13931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4869        .15507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .22518        .87243        .14883E-03   -1.5613    
  13  Prefactor     .76930        70.760        .50028E-02   -1.5533    
  14  Prefactor     .10000E-03    2.8194        .27524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1579        3.8216        .12259E-03   -1.5254    
  17  Prefactor     .65745        4.6820        .23662E-02   -1.5546    
  18  Prefactor     6.3478        5.5930        .79655E-03   -1.5204    
  19  norm          8.3633        .65810        .18429E-04   -1.5129    
  20  norm          8.7748        5.8246        .13531E-03   -1.5115    
  21  Prefactor     50.600        24.468        .56375E-04   -1.4284    
  22  Prefactor     .10000E-03    22.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0319        .21849        .28496E-03   -.91970    
  24  Prefactor     .96159        .22014        .30349E-03   -.94021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98637e-09
Minuit parameter uncertainties:
  1  15.7428
  2  8.43688
  3  0.000142009
  4  7.66921
  5  7.1076e-05
  6  0.000157728
  7  9.9335e-05
  8  9.45413e-05
  9  0.000153108
  10  4.21431e-06
  11  2.06943e-06
  12  0.872477
  13  14.7732
  14  1.8074e-05
  15  0.000188315
  16  3.82174
  17  3.50908
  18  5.59349
  19  0.6581
  20  5.82498
  21  24.473
  22  0.000311315
  23  0.218683
  24  0.220342
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.531e-04  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:  9.616e-01  2.203e-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.032e+00  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 7.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86268/likelihoodResults_402105601_402364801_4FGL_J1148.6+1841_daily_bin628.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) = 7243.58995244
delta logL = -0.000746819093365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7243.58920604
delta logL = -4.15958311351e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3476       1.0000          .0000       10.000    
     3 'Normalizat'    1.0317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96177       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=   7243.589     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      250 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    261.02        .18142E-02** at limit **
   2  Index         2.3751        5.0818        .50000       -.40243E-04
   3  Normalizat    1.0319        .30184E-01    .28496E-03   -.65031E-05
   4  Prefactor     .96159        .31297E-01    .30349E-03   -.56939E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.37512
  Normalizat = 1.03188
  Prefactor  = 0.961586
 **********
 **   18 **HESSE 
 **********

 FCN=   7243.589     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    922.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3751        6.6620        .50000       -.55269    
   3  Normalizat    1.0319        .68944E-01    .11398E-04   -.91970    
   4  Prefactor     .96159        .71484E-01    .12140E-04   -.94021    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.44907e-10
Minuit parameter uncertainties:
  1  0.00641893
  2  50.5283
  3  0.0689498
  4  0.0714911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86268': 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) = 7243.58920518
delta logL = 4.49482286058e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  6.419e-03  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.375e+00  5.053e+01  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:  9.616e-01  7.149e-02  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.032e+00  6.895e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.154 18.686

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/86268/cmap_HighResolution_402105601_402364801_4FGL_J1148.6+1841_daily_bin628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.40e-03', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-09-04 12:10:05.714200', job_id='86268', GAL2='0.96', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630782605.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='628' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:10:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 86268: <4FGL_J1148.6+1841_daily_bin628> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin628> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 11:56:22 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:56:23 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:56:23 2021
Terminated at Sat Sep  4 12:10:08 2021
Results reported at Sat Sep  4 12:10:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin628 177.154 18.6861 402105601 402364801 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 :                                   800.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            826 sec.

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

