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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin851
RA = 147.244, Dec = 0.3717
tmin = 459907201, tmax = 460166401
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='518106', job_status='RUN', time_executed='2021-09-01 02:51:05.353406', time_epoch_executed='1630489865.35' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='851'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518106/ft1_4FGL_J0948.9+0022_daily_bin851.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518106/ft2_4FGL_J0948.9+0022_daily_bin851.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518106/ft1_4FGL_J0948.9+0022_daily_bin851.fits outfile=/scratch/kocevski/518106/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin851.fits ra=147.244 dec=0.3717 rad=12.0 tmin=459907201.0 tmax=460166401.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.41
user 3.13
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/518106/ft1_filtered_4FGL_J0948.9+0022_daily_bin851.fits" evtable="EVENTS" scfile=/scratch/kocevski/518106/ft2_4FGL_J0948.9+0022_daily_bin851.fits sctable="SC_DATA" outfile=/scratch/kocevski/518106/ltcube_459907201_460166401_4FGL_J0948.9+0022_daily_bin851.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/518106/ft2_4FGL_J0948.9+0022_daily_bin851.fits
.....................!
real 11.99
user 11.48
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518106/ft1_filtered_4FGL_J0948.9+0022_daily_bin851.fits evtable="EVENTS" scfile=/scratch/kocevski/518106/ft2_4FGL_J0948.9+0022_daily_bin851.fits sctable="SC_DATA" expcube=/scratch/kocevski/518106/ltcube_459907201_460166401_4FGL_J0948.9+0022_daily_bin851.fits outfile=/scratch/kocevski/518106/expmap_459907201_460166401_4FGL_J0948.9+0022_daily_bin851.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/518106/ltcube_459907201_460166401_4FGL_J0948.9+0022_daily_bin851.fits
.....................!
real 192.12
user 186.59
sys 4.92

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/518106/ft1_filtered_4FGL_J0948.9+0022_daily_bin851.fits scfile=/scratch/kocevski/518106/ft2_4FGL_J0948.9+0022_daily_bin851.fits outfile=/scratch/kocevski/518106/cmap_459907201_460166401_4FGL_J0948.9+0022_daily_bin851.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518106/ft1_filtered_4FGL_J0948.9+0022_daily_bin851.fits scfile=/scratch/kocevski/518106/ft2_4FGL_J0948.9+0022_daily_bin851.fits outfile=/scratch/kocevski/518106/cmap_HighResolution_459907201_460166401_4FGL_J0948.9+0022_daily_bin851.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.57
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5729       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3256       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6318       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3517       1.0000         .10000E-03   10000.    
     8 'norm      '    3.9026       1.0000         .10000E-03   10000.    
     9 'norm      '    6.1194       1.0000         .10000E-03   10000.    
    10 'norm      '    .50489       1.0000         .10000E-03   10000.    
    11 'norm      '    .46404       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6207       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17186E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.077       1.0000         .10000E-03   10000.    
    20 'norm      '    .24270E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14555E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1944       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80833       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=   6050.501     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2571 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5737        2.8981        .43540E-06    .19238E-04
   2  norm          .10000E-03    3.1547        .22496E-07** at limit **
   3  Prefactor     8.3291        13.105        .36120E-06    .14456E-04
   4  Prefactor     3.6326        3.0376        .78408E-06    .67034E-04
   5  Prefactor     .10000E-03    12.614        .21552E-06** at limit **
   6  Prefactor     .10000E-03    2.5750       -.29126E-08** at limit **
   7  Prefactor     6.3594        29.679        .88409E-06    .25107E-04
   8  norm          3.9035        3.6167        .45329E-07   -.84752E-04
   9  norm          6.1202        1.9932        .43351E-07   -.64208E-04
  10  norm          .50501        .48943        .67082E-07    .12035E-03
  11  norm          .46437        1.3100        .65217E-06    .20649E-03
  12  Prefactor     .10000E-03    10.592       -.49391E-07** at limit **
  13  Prefactor     .10000E-03    12.715        .12441E-06** at limit **
  14  Prefactor     .10000E-03    44.325       -.17221E-06** at limit **
  15  norm          3.6277        9.1593        .27549E-06    .57517E-05
  16  Prefactor     .10000E-03    2.8656       -.31180E-07** at limit **
  17  Prefactor     .10000E-03    22.032       -.44740E-06** at limit **
  18  Prefactor     .10000E-03    29.434        .50410E-06** at limit **
  19  Prefactor     11.048        14.521        .72529E-06   -.32224E-04
  20  norm          .94086E-02    .73202        .40343E-06   -.12388E-02
  21  Prefactor     .10000E-03    13.242       -.61366E-06** at limit **
  22  Normalizat    1.1943        .19017       -.91043E-06   -.19559E-03
  23  Prefactor     .80821        .14560       -.15943E-06   -.23496E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.57369
  norm       = 0.0001
  Prefactor  = 8.32909
  Prefactor  = 3.63259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.35936
  norm       = 3.90346
  norm       = 6.12021
  norm       = 0.505014
  norm       = 0.464372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.62773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.0475
  norm       = 0.00940857
  Prefactor  = 0.0001
  Normalizat = 1.19426
  Prefactor  = 0.808215
 **********
 **   18 **HESSE 
 **********

 FCN=   6050.501     FROM HESSE     STATUS=OK           384 CALLS     2955 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5737        2.8745        .17350E-03   -1.5457    
   2  norm          .10000E-03    3.2328        .13490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.3291        13.106        .13894E-03   -1.5131    
   4  Prefactor     3.6326        3.0152        .59364E-03   -1.5327    
   5  Prefactor     .10000E-03    12.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5763        .12190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.3594        29.706        .15926E-03   -1.5204    
   8  norm          3.9035        3.6047        .13659E-03   -1.5313    
   9  norm          6.1202        2.0005        .59579E-04   -1.5213    
  10  norm          .50501        .46084        .51169E-03   -1.5566    
  11  norm          .46437        1.2961        .14652E-02   -1.5572    
  12  Prefactor     .10000E-03    10.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    44.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6277        9.1311        .21233E-03   -1.5327    
  16  Prefactor     .10000E-03    2.8673        .12857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.048        14.483        .12037E-03   -1.5043    
  20  norm          .94086E-02    1.7254        .21683E-01   -1.5689    
  21  Prefactor     .10000E-03    13.667        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1943        .22396        .24944E-03   -.86780    
  23  Prefactor     .80821        .17275        .23231E-03   -.99426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27357e-10
