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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1525
RA = 177.154, Dec = 18.6861
tmin = 634608001, tmax = 634867201
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='90022', job_status='RUN', time_executed='2021-09-04 12:09:56.748551', time_epoch_executed='1630782596.75' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90022/ft1_4FGL_J1148.6+1841_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90022/ft2_4FGL_J1148.6+1841_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90022/ft1_4FGL_J1148.6+1841_daily_bin1525.fits outfile=/scratch/kocevski/90022/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1525.fits ra=177.154 dec=18.6861 rad=12.0 tmin=634608001.0 tmax=634867201.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.03
user 2.86
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90022/ft2_4FGL_J1148.6+1841_daily_bin1525.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/90022/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1525.fits evtable="EVENTS" outfile="/scratch/kocevski/90022/ft1_filtered_4FGL_J1148.6+1841_daily_bin1525.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.48
user 0.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90022/ft1_filtered_4FGL_J1148.6+1841_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/90022/ft2_4FGL_J1148.6+1841_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/90022/ltcube_634608001_634867201_4FGL_J1148.6+1841_daily_bin1525.fits outfile=/scratch/kocevski/90022/expmap_634608001_634867201_4FGL_J1148.6+1841_daily_bin1525.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/90022/ltcube_634608001_634867201_4FGL_J1148.6+1841_daily_bin1525.fits
.....................!
real 189.88
user 184.35
sys 5.17

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/90022/ft1_filtered_4FGL_J1148.6+1841_daily_bin1525.fits scfile=/scratch/kocevski/90022/ft2_4FGL_J1148.6+1841_daily_bin1525.fits outfile=/scratch/kocevski/90022/cmap_634608001_634867201_4FGL_J1148.6+1841_daily_bin1525.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90022/ft1_filtered_4FGL_J1148.6+1841_daily_bin1525.fits scfile=/scratch/kocevski/90022/ft2_4FGL_J1148.6+1841_daily_bin1525.fits outfile=/scratch/kocevski/90022/cmap_HighResolution_634608001_634867201_4FGL_J1148.6+1841_daily_bin1525.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/90022/ft1_filtered_4FGL_J1148.6+1841_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/90022/ft2_4FGL_J1148.6+1841_daily_bin1525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90022/Model_4FGL_J1148.6+1841_daily_bin1525.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/90022/ft1_filtered_4FGL_J1148.6+1841_daily_bin1525.fits.........................!
real 22.22
user 21.02
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10937E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    96.846       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11031E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12193E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2830       1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.539       1.0000         .10000E-03   10000.    
    12 'norm      '    7.5049       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .55294E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26841E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6395       1.0000         .10000E-03   10000.    
    19 'norm      '    1.1484       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9386       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12061E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1701       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66065       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=   1117.573     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     3209 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    268.23       -.39824E-06** at limit **
   2  Prefactor     .10000E-03    43.658       -.21928E-05** at limit **
   3  norm          .10000E-03    28.015        .28878E-07** at limit **
   4  norm          96.395        160.97        .95150E-06   -.17134E-04
   5  Prefactor     .10000E-03    160.51       -.17648E-04** at limit **
   6  Prefactor     .10000E-03    93.971       -.21821E-07** at limit **
   7  Prefactor     .10000E-03    89.816       -.35609E-05** at limit **
   8  Prefactor     25.463        240.16       -.39869E-05    .24946E-05
   9  Prefactor     .10000E-03    23.941       -.61913E-07** at limit **
  10  Prefactor     9.2833        12.459        .33240E-06    .88831E-05
  11  Prefactor     65.495        46.211       -.22198E-05   -.86452E-04
  12  norm          7.5051        5.0345        .17104E-08    .18141E-04
  13  Prefactor     .10001E-03    492.42        .67052E-05** at limit **
  14  Prefactor     .10000E-03    7.4783        .49936E-06** at limit **
  15  Prefactor     .10000E-03    201.76        .68679E-06** at limit **
  16  Prefactor     .10000E-03    2.5678        .34068E-06** at limit **
  17  Prefactor     .10000E-03    5.2150        .13303E-05** at limit **
  18  Prefactor     2.6494        10.368        .89374E-06    .13055E-04
  19  norm          1.1484        .61397       -.73727E-07   -.22575E-03
  20  norm          .10000E-03    9.8735        .72716E-06** at limit **
  21  Prefactor     1.9016        93.359        .78265E-05    .58608E-05
  22  Prefactor     .10000E-03    103.28        .23610E-05** at limit **
  23  Normalizat    1.1701        .52425        .74112E-05   -.15480E-03
  24  Prefactor     .66037        .45605       -.13817E-04   -.31931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 96.3952
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.4631
  Prefactor  = 0.0001
  Prefactor  = 9.28335
  Prefactor  = 65.4948
  norm       = 7.50511
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.6494
  norm       = 1.14842
  norm       = 0.0001
  Prefactor  = 1.9016
  Prefactor  = 0.0001
  Normalizat = 1.17007
  Prefactor  = 0.660375
 **********
 **   18 **HESSE 
 **********

 FCN=   1117.573     FROM HESSE     STATUS=OK           389 CALLS     3598 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    268.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    28.019        .17292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          96.395        161.33        .20423E-03   -1.3741    
   5  Prefactor     .10000E-03    161.90        .20697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    93.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    89.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.463        242.21        .79437E-04   -1.4698    
   9  Prefactor     .10000E-03    23.962        .15982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.2833        12.475        .98671E-04   -1.5099    
  11  Prefactor     65.495        46.158        .49574E-04   -1.4088    
  12  norm          7.5051        5.0356        .57250E-04   -1.5160    
  13  Prefactor     .10001E-03    509.43        .38121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.5067        .89314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    201.81        .21436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5743        .52338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.3686        .74803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6494        10.361        .20158E-03   -1.5382    
  19  norm          1.1484        .61812        .17538E-04   -1.5494    
  20  norm          .10000E-03    9.9195        .10239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9016        93.551        .29820E-03   -1.5432    
  22  Prefactor     .10000E-03    103.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1701        .58470        .27173E-03   -.87533    
  24  Prefactor     .66037        .49371        .31571E-03   -1.0510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77706e-10
