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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1412
RA = 177.154, Dec = 18.6861
tmin = 605318401, tmax = 605577601
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='89876', job_status='RUN', time_executed='2021-09-04 12:08:01.317645', time_epoch_executed='1630782481.32' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89876

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89876/ft1_4FGL_J1148.6+1841_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89876/ft2_4FGL_J1148.6+1841_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89876/ft1_4FGL_J1148.6+1841_daily_bin1412.fits outfile=/scratch/kocevski/89876/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1412.fits ra=177.154 dec=18.6861 rad=12.0 tmin=605318401.0 tmax=605577601.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 5.48
user 5.20
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89876/ft1_filtered_4FGL_J1148.6+1841_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/89876/ft2_4FGL_J1148.6+1841_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/89876/ltcube_605318401_605577601_4FGL_J1148.6+1841_daily_bin1412.fits outfile=/scratch/kocevski/89876/expmap_605318401_605577601_4FGL_J1148.6+1841_daily_bin1412.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/89876/ltcube_605318401_605577601_4FGL_J1148.6+1841_daily_bin1412.fits
.....................!
real 192.92
user 187.62
sys 4.86

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/89876/ft1_filtered_4FGL_J1148.6+1841_daily_bin1412.fits scfile=/scratch/kocevski/89876/ft2_4FGL_J1148.6+1841_daily_bin1412.fits outfile=/scratch/kocevski/89876/cmap_605318401_605577601_4FGL_J1148.6+1841_daily_bin1412.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/89876/ft1_filtered_4FGL_J1148.6+1841_daily_bin1412.fits scfile=/scratch/kocevski/89876/ft2_4FGL_J1148.6+1841_daily_bin1412.fits outfile=/scratch/kocevski/89876/cmap_HighResolution_605318401_605577601_4FGL_J1148.6+1841_daily_bin1412.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82532E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .55670       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5506       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.604       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0648       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8916       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6040       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5600       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .19917       1.0000         .10000E-03   10000.    
    20 'norm      '    9.9517       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.8308       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6614       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97586       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3131       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=   5342.051     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     3185 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14250E-02    22.898       -.24961E-05** at limit **
   2  Prefactor     .10000E-03    5.0890       -.13054E-07** at limit **
   3  norm          .60198        8.9710        .48951E-06   -.64466E-04
   4  norm          .10000E-03    13.386       -.59648E-06** at limit **
   5  Prefactor     .10000E-03    15.666       -.25480E-07** at limit **
   6  Prefactor     .10000E-03    16.907       -.17927E-07** at limit **
   7  Prefactor     4.5553        52.560        .30722E-06   -.46467E-04
   8  Prefactor     21.593        28.938       -.25086E-05   -.47508E-04
   9  Prefactor     .10000E-03    4.2717       -.56293E-08** at limit **
  10  Prefactor     1.0659        1.8738        .16971E-05    .67541E-03
  11  Prefactor     2.8904        10.314        .84617E-06   -.24405E-04
  12  norm          4.6040        1.8265       -.16300E-07   -.11411E-03
  13  Prefactor     .10000E-03    7.4125        .55543E-07** at limit **
  14  Prefactor     .10000E-03    6.2511       -.41344E-07** at limit **
  15  Prefactor     .10000E-03    64.367        .18577E-06** at limit **
  16  Prefactor     .10000E-03    1.8836       -.25534E-08** at limit **
  17  Prefactor     6.5606        3.8100        .82507E-07   -.14370E-03
  18  Prefactor     .10000E-03    2.6308       -.33119E-07** at limit **
  19  norm          .19897        .28894        .12803E-06   -.25979E-03
  20  norm          9.9529        6.6249       -.55623E-07   -.56877E-04
  21  Prefactor     8.8194        16.749        .14781E-05   -.69182E-04
  22  Prefactor     3.6316        153.87       -.28291E-05    .25754E-04
  23  Normalizat    .97584        .21969       -.58568E-06   -.34231E-04
  24  Prefactor     1.3131        .21629       -.31034E-06   -.11386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.001425
  Prefactor  = 0.0001
  norm       = 0.601984
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.55533
  Prefactor  = 21.5932
  Prefactor  = 0.0001
  Prefactor  = 1.06593
  Prefactor  = 2.89039
  norm       = 4.60398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.56062
  Prefactor  = 0.0001
  norm       = 0.198974
  norm       = 9.95286
  Prefactor  = 8.81941
  Prefactor  = 3.63156
  Normalizat = 0.975835
  Prefactor  = 1.31306
 **********
 **   18 **HESSE 
 **********

 FCN=   5342.051     FROM HESSE     STATUS=OK           415 CALLS     3600 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14250E-02    26.699        .99480E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.1160        .16099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .60198        71.198        .40512E-02   -1.5553    
   4  norm          .10000E-03    13.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5553        52.403        .18871E-03   -1.5281    
   8  Prefactor     21.593        29.097        .86175E-04   -1.4778    
   9  Prefactor     .10000E-03    4.2843        .14752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0659        1.8697        .13907E-02   -1.5501    
  11  Prefactor     2.8904        10.282        .23898E-03   -1.5368    
  12  norm          4.6040        1.8262        .59710E-04   -1.5279    
  13  Prefactor     .10000E-03    7.4302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5313        .35631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    64.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9558        .19551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5606        3.7979        .10364E-03   -1.5196    
  18  Prefactor     .10000E-03    2.6353        .11575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .19897        .26900        .44226E-03   -1.5619    
  20  norm          9.9529        6.6122        .12702E-03   -1.5077    
  21  Prefactor     8.8194        16.419        .13488E-03   -1.5114    
  22  Prefactor     3.6316        146.97        .21110E-03   -1.5327    
  23  Normalizat    .97584        .25996        .28274E-03   -.93844    
  24  Prefactor     1.3131        .25790        .25371E-03   -.82919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07591e-09
