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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin879
RA = 147.244, Dec = 0.3717
tmin = 467164801, tmax = 467424001
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='518166', job_status='RUN', time_executed='2021-09-01 02:54:19.002960', time_epoch_executed='1630490059.0' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='879'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518166/ft1_4FGL_J0948.9+0022_daily_bin879.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518166/ft2_4FGL_J0948.9+0022_daily_bin879.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518166/ft1_4FGL_J0948.9+0022_daily_bin879.fits outfile=/scratch/kocevski/518166/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin879.fits ra=147.244 dec=0.3717 rad=12.0 tmin=467164801.0 tmax=467424001.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.65
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/518166/ft1_filtered_4FGL_J0948.9+0022_daily_bin879.fits" evtable="EVENTS" scfile=/scratch/kocevski/518166/ft2_4FGL_J0948.9+0022_daily_bin879.fits sctable="SC_DATA" outfile=/scratch/kocevski/518166/ltcube_467164801_467424001_4FGL_J0948.9+0022_daily_bin879.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/518166/ft2_4FGL_J0948.9+0022_daily_bin879.fits
.....................!
real 12.09
user 11.61
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518166/ft1_filtered_4FGL_J0948.9+0022_daily_bin879.fits evtable="EVENTS" scfile=/scratch/kocevski/518166/ft2_4FGL_J0948.9+0022_daily_bin879.fits sctable="SC_DATA" expcube=/scratch/kocevski/518166/ltcube_467164801_467424001_4FGL_J0948.9+0022_daily_bin879.fits outfile=/scratch/kocevski/518166/expmap_467164801_467424001_4FGL_J0948.9+0022_daily_bin879.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/518166/ltcube_467164801_467424001_4FGL_J0948.9+0022_daily_bin879.fits
.....................!
real 190.90
user 186.34
sys 3.89

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/518166/ft1_filtered_4FGL_J0948.9+0022_daily_bin879.fits scfile=/scratch/kocevski/518166/ft2_4FGL_J0948.9+0022_daily_bin879.fits outfile=/scratch/kocevski/518166/cmap_467164801_467424001_4FGL_J0948.9+0022_daily_bin879.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518166/ft1_filtered_4FGL_J0948.9+0022_daily_bin879.fits scfile=/scratch/kocevski/518166/ft2_4FGL_J0948.9+0022_daily_bin879.fits outfile=/scratch/kocevski/518166/cmap_HighResolution_467164801_467424001_4FGL_J0948.9+0022_daily_bin879.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.60
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/518166/ft1_filtered_4FGL_J0948.9+0022_daily_bin879.fits', '/scratch/kocevski/518166/ft2_4FGL_J0948.9+0022_daily_bin879.fits', expMap='/scratch/kocevski/518166/expmap_467164801_467424001_4FGL_J0948.9+0022_daily_bin879.fits', expCube='/scratch/kocevski/518166/ltcube_467164801_467424001_4FGL_J0948.9+0022_daily_bin879.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/518166/Model_4FGL_J0948.9+0022_daily_bin879.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/518166/ft1_filtered_4FGL_J0948.9+0022_daily_bin879.fits
Spacecraft file(s): /scratch/kocevski/518166/ft2_4FGL_J0948.9+0022_daily_bin879.fits
Exposure map: /scratch/kocevski/518166/expmap_467164801_467424001_4FGL_J0948.9+0022_daily_bin879.fits
Exposure cube: /scratch/kocevski/518166/ltcube_467164801_467424001_4FGL_J0948.9+0022_daily_bin879.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/518166/Model_4FGL_J0948.9+0022_daily_bin879.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) = 6349.39312832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1331       1.0000         .10000E-03   10000.    
     2 'norm      '    8.8123       1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.624       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.839       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4278       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2743       1.0000         .10000E-03   10000.    
     8 'norm      '    7.8499       1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3475       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8247       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.645       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18325E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    135.24       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5449       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9989       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0598       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86462       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6349.385     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2592 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1333        3.5633        .41847E-06    .11942E-03
   2  norm          8.8139        9.3830        .63635E-06    .17172E-04
   3  Prefactor     46.618        28.389       -.20402E-05   -.11384E-03
   4  Prefactor     .10000E-03    1.0181        .17505E-06** at limit **
   5  Prefactor     23.782        56.981        .13253E-04    .11352E-03
   6  Prefactor     6.4178        18.687       -.38508E-05   -.18142E-03
   7  Prefactor     1.2662        220.33        .22689E-05   -.17300E-04
   8  norm          7.8495        4.4446        .12948E-06   -.29079E-04
   9  norm          .10000E-03    .83033        .35454E-06** at limit **
  10  norm          1.3476        .70145        .15517E-06    .57591E-03
  11  norm          1.8245        1.4171       -.45920E-08   -.10696E-03
  12  Prefactor     .10000E-03    3.1065        .34878E-07** at limit **
  13  Prefactor     49.639        43.497       -.21996E-06    .28534E-04
  14  Prefactor     .10000E-03    142.27       -.22292E-05** at limit **
  15  norm          .10000E-03    3.9939        .31606E-07** at limit **
  16  Prefactor     .10000E-03    2.4305        .49181E-07** at limit **
  17  Prefactor     135.24        64.089        .29840E-06   -.26597E-04
  18  Prefactor     .10000E-03    19.346        .96087E-07** at limit **
  19  Prefactor     .10000E-03    6.0150        .74509E-07** at limit **
  20  norm          1.5453        1.5513       -.28893E-06    .69039E-05
  21  Prefactor     1.9955        7.4449        .11725E-04   -.23227E-03
  22  Normalizat    1.0596        .20735       -.39199E-05   -.61738E-05
  23  Prefactor     .86477        .14473        .12420E-05    .49244E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.13328
  norm       = 8.81391
  Prefactor  = 46.6175
  Prefactor  = 0.0001
  Prefactor  = 23.7822
  Prefactor  = 6.41776
  Prefactor  = 1.26617
  norm       = 7.84946
  norm       = 0.0001
  norm       = 1.34757
  norm       = 1.82455
  Prefactor  = 0.0001
  Prefactor  = 49.6387
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 135.242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.5453
  Prefactor  = 1.99547
  Normalizat = 1.0596
  Prefactor  = 0.864771
 **********
 **   18 **HESSE 
 **********

 FCN=   6349.385     FROM HESSE     STATUS=OK           372 CALLS     2964 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1333        3.5529        .15374E-03   -1.5354    
   2  norm          8.8139        9.3647        .13502E-03   -1.5114    
   3  Prefactor     46.618        28.419        .58721E-04   -1.4341    
   4  Prefactor     .10000E-03    1.0241        .78523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.782        57.176        .82041E-04   -1.4732    
   6  Prefactor     6.4178        18.820        .15831E-03   -1.5201    
   7  Prefactor     1.2662        226.02        .39379E-03   -1.5483    
   8  norm          7.8495        4.4364        .12113E-03   -1.5148    
   9  norm          .10000E-03    2.5103        .13925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3476        .69199        .44567E-04   -1.5476    
  11  norm          1.8245        1.4171        .81165E-04   -1.5438    
  12  Prefactor     .10000E-03    3.1115        .13715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.639        43.576        .56915E-04   -1.4298    
  14  Prefactor     .10000E-03    146.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9951        .15552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4320        .12131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     135.24        64.369        .34632E-04   -1.3377    
  18  Prefactor     .10000E-03    19.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.0226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5453        1.5322        .92580E-04   -1.5459    
  21  Prefactor     1.9955        7.4845        .14647E-02   -1.5425    
  22  Normalizat    1.0596        .24117        .27004E-03   -.91060    
  23  Prefactor     .86477        .16926        .23094E-03   -.97383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47896e-10
