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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1409
RA = 177.154, Dec = 18.6861
tmin = 604540801, tmax = 604800001
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='89873', job_status='RUN', time_executed='2021-09-04 12:07:14.174665', time_epoch_executed='1630782434.17' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89873

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89873/ft1_4FGL_J1148.6+1841_daily_bin1409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89873/ft2_4FGL_J1148.6+1841_daily_bin1409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89873/ft1_4FGL_J1148.6+1841_daily_bin1409.fits outfile=/scratch/kocevski/89873/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1409.fits ra=177.154 dec=18.6861 rad=12.0 tmin=604540801.0 tmax=604800001.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.66
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89873/ft1_filtered_4FGL_J1148.6+1841_daily_bin1409.fits" evtable="EVENTS" scfile=/scratch/kocevski/89873/ft2_4FGL_J1148.6+1841_daily_bin1409.fits sctable="SC_DATA" outfile=/scratch/kocevski/89873/ltcube_604540801_604800001_4FGL_J1148.6+1841_daily_bin1409.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/89873/ft2_4FGL_J1148.6+1841_daily_bin1409.fits
.....................!
real 11.86
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89873/ft1_filtered_4FGL_J1148.6+1841_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/89873/ft2_4FGL_J1148.6+1841_daily_bin1409.fits sctable="SC_DATA" expcube=/scratch/kocevski/89873/ltcube_604540801_604800001_4FGL_J1148.6+1841_daily_bin1409.fits outfile=/scratch/kocevski/89873/expmap_604540801_604800001_4FGL_J1148.6+1841_daily_bin1409.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/89873/ltcube_604540801_604800001_4FGL_J1148.6+1841_daily_bin1409.fits
.....................!
real 191.29
user 185.42
sys 5.06

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/89873/ft1_filtered_4FGL_J1148.6+1841_daily_bin1409.fits scfile=/scratch/kocevski/89873/ft2_4FGL_J1148.6+1841_daily_bin1409.fits outfile=/scratch/kocevski/89873/cmap_604540801_604800001_4FGL_J1148.6+1841_daily_bin1409.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89873/ft1_filtered_4FGL_J1148.6+1841_daily_bin1409.fits scfile=/scratch/kocevski/89873/ft2_4FGL_J1148.6+1841_daily_bin1409.fits outfile=/scratch/kocevski/89873/cmap_HighResolution_604540801_604800001_4FGL_J1148.6+1841_daily_bin1409.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/89873/ft1_filtered_4FGL_J1148.6+1841_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/89873/ft2_4FGL_J1148.6+1841_daily_bin1409.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/89873/Model_4FGL_J1148.6+1841_daily_bin1409.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/89873/ft1_filtered_4FGL_J1148.6+1841_daily_bin1409.fits.....................!
real 60.38
user 59.03
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2369       1.0000         .10000E-03   10000.    
     3 'norm      '    13.357       1.0000         .10000E-03   10000.    
     4 'norm      '    6.5131       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.171       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.685       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1339       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4881       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5933       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7206       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6749       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24967E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5429       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .32596E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1207       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0668       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=   6462.959     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2799 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.401       -.67666E-05** at limit **
   2  Prefactor     6.2369        7.5153        .76224E-06    .91340E-04
   3  norm          13.356        12.737        .18054E-06   -.93074E-04
   4  norm          6.5162        13.885        .28164E-05    .76426E-04
   5  Prefactor     40.171        17.384        .17311E-06   -.89138E-05
   6  Prefactor     .10000E-03    124.62        .73689E-05** at limit **
   7  Prefactor     14.680        25.635        .57769E-07   -.68248E-05
   8  Prefactor     7.1383        22.960        .26106E-05    .20557E-04
   9  Prefactor     .10000E-03    3.3940        .17434E-07** at limit **
  10  Prefactor     1.4881        1.7679       -.25611E-07   -.66243E-04
  11  Prefactor     3.5943        7.7769       -.15577E-06   -.42158E-04
  12  norm          3.7209        1.7421       -.20864E-08   -.65178E-04
  13  Prefactor     .10000E-03    8.2789        .12735E-06** at limit **
  14  Prefactor     .10000E-03    2.2985        .21262E-06** at limit **
  15  Prefactor     .10000E-03    41.504        .66797E-05** at limit **
  16  Prefactor     .10000E-03    2.5225        .59042E-07** at limit **
  17  Prefactor     3.6761        3.8204        .26598E-06   -.83608E-04
  18  Prefactor     .10004E-03    8.9083       -.43489E-05** at limit **
  19  norm          .10000E-03    .11248        .81014E-07** at limit **
  20  norm          3.5485        4.9908        .23823E-05    .49833E-03
  21  Prefactor     .10000E-03    8.7225        .13255E-06** at limit **
  22  Prefactor     .10000E-03    26.845       -.12718E-05** at limit **
  23  Normalizat    1.1206        .19595       -.13601E-05   -.88131E-04
  24  Prefactor     1.0667        .18699       -.79271E-06   -.13031E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 6.2369
  norm       = 13.3559
  norm       = 6.51619
  Prefactor  = 40.1715
  Prefactor  = 0.0001
  Prefactor  = 14.6805
  Prefactor  = 7.13831
  Prefactor  = 0.0001
  Prefactor  = 1.48807
  Prefactor  = 3.59434
  norm       = 3.72088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67607
  Prefactor  = 0.000100045
  norm       = 0.0001
  norm       = 3.54853
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.1206
  Prefactor  = 1.06675
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.959     FROM HESSE     STATUS=OK           409 CALLS     3208 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2369        7.5193        .16074E-03   -1.5208    
   3  norm          13.356        12.714        .10960E-03   -1.4977    
   4  norm          6.5162        13.773        .78627E-03   -1.5197    
   5  Prefactor     40.171        17.400        .63243E-04   -1.4439    
   6  Prefactor     .10000E-03    126.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.680        25.607        .10452E-03   -1.4941    
   8  Prefactor     7.1383        22.805        .75093E-03   -1.5174    
   9  Prefactor     .10000E-03    3.3984        .14463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4881        1.7382        .10853E-03   -1.5464    
  11  Prefactor     3.5943        7.7531        .21317E-03   -1.5329    
  12  norm          3.7209        1.7372        .68664E-04   -1.5322    
  13  Prefactor     .10000E-03    8.2979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3505        .23441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.6084        .24748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.6761        3.7847        .14767E-03   -1.5324    
  18  Prefactor     .10004E-03    25.461        .36671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .34101        .51174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5485        5.3166        .10737E-02   -1.5331    
  21  Prefactor     .10000E-03    55.279        .46030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1206        .23273        .26467E-03   -.89093    
  24  Prefactor     1.0667        .22369        .27153E-03   -.90537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10453e-09
