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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin17
RA = 147.244, Dec = 0.3717
tmin = 243734401, tmax = 243993601
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='513038', job_status='RUN', time_executed='2021-09-01 02:37:44.714318', time_epoch_executed='1630489064.71' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513038/ft1_4FGL_J0948.9+0022_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513038/ft2_4FGL_J0948.9+0022_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513038/ft1_4FGL_J0948.9+0022_daily_bin17.fits outfile=/scratch/kocevski/513038/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin17.fits ra=147.244 dec=0.3717 rad=12.0 tmin=243734401.0 tmax=243993601.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 1.44
user 1.23
sys 0.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513038/ft1_filtered_4FGL_J0948.9+0022_daily_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/513038/ft2_4FGL_J0948.9+0022_daily_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/513038/ltcube_243734401_243993601_4FGL_J0948.9+0022_daily_bin17.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/513038/ft2_4FGL_J0948.9+0022_daily_bin17.fits
.....................!
real 12.30
user 11.96
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513038/ft1_filtered_4FGL_J0948.9+0022_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/513038/ft2_4FGL_J0948.9+0022_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/513038/ltcube_243734401_243993601_4FGL_J0948.9+0022_daily_bin17.fits outfile=/scratch/kocevski/513038/expmap_243734401_243993601_4FGL_J0948.9+0022_daily_bin17.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/513038/ltcube_243734401_243993601_4FGL_J0948.9+0022_daily_bin17.fits
.....................!
real 192.09
user 186.15
sys 4.52

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/513038/ft1_filtered_4FGL_J0948.9+0022_daily_bin17.fits scfile=/scratch/kocevski/513038/ft2_4FGL_J0948.9+0022_daily_bin17.fits outfile=/scratch/kocevski/513038/cmap_243734401_243993601_4FGL_J0948.9+0022_daily_bin17.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.74
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513038/ft1_filtered_4FGL_J0948.9+0022_daily_bin17.fits scfile=/scratch/kocevski/513038/ft2_4FGL_J0948.9+0022_daily_bin17.fits outfile=/scratch/kocevski/513038/cmap_HighResolution_243734401_243993601_4FGL_J0948.9+0022_daily_bin17.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.68
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.065       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4493       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.166       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .47941E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7191       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.7513       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8399       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.156       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.047       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16643E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38794       1.0000         .10000E-03   10000.    
    20 'norm      '    .19418E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4287       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96971       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1295       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=   9773.054     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2697 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.064        4.3391        .50578E-08    .25175E-05
   2  norm          3.4491        3.3003       -.73559E-08   -.25738E-05
   3  Prefactor     20.164        17.901       -.63008E-07    .15598E-05
   4  Prefactor     .10000E-03    1.2555        .74744E-07** at limit **
   5  Prefactor     .10000E-03    13.258       -.64843E-07** at limit **
   6  Prefactor     8.7166        12.036       -.37438E-08   -.43206E-05
   7  Prefactor     .10000E-03    19.252       -.17578E-06** at limit **
   8  norm          .10000E-03    .88634       -.18794E-07** at limit **
   9  norm          .10000E-03    .32025        .17699E-07** at limit **
  10  norm          4.7513        .81170        .14789E-07   -.52828E-03
  11  norm          2.8397        1.6864       -.45119E-07   -.22771E-04
  12  Prefactor     16.157        10.874       -.47588E-06    .22548E-04
  13  Prefactor     .10000E-03    142.23        .57146E-05** at limit **
  14  Prefactor     .10000E-03    14.364        .71302E-07** at limit **
  15  norm          .10000E-03    6.6616        .17415E-06** at limit **
  16  Prefactor     38.022        13.254       -.11082E-05   -.26787E-03
  17  Prefactor     .10000E-03    207.86       -.47179E-05** at limit **
  18  Prefactor     .10000E-03    52.500        .86823E-06** at limit **
  19  Prefactor     .44427        96.319       -.87890E-05   -.91566E-04
  20  norm          .10083E-03    .81110        .89782E-06** at limit **
  21  Prefactor     3.4294        4.2521       -.83245E-06   -.17378E-03
  22  Normalizat    .96974        .17392       -.92201E-07   -.24959E-03
  23  Prefactor     1.1296        .13364        .30748E-06   -.38590E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0645
  norm       = 3.44906
  Prefactor  = 20.1642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.71658
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.75135
  norm       = 2.83973
  Prefactor  = 16.1572
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.0218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.444272
  norm       = 0.000100829
  Prefactor  = 3.42938
  Normalizat = 0.969736
  Prefactor  = 1.12958
 **********
 **   18 **HESSE 
 **********

 FCN=   9773.054     FROM HESSE     STATUS=OK           382 CALLS     3079 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.064        4.3368        .11082E-03   -1.4985    
   2  norm          3.4491        3.2999        .17046E-03   -1.5337    
   3  Prefactor     20.164        17.933        .89192E-04   -1.4810    
   4  Prefactor     .10000E-03    8.5639        .20861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.7166        12.010        .13575E-03   -1.5117    
   7  Prefactor     .10000E-03    19.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .89119        .90877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .54394        .10845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.7513        .81370        .34459E-04   -1.5272    
  11  norm          2.8397        1.6843        .47822E-03   -1.5371    
  12  Prefactor     16.157        10.853        .99643E-04   -1.4904    
  13  Prefactor     .10000E-03    145.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.6826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.022        13.884        .64978E-04   -1.4474    
  17  Prefactor     .10000E-03    209.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    52.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .44427        103.50        .58349E-02   -1.5575    
  20  norm          .10083E-03    1.2939        .21044E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4294        4.2636        .10922E-02   -1.5338    
  22  Normalizat    .96974        .20404        .30678E-03   -.94051    
  23  Prefactor     1.1296        .15917        .23268E-03   -.88527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05011e-08
