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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin993
RA = 147.244, Dec = 0.3717
tmin = 496713601, tmax = 496972801
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='518343', job_status='RUN', time_executed='2021-09-01 02:55:24.500535', time_epoch_executed='1630490124.5' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518343

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518343/ft1_4FGL_J0948.9+0022_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518343/ft2_4FGL_J0948.9+0022_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518343/ft1_4FGL_J0948.9+0022_daily_bin993.fits outfile=/scratch/kocevski/518343/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin993.fits ra=147.244 dec=0.3717 rad=12.0 tmin=496713601.0 tmax=496972801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.17
user 4.69
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/518343/ft2_4FGL_J0948.9+0022_daily_bin993.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/518343/ft2_4FGL_J0948.9+0022_daily_bin993.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/518343/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin993.fits evtable="EVENTS" outfile="/scratch/kocevski/518343/ft1_filtered_4FGL_J0948.9+0022_daily_bin993.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.90
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/518343/ft1_filtered_4FGL_J0948.9+0022_daily_bin993.fits" evtable="EVENTS" scfile=/scratch/kocevski/518343/ft2_4FGL_J0948.9+0022_daily_bin993.fits sctable="SC_DATA" outfile=/scratch/kocevski/518343/ltcube_496713601_496972801_4FGL_J0948.9+0022_daily_bin993.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/518343/ft2_4FGL_J0948.9+0022_daily_bin993.fits
.....................!
real 12.59
user 11.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518343/ft1_filtered_4FGL_J0948.9+0022_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/518343/ft2_4FGL_J0948.9+0022_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/518343/ltcube_496713601_496972801_4FGL_J0948.9+0022_daily_bin993.fits outfile=/scratch/kocevski/518343/expmap_496713601_496972801_4FGL_J0948.9+0022_daily_bin993.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/518343/ltcube_496713601_496972801_4FGL_J0948.9+0022_daily_bin993.fits
.....................!
real 195.12
user 185.27
sys 4.27

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 147 point sources and 0 extended sources