Minuit parameter uncertainties:
  1  2.87472
  2  2.09306e-06
  3  13.1105
  4  3.01532
  5  5.92847e-05
  6  4.66633e-08
  7  27.5114
  8  3.60487
  9  2.00051
  10  0.460839
  11  1.29619
  12  2.13717e-05
  13  4.97e-05
  14  4.91374e-05
  15  9.13463
  16  2.0191e-06
  17  0.000197872
  18  0.000339409
  19  14.488
  20  0.25347
  21  7.08085e-05
  22  0.224137
  23  0.172867
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  5.050e-01  4.608e-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.082e-01  1.729e-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.194e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 9.66e-06 +/- 8.82e-06

TS (Fixed Index): 1.91
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/518106/likelihoodResults_459907201_460166401_4FGL_J0948.9+0022_daily_bin851.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6049.05812671
delta logL = 1.44267342333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6049.05737877
delta logL = 1.44342136037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19528       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1117       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78592       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=   6049.057     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19533        .18031        .55464E-02   -.15766E-03
   2  alpha         1.1117        .44939        .31451       -.42145E-04
   3  Normalizat    1.2322        .18371        .55633E-01    .50428E-05
   4  Prefactor     .78605        .14419        .43534E-01    .13693E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.195332
  alpha      = 1.11173
  Normalizat = 1.23216
  Prefactor  = 0.786049
 **********
 **   18 **HESSE 
 **********

 FCN=   6049.057     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19533        .23645        .25036E-04   -1.5620    
   2  alpha         1.1117        .62144        .13382E-01   -.58873    
   3  Normalizat    1.2322        .21714        .24600E-03   -.85615    
   4  Prefactor     .78605        .17051        .23482E-03   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20312e-12
Minuit parameter uncertainties:
  1  0.236453
  2  0.631082
  3  0.217304
  4  0.170624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518106': 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) = 6049.05737842
delta logL = 1.44342170605

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.953e-01  2.365e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.112e+00  6.311e-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:  7.860e-01  1.706e-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.232e+00  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.11 +/- 0.63
Photon Flux (Free Index): 1.57e-08 +/- 1.44e-08
Energy Flux (Free Index): 2.05e-05 +/- 2.07e-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/518106/cmap_HighResolution_459907201_460166401_4FGL_J0948.9+0022_daily_bin851.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-05', comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='2.05e-05', photon_flux_error='3.54e-08', dlogl='1.44e+00', energy_flux='9.66e-06', photon_flux2='1.57e-08', job_status='DONE', time_completed='2021-09-01 03:00:54.088346', photon_index_error2='0.63', photon_index2='1.11', ts='1.91', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='2.07e-05', EG='1.19', time_epoch_completed='1630490454.09', return_code='0', job_id='518106', GAL2='0.79', EG2='1.23', return_code2='0', energy_flux_error='8.82e-06', photon_flux_error2='1.44e-08', ts2='4.83', photon_index='2.45' WHERE bin_id='851' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:00:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 518106: <4FGL_J0948.9+0022_daily_bin851> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin851 147.244 0.3717 459907201 460166401 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 :                                   586.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             384.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            605 sec.

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