Minuit parameter uncertainties:
  1  4.3369
  2  3.30011
  3  17.9375
  4  4.6089e-05
  5  9.3851e-06
  6  12.0129
  7  1.72917e-05
  8  7.00193e-08
  9  2.1278e-06
  10  0.813704
  11  1.68435
  12  10.8548
  13  0.000406827
  14  5.56602e-06
  15  3.14974e-05
  16  13.8855
  17  6.19355e-05
  18  4.71032e-05
  19  13.5841
  20  0.00207088
  21  4.26393
  22  0.204202
  23  0.159233
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.751e+00  8.137e-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.130e+00  1.592e-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.697e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 78.37
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.65e-07 +/- 6.24e-08
Energy Flux (Fixed Index): 9.09e-05 +/- 1.56e-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) = 9772.91968426
delta logL = 0.134154030033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9772.89781738
delta logL = 0.156020907809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6797       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3324       1.0000          .0000       5.0000    
     3 'Normalizat'    .99488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1152       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=   9772.898     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6796        .80564        .46507E-02   -.16733E-02
   2  alpha         2.3324        .20331        .17844        .13552E-03
   3  Normalizat    .99488        .16616        .68610E-01    .17023E-03
   4  Prefactor     1.1152        .13302        .52920E-01    .54092E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.67955
  alpha      = 2.33244
  Normalizat = 0.994884
  Prefactor  = 1.11522
 **********
 **   18 **HESSE 
 **********

 FCN=   9772.898     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6796        .82661        .34681E-04   -1.5275    
   2  alpha         2.3324        .21307        .77452E-03   -.67073E-01
   3  Normalizat    .99488        .20035        .30350E-03   -.93202    
   4  Prefactor     1.1152        .15924        .23397E-03   -.88982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59434e-10
Minuit parameter uncertainties:
  1  0.826615
  2  0.213327
  3  0.2005
  4  0.159304
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513038': 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) = 9772.89781736
delta logL = 0.156020929669

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.680e+00  8.266e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.332e+00  2.133e-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.115e+00  1.593e-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.949e-01  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 77.74
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.33 +/- 0.21
Photon Flux (Free Index): 3.45e-07 +/- 6.97e-08
Energy Flux (Free Index): 9.29e-05 +/- 1.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/513038/cmap_HighResolution_243734401_243993601_4FGL_J0948.9+0022_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.65e-07', energy_flux2='9.29e-05', photon_flux_error='6.24e-08', dlogl='1.56e-01', energy_flux='9.09e-05', photon_flux2='3.45e-07', job_status='DONE', time_completed='2021-09-01 02:49:22.610302', photon_index_error2='0.21', photon_index2='2.33', ts='78.37', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='0.97', time_epoch_completed='1630489762.61', return_code='0', job_id='513038', GAL2='1.12', EG2='0.99', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='6.97e-08', ts2='77.74', photon_index='2.45' WHERE bin_id='17' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:49:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 513038: <4FGL_J0948.9+0022_daily_bin17> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin17> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 02:35:56 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:35:57 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:35:57 2021
Terminated at Wed Sep  1 02:49:23 2021
Results reported at Wed Sep  1 02:49:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin17 147.244 0.3717 243734401 243993601 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 :                                   692.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            807 sec.

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

