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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1283
RA = 177.154, Dec = 18.6861
tmin = 571881601, tmax = 572140801
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='91105', job_status='RUN', time_executed='2021-09-04 12:15:36.549366', time_epoch_executed='1630782936.55' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91105

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91105/ft1_4FGL_J1148.6+1841_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91105/ft2_4FGL_J1148.6+1841_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91105/ft1_4FGL_J1148.6+1841_daily_bin1283.fits outfile=/scratch/kocevski/91105/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1283.fits ra=177.154 dec=18.6861 rad=12.0 tmin=571881601.0 tmax=572140801.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.64
user 2.31
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91105/ft1_filtered_4FGL_J1148.6+1841_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/91105/ft2_4FGL_J1148.6+1841_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/91105/ltcube_571881601_572140801_4FGL_J1148.6+1841_daily_bin1283.fits outfile=/scratch/kocevski/91105/expmap_571881601_572140801_4FGL_J1148.6+1841_daily_bin1283.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/91105/ltcube_571881601_572140801_4FGL_J1148.6+1841_daily_bin1283.fits
.....................!
real 190.96
user 184.83
sys 5.70

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/91105/ft1_filtered_4FGL_J1148.6+1841_daily_bin1283.fits scfile=/scratch/kocevski/91105/ft2_4FGL_J1148.6+1841_daily_bin1283.fits outfile=/scratch/kocevski/91105/cmap_571881601_572140801_4FGL_J1148.6+1841_daily_bin1283.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/91105/ft1_filtered_4FGL_J1148.6+1841_daily_bin1283.fits scfile=/scratch/kocevski/91105/ft2_4FGL_J1148.6+1841_daily_bin1283.fits outfile=/scratch/kocevski/91105/cmap_HighResolution_571881601_572140801_4FGL_J1148.6+1841_daily_bin1283.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.55
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    97.506       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10810E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    34.036       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.481       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    82.970       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24485E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3858       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.8224       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8651       1.0000         .10000E-03   10000.    
    15 'Prefactor '    84.955       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0638       1.0000         .10000E-03   10000.    
    19 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.5472       1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.669       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1885       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79575       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=   2612.087     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2774 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     97.517        124.23       -.38688E-07   -.68875E-05
   2  Prefactor     .10000E-03    22.216       -.15229E-05** at limit **
   3  norm          .10000E-03    49.195        .17467E-05** at limit **
   4  norm          34.098        60.512       -.72560E-06   -.43116E-04
   5  Prefactor     22.500        46.221       -.15705E-06   -.38407E-04
   6  Prefactor     .10000E-03    153.53        .18438E-05** at limit **
   7  Prefactor     82.976        78.938        .83200E-07   -.74461E-05
   8  Prefactor     .10000E-03    60.136       -.15660E-06** at limit **
   9  Prefactor     .10025E-03    22.465        .27204E-05** at limit **
  10  Prefactor     2.3876        5.1389       -.10662E-06   -.97469E-04
  11  Prefactor     7.8255        10.140        .14980E-07   -.27459E-04
  12  norm          1.7601        2.2410        .37710E-08   -.33154E-04
  13  Prefactor     .10000E-03    11.419       -.68932E-06** at limit **
  14  Prefactor     4.8625        7.0056       -.16372E-06   -.20508E-03
  15  Prefactor     85.003        104.88       -.48192E-06   -.30058E-04
  16  Prefactor     .10000E-03    2.9533        .50476E-06** at limit **
  17  Prefactor     .10000E-03    1.8206        .30050E-06** at limit **
  18  Prefactor     1.0619        16.781        .18487E-05    .19034E-04
  19  norm          .10000E-03    .24038        .54555E-06** at limit **
  20  norm          .10000E-03    3.5361        .19912E-06** at limit **
  21  Prefactor     8.5503        16.158        .12661E-06   -.13999E-04
  22  Prefactor     53.673        44.442       -.31108E-07   -.31850E-04
  23  Normalizat    1.1876        .31151        .45785E-06   -.38511E-03
  24  Prefactor     .79615        .27883       -.24566E-05   -.27613E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 97.5173
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 34.0979
  Prefactor  = 22.5001
  Prefactor  = 0.0001
  Prefactor  = 82.9758
  Prefactor  = 0.0001
  Prefactor  = 0.000100249
  Prefactor  = 2.38764
  Prefactor  = 7.82552
  norm       = 1.76009
  Prefactor  = 0.0001
  Prefactor  = 4.86252
  Prefactor  = 85.0028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.06194
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.55029
  Prefactor  = 53.6734
  Normalizat = 1.18759
  Prefactor  = 0.796146
 **********
 **   18 **HESSE 
 **********

 FCN=   2612.087     FROM HESSE     STATUS=OK           395 CALLS     3169 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     97.517        124.21        .20354E-03   -1.3730    
   2  Prefactor     .10000E-03    22.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    50.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          34.098        60.574        .68687E-04   -1.4539    
   5  Prefactor     22.500        46.153        .84479E-04   -1.4759    
   6  Prefactor     .10000E-03    154.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     82.976        78.952        .44098E-04   -1.3884    
   8  Prefactor     .10000E-03    60.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10025E-03    140.10        .40070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3876        5.1037        .16025E-03   -1.5399    
  11  Prefactor     7.8255        10.134        .14337E-03   -1.5148    
  12  norm          1.7601        2.2285        .83818E-04   -1.5443    
  13  Prefactor     .10000E-03    11.412        .16855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8625        6.9882        .76820E-03   -1.5267    
  15  Prefactor     85.003        104.81        .21792E-03   -1.3861    
  16  Prefactor     .10000E-03    3.0709        .17176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8458        .67445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0619        17.288        .19999E-02   -1.5502    
  19  norm          .10000E-03    .25676        .44588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.5438        .93887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.5503        16.141        .13711E-03   -1.5123    
  22  Prefactor     53.673        44.409        .54750E-04   -1.4241    
  23  Normalizat    1.1876        .37393        .25582E-03   -.86987    
  24  Prefactor     .79615        .33501        .27925E-03   -.99871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16923e-09
