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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1320
RA = 177.154, Dec = 18.6861
tmin = 581472001, tmax = 581731201
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='89731', job_status='RUN', time_executed='2021-09-04 12:07:41.566656', time_epoch_executed='1630782461.57' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89731

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89731/ft1_4FGL_J1148.6+1841_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89731/ft2_4FGL_J1148.6+1841_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89731/ft1_4FGL_J1148.6+1841_daily_bin1320.fits outfile=/scratch/kocevski/89731/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1320.fits ra=177.154 dec=18.6861 rad=12.0 tmin=581472001.0 tmax=581731201.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.77
user 2.55
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89731/ft1_filtered_4FGL_J1148.6+1841_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/89731/ft2_4FGL_J1148.6+1841_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/89731/ltcube_581472001_581731201_4FGL_J1148.6+1841_daily_bin1320.fits outfile=/scratch/kocevski/89731/expmap_581472001_581731201_4FGL_J1148.6+1841_daily_bin1320.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/89731/ltcube_581472001_581731201_4FGL_J1148.6+1841_daily_bin1320.fits
.....................!
real 190.71
user 185.52
sys 4.66

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/89731/ft1_filtered_4FGL_J1148.6+1841_daily_bin1320.fits scfile=/scratch/kocevski/89731/ft2_4FGL_J1148.6+1841_daily_bin1320.fits outfile=/scratch/kocevski/89731/cmap_581472001_581731201_4FGL_J1148.6+1841_daily_bin1320.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=177.154 yref=18.6861 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89731/ft1_filtered_4FGL_J1148.6+1841_daily_bin1320.fits scfile=/scratch/kocevski/89731/ft2_4FGL_J1148.6+1841_daily_bin1320.fits outfile=/scratch/kocevski/89731/cmap_HighResolution_581472001_581731201_4FGL_J1148.6+1841_daily_bin1320.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.57
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3474       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0531       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2478       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2841       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.863       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10665E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6457       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4986       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5927       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10968E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .15522       1.0000         .10000E-03   10000.    
    20 'norm      '    15.438       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    71.888       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96602       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0859       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=   7928.283     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2427 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3341        25.380        .31496E-07   -.42078E-03
   2  Prefactor     4.0528        4.4557        .43919E-07    .36899E-05
   3  norm          .10000E-03    3.0726       -.59027E-07** at limit **
   4  norm          1.2482        3.3240        .55940E-06   -.16143E-02
   5  Prefactor     9.2838        7.3335       -.10824E-06    .24693E-04
   6  Prefactor     12.863        30.742       -.22760E-06    .15267E-05
   7  Prefactor     .10000E-03    6.9403       -.10094E-05** at limit **
   8  Prefactor     .10000E-03    32.222       -.24517E-04** at limit **
   9  Prefactor     .10000E-03    8.5343        .20578E-05** at limit **
  10  Prefactor     1.6469        1.5830        .13897E-06    .11471E-02
  11  Prefactor     .10000E-03    2.1705        .15800E-08** at limit **
  12  norm          .10000E-03    .30926        .12851E-07** at limit **
  13  Prefactor     3.4962        10.469        .66136E-08   -.30690E-03
  14  Prefactor     .10000E-03    1.3982       -.69017E-07** at limit **
  15  Prefactor     .10000E-03    27.067        .26226E-04** at limit **
  16  Prefactor     .10000E-03    .64988        .21561E-07** at limit **
  17  Prefactor     1.5926        2.1841        .13131E-06    .47783E-04
  18  Prefactor     .10007E-03    3.7179       -.16327E-05** at limit **
  19  norm          .15523        .12359        .10292E-07    .14519E-02
  20  norm          15.439        6.0995       -.74478E-07    .93510E-03
  21  Prefactor     .10000E-03    15.779        .22005E-05** at limit **
  22  Prefactor     71.877        38.050       -.90958E-05   -.51450E-04
  23  Normalizat    .96604        .15160        .13537E-05    .45665E-03
  24  Prefactor     1.0859        .15243       -.27135E-06    .42344E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33407
  Prefactor  = 4.05275
  norm       = 0.0001
  norm       = 1.24825
  Prefactor  = 9.28379
  Prefactor  = 12.8632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.64692
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.49624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.59257
  Prefactor  = 0.000100074
  norm       = 0.155227
  norm       = 15.439
  Prefactor  = 0.000100001
  Prefactor  = 71.8767
  Normalizat = 0.966039
  Prefactor  = 1.08586
 **********
 **   18 **HESSE 
 **********

 FCN=   7928.283     FROM HESSE     STATUS=OK           399 CALLS     2826 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3341        31.736        .18857E-02   -1.5477    
   2  Prefactor     4.0528        4.4486        .18997E-03   -1.5305    
   3  norm          .10000E-03    3.0878        .15240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2482        8.3901        .20031E-02   -1.5485    
   5  Prefactor     9.2838        7.3346        .13153E-03   -1.5098    
   6  Prefactor     12.863        30.806        .11169E-03   -1.4991    
   7  Prefactor     .10000E-03    6.9614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.732        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.6492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6469        1.5669        .10359E-03   -1.5451    
  11  Prefactor     .10000E-03    2.1732        .12811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .51104        .95957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4962        10.608        .10808E-02   -1.5334    
  14  Prefactor     .10000E-03    4.8627        .20065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .65331        .69978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5926        2.1589        .14678E-03   -1.5456    
  18  Prefactor     .10007E-03    14.918        .31706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .15523        .12795        .26844E-03   -1.5629    
  20  norm          15.439        5.8668        .10194E-03   -1.4922    
  21  Prefactor     .10000E-03    15.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     71.877        38.169        .47349E-04   -1.4010    
  23  Normalizat    .96604        .17780        .24513E-03   -.94177    
  24  Prefactor     1.0859        .17891        .24518E-03   -.89920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70153e-08
