/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 36 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 = 7346
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1281
RA = 177.154, Dec = 18.6861
tmin = 571363201, tmax = 571622401
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='89668', job_status='RUN', time_executed='2021-09-04 12:07:37.796137', time_epoch_executed='1630782457.8' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89668/ft1_4FGL_J1148.6+1841_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89668/ft2_4FGL_J1148.6+1841_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89668/ft1_4FGL_J1148.6+1841_daily_bin1281.fits outfile=/scratch/kocevski/89668/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1281.fits ra=177.154 dec=18.6861 rad=12.0 tmin=571363201.0 tmax=571622401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.91
user 2.67
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89668/ft1_filtered_4FGL_J1148.6+1841_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/89668/ft2_4FGL_J1148.6+1841_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/89668/ltcube_571363201_571622401_4FGL_J1148.6+1841_daily_bin1281.fits outfile=/scratch/kocevski/89668/expmap_571363201_571622401_4FGL_J1148.6+1841_daily_bin1281.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/89668/ltcube_571363201_571622401_4FGL_J1148.6+1841_daily_bin1281.fits
.....................!
real 193.93
user 187.31
sys 5.65

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/89668/ft1_filtered_4FGL_J1148.6+1841_daily_bin1281.fits scfile=/scratch/kocevski/89668/ft2_4FGL_J1148.6+1841_daily_bin1281.fits outfile=/scratch/kocevski/89668/cmap_571363201_571622401_4FGL_J1148.6+1841_daily_bin1281.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89668/ft1_filtered_4FGL_J1148.6+1841_daily_bin1281.fits scfile=/scratch/kocevski/89668/ft2_4FGL_J1148.6+1841_daily_bin1281.fits outfile=/scratch/kocevski/89668/cmap_HighResolution_571363201_571622401_4FGL_J1148.6+1841_daily_bin1281.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.772       1.0000         .10000E-03   10000.    
     3 'norm      '    12.568       1.0000         .10000E-03   10000.    
     4 'norm      '    75.932       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    165.15       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37394E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.562       1.0000         .10000E-03   10000.    
    12 'norm      '    .75881       1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.471       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3177       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11353E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .27838       1.0000         .10000E-03   10000.    
    20 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    66.139       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .38032       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2144.643     FROM MIGRAD    STATUS=CONVERGED    109 CALLS     2276 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    42.990        .69298E-04** at limit **
   2  Prefactor     10.761        1.5097        .12572E-05   -.38752E-03
   3  norm          12.549        4.1694       -.58820E-05   -.14676E-02
   4  norm          75.778        44.374       -.38215E-04    .88256E-04
   5  Prefactor     .10000E-03    28.844       -.95070E-05** at limit **
   6  Prefactor     165.11        11.586       -.75158E-05    .95641E-02
   7  Prefactor     .10150E-03    4.2916        .17013E-04** at limit **
   8  Prefactor     .10005E-03    46.345       -.95998E-04** at limit **
   9  Prefactor     .10000E-03    12.512       -.11246E-04** at limit **
  10  Prefactor     .10000E-03    1.1820        .49980E-05** at limit **
  11  Prefactor     34.528        5.0239        .84654E-06   -.76611E-02
  12  norm          .75769        1.1663       -.38832E-05    .10025E-03
  13  Prefactor     65.360        30.955       -.28146E-04   -.59049E-03
  14  Prefactor     7.3066        8.4978        .13048E-06   -.70193E-04
  15  Prefactor     .10012E-03    114.11        .90278E-04** at limit **
  16  Prefactor     .10000E-03    1.8479        .33276E-05** at limit **
  17  Prefactor     .10000E-03    1.6658        .25709E-05** at limit **
  18  Prefactor     .10000E-03    3.2417       -.48243E-06** at limit **
  19  norm          .27745        .31809       -.44905E-06   -.17211E-03
  20  norm          .10000E-03    2.5601        .83373E-06** at limit **
  21  Prefactor     .10000E-03    8.2506       -.35641E-05** at limit **
  22  Prefactor     66.114        7.3681       -.67336E-05   -.68395E-04
  23  Normalizat    .38216        .39355        .34775E-04   -.12596E-04
  24  Prefactor     1.3936        .37121        .15581E-05   -.22113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100032
  Prefactor  = 10.7607
  norm       = 12.5487
  norm       = 75.7782
  Prefactor  = 0.0001
  Prefactor  = 165.109
  Prefactor  = 0.0001015
  Prefactor  = 0.000100046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.5279
  norm       = 0.757689
  Prefactor  = 65.3597
  Prefactor  = 7.30657
  Prefactor  = 0.000100122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.27745
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.114
  Normalizat = 0.382165
  Prefactor  = 1.39365
 **********
 **   18 **HESSE 
 **********

 FCN=   2144.643     FROM HESSE     STATUS=OK           443 CALLS     2719 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    43.114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.761        24.132        .30518E-02   -1.5052    
   3  norm          12.549        30.381        .28248E-02   -1.4999    
   4  norm          75.778        54.040        .11520E-02   -1.3965    
   5  Prefactor     .10000E-03    28.825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     165.11        144.42        .78467E-03   -1.3131    
   7  Prefactor     .10150E-03    147.67        .10647E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10005E-03    46.381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.494        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1788        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.528        31.321        .17041E-02   -1.4532    
  12  norm          .75769        1.2375        .12285E-01   -1.5534    
  13  Prefactor     65.360        54.754        .12400E-02   -1.4089    
  14  Prefactor     7.3066        8.5921        .37068E-02   -1.5167    
  15  Prefactor     .10012E-03    118.25        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.6600        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .27745        .33341        .57780E-02   -1.5603    
  20  norm          .10000E-03    2.5573        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2482        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     66.114        46.049        .12337E-02   -1.4080    
  23  Normalizat    .38216        .39348        .92676E-01   -1.1823    
  24  Prefactor     1.3936        .35056        .51908E-01   -.80563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39206e-06
