/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 117 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 = 7416
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1148.6+1841_daily_bin79
RA = 177.154, Dec = 18.6861
tmin = 259804801, tmax = 260064001
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='82783', job_status='RUN', time_executed='2021-09-04 11:48:22.523133', time_epoch_executed='1630781302.52' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='79'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82783/ft1_4FGL_J1148.6+1841_daily_bin79.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82783/ft2_4FGL_J1148.6+1841_daily_bin79.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82783/ft1_4FGL_J1148.6+1841_daily_bin79.fits outfile=/scratch/kocevski/82783/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin79.fits ra=177.154 dec=18.6861 rad=12.0 tmin=259804801.0 tmax=260064001.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.68
user 2.47
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82783/ft1_filtered_4FGL_J1148.6+1841_daily_bin79.fits" evtable="EVENTS" scfile=/scratch/kocevski/82783/ft2_4FGL_J1148.6+1841_daily_bin79.fits sctable="SC_DATA" outfile=/scratch/kocevski/82783/ltcube_259804801_260064001_4FGL_J1148.6+1841_daily_bin79.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/82783/ft2_4FGL_J1148.6+1841_daily_bin79.fits
.....................!
real 12.30
user 11.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82783/ft1_filtered_4FGL_J1148.6+1841_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/82783/ft2_4FGL_J1148.6+1841_daily_bin79.fits sctable="SC_DATA" expcube=/scratch/kocevski/82783/ltcube_259804801_260064001_4FGL_J1148.6+1841_daily_bin79.fits outfile=/scratch/kocevski/82783/expmap_259804801_260064001_4FGL_J1148.6+1841_daily_bin79.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/82783/ltcube_259804801_260064001_4FGL_J1148.6+1841_daily_bin79.fits
.....................!
real 190.65
user 185.70
sys 4.53

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/82783/ft1_filtered_4FGL_J1148.6+1841_daily_bin79.fits scfile=/scratch/kocevski/82783/ft2_4FGL_J1148.6+1841_daily_bin79.fits outfile=/scratch/kocevski/82783/cmap_259804801_260064001_4FGL_J1148.6+1841_daily_bin79.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82783/ft1_filtered_4FGL_J1148.6+1841_daily_bin79.fits scfile=/scratch/kocevski/82783/ft2_4FGL_J1148.6+1841_daily_bin79.fits outfile=/scratch/kocevski/82783/cmap_HighResolution_259804801_260064001_4FGL_J1148.6+1841_daily_bin79.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/82783/ft1_filtered_4FGL_J1148.6+1841_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/82783/ft2_4FGL_J1148.6+1841_daily_bin79.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82783/Model_4FGL_J1148.6+1841_daily_bin79.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/82783/ft1_filtered_4FGL_J1148.6+1841_daily_bin79.fits.....................!
real 68.31
user 66.74
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13344E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .12387E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .12985E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.631       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18986E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0776       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54888       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4921       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17349E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2131       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16445E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20127E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .83178E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2733       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99649       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .36433       1.0000         .10000E-03   10000.    
    20 'norm      '    .10343E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17811E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17956E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98567       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2011       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=   7629.477     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2347 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1115       -.10536E-05** at limit **
   2  Prefactor     .10000E-03    2.0272       -.24894E-07** at limit **
   3  norm          .10000E-03    6.7425        .76944E-06** at limit **
   4  norm          .10000E-03    3.9924       -.28288E-06** at limit **
   5  Prefactor     11.642        8.6123       -.86148E-07   -.76130E-05
   6  Prefactor     .10000E-03    14.874        .25666E-05** at limit **
   7  Prefactor     1.1499        43.733       -.92239E-05    .16319E-03
   8  Prefactor     .36766        10.230       -.20460E-05    .27133E-03
   9  Prefactor     1.5450        19.653        .10162E-05    .13200E-03
  10  Prefactor     2.2054        1.7001       -.71778E-07    .21127E-03
  11  Prefactor     .10000E-03    7.8113        .18129E-05** at limit **
  12  norm          3.2146        1.1979        .34747E-08    .21091E-03
  13  Prefactor     .10000E-03    8.9987       -.74674E-06** at limit **
  14  Prefactor     .10000E-03    2.6060       -.72482E-06** at limit **
  15  Prefactor     .10000E-03    23.318        .41943E-07** at limit **
  16  Prefactor     1.2723        2.4537        .73707E-06    .10149E-02
  17  Prefactor     .99657        2.9010       -.15029E-05    .15717E-03
  18  Prefactor     .10000E-03    3.2176        .11155E-05** at limit **
  19  norm          .36433        .17874        .11809E-07    .14279E-02
  20  norm          .10000E-03    1.7541        .43348E-07** at limit **
  21  Prefactor     .10000E-03    3.8265        .11745E-06** at limit **
  22  Prefactor     .10000E-03    11.865       -.16103E-05** at limit **
  23  Normalizat    .98564        .16607        .56774E-06    .15957E-03
  24  Prefactor     1.2011        .16626        .14149E-06    .59069E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.6421
  Prefactor  = 0.0001
  Prefactor  = 1.14994
  Prefactor  = 0.367656
  Prefactor  = 1.54495
  Prefactor  = 2.20542
  Prefactor  = 0.0001
  norm       = 3.21462
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 1.27227
  Prefactor  = 0.996572
  Prefactor  = 0.000100004
  norm       = 0.364329
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.985641
  Prefactor  = 1.20111
 **********
 **   18 **HESSE 
 **********

 FCN=   7629.477     FROM HESSE     STATUS=OK           403 CALLS     2750 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0340        .12145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.8038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.0170        .17043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.642        8.6120        .11746E-03   -1.5025    
   6  Prefactor     .10000E-03    14.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1499        56.006        .55623E-02   -1.5493    
   8  Prefactor     .36766        111.83        .47126E-02   -1.5587    
   9  Prefactor     1.5450        21.727        .35090E-03   -1.5459    
  10  Prefactor     2.2054        1.6936        .93788E-04   -1.5411    
  11  Prefactor     .10000E-03    7.9159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2146        1.1973        .56267E-04   -1.5349    
  13  Prefactor     .10000E-03    9.0438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.8055        .25762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.333        .20879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2723        2.3415        .15877E-03   -1.5482    
  17  Prefactor     .99657        2.9188        .21672E-03   -1.5508    
  18  Prefactor     .10000E-03    6.2382        .27032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .36433        .17719        .24859E-04   -1.5587    
  20  norm          .10000E-03    1.7655        .11289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.8314        .16688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .98564        .19497        .25749E-03   -.93513    
  24  Prefactor     1.2011        .19593        .24812E-03   -.86297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56121e-09
