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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin785
RA = 147.244, Dec = 0.3717
tmin = 442800001, tmax = 443059201
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='516782', job_status='RUN', time_executed='2021-09-01 02:50:09.736750', time_epoch_executed='1630489809.74' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='785'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516782

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516782/ft1_4FGL_J0948.9+0022_daily_bin785.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516782/ft2_4FGL_J0948.9+0022_daily_bin785.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516782/ft1_4FGL_J0948.9+0022_daily_bin785.fits outfile=/scratch/kocevski/516782/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin785.fits ra=147.244 dec=0.3717 rad=12.0 tmin=442800001.0 tmax=443059201.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.59
user 3.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516782/ft1_filtered_4FGL_J0948.9+0022_daily_bin785.fits" evtable="EVENTS" scfile=/scratch/kocevski/516782/ft2_4FGL_J0948.9+0022_daily_bin785.fits sctable="SC_DATA" outfile=/scratch/kocevski/516782/ltcube_442800001_443059201_4FGL_J0948.9+0022_daily_bin785.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/516782/ft2_4FGL_J0948.9+0022_daily_bin785.fits
.....................!
real 12.72
user 12.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516782/ft1_filtered_4FGL_J0948.9+0022_daily_bin785.fits evtable="EVENTS" scfile=/scratch/kocevski/516782/ft2_4FGL_J0948.9+0022_daily_bin785.fits sctable="SC_DATA" expcube=/scratch/kocevski/516782/ltcube_442800001_443059201_4FGL_J0948.9+0022_daily_bin785.fits outfile=/scratch/kocevski/516782/expmap_442800001_443059201_4FGL_J0948.9+0022_daily_bin785.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/516782/ltcube_442800001_443059201_4FGL_J0948.9+0022_daily_bin785.fits
.....................!
real 193.21
user 185.10
sys 4.98

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/516782/ft1_filtered_4FGL_J0948.9+0022_daily_bin785.fits scfile=/scratch/kocevski/516782/ft2_4FGL_J0948.9+0022_daily_bin785.fits outfile=/scratch/kocevski/516782/cmap_442800001_443059201_4FGL_J0948.9+0022_daily_bin785.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.72
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516782/ft1_filtered_4FGL_J0948.9+0022_daily_bin785.fits scfile=/scratch/kocevski/516782/ft2_4FGL_J0948.9+0022_daily_bin785.fits outfile=/scratch/kocevski/516782/cmap_HighResolution_442800001_443059201_4FGL_J0948.9+0022_daily_bin785.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.82
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8653       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3401       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.560       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7152       1.0000         .10000E-03   10000.    
     9 'norm      '    7.0260       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8400       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7109       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8244       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.204       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.953       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.1298       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.412       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .69859       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0085       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=   4926.005     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2250 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8667        5.1685       -.28000E-06   -.20491E-03
   2  norm          6.3432        8.6864        .18167E-05   -.31241E-03
   3  Prefactor     .10000E-03    9.3748       -.30657E-06** at limit **
   4  Prefactor     .10000E-03    1.5353        .17541E-07** at limit **
   5  Prefactor     3.9783        54.450        .30590E-04   -.12838E-03
   6  Prefactor     .10000E-03    5.1602       -.16048E-06** at limit **
   7  Prefactor     19.567        46.670        .16531E-05   -.26449E-04
   8  norm          3.7151        3.5305       -.14555E-06   -.12648E-03
   9  norm          7.0265        1.9105        .31577E-07    .18131E-03
  10  norm          2.8404        .89447        .92679E-08    .49497E-04
  11  norm          2.7106        2.0755       -.24447E-06   -.14356E-02
  12  Prefactor     1.7992        30.022       -.24210E-04   -.22535E-04
  13  Prefactor     .10001E-03    351.88       -.15310E-04** at limit **
  14  Prefactor     .10000E-03    62.455        .31701E-05** at limit **
  15  norm          15.216        15.283        .14911E-05    .28834E-03
  16  Prefactor     .10000E-03    8.0486        .30567E-06** at limit **
  17  Prefactor     17.958        55.798        .44505E-05    .72965E-04
  18  Prefactor     .10000E-03    23.560        .67425E-06** at limit **
  19  Prefactor     .10000E-03    6.2864       -.22354E-07** at limit **
  20  norm          4.1300        1.9955        .11354E-06    .23321E-04
  21  Prefactor     11.413        8.6844       -.53816E-06    .29958E-04
  22  Normalizat    .69816        .22248        .14114E-05    .94239E-04
  23  Prefactor     1.0088        .16557       -.47350E-06    .20023E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.86669
  norm       = 6.34316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.9783
  Prefactor  = 0.0001
  Prefactor  = 19.5667
  norm       = 3.71513
  norm       = 7.02654
  norm       = 2.84036
  norm       = 2.71062
  Prefactor  = 1.79924
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 15.2156
  Prefactor  = 0.0001
  Prefactor  = 17.9584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.13
  Prefactor  = 11.4131
  Normalizat = 0.69816
  Prefactor  = 1.0088
 **********
 **   18 **HESSE 
 **********

 FCN=   4926.005     FROM HESSE     STATUS=OK           370 CALLS     2620 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8667        5.1736        .13044E-03   -1.5184    
   2  norm          6.3432        8.6620        .15941E-03   -1.5204    
   3  Prefactor     .10000E-03    9.3981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.5670        .84884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9783        52.220        .20181E-03   -1.5309    
   6  Prefactor     .10000E-03    5.1675        .15571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.567        46.695        .90561E-04   -1.4823    
   8  norm          3.7151        3.5249        .12409E-03   -1.5322    
   9  norm          7.0265        1.9158        .48196E-04   -1.5178    
  10  norm          2.8404        .89728        .34767E-04   -1.5371    
  11  norm          2.7106        2.0872        .42989E-03   -1.5379    
  12  Prefactor     1.7992        31.712        .30909E-03   -1.5440    
  13  Prefactor     .10001E-03    362.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    62.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.216        15.211        .10272E-03   -1.4928    
  16  Prefactor     .10000E-03    8.1158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.958        55.828        .94526E-04   -1.4860    
  18  Prefactor     .10000E-03    23.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2888        .17185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.1300        1.9922        .64839E-04   -1.5301    
  21  Prefactor     11.413        8.6850        .11859E-03   -1.5032    
  22  Normalizat    .69816        .25594        .31004E-03   -1.0397    
  23  Prefactor     1.0088        .19114        .21303E-03   -.92437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23618e-09
