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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin420
RA = 147.244, Dec = 0.3717
tmin = 348192001, tmax = 348451201
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='514848', job_status='RUN', time_executed='2021-09-01 02:43:10.877358', time_epoch_executed='1630489390.88' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514848/ft1_4FGL_J0948.9+0022_daily_bin420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514848/ft2_4FGL_J0948.9+0022_daily_bin420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514848/ft1_4FGL_J0948.9+0022_daily_bin420.fits outfile=/scratch/kocevski/514848/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin420.fits ra=147.244 dec=0.3717 rad=12.0 tmin=348192001.0 tmax=348451201.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.40
user 3.20
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514848/ft1_filtered_4FGL_J0948.9+0022_daily_bin420.fits evtable="EVENTS" scfile=/scratch/kocevski/514848/ft2_4FGL_J0948.9+0022_daily_bin420.fits sctable="SC_DATA" expcube=/scratch/kocevski/514848/ltcube_348192001_348451201_4FGL_J0948.9+0022_daily_bin420.fits outfile=/scratch/kocevski/514848/expmap_348192001_348451201_4FGL_J0948.9+0022_daily_bin420.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/514848/ltcube_348192001_348451201_4FGL_J0948.9+0022_daily_bin420.fits
.....................!
real 189.63
user 184.32
sys 5.01

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/514848/ft1_filtered_4FGL_J0948.9+0022_daily_bin420.fits scfile=/scratch/kocevski/514848/ft2_4FGL_J0948.9+0022_daily_bin420.fits outfile=/scratch/kocevski/514848/cmap_348192001_348451201_4FGL_J0948.9+0022_daily_bin420.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514848/ft1_filtered_4FGL_J0948.9+0022_daily_bin420.fits scfile=/scratch/kocevski/514848/ft2_4FGL_J0948.9+0022_daily_bin420.fits outfile=/scratch/kocevski/514848/cmap_HighResolution_348192001_348451201_4FGL_J0948.9+0022_daily_bin420.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.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4962       1.0000         .10000E-03   10000.    
     2 'norm      '    13.536       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.395       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.860       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.450       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.355       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.4051       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2118       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1175       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.310       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.069       1.0000         .10000E-03   10000.    
    15 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8131       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .51481       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .90876       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76386       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0835       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=   6385.334     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2529 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4962        4.7713        .60343E-06    .30312E-04
   2  norm          13.536        6.4117        .28852E-07   -.10998E-04
   3  Prefactor     14.395        13.485        .13629E-06   -.69928E-05
   4  Prefactor     .10000E-03    1.8454        .11308E-06** at limit **
   5  Prefactor     18.855        32.946        .48986E-06   -.10597E-04
   6  Prefactor     23.452        15.818        .19908E-06   -.23966E-04
   7  Prefactor     16.350        26.539        .31766E-06   -.85158E-05
   8  norm          .10000E-03    2.4678        .33970E-07** at limit **
   9  norm          4.4053        1.8369        .10385E-06   -.51291E-04
  10  norm          1.2118        .61511        .79237E-07   -.32729E-04
  11  norm          3.1177        1.9910        .72845E-07   -.15461E-04
  12  Prefactor     .10000E-03    3.9982        .76509E-07** at limit **
  13  Prefactor     11.349        43.568       -.27365E-05   -.27612E-04
  14  Prefactor     30.020        33.009        .12162E-06   -.11756E-03
  15  norm          .10000E-03    7.2052        .93198E-07** at limit **
  16  Prefactor     8.8146        8.2009        .23988E-06   -.37874E-04
  17  Prefactor     .10000E-03    26.580        .60907E-07** at limit **
  18  Prefactor     .10000E-03    29.922        .30274E-06** at limit **
  19  Prefactor     .10000E-03    6.5387        .86366E-07** at limit **
  20  norm          .51452        1.5250        .88072E-06   -.20969E-03
  21  Prefactor     .91490        8.4808        .32856E-05   -.62157E-04
  22  Normalizat    .76377        .20240       -.18042E-05   -.16205E-03
  23  Prefactor     1.0836        .15239       -.15287E-06   -.26160E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.49621
  norm       = 13.5362
  Prefactor  = 14.3948
  Prefactor  = 0.0001
  Prefactor  = 18.8553
  Prefactor  = 23.4524
  Prefactor  = 16.3504
  norm       = 0.0001
  norm       = 4.40534
  norm       = 1.21181
  norm       = 3.11772
  Prefactor  = 0.0001
  Prefactor  = 11.3486
  Prefactor  = 30.0202
  norm       = 0.0001
  Prefactor  = 8.8146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.514523
  Prefactor  = 0.914903
  Normalizat = 0.76377
  Prefactor  = 1.08359
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.334     FROM HESSE     STATUS=OK           374 CALLS     2903 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4962        4.7772        .19230E-03   -1.5334    
   2  norm          13.536        6.4098        .10887E-03   -1.4972    
   3  Prefactor     14.395        13.478        .10557E-03   -1.4949    
   4  Prefactor     .10000E-03    1.8647        .10598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.855        32.947        .92226E-04   -1.4839    
   6  Prefactor     23.452        15.826        .82717E-04   -1.4739    
   7  Prefactor     16.350        26.548        .99037E-04   -1.4899    
   8  norm          .10000E-03    2.5558        .24503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.4053        1.8417        .65442E-04   -1.5288    
  10  norm          1.2118        .60625        .42203E-04   -1.5488    
  11  norm          3.1177        1.9910        .86840E-04   -1.5355    
  12  Prefactor     .10000E-03    4.0032        .15605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.349        43.518        .11913E-03   -1.5034    
  14  Prefactor     30.020        32.774        .73066E-04   -1.4612    
  15  norm          .10000E-03    7.2432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.8146        8.1903        .13502E-03   -1.5114    
  17  Prefactor     .10000E-03    26.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .51452        1.4870        .14955E-03   -1.5565    
  21  Prefactor     .91490        8.1250        .41816E-03   -1.5517    
  22  Normalizat    .76377        .23305        .30442E-03   -1.0143    
  23  Prefactor     1.0836        .17693        .21029E-03   -.89993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4063e-11
