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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin279
RA = 147.244, Dec = 0.3717
tmin = 311644801, tmax = 311904001
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='514595', job_status='RUN', time_executed='2021-09-01 02:44:58.633288', time_epoch_executed='1630489498.63' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514595

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514595/ft1_4FGL_J0948.9+0022_daily_bin279.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514595/ft2_4FGL_J0948.9+0022_daily_bin279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514595/ft1_4FGL_J0948.9+0022_daily_bin279.fits outfile=/scratch/kocevski/514595/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin279.fits ra=147.244 dec=0.3717 rad=12.0 tmin=311644801.0 tmax=311904001.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.85
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514595/ft1_filtered_4FGL_J0948.9+0022_daily_bin279.fits" evtable="EVENTS" scfile=/scratch/kocevski/514595/ft2_4FGL_J0948.9+0022_daily_bin279.fits sctable="SC_DATA" outfile=/scratch/kocevski/514595/ltcube_311644801_311904001_4FGL_J0948.9+0022_daily_bin279.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/514595/ft2_4FGL_J0948.9+0022_daily_bin279.fits
.....................!
real 12.11
user 11.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514595/ft1_filtered_4FGL_J0948.9+0022_daily_bin279.fits evtable="EVENTS" scfile=/scratch/kocevski/514595/ft2_4FGL_J0948.9+0022_daily_bin279.fits sctable="SC_DATA" expcube=/scratch/kocevski/514595/ltcube_311644801_311904001_4FGL_J0948.9+0022_daily_bin279.fits outfile=/scratch/kocevski/514595/expmap_311644801_311904001_4FGL_J0948.9+0022_daily_bin279.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/514595/ltcube_311644801_311904001_4FGL_J0948.9+0022_daily_bin279.fits
.....................!
real 193.10
user 187.24
sys 5.41

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/514595/ft1_filtered_4FGL_J0948.9+0022_daily_bin279.fits scfile=/scratch/kocevski/514595/ft2_4FGL_J0948.9+0022_daily_bin279.fits outfile=/scratch/kocevski/514595/cmap_311644801_311904001_4FGL_J0948.9+0022_daily_bin279.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.68
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514595/ft1_filtered_4FGL_J0948.9+0022_daily_bin279.fits scfile=/scratch/kocevski/514595/ft2_4FGL_J0948.9+0022_daily_bin279.fits outfile=/scratch/kocevski/514595/cmap_HighResolution_311644801_311904001_4FGL_J0948.9+0022_daily_bin279.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.69
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.466       1.0000         .10000E-03   10000.    
     2 'norm      '    8.8878       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0498       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7366       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4830       1.0000         .10000E-03   10000.    
     8 'norm      '    4.5778       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .81781       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0115       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.088       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.673       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2824       1.0000         .10000E-03   10000.    
    18 'Prefactor '    81.024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.4190       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .98944       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0987       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88809       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=   7313.968     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2532 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.467        6.8996       -.20605E-06   -.59480E-04
   2  norm          8.8881        6.1929        .93958E-07   -.23551E-04
   3  Prefactor     .10000E-03    6.2188        .17835E-06** at limit **
   4  Prefactor     5.0498        4.2371        .30933E-05   -.96733E-03
   5  Prefactor     .10000E-03    26.619        .90126E-06** at limit **
   6  Prefactor     9.7387        12.781        .13601E-05   -.15319E-03
   7  Prefactor     4.4498        50.069       -.10245E-04   -.20749E-03
   8  norm          4.5783        2.8008        .66559E-07    .53067E-04
   9  norm          .10000E-03    .47034        .12796E-06** at limit **
  10  norm          .81788        .61488        .75188E-07   -.25759E-03
  11  norm          1.0115        .96588        .25819E-07    .10178E-03
  12  Prefactor     14.094        12.384        .16519E-06    .24159E-04
  13  Prefactor     40.679        39.817        .84553E-06    .82942E-04
  14  Prefactor     .10000E-03    9.9993        .31213E-06** at limit **
  15  norm          .10000E-03    18.670       -.81727E-06** at limit **
  16  Prefactor     .10000E-03    6.6526        .29798E-06** at limit **
  17  Prefactor     8.2432        134.40       -.11285E-04   -.78986E-04
  18  Prefactor     81.047        53.204        .23911E-05    .20162E-03
  19  Prefactor     .10000E-03    6.9434        .46916E-06** at limit **
  20  norm          1.4188        1.0883       -.24868E-07   -.14317E-03
  21  Prefactor     .99062        5.0776        .29580E-05   -.14971E-03
  22  Normalizat    1.0984        .19214        .21439E-06   -.18889E-03
  23  Prefactor     .88835        .14204       -.19218E-05   -.31867E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 35.4667
  norm       = 8.88814
  Prefactor  = 0.0001
  Prefactor  = 5.0498
  Prefactor  = 0.0001
  Prefactor  = 9.73872
  Prefactor  = 4.44975
  norm       = 4.57832
  norm       = 0.0001
  norm       = 0.817881
  norm       = 1.01147
  Prefactor  = 14.0938
  Prefactor  = 40.679
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.24323
  Prefactor  = 81.0474
  Prefactor  = 0.0001
  norm       = 1.41885
  Prefactor  = 0.990622
  Normalizat = 1.09835
  Prefactor  = 0.888348
 **********
 **   18 **HESSE 
 **********

 FCN=   7313.968     FROM HESSE     STATUS=OK           374 CALLS     2906 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.467        6.9026        .67293E-04   -1.4516    
   2  norm          8.8881        6.1971        .13445E-03   -1.5112    
   3  Prefactor     .10000E-03    6.2352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0498        4.3209        .77271E-03   -1.5258    
   5  Prefactor     .10000E-03    26.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7387        12.800        .64212E-03   -1.5084    
   7  Prefactor     4.4498        54.295        .19016E-03   -1.5286    
   8  norm          4.5783        2.8014        .10839E-03   -1.5280    
   9  norm          .10000E-03    .48776        .11445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .81788        .59368        .54076E-03   -1.5527    
  11  norm          1.0115        .99799        .79837E-03   -1.5507    
  12  Prefactor     14.094        12.375        .10671E-03   -1.4957    
  13  Prefactor     40.679        39.947        .62853E-04   -1.4431    
  14  Prefactor     .10000E-03    10.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    18.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.2432        140.10        .13930E-03   -1.5134    
  18  Prefactor     81.047        53.544        .44620E-04   -1.3905    
  19  Prefactor     .10000E-03    6.9438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4188        1.0875        .36325E-04   -1.5470    
  21  Prefactor     .99062        5.1322        .36591E-03   -1.5509    
  22  Normalizat    1.0984        .22885        .27098E-03   -.89805    
  23  Prefactor     .88835        .16770        .23604E-03   -.96549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78704e-09
