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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin689
RA = 147.244, Dec = 0.3717
tmin = 417916801, tmax = 418176001
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='516640', job_status='RUN', time_executed='2021-09-01 02:48:40.795993', time_epoch_executed='1630489720.8' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='689'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516640

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516640/ft1_4FGL_J0948.9+0022_daily_bin689.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516640/ft2_4FGL_J0948.9+0022_daily_bin689.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516640/ft1_4FGL_J0948.9+0022_daily_bin689.fits outfile=/scratch/kocevski/516640/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin689.fits ra=147.244 dec=0.3717 rad=12.0 tmin=417916801.0 tmax=418176001.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 7.36
user 7.00
sys 0.32

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516640/ft1_filtered_4FGL_J0948.9+0022_daily_bin689.fits evtable="EVENTS" scfile=/scratch/kocevski/516640/ft2_4FGL_J0948.9+0022_daily_bin689.fits sctable="SC_DATA" expcube=/scratch/kocevski/516640/ltcube_417916801_418176001_4FGL_J0948.9+0022_daily_bin689.fits outfile=/scratch/kocevski/516640/expmap_417916801_418176001_4FGL_J0948.9+0022_daily_bin689.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/516640/ltcube_417916801_418176001_4FGL_J0948.9+0022_daily_bin689.fits
.....................!
real 189.72
user 185.30
sys 3.77

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/516640/ft1_filtered_4FGL_J0948.9+0022_daily_bin689.fits scfile=/scratch/kocevski/516640/ft2_4FGL_J0948.9+0022_daily_bin689.fits outfile=/scratch/kocevski/516640/cmap_417916801_418176001_4FGL_J0948.9+0022_daily_bin689.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516640/ft1_filtered_4FGL_J0948.9+0022_daily_bin689.fits scfile=/scratch/kocevski/516640/ft2_4FGL_J0948.9+0022_daily_bin689.fits outfile=/scratch/kocevski/516640/cmap_HighResolution_417916801_418176001_4FGL_J0948.9+0022_daily_bin689.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.54
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .70970E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5372       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.853       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5867       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.736       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.686       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5981       1.0000         .10000E-03   10000.    
     9 'norm      '    .94874       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8434       1.0000         .10000E-03   10000.    
    11 'norm      '    .81019       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4232       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0869       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.7761       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0128       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.008       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.7280       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0209       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93885       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1348       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=   11752.67     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2244 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70573E-01    1.0869       -.70136E-07    .50697E-04
   2  norm          1.5371        5.4704        .16379E-05   -.14911E-03
   3  Prefactor     12.847        13.999       -.18411E-06   -.12643E-04
   4  Prefactor     1.5867        2.1129        .17479E-06   -.43917E-04
   5  Prefactor     .10000E-03    13.680       -.11988E-05** at limit **
   6  Prefactor     33.737        14.520       -.19205E-06   -.13650E-03
   7  Prefactor     20.688        20.250       -.23453E-07   -.78138E-05
   8  norm          1.5976        2.6277        .57511E-06   -.13196E-03
   9  norm          .94871        .86131        .16983E-06    .27522E-03
  10  norm          3.8435        .69347        .15483E-07   -.18329E-03
  11  norm          .81004        .79356       -.31794E-07    .34430E-04
  12  Prefactor     6.4232        6.2004        .89068E-07    .49842E-04
  13  Prefactor     2.0356        34.450        .83096E-06   -.24487E-04
  14  Prefactor     .10000E-03    7.7033        .49108E-07** at limit **
  15  norm          3.7809        10.338        .32570E-06   -.56730E-04
  16  Prefactor     3.0166        5.9049        .86616E-06    .33506E-04
  17  Prefactor     22.998        31.134       -.19558E-05   -.18815E-03
  18  Prefactor     .10000E-03    14.026        .11811E-05** at limit **
  19  Prefactor     .10000E-03    3.4090       -.22155E-07** at limit **
  20  norm          2.7282        .97857       -.86121E-09   -.14704E-03
  21  Prefactor     2.0216        3.5562        .83059E-06   -.16571E-03
  22  Normalizat    .93866        .15867       -.18242E-06   -.93156E-04
  23  Prefactor     1.1350        .12304       -.45744E-06   -.52853E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0705735
  norm       = 1.5371
  Prefactor  = 12.8474
  Prefactor  = 1.58666
  Prefactor  = 0.000100001
  Prefactor  = 33.7374
  Prefactor  = 20.6876
  norm       = 1.59756
  norm       = 0.948712
  norm       = 3.84351
  norm       = 0.810038
  Prefactor  = 6.42315
  Prefactor  = 2.03564
  Prefactor  = 0.0001
  norm       = 3.78087
  Prefactor  = 3.01659
  Prefactor  = 22.9976
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.7282
  Prefactor  = 2.02158
  Normalizat = 0.93866
  Prefactor  = 1.13496
 **********
 **   18 **HESSE 
 **********

 FCN=   11752.67     FROM HESSE     STATUS=OK           384 CALLS     2628 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70573E-01    12.641        .21722E-02   -1.5655    
   2  norm          1.5371        5.5542        .34400E-03   -1.5460    
   3  Prefactor     12.847        13.979        .11173E-03   -1.4991    
   4  Prefactor     1.5867        2.0941        .17457E-03   -1.5456    
   5  Prefactor     .10000E-03    13.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.737        14.558        .68991E-04   -1.4546    
   7  Prefactor     20.688        20.254        .88063E-04   -1.4798    
   8  norm          1.5976        2.6239        .21724E-03   -1.5455    
   9  norm          .94871        .79226        .92993E-03   -1.5513    
  10  norm          3.8435        .69469        .35693E-04   -1.5316    
  11  norm          .81004        .78682        .92629E-04   -1.5528    
  12  Prefactor     6.4232        6.1928        .15836E-03   -1.5201    
  13  Prefactor     2.0356        34.708        .28580E-03   -1.5423    
  14  Prefactor     .10000E-03    7.7143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7809        10.218        .20775E-03   -1.5319    
  16  Prefactor     3.0166        5.8547        .23382E-03   -1.5361    
  17  Prefactor     22.998        32.250        .83508E-04   -1.4748    
  18  Prefactor     .10000E-03    14.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.7282        .97670        .61470E-04   -1.5378    
  21  Prefactor     2.0216        3.5715        .26017E-03   -1.5424    
  22  Normalizat    .93866        .18418        .29987E-03   -.95115    
  23  Prefactor     1.1350        .14304        .22541E-03   -.88357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20792e-10