Setting source of interest to:
4FGL J0948.9+0022 @ 147.244 0.3717

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/518343/ft1_filtered_4FGL_J0948.9+0022_daily_bin993.fits scfile=/scratch/kocevski/518343/ft2_4FGL_J0948.9+0022_daily_bin993.fits outfile=/scratch/kocevski/518343/cmap_496713601_496972801_4FGL_J0948.9+0022_daily_bin993.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=147.244 yref=0.3717 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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518343/ft1_filtered_4FGL_J0948.9+0022_daily_bin993.fits scfile=/scratch/kocevski/518343/ft2_4FGL_J0948.9+0022_daily_bin993.fits outfile=/scratch/kocevski/518343/cmap_HighResolution_496713601_496972801_4FGL_J0948.9+0022_daily_bin993.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=147.244 yref=0.3717 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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/518343/ft1_filtered_4FGL_J0948.9+0022_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/518343/ft2_4FGL_J0948.9+0022_daily_bin993.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/518343/Model_4FGL_J0948.9+0022_daily_bin993.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/518343/ft1_filtered_4FGL_J0948.9+0022_daily_bin993.fits....................!
real 50.86
user 48.86
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/518343/ft1_filtered_4FGL_J0948.9+0022_daily_bin993.fits', '/scratch/kocevski/518343/ft2_4FGL_J0948.9+0022_daily_bin993.fits', expMap='/scratch/kocevski/518343/expmap_496713601_496972801_4FGL_J0948.9+0022_daily_bin993.fits', expCube='/scratch/kocevski/518343/ltcube_496713601_496972801_4FGL_J0948.9+0022_daily_bin993.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/518343/Model_4FGL_J0948.9+0022_daily_bin993.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0948.9+0022'

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.422e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.453e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/518343/ft1_filtered_4FGL_J0948.9+0022_daily_bin993.fits
Spacecraft file(s): /scratch/kocevski/518343/ft2_4FGL_J0948.9+0022_daily_bin993.fits
Exposure map: /scratch/kocevski/518343/expmap_496713601_496972801_4FGL_J0948.9+0022_daily_bin993.fits
Exposure cube: /scratch/kocevski/518343/ltcube_496713601_496972801_4FGL_J0948.9+0022_daily_bin993.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/518343/Model_4FGL_J0948.9+0022_daily_bin993.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) = 4526.35564861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20517E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    19.177       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .60686E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8308       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3253       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.882       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7808       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9257       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4505       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.755       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.256       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11163E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.654       1.0000         .10000E-03   10000.    
    18 'Prefactor '    70.162       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12793E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.2504       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88682       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1322       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4526.287     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     2243 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10017E-03    50.975       -.39189E-05** at limit **
   2  norm          19.182        9.2052        .65122E-07    .19449E-02
   3  Prefactor     .10253E-03    948.43       -.55193E-05** at limit **
   4  Prefactor     1.8295        4.4070        .47887E-06   -.11315E-04
   5  Prefactor     4.3233        3.5603        .25409E-06   -.29902E-02
   6  Prefactor     19.877        1.5645        .16606E-07   -.13565E-02
   7  Prefactor     4.7727        1.5384       -.33836E-07   -.63389E-04
   8  norm          1.9245        5.6001        .17473E-05    .25938E-04
   9  norm          .10000E-03    1.3647        .16880E-06** at limit **
  10  norm          1.4503        .83201        .32817E-07   -.84719E-04
  11  norm          .10000E-03    1.5598        .29435E-06** at limit **
  12  Prefactor     15.756        4.7787        .15683E-06   -.35080E-02
  13  Prefactor     40.310        7.0525        .55641E-07    .38698E-02
  14  Prefactor     .10000E-03    30.642        .32717E-05** at limit **
  15  norm          .10000E-03    10.041        .12557E-06** at limit **
  16  Prefactor     .10000E-03    16.029       -.59463E-06** at limit **
  17  Prefactor     11.581        9.4443       -.21076E-06   -.83127E-03
  18  Prefactor     69.990        22.054       -.23178E-06    .60765E-03
  19  Prefactor     .10027E-03    44.966       -.43921E-05** at limit **
  20  norm          4.2499        2.6144        .48155E-07   -.76523E-04
  21  Prefactor     .10000E-03    4.1687        .67340E-06** at limit **
  22  Normalizat    .88705        .27860       -.26748E-05   -.62384E-04
  23  Prefactor     1.1322        .22010       -.79130E-06   -.81954E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100174
  norm       = 19.1818
  Prefactor  = 0.000102534
  Prefactor  = 1.82952
  Prefactor  = 4.32328
  Prefactor  = 19.8766
  Prefactor  = 4.77266
  norm       = 1.92446
  norm       = 0.0001
  norm       = 1.45028
  norm       = 0.0001
  Prefactor  = 15.756
  Prefactor  = 40.3102
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5805
  Prefactor  = 69.9899
  Prefactor  = 0.000100274
  norm       = 4.24995
  Prefactor  = 0.0001
  Normalizat = 0.887051
  Prefactor  = 1.13216
 **********
 **   18 **HESSE 
 **********

 FCN=   4526.287     FROM HESSE     STATUS=OK           442 CALLS     2685 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10017E-03    2.7318        .67463E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.182        9.3276        .22865E-02   -1.4832    
   3  Prefactor     .10253E-03    26.988        .10602       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8295        4.4776        .77110E-02   -1.5437    
   5  Prefactor     4.3233        162.97        .48423E-02   -1.5292    
   6  Prefactor     19.877        21.789        .22456E-02   -1.4816    
   7  Prefactor     4.7727        118.36        .46002E-02   -1.5271    
   8  norm          1.9245        5.6727        .74843E-02   -1.5431    
   9  norm          .10000E-03    .88352        .25126E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4503        .84979        .89433E-02   -1.5467    
  11  norm          .10000E-03    1.5258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.756        19.853        .25226E-02   -1.4914    
  13  Prefactor     40.310        56.814        .15794E-02   -1.4437    
  14  Prefactor     .10000E-03    30.549        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.046        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.020        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.581        179.14        .29337E-02   -1.5027    
  18  Prefactor     69.990        76.889        .11981E-02   -1.4033    
  19  Prefactor     .10027E-03    46.596        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.2499        2.6548        .48860E-02   -1.5296    
  21  Prefactor     .10000E-03    4.1517        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .88705        .26497        .69358E-01   -.96917    
  23  Prefactor     1.1322        .19143        .36474E-01   -.88445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88144e-07
