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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin829
RA = 147.244, Dec = 0.3717
tmin = 454204801, tmax = 454464001
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='518060', job_status='RUN', time_executed='2021-09-01 02:51:26.808088', time_epoch_executed='1630489886.81' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518060/ft1_4FGL_J0948.9+0022_daily_bin829.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518060/ft2_4FGL_J0948.9+0022_daily_bin829.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518060/ft1_4FGL_J0948.9+0022_daily_bin829.fits outfile=/scratch/kocevski/518060/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin829.fits ra=147.244 dec=0.3717 rad=12.0 tmin=454204801.0 tmax=454464001.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.69
user 3.32
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518060/ft1_filtered_4FGL_J0948.9+0022_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/518060/ft2_4FGL_J0948.9+0022_daily_bin829.fits sctable="SC_DATA" expcube=/scratch/kocevski/518060/ltcube_454204801_454464001_4FGL_J0948.9+0022_daily_bin829.fits outfile=/scratch/kocevski/518060/expmap_454204801_454464001_4FGL_J0948.9+0022_daily_bin829.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/518060/ltcube_454204801_454464001_4FGL_J0948.9+0022_daily_bin829.fits
.....................!
real 191.53
user 185.09
sys 4.71

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/518060/ft1_filtered_4FGL_J0948.9+0022_daily_bin829.fits scfile=/scratch/kocevski/518060/ft2_4FGL_J0948.9+0022_daily_bin829.fits outfile=/scratch/kocevski/518060/cmap_454204801_454464001_4FGL_J0948.9+0022_daily_bin829.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.75
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518060/ft1_filtered_4FGL_J0948.9+0022_daily_bin829.fits scfile=/scratch/kocevski/518060/ft2_4FGL_J0948.9+0022_daily_bin829.fits outfile=/scratch/kocevski/518060/cmap_HighResolution_454204801_454464001_4FGL_J0948.9+0022_daily_bin829.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.62
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.941       1.0000         .10000E-03   10000.    
     2 'norm      '    .13855E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0246       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .32641E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .47610E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9587       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6684       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2234       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6741       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1701       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8509       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.723       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .80312E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    129.92       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15177E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2316       1.0000         .10000E-03   10000.    
    20 'norm      '    5.7661       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.108       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .66462       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3003       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7471.373     FROM MIGRAD    STATUS=CONVERGED    914 CALLS     3037 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.945        5.7327        .60561E-03    .15966E-03
   2  norm          .10004E-03    22.206        .32779E-02** at limit **
   3  Prefactor     8.0715        17.510        .14154E-03    .15695E-03
   4  Prefactor     .10000E-03    9.1001        .20423E-02** at limit **
   5  Prefactor     .10001E-03    251.93        .89408E-02** at limit **
   6  Prefactor     9.9645        12.678        .12698E-03    .95174E-04
   7  Prefactor     9.6681        29.991        .12888E-03    .14643E-04
   8  norm          5.2224        3.8159        .13811E-03    .63384E-04
   9  norm          2.6737        1.3712        .69395E-04    .14744E-04
  10  norm          1.1700        .57587        .43898E-04    .43638E-03
  11  norm          3.8507        1.8630        .79163E-04    .42940E-04
  12  Prefactor     .10000E-03    4.8631        .18142E-02** at limit **
  13  Prefactor     30.713        46.130        .72286E-04    .48598E-04
  14  Prefactor     .10000E-03    22.151        .18142E-02** at limit **
  15  norm          .10001E-03    32.942        .46397E-02** at limit **
  16  Prefactor     .10000E-03    4.5285        .17939E-02** at limit **
  17  Prefactor     129.91        68.800        .35324E-04   -.27357E-04
  18  Prefactor     .10000E-03    53.708        .18142E-02** at limit **
  19  Prefactor     9.2318        12.134        .13191E-03   -.77225E-04
  20  norm          5.7653        1.8977        .64163E-04   -.19490E-04
  21  Prefactor     10.108        7.2466        .12604E-03   -.31661E-04
  22  Normalizat    .66473        .24530        .35303E-03    .18971E-03
  23  Prefactor     1.3004        .18399        .21547E-03    .25991E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.9451
  norm       = 0.000100035
  Prefactor  = 8.07152
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 9.96454
  Prefactor  = 9.66812
  norm       = 5.22239
  norm       = 2.67373
  norm       = 1.17
  norm       = 3.85074
  Prefactor  = 0.0001
  Prefactor  = 30.7127
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 129.907
  Prefactor  = 0.0001
  Prefactor  = 9.23181
  norm       = 5.76534
  Prefactor  = 10.1077
  Normalizat = 0.664734
  Prefactor  = 1.30039
 **********
 **   18 **HESSE 
 **********

 FCN=   7471.373     FROM HESSE     STATUS=OK           346 CALLS     3383 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.945        5.7322        .24224E-04   -1.5046    
   2  norm          .10004E-03    22.817        .13111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.0715        17.463        .56615E-05   -1.5140    
   4  Prefactor     .10000E-03    9.1836        .40846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    260.68        .35763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.9645        12.678        .50791E-05   -1.5077    
   7  Prefactor     9.6681        29.990        .51551E-05   -1.5086    
   8  norm          5.2224        3.8158        .55244E-05   -1.5251    
   9  norm          2.6737        1.3711        .27758E-05   -1.5381    
  10  norm          1.1700        .57586        .17559E-05   -1.5492    
  11  norm          3.8507        1.8630        .31665E-05   -1.5315    
  12  Prefactor     .10000E-03    4.8634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.713        46.110        .28914E-05   -1.4599    
  14  Prefactor     .10000E-03    22.155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    33.413        .92795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5288        .35877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     129.91        68.779        .70647E-05   -1.3423    
  18  Prefactor     .10000E-03    53.709        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.2318        12.132        .52762E-05   -1.5100    
  20  norm          5.7653        1.8976        .25665E-05   -1.5228    
  21  Prefactor     10.108        7.2458        .50414E-05   -1.5072    
  22  Normalizat    .66473        .24540        .14121E-04   -1.0530    
  23  Prefactor     1.3004        .18412        .43094E-04   -.83295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10532e-09