Minuit parameter uncertainties:
  1  0.00233714
  2  24.1543
  3  30.4181
  4  54.0748
  5  1.03101e-05
  6  144.726
  7  0.0298383
  8  0.00293235
  9  1.26299e-05
  10  2.90914e-06
  11  31.3363
  12  1.23759
  13  54.796
  14  8.5935
  15  0.00761568
  16  1.48685e-06
  17  1.66008e-06
  18  1.91667e-06
  19  0.333411
  20  8.84e-08
  21  8.27336e-06
  22  46.0736
  23  0.396369
  24  0.351161
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.263e-05  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.394e+00  3.512e-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:  3.822e-01  3.964e-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: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89668/likelihoodResults_571363201_571622401_4FGL_J1148.6+1841_daily_bin1281.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) = 2144.64310037
delta logL = -0.000376897585284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2144.64272345
delta logL = 2.27605596592e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3099       1.0000          .0000       10.000    
     3 'Normalizat'    .38216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3937       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=   2144.643     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    174.21        .16092E-02** at limit **
   2  Index         2.2561        5.7722        .50000        .73143E-05
   3  Normalizat    .38216        .28569E-01    .41058E-03    .13291E-05
   4  Prefactor     1.3936        .29302E-01    .22947E-03    .27992E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100926
  Index      = 2.25611
  Normalizat = 0.382165
  Prefactor  = 1.39365
 **********
 **   18 **HESSE 
 **********

 FCN=   2144.643     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10093E-03    725.82        .32184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2561        7.4658        .50000       -.58090    
   3  Normalizat    .38216        .62114E-01    .16423E-04   -1.1823    
   4  Prefactor     1.3936        .63703E-01    .91788E-05   -.80563    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54439e-08
Minuit parameter uncertainties:
  1  0.0525004
  2  1203.76
  3  0.062125
  4  0.0637062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89668': 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) = 2144.64272338
delta logL = 9.14851625566e-08

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.009e-04  5.250e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.256e+00  1.204e+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.394e+00  6.371e-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:  3.822e-01  6.212e-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/89668/cmap_HighResolution_571363201_571622401_4FGL_J1148.6+1841_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.62e-07', time_completed='2021-09-04 12:15:02.519093', job_id='89668', GAL2='1.39', fit_tolerance='1e-08', EG2='0.38', EG='0.38', time_epoch_completed='1630782902.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='9.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1281' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:15:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 89668: <4FGL_J1148.6+1841_daily_bin1281> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1281> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:06:40 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:06:41 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:41 2021
Terminated at Sat Sep  4 12:15:04 2021
Results reported at Sat Sep  4 12:15:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1281 177.154 18.6861 571363201 571622401 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 :                                   437.11 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   501 sec.
    Turnaround time :                            504 sec.

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