Minuit parameter uncertainties:
  1  3.94442e-05
  2  5.16192e-07
  3  1.99372e-05
  4  5.6435e-06
  5  8.6129
  6  0.000122655
  7  16.0656
  8  12.8466
  9  11.5921
  10  1.69364
  11  4.05069e-05
  12  1.19729
  13  2.95323e-05
  14  0.000218879
  15  1.99604e-06
  16  2.34163
  17  2.91921
  18  0.000319733
  19  0.177194
  20  3.73194e-06
  21  4.32468e-06
  22  6.69149e-05
  23  0.195108
  24  0.196044
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.545e+00  1.159e+01  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.201e+00  1.960e-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.856e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82783/likelihoodResults_259804801_260064001_4FGL_J1148.6+1841_daily_bin79.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): 0
logL (Free Index) = 7629.16520699
delta logL = 0.311634821613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7629.16179237
delta logL = 0.315049435749

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8241       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2430       1.0000          .0000       10.000    
     3 'Normalizat'    .95204       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2152       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=   7629.162     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      236 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8253        53.744        .77280E-02    .10742E-02
   2  Index         3.2429        3.1088        .13048        .17298E-03
   3  Normalizat    .95200        .39056E-01    .45563E-01    .10460E-04
   4  Prefactor     1.2153        .41127E-01    .55817E-01   -.32028E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.82526
  Index      = 3.24286
  Normalizat = 0.952001
  Prefactor  = 1.21527
 **********
 **   18 **HESSE 
 **********

 FCN=   7629.162     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8253        58.266        .14277E-03   -1.5438    
   2  Index         3.2429        6.5866        .70635E-02   -.35910    
   3  Normalizat    .95200        .19168        .26146E-03   -.94656    
   4  Prefactor     1.2153        .20324        .24681E-03   -.85863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09369e-10
Minuit parameter uncertainties:
  1  20.6466
  2  4.88931
  3  0.19182
  4  0.203372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82783': 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) = 7629.16179233
delta logL = 0.315049482076

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.825e+00  2.065e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  3.243e+00  4.889e+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:  1.215e+00  2.034e-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.520e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/82783/cmap_HighResolution_259804801_260064001_4FGL_J1148.6+1841_daily_bin79.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-04 12:00:55.210662', job_id='82783', GAL2='1.22', fit_tolerance='1e-08', EG2='0.95', EG='0.99', time_epoch_completed='1630782055.21', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='3.15e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='79' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 82783: <4FGL_J1148.6+1841_daily_bin79> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin79> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:46:13 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:46:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 11:46:15 2021
Terminated at Sat Sep  4 12:00:55 2021
Results reported at Sat Sep  4 12:00:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin79 177.154 18.6861 259804801 260064001 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 :                                   745.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

