/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 187 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin239
RA = 147.244, Dec = 0.3717
tmin = 301276801, tmax = 301536001
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='513344', job_status='RUN', time_executed='2021-09-01 02:39:59.036357', time_epoch_executed='1630489199.04' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513344/ft1_4FGL_J0948.9+0022_daily_bin239.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513344/ft2_4FGL_J0948.9+0022_daily_bin239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513344/ft1_4FGL_J0948.9+0022_daily_bin239.fits outfile=/scratch/kocevski/513344/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin239.fits ra=147.244 dec=0.3717 rad=12.0 tmin=301276801.0 tmax=301536001.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 4.59
user 4.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513344/ft1_filtered_4FGL_J0948.9+0022_daily_bin239.fits" evtable="EVENTS" scfile=/scratch/kocevski/513344/ft2_4FGL_J0948.9+0022_daily_bin239.fits sctable="SC_DATA" outfile=/scratch/kocevski/513344/ltcube_301276801_301536001_4FGL_J0948.9+0022_daily_bin239.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/513344/ft2_4FGL_J0948.9+0022_daily_bin239.fits
.....................!
real 11.85
user 11.26
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513344/ft1_filtered_4FGL_J0948.9+0022_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/513344/ft2_4FGL_J0948.9+0022_daily_bin239.fits sctable="SC_DATA" expcube=/scratch/kocevski/513344/ltcube_301276801_301536001_4FGL_J0948.9+0022_daily_bin239.fits outfile=/scratch/kocevski/513344/expmap_301276801_301536001_4FGL_J0948.9+0022_daily_bin239.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/513344/ltcube_301276801_301536001_4FGL_J0948.9+0022_daily_bin239.fits
.....................!
real 191.55
user 184.99
sys 5.36

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/513344/ft1_filtered_4FGL_J0948.9+0022_daily_bin239.fits scfile=/scratch/kocevski/513344/ft2_4FGL_J0948.9+0022_daily_bin239.fits outfile=/scratch/kocevski/513344/cmap_301276801_301536001_4FGL_J0948.9+0022_daily_bin239.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513344/ft1_filtered_4FGL_J0948.9+0022_daily_bin239.fits scfile=/scratch/kocevski/513344/ft2_4FGL_J0948.9+0022_daily_bin239.fits outfile=/scratch/kocevski/513344/cmap_HighResolution_301276801_301536001_4FGL_J0948.9+0022_daily_bin239.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.996       1.0000         .10000E-03   10000.    
     2 'norm      '    9.2616       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .65998       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.945       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.411       1.0000         .10000E-03   10000.    
     8 'norm      '    4.7004       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3002       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9477       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8715       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.754       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.894       1.0000         .10000E-03   10000.    
    17 'Prefactor '    91.856       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74738       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1791       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=   5803.517     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2604 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.996        9.1448       -.13769E-06    .10836E-03
   2  norm          9.2615        7.1904       -.55106E-07   -.20165E-04
   3  Prefactor     .10000E-03    11.974       -.14304E-05** at limit **
   4  Prefactor     .65972        3.1144       -.56249E-06   -.23624E-03
   5  Prefactor     .10000E-03    14.502        .17479E-05** at limit **
   6  Prefactor     52.952        23.979        .10777E-05    .55045E-04
   7  Prefactor     33.417        57.306        .79387E-05   -.31731E-05
   8  norm          4.6998        5.5809        .68123E-06   -.38819E-03
   9  norm          1.3003        1.4779       -.40120E-07   -.59350E-03
  10  norm          5.9477        1.1954       -.25519E-07   -.32219E-04
  11  norm          1.8715        1.6655       -.22648E-07    .78601E-04
  12  Prefactor     11.870        14.421        .90549E-06    .30934E-03
  13  Prefactor     .10000E-03    82.000        .19180E-04** at limit **
  14  Prefactor     41.751        50.558       -.18834E-05   -.55914E-04
  15  norm          .10000E-03    41.494       -.28030E-04** at limit **
  16  Prefactor     11.902        16.168        .58781E-06    .10101E-03
  17  Prefactor     91.845        75.167       -.10745E-04    .48288E-04
  18  Prefactor     .10000E-03    93.053       -.41135E-04** at limit **
  19  Prefactor     .10000E-03    47.880        .42156E-04** at limit **
  20  norm          .10000E-03    .42597        .10184E-06** at limit **
  21  Prefactor     .10000E-03    10.072        .10446E-06** at limit **
  22  Normalizat    .74715        .25961        .57482E-06   -.46533E-04
  23  Prefactor     1.1792        .18440       -.26781E-06    .77802E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 37.9964
  norm       = 9.26146
  Prefactor  = 0.0001
  Prefactor  = 0.659722
  Prefactor  = 0.0001
  Prefactor  = 52.9523
  Prefactor  = 33.4171
  norm       = 4.69979
  norm       = 1.30027
  norm       = 5.94769
  norm       = 1.87151
  Prefactor  = 11.8701
  Prefactor  = 0.0001
  Prefactor  = 41.7512
  norm       = 0.000100004
  Prefactor  = 11.9021
  Prefactor  = 91.8446
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.747147
  Prefactor  = 1.17924
 **********
 **   18 **HESSE 
 **********

 FCN=   5803.517     FROM HESSE     STATUS=OK           372 CALLS     2976 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.996        9.1208        .65021E-04   -1.4474    
   2  norm          9.2615        7.1884        .13169E-03   -1.5099    
   3  Prefactor     .10000E-03    12.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .65972        9.4282        .24355E-02   -1.5546    
   5  Prefactor     .10000E-03    14.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.952        23.968        .55121E-04   -1.4251    
   7  Prefactor     33.417        57.415        .69325E-04   -1.4551    
   8  norm          4.6998        5.5661        .18432E-03   -1.5274    
   9  norm          1.3003        1.4562        .92410E-04   -1.5480    
  10  norm          5.9477        1.1971        .34977E-04   -1.5220    
  11  norm          1.8715        1.6742        .89845E-04   -1.5434    
  12  Prefactor     11.870        14.403        .11628E-03   -1.5019    
  13  Prefactor     .10000E-03    82.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.751        50.676        .62037E-04   -1.4415    
  15  norm          .10000E-03    41.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.902        16.051        .11616E-03   -1.5018    
  17  Prefactor     91.845        75.435        .41929E-04   -1.3788    
  18  Prefactor     .10000E-03    92.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    48.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .43055        .48528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.384        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .74715        .30090        .36405E-03   -1.0206    
  23  Prefactor     1.1792        .21668        .23565E-03   -.86973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5728e-10