Minuit parameter uncertainties:
  1  6.9028
  2  6.19756
  3  1.6157e-05
  4  4.3212
  5  0.000166768
  6  12.8041
  7  31.1217
  8  2.80148
  9  7.87658e-07
  10  0.593686
  11  0.99801
  12  12.3773
  13  39.973
  14  8.65776e-06
  15  2.16771e-05
  16  3.19075e-05
  17  68.1537
  18  53.576
  19  1.00289e-06
  20  1.08748
  21  4.50994
  22  0.229061
  23  0.1678
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.179e-01  5.937e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.453e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  8.883e-01  1.678e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  1.098e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.63
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.28e-08 +/- 4.56e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/514595/likelihoodResults_311644801_311904001_4FGL_J0948.9+0022_daily_bin279.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7313.93537696
delta logL = 0.0326023726029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7313.93377529
delta logL = 0.0342040373698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83349       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6544       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89519       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=   7313.934     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      245 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83353        .58943        .53063E-03   -.55088E-03
   2  alpha         2.6544        .78523        .22976E-01   -.17574E-04
   3  Normalizat    1.0874        .21475        .27216E-03    .14512E-03
   4  Prefactor     .89507        .16869        .23526E-03   -.29381E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.833525
  alpha      = 2.65436
  Normalizat = 1.08738
  Prefactor  = 0.895071
 **********
 **   18 **HESSE 
 **********

 FCN=   7313.934     FROM HESSE     STATUS=OK            27 CALLS      272 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83353        .58725        .21225E-04   -1.5525    
   2  alpha         2.6544        .78281        .91902E-03    .61781E-01
   3  Normalizat    1.0874        .21512        .10886E-04   -.90158    
   4  Prefactor     .89507        .16885        .94105E-05   -.96314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08323e-10
Minuit parameter uncertainties:
  1  0.587253
  2  0.796255
  3  0.215293
  4  0.168949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514595': 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) = 7313.93377506
delta logL = 0.0342042731863

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.335e-01  5.873e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.654e+00  7.963e-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:  8.951e-01  1.689e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  1.087e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.68
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.65 +/- 0.80
Photon Flux (Free Index): 6.93e-08 +/- 5.31e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.10e-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/514595/cmap_HighResolution_311644801_311904001_4FGL_J0948.9+0022_daily_bin279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-05', comment='SUCCESS', photon_flux='6.28e-08', energy_flux2='1.55e-05', photon_flux_error='4.56e-08', dlogl='3.42e-02', energy_flux='1.56e-05', photon_flux2='6.93e-08', job_status='DONE', time_completed='2021-09-01 02:56:07.596348', photon_index_error2='0.80', photon_index2='2.65', ts='2.63', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.10e-05', EG='1.10', time_epoch_completed='1630490167.6', return_code='0', job_id='514595', GAL2='0.90', EG2='1.09', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='5.31e-08', ts2='2.68', photon_index='2.45' WHERE bin_id='279' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:56:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 514595: <4FGL_J0948.9+0022_daily_bin279> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin279 147.244 0.3717 311644801 311904001 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 :                                   660.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            930 sec.

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

