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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin362
RA = 177.154, Dec = 18.6861
tmin = 333158401, tmax = 333417601
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='84498', job_status='RUN', time_executed='2021-09-04 11:51:27.861995', time_epoch_executed='1630781487.86' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/84498

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/84498/ft1_4FGL_J1148.6+1841_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/84498/ft2_4FGL_J1148.6+1841_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/84498/ft1_4FGL_J1148.6+1841_daily_bin362.fits outfile=/scratch/kocevski/84498/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin362.fits ra=177.154 dec=18.6861 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.10
user 5.78
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/84498/ft1_filtered_4FGL_J1148.6+1841_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/84498/ft2_4FGL_J1148.6+1841_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/84498/ltcube_333158401_333417601_4FGL_J1148.6+1841_daily_bin362.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/84498/ft2_4FGL_J1148.6+1841_daily_bin362.fits
.....................!
real 12.64
user 12.21
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/84498/ft1_filtered_4FGL_J1148.6+1841_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/84498/ft2_4FGL_J1148.6+1841_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/84498/ltcube_333158401_333417601_4FGL_J1148.6+1841_daily_bin362.fits outfile=/scratch/kocevski/84498/expmap_333158401_333417601_4FGL_J1148.6+1841_daily_bin362.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/84498/ltcube_333158401_333417601_4FGL_J1148.6+1841_daily_bin362.fits
.....................!
real 193.76
user 187.95
sys 5.35

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/84498/ft1_filtered_4FGL_J1148.6+1841_daily_bin362.fits scfile=/scratch/kocevski/84498/ft2_4FGL_J1148.6+1841_daily_bin362.fits outfile=/scratch/kocevski/84498/cmap_333158401_333417601_4FGL_J1148.6+1841_daily_bin362.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/84498/ft1_filtered_4FGL_J1148.6+1841_daily_bin362.fits scfile=/scratch/kocevski/84498/ft2_4FGL_J1148.6+1841_daily_bin362.fits outfile=/scratch/kocevski/84498/cmap_HighResolution_333158401_333417601_4FGL_J1148.6+1841_daily_bin362.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53764       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8809       1.0000         .10000E-03   10000.    
     3 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .52335       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.129       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .45123       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10785E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.653       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8520       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .45117E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2196       1.0000         .10000E-03   10000.    
    12 'norm      '    8.6013       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.922       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .55542E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16705E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2170       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0691       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11168E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92892       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1262       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=   5770.512     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     2461 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44469        14.028        .11424        .28706E-04
   2  Prefactor     5.8832        5.5675        .41400E-02   -.23355E-02
   3  norm          .10000E-03    9.1710        .90712E-02** at limit **
   4  norm          .53191        7.9384        .69877E-01    .64398E-03
   5  Prefactor     13.141        13.146        .27637E-02    .35110E-03
   6  Prefactor     .29055        37.610        .14069        .51751E-04
   7  Prefactor     .10000E-03    7.3815        .90712E-02** at limit **
   8  Prefactor     14.648        13.461        .26158E-02   -.87175E-04
   9  Prefactor     8.8371        12.025        .33680E-02    .20241E-03
  10  Prefactor     .47190E-01    .78925        .35259E-01    .93520E-03
  11  Prefactor     6.2394        10.214        .40242E-02    .20891E-02
  12  norm          8.6009        1.8759        .34170E-02    .35254E-03
  13  Prefactor     21.890        16.841        .21387E-02    .13282E-02
  14  Prefactor     .83406E-01    2.2162        .66205E-01    .29386E-03
  15  Prefactor     .10002E-03    50.265        .90712E-02** at limit **
  16  Prefactor     9.2148        3.4783        .33003E-02    .15898E-03
  17  Prefactor     .10000E-03    .94686        .90712E-02** at limit **
  18  Prefactor     .10000E-03    2.5338        .90712E-02** at limit **
  19  norm          1.0689        .31797        .50225E-02    .10943E-02
  20  norm          .10000E-03    1.8245        .90712E-02** at limit **
  21  Prefactor     .10000E-03    5.2721        .90712E-02** at limit **
  22  Prefactor     .10000E-03    14.266        .90712E-02** at limit **
  23  Normalizat    .92927        .20455        .45270E-01    .35427E-04
  24  Prefactor     1.1262        .20102        .60206E-01    .58593E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.444687
  Prefactor  = 5.88325
  norm       = 0.0001
  norm       = 0.531906
  Prefactor  = 13.141
  Prefactor  = 0.290549
  Prefactor  = 0.0001
  Prefactor  = 14.6482
  Prefactor  = 8.83712
  Prefactor  = 0.0471901
  Prefactor  = 6.23937
  norm       = 8.60089
  Prefactor  = 21.8901
  Prefactor  = 0.0834059
  Prefactor  = 0.000100021
  Prefactor  = 9.21481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06892
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.929275
  Prefactor  = 1.12617
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.512     FROM HESSE     STATUS=OK           419 CALLS     2880 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44469        170.74        .54207E-02   -1.5575    
   2  Prefactor     5.8832        5.5689        .82799E-03   -1.5223    
   3  norm          .10000E-03    9.2209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .53191        32.980        .40491E-02   -1.5562    
   5  Prefactor     13.141        13.160        .11055E-03   -1.4983    
   6  Prefactor     .29055        44.507        .12654       -1.5600    
   7  Prefactor     .10000E-03    7.4088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.648        13.438        .10463E-03   -1.4942    
   9  Prefactor     8.8371        12.011        .13472E-03   -1.5113    
  10  Prefactor     .47190E-01    5.1371        .12916E-02   -1.5665    
  11  Prefactor     6.2394        10.210        .80483E-03   -1.5208    
  12  norm          8.6009        1.8777        .46874E-04   -1.5121    
  13  Prefactor     21.890        16.844        .85549E-04   -1.4772    
  14  Prefactor     .83406E-01    37.639        .20891E-02   -1.5650    
  15  Prefactor     .10002E-03    50.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.2148        3.4800        .82229E-04   -1.5101    
  17  Prefactor     .10000E-03    .95143        .72141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5434        .11807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0689        .31820        .22252E-04   -1.5501    
  20  norm          .10000E-03    1.8302        .10020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2767        .17035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92927        .24046        .27409E-03   -.95439    
  24  Prefactor     1.1262        .23661        .26626E-03   -.88635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05587e-09