Minuit parameter uncertainties:
  1  124.543
  2  7.73161e-05
  3  0.00020746
  4  60.6834
  5  46.2267
  6  0.000477804
  7  79.0523
  8  4.52043e-05
  9  0.0118406
  10  5.1046
  11  10.1359
  12  2.22864
  13  2.19822e-05
  14  6.98938
  15  105.042
  16  1.10505e-05
  17  6.16874e-06
  18  8.57184
  19  2.67219e-06
  20  3.24606e-06
  21  16.149
  22  44.4362
  23  0.374774
  24  0.335876
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.002e-04  1.184e-02  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:  7.961e-01  3.359e-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.188e+00  3.748e-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.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91105/likelihoodResults_571881601_572140801_4FGL_J1148.6+1841_daily_bin1283.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) = 2612.08711302
delta logL = -3.32583858835e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2612.08711302
delta logL = -3.32522158715e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96339E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3226       1.0000          .0000       10.000    
     3 'Normalizat'    1.1876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79614       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=   2612.087     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      227 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    .65392        .90715E-01** at limit **
   2  Index         2.4250        8.6667        .50000       -.31639E-05
   3  Normalizat    1.1876        .16136E-02    .57849E-01    .31362E-03
   4  Prefactor     .79614        .14801E-02    .63131E-01    .17849E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010007
  Index      = 2.42502
  Normalizat = 1.1876
  Prefactor  = 0.796141
 **********
 **   18 **HESSE 
 **********

 FCN=   2612.087     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      260 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    159.04        .36914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4250        7.0936        .50000       -.54100    
   3  Normalizat    1.1876        .64691E-02    .25583E-03   -.86987    
   4  Prefactor     .79614        .59298E-02    .27925E-03   -.99871    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.22345e-09
Minuit parameter uncertainties:
  1  0.00667278
  2  77.0627
  3  0.00646908
  4  0.00592978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91105': 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) = 2612.08707965
delta logL = 1.16774117487e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.001e-04  6.673e-03  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.425e+00  7.706e+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:  7.961e-01  5.930e-03  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.188e+00  6.469e-03  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/91105/cmap_HighResolution_571881601_572140801_4FGL_J1148.6+1841_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.57e-07', time_completed='2021-09-04 12:23:23.867783', job_id='91105', GAL2='0.80', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630783403.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1283' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:23:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 91105: <4FGL_J1148.6+1841_daily_bin1283> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1283> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 12:11:17 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:11:18 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:11:18 2021
Terminated at Sat Sep  4 12:23:24 2021
Results reported at Sat Sep  4 12:23:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1283 177.154 18.6861 571881601 572140801 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 :                                   464.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            727 sec.

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

