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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1115
RA = 177.154, Dec = 18.6861
tmin = 528336001, tmax = 528595201
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='89405', job_status='RUN', time_executed='2021-09-04 12:06:31.421031', time_epoch_executed='1630782391.42' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89405/ft1_4FGL_J1148.6+1841_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89405/ft2_4FGL_J1148.6+1841_daily_bin1115.fits


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

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

Done.
real 3.43
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89405/ft1_filtered_4FGL_J1148.6+1841_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/89405/ft2_4FGL_J1148.6+1841_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/89405/ltcube_528336001_528595201_4FGL_J1148.6+1841_daily_bin1115.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/89405/ft2_4FGL_J1148.6+1841_daily_bin1115.fits
.....................!
real 11.85
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89405/ft1_filtered_4FGL_J1148.6+1841_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/89405/ft2_4FGL_J1148.6+1841_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/89405/ltcube_528336001_528595201_4FGL_J1148.6+1841_daily_bin1115.fits outfile=/scratch/kocevski/89405/expmap_528336001_528595201_4FGL_J1148.6+1841_daily_bin1115.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/89405/ltcube_528336001_528595201_4FGL_J1148.6+1841_daily_bin1115.fits
.....................!
real 192.05
user 187.15
sys 4.49

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/89405/ft1_filtered_4FGL_J1148.6+1841_daily_bin1115.fits scfile=/scratch/kocevski/89405/ft2_4FGL_J1148.6+1841_daily_bin1115.fits outfile=/scratch/kocevski/89405/cmap_528336001_528595201_4FGL_J1148.6+1841_daily_bin1115.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89405/ft1_filtered_4FGL_J1148.6+1841_daily_bin1115.fits scfile=/scratch/kocevski/89405/ft2_4FGL_J1148.6+1841_daily_bin1115.fits outfile=/scratch/kocevski/89405/cmap_HighResolution_528336001_528595201_4FGL_J1148.6+1841_daily_bin1115.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.163       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3002       1.0000         .10000E-03   10000.    
     3 'norm      '    .12447       1.0000         .10000E-03   10000.    
     4 'norm      '    .44272       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.532       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.491       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12352E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6891       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .16276       1.0000         .10000E-03   10000.    
    20 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5572       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10692E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3690       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75596       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=   5806.629     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2811 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.161        22.343        .16776E-05   -.31486E-04
   2  Prefactor     2.2969        4.7067        .32846E-05   -.34683E-03
   3  norm          .89227E-01    6.1574       -.76014E-05   -.34136E-03
   4  norm          .43368        7.8202        .40869E-06    .10986E-03
   5  Prefactor     .10000E-03    7.8182       -.23380E-05** at limit **
   6  Prefactor     55.617        48.554        .73172E-04    .35299E-03
   7  Prefactor     .10000E-03    9.0176        .31192E-05** at limit **
   8  Prefactor     .10000E-03    8.7324       -.75876E-06** at limit **
   9  Prefactor     .10000E-03    6.1999       -.12483E-05** at limit **
  10  Prefactor     .10000E-03    .69043        .12954E-06** at limit **
  11  Prefactor     .10000E-03    7.0630        .20175E-05** at limit **
  12  norm          11.490        2.2844        .33821E-06   -.42090E-03
  13  Prefactor     .10000E-03    8.6734       -.15168E-05** at limit **
  14  Prefactor     .10000E-03    2.9590        .14055E-05** at limit **
  15  Prefactor     .10000E-03    32.081       -.17642E-05** at limit **
  16  Prefactor     .10000E-03    2.1176       -.12315E-06** at limit **
  17  Prefactor     6.6884        4.4439        .27120E-05   -.78527E-03
  18  Prefactor     .10000E-03    3.0610        .10914E-06** at limit **
  19  norm          .16317        .28645        .43238E-06   -.10216E-02
  20  norm          .10000E-03    1.8560        .52248E-07** at limit **
  21  Prefactor     9.5674        14.635       -.28413E-05   -.70509E-04
  22  Prefactor     .10000E-03    16.183        .57736E-06** at limit **
  23  Normalizat    1.3692        .19904       -.93423E-05    .59268E-03
  24  Prefactor     .75531        .18858       -.42706E-05   -.37793E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.1607
  Prefactor  = 2.29686
  norm       = 0.0892272
  norm       = 0.433684
  Prefactor  = 0.0001
  Prefactor  = 55.6168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.68841
  Prefactor  = 0.0001
  norm       = 0.163167
  norm       = 0.0001
  Prefactor  = 9.56743
  Prefactor  = 0.0001
  Normalizat = 1.36918
  Prefactor  = 0.755307
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.629     FROM HESSE     STATUS=OK           403 CALLS     3214 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.161        22.365        .74189E-04   -1.4627    
   2  Prefactor     2.2969        4.6720        .22908E-03   -1.5405    
   3  norm          .89227E-01    9.3403        .66282E-01   -1.5648    
   4  norm          .43368        38.792        .40699E-02   -1.5576    
   5  Prefactor     .10000E-03    7.8590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     55.617        48.972        .26915E-03   -1.4215    
   7  Prefactor     .10000E-03    9.0528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.7578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .70185        .61803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.490        2.2881        .49512E-04   -1.5030    
  13  Prefactor     .10000E-03    8.6917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.7233        .25152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1800        .21573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6884        4.4208        .12174E-03   -1.5191    
  18  Prefactor     .10000E-03    3.0781        .13017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .16317        .27489        .49435E-04   -1.5627    
  20  norm          .10000E-03    1.8592        .10137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5674        14.633        .12963E-03   -1.5089    
  22  Prefactor     .10000E-03    16.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3692        .23370        .23608E-03   -.81524    
  24  Prefactor     .75531        .22328        .30224E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27358e-09