Minuit parameter uncertainties:
  1  4.7777
  2  6.41013
  3  13.4811
  4  3.70157e-06
  5  32.9787
  6  15.8287
  7  26.5672
  8  5.44125e-06
  9  1.84169
  10  0.606249
  11  1.99106
  12  3.02618e-06
  13  43.6406
  14  32.7934
  15  4.35484e-06
  16  8.19135
  17  1.97143e-05
  18  4.58331e-05
  19  9.67597e-07
  20  1.48714
  21  5.4536
  22  0.233354
  23  0.177025
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.212e+00  6.062e-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.084e+00  1.770e-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.638e-01  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.21
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 9.30e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.16e-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) = 6385.28101029
delta logL = 0.0525628356181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6385.27266286
delta logL = 0.0609102698663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1395       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2283       1.0000          .0000       5.0000    
     3 'Normalizat'    .78280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0722       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=   6385.273     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1394        .59711        .93361E-02    .36130E-03
   2  alpha         2.2279        .49170        .39412       -.35869E-04
   3  Normalizat    .78267        .18796        .68043E-01    .23288E-04
   4  Prefactor     1.0722        .15190        .38754E-01    .53931E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13941
  alpha      = 2.22794
  Normalizat = 0.782668
  Prefactor  = 1.07224
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.273     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1394        .63596        .41809E-04   -1.5494    
   2  alpha         2.2279        .61596        .15081E-01   -.10904    
   3  Normalizat    .78267        .22207        .30107E-03   -1.0071    
   4  Prefactor     1.0722        .17788        .21122E-03   -.90359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30521e-09
Minuit parameter uncertainties:
  1  0.63596
  2  0.622451
  3  0.222329
  4  0.177982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514848': 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) = 6385.2726622
delta logL = 0.0609109296511

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.139e+00  6.360e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.228e+00  6.225e-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.072e+00  1.780e-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.827e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.28
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.23 +/- 0.62
Photon Flux (Free Index): 8.15e-08 +/- 5.27e-08
Energy Flux (Free Index): 2.37e-05 +/- 1.21e-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/514848/cmap_HighResolution_348192001_348451201_4FGL_J0948.9+0022_daily_bin420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.30e-08', energy_flux2='2.37e-05', photon_flux_error='4.65e-08', dlogl='6.09e-02', energy_flux='2.32e-05', photon_flux2='8.15e-08', job_status='DONE', time_completed='2021-09-01 02:52:26.157261', photon_index_error2='0.62', photon_index2='2.23', ts='7.21', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='0.76', time_epoch_completed='1630489946.16', return_code='0', job_id='514848', GAL2='1.07', EG2='0.78', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='5.27e-08', ts2='7.28', photon_index='2.45' WHERE bin_id='420' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:52:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 514848: <4FGL_J0948.9+0022_daily_bin420> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin420> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:40:58 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:41:00 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:41:00 2021
Terminated at Wed Sep  1 02:52:27 2021
Results reported at Wed Sep  1 02:52:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin420 147.244 0.3717 348192001 348451201 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 :                                   542.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             247.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            689 sec.

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