Minuit parameter uncertainties:
  1  3.5531
  2  9.36621
  3  28.4271
  4  1.02877e-05
  5  57.308
  6  18.8369
  7  33.9632
  8  4.4366
  9  1.48671e-05
  10  0.691991
  11  1.41714
  12  3.68413e-06
  13  43.6044
  14  0.00170565
  15  4.5403e-06
  16  4.06636e-06
  17  64.4027
  18  2.95059e-05
  19  1.0695e-05
  20  1.53221
  21  7.48796
  22  0.241415
  23  0.169361
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.348e+00  6.920e-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:  8.648e-01  1.694e-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:  1.060e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.37
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 5.31e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.32e-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) = 6348.77376169
delta logL = 0.611355334077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6348.76609481
delta logL = 0.619022213845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4380       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2910       1.0000          .0000       5.0000    
     3 'Normalizat'    .97524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91154       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=   6348.766     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4381        10.440        .86367E-02    .79587E-03
   2  alpha         3.2911        2.8654        .44116       -.11968E-05
   3  Normalizat    .97515        .92535E-01    .45856E-01    .18616E-04
   4  Prefactor     .91162        .95198E-01    .45152E-01    .66615E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.43812
  alpha      = 3.29106
  Normalizat = 0.975148
  Prefactor  = 0.911625
 **********
 **   18 **HESSE 
 **********

 FCN=   6348.766     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4381        .70712        .38584E-04   -1.5468    
   2  alpha         3.2911        .81723        .20909E-01    .32196    
   3  Normalizat    .97515        .22958        .27962E-03   -.93868    
   4  Prefactor     .91162        .17408        .22561E-03   -.95736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21254e-11
Minuit parameter uncertainties:
  1  0.707122
  2  0.834334
  3  0.229815
  4  0.174187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518166': 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) = 6348.76609464
delta logL = 0.619022382117

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.438e+00  7.071e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.291e+00  8.343e-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:  9.116e-01  1.742e-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.751e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.79
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.29 +/- 0.83
Photon Flux (Free Index): 1.65e-07 +/- 8.18e-08
Energy Flux (Free Index): 2.90e-05 +/- 1.26e-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/518166/cmap_HighResolution_467164801_467424001_4FGL_J0948.9+0022_daily_bin879.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='2.90e-05', photon_flux_error='5.31e-08', dlogl='6.19e-01', energy_flux='2.58e-05', photon_flux2='1.65e-07', job_status='DONE', time_completed='2021-09-01 03:04:41.596055', photon_index_error2='0.83', photon_index2='3.29', ts='7.37', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='1.06', time_epoch_completed='1630490681.6', return_code='0', job_id='518166', GAL2='0.91', EG2='0.98', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='8.18e-08', ts2='8.79', photon_index='2.45' WHERE bin_id='879' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:04:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 518166: <4FGL_J0948.9+0022_daily_bin879> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin879> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:50:53 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:50:55 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:50:55 2021
Terminated at Wed Sep  1 03:04:42 2021
Results reported at Wed Sep  1 03:04:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin879 147.244 0.3717 467164801 467424001 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 :                                   552.15 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             267.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            829 sec.

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