Minuit parameter uncertainties:
  1  0.00137886
  2  9.32829
  3  0.0165472
  4  4.4784
  5  53.2429
  6  21.7978
  7  47.6411
  8  5.6743
  9  1.09554e-06
  10  0.849798
  11  2.06624e-06
  12  19.8616
  13  56.8902
  14  0.000277354
  15  1.14161e-06
  16  5.17545e-05
  17  91.4227
  18  76.9981
  19  0.00714922
  20  2.65488
  21  7.33716e-06
  22  0.265362
  23  0.191546
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.450e+00  8.498e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.453e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.132e+00  1.915e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  8.871e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.25
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 6.52e-08
Energy Flux (Fixed Index): 2.77e-05 +/- 1.63e-05

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) = 4526.09979651
delta logL = 0.187328712085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4526.08196385
delta logL = 0.205161369813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2559       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9629       1.0000          .0000       5.0000    
     3 'Normalizat'    .93077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1047       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4526.082     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2547        .74051        .94509E-02    .21413E-03
   2  alpha         1.9629        .49263        .34127       -.34679E-04
   3  Normalizat    .93101        .23679        .67903E-01    .14721E-04
   4  Prefactor     1.1044        .18794        .37410E-01    .43180E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25466
  alpha      = 1.96295
  Normalizat = 0.931011
  Prefactor  = 1.10442
 **********
 **   18 **HESSE 
 **********

 FCN=   4526.082     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2547        .87621        .42282E-04   -1.5484    
   2  alpha         1.9629        .67807        .13155E-01   -.21651    
   3  Normalizat    .93101        .27870        .30039E-03   -.95379    
   4  Prefactor     1.1044        .21995        .22074E-03   -.89325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59041e-09
Minuit parameter uncertainties:
  1  0.876216
  2  0.687104
  3  0.279136
  4  0.220134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518343': 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) = 4526.08196073
delta logL = 0.205164490013

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.255e+00  8.762e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.963e+00  6.871e-01  0.000e+00  5.000e+00 ( 1.000e+00)
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.104e+00  2.201e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  9.310e-01  2.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.65
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.96 +/- 0.69
Photon Flux (Free Index): 8.50e-08 +/- 6.41e-08
Energy Flux (Free Index): 3.12e-05 +/- 1.91e-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/518343/cmap_HighResolution_496713601_496972801_4FGL_J0948.9+0022_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='3.12e-05', photon_flux_error='6.52e-08', dlogl='2.05e-01', energy_flux='2.77e-05', photon_flux2='8.50e-08', job_status='DONE', time_completed='2021-09-01 03:04:08.189039', photon_index_error2='0.69', photon_index2='1.96', ts='5.25', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='0.89', time_epoch_completed='1630490648.19', return_code='0', job_id='518343', GAL2='1.10', EG2='0.93', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='6.41e-08', ts2='5.65', photon_index='2.45' WHERE bin_id='993' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:04:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 518343: <4FGL_J0948.9+0022_daily_bin993> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin993> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:51:09 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:51:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:51:10 2021
Terminated at Wed Sep  1 03:04:08 2021
Results reported at Wed Sep  1 03:04:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin993 147.244 0.3717 496713601 496972801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0948.9+0022 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   478.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             247.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            779 sec.

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