Minuit parameter uncertainties:
  1  5.73244
  2  0.00179914
  3  17.4737
  4  0.000127351
  5  0.00307302
  6  12.6809
  7  30.0365
  8  3.81595
  9  1.37112
  10  0.575859
  11  1.86301
  12  1.72647e-05
  13  46.1632
  14  0.000127759
  15  0.00116796
  16  2.10034e-05
  17  68.8216
  18  3.98529e-05
  19  12.1354
  20  1.89764
  21  7.24644
  22  0.245803
  23  0.184208
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.170e+00  5.759e-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.300e+00  1.842e-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.647e-01  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.68
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 8.98e-08 +/- 4.42e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.10e-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) = 7470.50398343
delta logL = 0.868537041419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7470.50047906
delta logL = 0.872041410041

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81787       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5693       1.0000          .0000       5.0000    
     3 'Normalizat'    .74274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2492       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=   7470.500     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      215 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81818        .44414        .84202E-02   -.13222E-03
   2  alpha         1.5686        .36445        .30388       -.53906E-04
   3  Normalizat    .74241        .18796        .75738E-01    .66189E-04
   4  Prefactor     1.2496        .15559        .49520E-01    .19300E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.818183
  alpha      = 1.56859
  Normalizat = 0.742412
  Prefactor  = 1.24958
 **********
 **   18 **HESSE 
 **********

 FCN=   7470.500     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81818        .56770        .37445E-04   -1.5527    
   2  alpha         1.5686        .52001        .12135E-01   -.38177    
   3  Normalizat    .74241        .22169        .33526E-03   -1.0224    
   4  Prefactor     1.2496        .18327        .21892E-03   -.84819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54768e-09
Minuit parameter uncertainties:
  1  0.5677
  2  0.524463
  3  0.221954
  4  0.183369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518060': 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) = 7470.50047345
delta logL = 0.872047025035

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.182e-01  5.677e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.569e+00  5.245e-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.250e+00  1.834e-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:  7.424e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.42
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.57 +/- 0.52
Photon Flux (Free Index): 5.53e-08 +/- 3.56e-08
Energy Flux (Free Index): 3.28e-05 +/- 1.98e-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/518060/cmap_HighResolution_454204801_454464001_4FGL_J0948.9+0022_daily_bin829.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.98e-08', energy_flux2='3.28e-05', photon_flux_error='4.42e-08', dlogl='8.72e-01', energy_flux='2.24e-05', photon_flux2='5.53e-08', job_status='DONE', time_completed='2021-09-01 03:02:07.022479', photon_index_error2='0.52', photon_index2='1.57', ts='8.68', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='0.66', time_epoch_completed='1630490527.02', return_code='0', job_id='518060', GAL2='1.25', EG2='0.74', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='3.56e-08', ts2='10.42', photon_index='2.45' WHERE bin_id='829' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:02:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 518060: <4FGL_J0948.9+0022_daily_bin829> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin829 147.244 0.3717 454204801 454464001 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 :                                   631.16 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             373.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            684 sec.

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