Minuit parameter uncertainties:
  1  17.4757
  2  5.56944
  3  1.07082e-05
  4  8.38072
  5  13.1628
  6  7.19629
  7  9.77895e-06
  8  13.4409
  9  12.0147
  10  0.983765
  11  10.2133
  12  1.87769
  13  16.8481
  14  3.54373
  15  0.0020644
  16  3.4801
  17  1.10767e-06
  18  1.12703e-05
  19  0.318202
  20  7.09118e-06
  21  4.03071e-05
  22  8.8317e-05
  23  0.240743
  24  0.236833
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  8.837e+00  1.201e+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.126e+00  2.368e-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.293e-01  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.71
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/84498/likelihoodResults_333158401_333417601_4FGL_J1148.6+1841_daily_bin362.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) = 5770.34485491
delta logL = 0.167383795455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5770.339488
delta logL = 0.172750711755

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7301       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8986       1.0000          .0000       10.000    
     3 'Normalizat'    .90524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1408       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5770.339     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      285 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7281        15.364        .16624E-03   -.21870E-03
   2  Index         2.8988        1.6170        .68163E-02   -.40337E-04
   3  Normalizat    .90525        .22896        .27728E-03    .16277E-03
   4  Prefactor     1.1408        .23885        .26474E-03    .72316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.72808
  Index      = 2.89884
  Normalizat = 0.905251
  Prefactor  = 1.14076
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.339     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7281        9.8633        .66498E-05   -1.5273    
   2  Index         2.8988        1.0495        .27265E-03   -.43370    
   3  Normalizat    .90525        .22677        .11091E-04   -.96276    
   4  Prefactor     1.1408        .23663        .10590E-04   -.88174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76614e-10
Minuit parameter uncertainties:
  1  9.86665
  2  1.05908
  3  0.227005
  4  0.23685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/84498': 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) = 5770.33948795
delta logL = 0.172750755297

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  4.728e+00  9.867e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.899e+00  1.059e+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.141e+00  2.369e-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.053e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 177.154 18.686
Photon Index (Free Index): 2.90 +/- 1.06
Photon Flux (Free Index): 4.80e-08 +/- 5.51e-08
Energy Flux (Free Index): 1.01e-05 +/- 1.10e-05

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/84498/cmap_HighResolution_333158401_333417601_4FGL_J1148.6+1841_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.79e-03', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='1.73e-01', photon_flux2='4.80e-08', job_status='DONE', time_completed='2021-09-04 12:02:59.861911', photon_index_error2='1.06', photon_index2='2.90', ts='0.71', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.10e-05', EG='0.93', time_epoch_completed='1630782179.86', return_code='0', job_id='84498', GAL2='1.14', EG2='0.91', return_code2='0', photon_flux_error2='5.51e-08', ts2='1.06', photon_index='2.32' WHERE bin_id='362' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:02:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 84498: <4FGL_J1148.6+1841_daily_bin362> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin362> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 11:51:08 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:51:09 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:51:09 2021
Terminated at Sat Sep  4 12:03:00 2021
Results reported at Sat Sep  4 12:03:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin362 177.154 18.6861 333158401 333417601 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 :                                   687.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            712 sec.

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