Minuit parameter uncertainties:
  1  1.88814
  2  5.55607
  3  13.9829
  4  2.09424
  5  0.000168575
  6  14.5592
  7  20.2603
  8  2.62406
  9  0.792267
  10  0.694694
  11  0.786826
  12  6.19337
  13  16.8221
  14  4.01324e-06
  15  10.2228
  16  5.85579
  17  32.2747
  18  0.000173115
  19  5.96933e-07
  20  0.976706
  21  3.57183
  22  0.184308
  23  0.143089
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.844e+00  6.947e-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.135e+00  1.431e-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.387e-01  1.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 63.67
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.95e-07 +/- 5.33e-08
Energy Flux (Fixed Index): 7.35e-05 +/- 1.33e-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) = 11752.6681968
delta logL = 0.00119400389303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11752.6680679
delta logL = 0.00132293078968

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8462       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4664       1.0000          .0000       5.0000    
     3 'Normalizat'    .93575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1369       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=   11752.67     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      202 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8462        .74363        .51445E-02    .39487E-03
   2  alpha         2.4664        .26572        .23869       -.32569E-04
   3  Normalizat    .93575        .15357        .67875E-01    .10641E-03
   4  Prefactor     1.1369        .12445        .36328E-01    .81973E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.84615
  alpha      = 2.46644
  Normalizat = 0.935751
  Prefactor  = 1.13688
 **********
 **   18 **HESSE 
 **********

 FCN=   11752.67     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8462        .68792        .35657E-04   -1.5316    
   2  alpha         2.4664        .26169        .10049E-01   -.13425E-01
   3  Normalizat    .93575        .18312        .30026E-03   -.95215    
   4  Prefactor     1.1369        .14657        .22525E-03   -.88296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95586e-10
Minuit parameter uncertainties:
  1  0.687924
  2  0.262175
  3  0.183247
  4  0.146625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516640': 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) = 11752.6680679
delta logL = 0.00132293081333

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.846e+00  6.879e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.466e+00  2.622e-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.137e+00  1.466e-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.358e-01  1.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 63.39
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.47 +/- 0.26
Photon Flux (Free Index): 2.97e-07 +/- 6.12e-08
Energy Flux (Free Index): 7.33e-05 +/- 1.37e-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/516640/cmap_HighResolution_417916801_418176001_4FGL_J0948.9+0022_daily_bin689.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.95e-07', energy_flux2='7.33e-05', photon_flux_error='5.33e-08', dlogl='1.32e-03', energy_flux='7.35e-05', photon_flux2='2.97e-07', job_status='DONE', time_completed='2021-09-01 03:01:14.326650', photon_index_error2='0.26', photon_index2='2.47', ts='63.67', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='0.94', time_epoch_completed='1630490474.33', return_code='0', job_id='516640', GAL2='1.14', EG2='0.94', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='6.12e-08', ts2='63.39', photon_index='2.45' WHERE bin_id='689' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:01:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 516640: <4FGL_J0948.9+0022_daily_bin689> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin689> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:17 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:46:19 2021
Terminated at Wed Sep  1 03:01:15 2021
Results reported at Wed Sep  1 03:01:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin689 147.244 0.3717 417916801 418176001 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 :                                   749.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            898 sec.

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