Minuit parameter uncertainties:
  1  13.0208
  2  4.449
  3  3.15969e-06
  4  6.47345
  5  7.33532
  6  30.8441
  7  3.43972e-06
  8  0.000148229
  9  2.53498e-05
  10  1.56691
  11  1.18614e-06
  12  2.32792e-07
  13  10.6141
  14  5.77916e-05
  15  6.21509e-05
  16  1.95383e-07
  17  2.15897
  18  0.00210318
  19  0.127945
  20  5.86706
  21  0.000297115
  22  38.1817
  23  0.177905
  24  0.17901
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.535e-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.086e+00  1.790e-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:  9.660e-01  1.779e-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: 6.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89731/likelihoodResults_581472001_581731201_4FGL_J1148.6+1841_daily_bin1320.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) = 7928.28396483
delta logL = -0.00055111175152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7928.28341391
delta logL = -1.94931089936e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10732E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3523       1.0000          .0000       10.000    
     3 'Normalizat'    .96605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0859       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=   7928.283     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      238 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    198.73        .18142E-02** at limit **
   2  Index         2.3901        8.6054        .50000       -.45379E-04
   3  Normalizat    .96604        .17258E-01    .24513E-03   -.30688E-03
   4  Prefactor     1.0859        .18270E-01    .24518E-03   -.17682E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100021
  Index      = 2.39014
  Normalizat = 0.966037
  Prefactor  = 1.08586
 **********
 **   18 **HESSE 
 **********

 FCN=   7928.283     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    786.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3901        7.0351        .50000       -.54916    
   3  Normalizat    .96604        .37770E-01    .49026E-04   -.94177    
   4  Prefactor     1.0859        .39985E-01    .49035E-04   -.89920    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.13416e-10
Minuit parameter uncertainties:
  1  0.00819044
  2  39.1169
  3  0.0377714
  4  0.0399859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89731': 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) = 7928.28341313
delta logL = 5.90462150285e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  8.190e-03  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.390e+00  3.912e+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:  1.086e+00  3.999e-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:  9.660e-01  3.777e-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/89731/cmap_HighResolution_581472001_581731201_4FGL_J1148.6+1841_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-03', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-04 12:20:42.028047', job_id='89731', GAL2='1.09', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630783242.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='5.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1320' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:20:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 89731: <4FGL_J1148.6+1841_daily_bin1320> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1320> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:06:44 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:06:46 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:46 2021
Terminated at Sat Sep  4 12:20:42 2021
Results reported at Sat Sep  4 12:20:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1320 177.154 18.6861 581472001 581731201 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 :                                   769.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