Minuit parameter uncertainties:
  1  0.00036591
  2  7.15865e-05
  3  2.40265e-06
  4  162.069
  5  0.00108565
  6  3.27573e-05
  7  0.00030223
  8  157.911
  9  1.15898e-05
  10  12.4789
  11  46.1834
  12  5.03591
  13  0.00446995
  14  1.4867e-05
  15  0.000425562
  16  4.78438e-06
  17  3.6514e-05
  18  10.3678
  19  0.61812
  20  5.84005e-06
  21  26.7192
  22  4.74338e-05
  23  0.587999
  24  0.497023
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.159e-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:  6.604e-01  4.970e-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.170e+00  5.880e-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: 3.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90022/likelihoodResults_634608001_634867201_4FGL_J1148.6+1841_daily_bin1525.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) = 1117.57332826
delta logL = -0.000196425529793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1117.57313387
delta logL = -2.03871559279e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2394       1.0000          .0000       10.000    
     3 'Normalizat'    1.1699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66004       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=   1117.573     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      241 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1479.3        .90712E-02** at limit **
   2  Index         2.2330        5.4431        .50000        .22109E-05
   3  Normalizat    1.1701        .10264        .61435E-01   -.40923E-05
   4  Prefactor     .66037        .92393E-01    .71328E-01    .69761E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23304
  Normalizat = 1.17008
  Prefactor  = 0.660367
 **********
 **   18 **HESSE 
 **********

 FCN=   1117.573     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6940.1        .16155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2330        6.1033        .50000       -.58643    
   3  Normalizat    1.1701        .23696        .27172E-03   -.87533    
   4  Prefactor     .66037        .21304        .31571E-03   -1.0510    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.07202e-10
Minuit parameter uncertainties:
  1  0.00027283
  2  56.862
  3  0.23718
  4  0.213307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90022': 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) = 1117.57313179
delta logL = 4.39706582256e-08

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.728e-04  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.233e+00  5.686e+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:  6.604e-01  2.133e-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.170e+00  2.372e-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/90022/cmap_HighResolution_634608001_634867201_4FGL_J1148.6+1841_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-02', job_status='DONE', photon_flux_upper_limit='3.02e-07', time_completed='2021-09-04 12:16:29.498516', job_id='90022', GAL2='0.66', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630782989.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='4.40e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1525' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:16:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 90022: <4FGL_J1148.6+1841_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1525> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:07:09 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:07:11 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:07:11 2021
Terminated at Sat Sep  4 12:16:29 2021
Results reported at Sat Sep  4 12:16:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1525 177.154 18.6861 634608001 634867201 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 :                                   390.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             241.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            560 sec.

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