Minuit parameter uncertainties:
  1  0.000555639
  2  7.52042
  3  12.7162
  4  13.7799
  5  17.4025
  6  0.000446329
  7  25.6263
  8  22.8323
  9  3.06924e-06
  10  1.73823
  11  7.75522
  12  1.7372
  13  1.55516e-05
  14  4.07585e-05
  15  0.000222923
  16  7.42769e-06
  17  3.78497
  18  0.00213935
  19  5.86651e-06
  20  5.31734
  21  0.000701547
  22  3.5835e-07
  23  0.232948
  24  0.223887
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  3.069e-06  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:  1.067e+00  2.239e-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.121e+00  2.329e-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: 5.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89873/likelihoodResults_604540801_604800001_4FGL_J1148.6+1841_daily_bin1409.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) = 6462.9608164
delta logL = -0.0013900054837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6462.95942633
delta logL = 6.25286702416e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3095       1.0000          .0000       10.000    
     3 'Normalizat'    1.1206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0667       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6462.959     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10165E-03    73.216        .14563E-02** at limit **
   2  Index         2.2241        5.7662        .50000        .26778E-04
   3  Normalizat    1.1206        .21898E-01    .26467E-03   -.24226E-04
   4  Prefactor     1.0667        .22084E-01    .27153E-03    .11263E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6462.959     FROM SIMPLEX   STATUS=UNCHANGED    139 CALLS      383 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10165E-03    73.216        .34843E-03** at limit **
   2  Index         2.2241        5.7662        .50935E-03    .26778E-04
   3  Normalizat    1.1206        .21898E-01    .48752E-05   -.24226E-04
   4  Prefactor     1.0667        .22084E-01    .47397E-05    .11263E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6462.959     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      427 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    86.452        .29127E-02** at limit **
   2  Index         1.8289        5.9958        .50000       -.88854E-06
   3  Normalizat    1.1206        .22731E-01    .10587E-04    .10373E-03
   4  Prefactor     1.0667        .22924E-01    .10861E-04    .11116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.82888
  Normalizat = 1.1206
  Prefactor  = 1.06675
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.959     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      454 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    374.92        .58254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8289        5.9123        .50000       -.68700    
   3  Normalizat    1.1206        .52925E-01    .21174E-05   -.89093    
   4  Prefactor     1.0667        .53368E-01    .21722E-05   -.90536    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.5851e-08
Minuit parameter uncertainties:
  1  0.000403553
  2  1339.48
  3  0.0529279
  4  0.0533703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89873': 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) = 6462.95942442
delta logL = 1.97442204808e-06

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  4.036e-04  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  1.829e+00  1.339e+03  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:  1.067e+00  5.337e-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.121e+00  5.293e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/89873/cmap_HighResolution_604540801_604800001_4FGL_J1148.6+1841_daily_bin1409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2021-09-04 12:19:26.178844', job_id='89873', GAL2='1.07', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630783166.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.97e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1409' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:19:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 89873: <4FGL_J1148.6+1841_daily_bin1409> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1409> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:06:55 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:06:57 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:57 2021
Terminated at Sat Sep  4 12:19:26 2021
Results reported at Sat Sep  4 12:19:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1409 177.154 18.6861 604540801 604800001 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 :                                   730.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            751 sec.

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