Minuit parameter uncertainties:
  1  5.17389
  2  8.66372
  3  0.000106141
  4  2.7469e-06
  5  28.8575
  6  1.2734e-05
  7  46.782
  8  3.52512
  9  1.91578
  10  0.897289
  11  2.08723
  12  15.1162
  13  0.00306406
  14  0.000175546
  15  15.2149
  16  9.21458e-05
  17  55.9914
  18  3.86365e-05
  19  1.22245e-05
  20  1.99224
  21  8.686
  22  0.256377
  23  0.191269
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.840e+00  8.973e-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.009e+00  1.913e-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:  6.982e-01  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.35
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.18e-07 +/- 6.88e-08
Energy Flux (Fixed Index): 5.43e-05 +/- 1.72e-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) = 4925.74637184
delta logL = 0.258706406667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4925.74620516
delta logL = 0.258873084788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8512       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7847       1.0000          .0000       5.0000    
     3 'Normalizat'    .64719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0398       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=   4925.746     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      203 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8512        1.3741        .60195E-02   -.12240E-02
   2  alpha         2.7847        .71439        .27848       -.55023E-05
   3  Normalizat    .64720        .21137        .72462E-01    .27884E-04
   4  Prefactor     1.0398        .17152        .40546E-01   -.55381E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.85125
  alpha      = 2.7847
  Normalizat = 0.647197
  Prefactor  = 1.03982
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.746     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8512        .87033        .33137E-04   -1.5370    
   2  alpha         2.7847        .47880        .11834E-01    .11413    
   3  Normalizat    .64720        .24369        .32075E-03   -1.0602    
   4  Prefactor     1.0398        .19415        .21021E-03   -.91414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85079e-11
Minuit parameter uncertainties:
  1  0.870333
  2  0.481816
  3  0.244095
  4  0.194283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516782': 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) = 4925.74620516
delta logL = 0.25887308495

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.851e+00  8.703e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.785e+00  4.818e-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.040e+00  1.943e-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:  6.472e-01  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.69
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.78 +/- 0.48
Photon Flux (Free Index): 2.51e-07 +/- 8.47e-08
Energy Flux (Free Index): 5.27e-05 +/- 1.60e-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/516782/cmap_HighResolution_442800001_443059201_4FGL_J0948.9+0022_daily_bin785.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.18e-07', energy_flux2='5.27e-05', photon_flux_error='6.88e-08', dlogl='2.59e-01', energy_flux='5.43e-05', photon_flux2='2.51e-07', job_status='DONE', time_completed='2021-09-01 02:58:27.298578', photon_index_error2='0.48', photon_index2='2.78', ts='23.35', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='0.70', time_epoch_completed='1630490307.3', return_code='0', job_id='516782', GAL2='1.04', EG2='0.65', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='8.47e-08', ts2='23.69', photon_index='2.45' WHERE bin_id='785' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:58:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 516782: <4FGL_J0948.9+0022_daily_bin785> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin785> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:28 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:30 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:46:30 2021
Terminated at Wed Sep  1 02:58:27 2021
Results reported at Wed Sep  1 02:58:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin785 147.244 0.3717 442800001 443059201 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 :                                   485.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            719 sec.

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