Minuit parameter uncertainties:
  1  9.1211
  2  7.18909
  3  1.23947e-05
  4  4.98856
  5  1.03856e-05
  6  23.972
  7  57.5105
  8  5.5667
  9  1.45624
  10  1.19711
  11  1.67429
  12  14.4071
  13  8.36131e-06
  14  50.7286
  15  0.000778905
  16  16.0565
  17  75.5143
  18  0.000498198
  19  0.000213994
  20  3.78383e-07
  21  8.29204e-06
  22  0.301571
  23  0.21684
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  5.948e+00  1.197e+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

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.179e+00  2.168e-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.471e-01  3.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 63.10
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 4.57e-07 +/- 9.19e-08
Energy Flux (Fixed Index): 1.14e-04 +/- 2.29e-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) = 5802.46004626
delta logL = 1.05696359835

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5802.42525009
delta logL = 1.09175976472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5414       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0919       1.0000          .0000       5.0000    
     3 'Normalizat'    .83192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1287       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=   5802.425     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5414        1.1457        .42668E-02    .71946E-02
   2  alpha         2.0919        .21797        .14661       -.31470E-04
   3  Normalizat    .83199        .23024        .78416E-01    .21142E-04
   4  Prefactor     1.1286        .18111        .54265E-01    .82829E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 5.54137
  alpha      = 2.09191
  Normalizat = 0.831992
  Prefactor  = 1.12863
 **********
 **   18 **HESSE 
 **********

 FCN=   5802.425     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5414        1.2230        .34555E-04   -1.5237    
   2  alpha         2.0919        .23673        .63905E-03   -.16397    
   3  Normalizat    .83199        .27229        .34713E-03   -.98893    
   4  Prefactor     1.1286        .21364        .23992E-03   -.88557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39196e-09
Minuit parameter uncertainties:
  1  1.22304
  2  0.237095
  3  0.27274
  4  0.213807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513344': 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) = 5802.42525005
delta logL = 1.09175981085

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  5.541e+00  1.223e+00  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.092e+00  2.371e-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.129e+00  2.138e-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:  8.320e-01  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 64.53
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.09 +/- 0.24
Photon Flux (Free Index): 3.84e-07 +/- 9.36e-08
Energy Flux (Free Index): 1.25e-04 +/- 2.68e-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/513344/cmap_HighResolution_301276801_301536001_4FGL_J0948.9+0022_daily_bin239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.57e-07', energy_flux2='1.25e-04', photon_flux_error='9.19e-08', dlogl='1.09e+00', energy_flux='1.14e-04', photon_flux2='3.84e-07', job_status='DONE', time_completed='2021-09-01 02:49:02.856670', photon_index_error2='0.24', photon_index2='2.09', ts='63.10', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='2.68e-05', EG='0.75', time_epoch_completed='1630489742.86', return_code='0', job_id='513344', GAL2='1.13', EG2='0.83', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='9.36e-08', ts2='64.53', photon_index='2.45' WHERE bin_id='239' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:49:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 513344: <4FGL_J0948.9+0022_daily_bin239> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin239 147.244 0.3717 301276801 301536001 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 :                                   536.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             264.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            762 sec.

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