Minuit parameter uncertainties:
  1  0.37634
  2  8.67878e-06
  3  13.1084
  4  6.11021e-05
  5  2.74751e-05
  6  7.19829e-07
  7  30.9346
  8  29.1157
  9  1.15978e-07
  10  1.86984
  11  10.2883
  12  1.8262
  13  3.43725e-06
  14  7.92942e-06
  15  6.14322e-05
  16  1.39181e-06
  17  3.79809
  18  7.36675e-07
  19  0.268999
  20  6.61269
  21  16.4274
  22  46.3262
  23  0.260293
  24  0.258147
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.160e-07  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.313e+00  2.581e-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.758e-01  2.603e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89876/likelihoodResults_605318401_605577601_4FGL_J1148.6+1841_daily_bin1412.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) = 5342.05170045
delta logL = -0.00110497944843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5342.0505954
delta logL = 7.02029865352e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3080       1.0000          .0000       10.000    
     3 'Normalizat'    .97584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3131       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=   5342.051     FROM MIGRAD    STATUS=FAILED        91 CALLS      243 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10301E-03    6.3194        .14881E-01** at limit **
   2  Index         1.9591        8.2035        .50000        .76167E-05
   3  Normalizat    .97584        .59068E-02    .28274E-03   -.16607E-04
   4  Prefactor     1.3131        .60633E-02    .25371E-03   -.13354E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5342.051     FROM SIMPLEX   STATUS=PROGRESS      99 CALLS      342 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10050E-03    6.3194        .27228E-03** at limit **
   2  Index         1.9505        8.2035        .30893E-02    .76167E-05
   3  Normalizat    .97582        .59068E-02    .59444E-05   -.16607E-04
   4  Prefactor     1.3130        .60633E-02    .68569E-05   -.13354E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5342.051     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      375 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    284.93        .15884E-02** at limit **
   2  Index         1.8707        5.6979        .50000        .22729E-05
   3  Normalizat    .97582        .42265E-01    .11309E-04   -.57433E-02
   4  Prefactor     1.3130        .43381E-01    .10148E-04   -.64977E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010006
  Index      = 1.87074
  Normalizat = 0.975824
  Prefactor  = 1.31304
 **********
 **   18 **HESSE 
 **********

 FCN=   5342.051     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      404 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    964.29        .31768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8707        8.1328        .50000       -.67622    
   3  Normalizat    .97582        .11635        .22619E-05   -.93845    
   4  Prefactor     1.3130        .11923        .20296E-05   -.82920    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.43171e-08
Minuit parameter uncertainties:
  1  0.0154475
  2  2518.49
  3  0.116376
  4  0.119254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89876': 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) = 5342.05059379
delta logL = 1.68073438545e-06

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.001e-04  1.545e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  1.871e+00  2.518e+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.313e+00  1.193e-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.758e-01  1.164e-01  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/89876/cmap_HighResolution_605318401_605577601_4FGL_J1148.6+1841_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-03', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-09-04 12:19:45.731099', job_id='89876', GAL2='1.31', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630783185.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='1.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1412' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:19:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 89876: <4FGL_J1148.6+1841_daily_bin1412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1412 177.154 18.6861 605318401 605577601 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 :                                   688.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            770 sec.

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