Minuit parameter uncertainties:
  1  22.3715
  2  4.67276
  3  1.82509
  4  8.20786
  5  1.65998e-05
  6  49.0074
  7  4.66511e-05
  8  5.66023e-05
  9  1.42096e-05
  10  1.18988e-05
  11  4.67054e-05
  12  2.28811
  13  1.86416e-05
  14  2.46956e-05
  15  4.17016e-05
  16  1.53834e-05
  17  4.42104
  18  2.38048e-05
  19  0.274892
  20  8.64267e-06
  21  14.6388
  22  6.42524e-05
  23  0.23388
  24  0.223545
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.421e-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:  7.553e-01  2.235e-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.369e+00  2.339e-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: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89405/likelihoodResults_528336001_528595201_4FGL_J1148.6+1841_daily_bin1115.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) = 5806.62933513
delta logL = -0.000764070628975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5806.62857115
delta logL = -8.69531504577e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3321       1.0000          .0000       10.000    
     3 'Normalizat'    1.3691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75537       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=   5806.629     FROM MIGRAD    STATUS=FAILED        92 CALLS      249 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    848.52        .18142E-02** at limit **
   2  Index         2.3419        6.8124        .50000       -.13976E-04
   3  Normalizat    1.3692        .71659E-01    .23608E-03    .21959E-04
   4  Prefactor     .75532        .70642E-01    .30224E-03    .13278E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5806.629     FROM SIMPLEX   STATUS=UNCHANGED    181 CALLS      430 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    848.52        .48411E-03** at limit **
   2  Index         2.3419        6.8124        .47587E-06   -.13976E-04
   3  Normalizat    1.3692        .71659E-01    .16463E-07    .21959E-04
   4  Prefactor     .75532        .70642E-01    .17339E-07    .13278E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5806.629     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      464 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0883        .36285E-03** at limit **
   2  Index         2.3420        6.1239        .50000       -.13980E-04
   3  Normalizat    1.3692        .22336        .94431E-05    .19744E-04
   4  Prefactor     .75532        .22017        .12090E-04    .11472E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.34198
  Normalizat = 1.36917
  Prefactor  = 0.755316
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.629     FROM HESSE     STATUS=OK            29 CALLS      493 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3447        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3420        6.1710        .50000       -.56049    
   3  Normalizat    1.3692        .22356        .18886E-05   -.81525    
   4  Prefactor     .75532        .22037        .24179E-05   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46328e-10
Minuit parameter uncertainties:
  1  0.000174142
  2  4.26253
  3  0.223717
  4  0.220622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89405': 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): 0
logL (Free Index) = 5806.628571
delta logL = 6.23540472589e-08

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.741e-04  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.342e+00  4.263e+00  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.553e-01  2.206e-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.369e+00  2.237e-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/89405/cmap_HighResolution_528336001_528595201_4FGL_J1148.6+1841_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2021-09-04 12:18:06.925747', job_id='89405', GAL2='0.76', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630783086.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='6.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1115' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:18:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 89405: <4FGL_J1148.6+1841_daily_bin1115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1115 177.154 18.6861 528336001 528595201 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 :                                   693.00 sec.
    Max Memory :                                 1129 MB
    Average Memory :                             351.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            707 sec.

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

