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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin682
RA = 147.244, Dec = 0.3717
tmin = 416102401, tmax = 416361601
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='516629', job_status='RUN', time_executed='2021-09-01 02:49:26.928703', time_epoch_executed='1630489766.93' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516629

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516629/ft1_4FGL_J0948.9+0022_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516629/ft2_4FGL_J0948.9+0022_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516629/ft1_4FGL_J0948.9+0022_daily_bin682.fits outfile=/scratch/kocevski/516629/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin682.fits ra=147.244 dec=0.3717 rad=12.0 tmin=416102401.0 tmax=416361601.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 6.48
user 6.15
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516629/ft1_filtered_4FGL_J0948.9+0022_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/516629/ft2_4FGL_J0948.9+0022_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/516629/ltcube_416102401_416361601_4FGL_J0948.9+0022_daily_bin682.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/516629/ft2_4FGL_J0948.9+0022_daily_bin682.fits
.....................!
real 12.14
user 11.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516629/ft1_filtered_4FGL_J0948.9+0022_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/516629/ft2_4FGL_J0948.9+0022_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/516629/ltcube_416102401_416361601_4FGL_J0948.9+0022_daily_bin682.fits outfile=/scratch/kocevski/516629/expmap_416102401_416361601_4FGL_J0948.9+0022_daily_bin682.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/516629/ltcube_416102401_416361601_4FGL_J0948.9+0022_daily_bin682.fits
.....................!
real 190.41
user 185.62
sys 4.44

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/516629/ft1_filtered_4FGL_J0948.9+0022_daily_bin682.fits scfile=/scratch/kocevski/516629/ft2_4FGL_J0948.9+0022_daily_bin682.fits outfile=/scratch/kocevski/516629/cmap_416102401_416361601_4FGL_J0948.9+0022_daily_bin682.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.64
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516629/ft1_filtered_4FGL_J0948.9+0022_daily_bin682.fits scfile=/scratch/kocevski/516629/ft2_4FGL_J0948.9+0022_daily_bin682.fits outfile=/scratch/kocevski/516629/cmap_HighResolution_416102401_416361601_4FGL_J0948.9+0022_daily_bin682.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=147.244 yref=0.3717 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.62
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10721E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.552       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15194       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5256       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.199       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7887       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.617       1.0000         .10000E-03   10000.    
     8 'norm      '    6.0570       1.0000         .10000E-03   10000.    
     9 'norm      '    .92719       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0343       1.0000         .10000E-03   10000.    
    11 'norm      '    4.2541       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5814       1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.063       1.0000         .10000E-03   10000.    
    14 'Prefactor '    61.560       1.0000         .10000E-03   10000.    
    15 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11636E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.155       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81226       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=   4180.354     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2598 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8064        .10098E-05** at limit **
   2  norm          10.555        8.6238       -.24119E-07   -.27252E-03
   3  Prefactor     .10237E-03    25.776        .47228E-05** at limit **
   4  Prefactor     1.5258        4.2496        .16768E-05   -.10378E-03
   5  Prefactor     18.234        44.539        .16206E-05   -.54298E-04
   6  Prefactor     8.7860        19.299       -.13605E-06   -.19161E-03
   7  Prefactor     48.576        71.406       -.37639E-05   -.94477E-04
   8  norm          6.0563        5.4071        .24001E-06   -.61729E-04
   9  norm          .92693        1.1639        .33031E-06    .21517E-03
  10  norm          1.0342        .78648        .22204E-06   -.13007E-03
  11  norm          4.2540        2.7487        .10793E-06   -.27071E-04
  12  Prefactor     5.5845        14.185        .25664E-05    .10798E-04
  13  Prefactor     45.063        59.951        .79165E-06   -.44162E-04
  14  Prefactor     61.544        51.433       -.35841E-06   -.66110E-04
  15  norm          .10000E-03    8.2242        .34601E-07** at limit **
  16  Prefactor     .10000E-03    23.499       -.17312E-05** at limit **
  17  Prefactor     .10000E-03    65.149       -.69235E-06** at limit **
  18  Prefactor     11.189        47.494        .10660E-05   -.15377E-05
  19  Prefactor     .10000E-03    17.633       -.83524E-06** at limit **
  20  norm          .10000E-03    .49504       -.23800E-07** at limit **
  21  Prefactor     .10000E-03    4.8938       -.71091E-07** at limit **
  22  Normalizat    1.0881        .26815       -.93799E-05   -.35185E-03
  23  Prefactor     .81242        .18350        .27360E-05   -.74969E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 10.5551
  Prefactor  = 0.00010237
  Prefactor  = 1.52578
  Prefactor  = 18.2341
  Prefactor  = 8.78599
  Prefactor  = 48.5761
  norm       = 6.05626
  norm       = 0.926926
  norm       = 1.0342
  norm       = 4.25405
  Prefactor  = 5.58455
  Prefactor  = 45.0631
  Prefactor  = 61.5439
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1894
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08805
  Prefactor  = 0.812415
 **********
 **   18 **HESSE 
 **********

 FCN=   4180.354     FROM HESSE     STATUS=OK           380 CALLS     2978 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.209        .20610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.555        8.6508        .12334E-03   -1.5058    
   3  Prefactor     .10237E-03    40.352        .82021E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5258        4.2088        .20174E-03   -1.5461    
   5  Prefactor     18.234        47.060        .93885E-04   -1.4854    
   6  Prefactor     8.7860        19.427        .13521E-03   -1.5115    
   7  Prefactor     48.576        71.583        .57511E-04   -1.4313    
   8  norm          6.0563        5.4092        .13469E-03   -1.5216    
   9  norm          .92693        1.1199        .74890E-03   -1.5515    
  10  norm          1.0342        .76731        .46949E-04   -1.5505    
  11  norm          4.2540        2.7511        .83214E-04   -1.5295    
  12  Prefactor     5.5845        14.176        .17005E-03   -1.5235    
  13  Prefactor     45.063        59.999        .59725E-04   -1.4364    
  14  Prefactor     61.544        51.464        .51141E-04   -1.4137    
  15  norm          .10000E-03    8.2251        .18104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.473        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    65.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.189        46.482        .11995E-03   -1.5039    
  19  Prefactor     .10000E-03    17.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .49808        .44413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9216        .13966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0881        .29877        .25707E-03   -.90136    
  23  Prefactor     .81242        .21238        .23240E-03   -.99272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61713e-09
Minuit parameter uncertainties:
  1  9.4609e-05
  2  8.65185
  3  0.0195718
  4  4.20966
  5  47.1564
  6  19.4413
  7  71.7101
  8  5.40965
  9  1.11992
  10  0.76732
  11  2.75121
  12  14.185
  13  60.08
  14  51.5013
  15  2.18096e-06
  16  0.000159013
  17  0.000131184
  18  45.6725
  19  5.43197e-05
  20  2.4475e-06
  21  2.23598e-05
  22  0.299233
  23  0.212599
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.034e+00  7.673e-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.124e-01  2.126e-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.088e+00  2.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.68
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 7.94e-08 +/- 5.89e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/516629/likelihoodResults_416102401_416361601_4FGL_J0948.9+0022_daily_bin682.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) = 4180.34259269
delta logL = 0.0117062082618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4180.33868035
delta logL = 0.0156185513661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0675       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7655       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82785       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=   4180.339     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      249 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0676        .79267        .46304E-04   -.10263E-03
   2  alpha         2.7670        1.9144        .30823E-01   -.34065E-05
   3  Normalizat    1.0641        .30550        .25952E-03    .11390E-05
   4  Prefactor     .82794        .23430        .23049E-03   -.20223E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.0676
  alpha      = 2.76699
  Normalizat = 1.06407
  Prefactor  = 0.827944
 **********
 **   18 **HESSE 
 **********

 FCN=   4180.339     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0676        .77646        .18521E-05   -1.5501    
   2  alpha         2.7670        1.8872        .12329E-02    .10700    
   3  Normalizat    1.0641        .30569        .10381E-04   -.90914    
   4  Prefactor     .82794        .23371        .92196E-05   -.98706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05894e-12
Minuit parameter uncertainties:
  1  0.776463
  2  2.14291
  3  0.306197
  4  0.233995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516629': 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) = 4180.33868007
delta logL = 0.0156188347846

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.068e+00  7.765e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.767e+00  2.143e+00  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.279e-01  2.340e-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.064e+00  3.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.70
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.77 +/- 2.14
Photon Flux (Free Index): 9.32e-08 +/- 1.05e-07
Energy Flux (Free Index): 1.97e-05 +/- 1.43e-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/516629/cmap_HighResolution_416102401_416361601_4FGL_J0948.9+0022_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-05', comment='SUCCESS', photon_flux='7.94e-08', energy_flux2='1.97e-05', photon_flux_error='5.89e-08', dlogl='1.56e-02', energy_flux='1.98e-05', photon_flux2='9.32e-08', job_status='DONE', time_completed='2021-09-01 02:58:08.907879', photon_index_error2='2.14', photon_index2='2.77', ts='2.68', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='2.01e-07', energy_flux_error2='1.43e-05', EG='1.09', time_epoch_completed='1630490288.91', return_code='0', job_id='516629', GAL2='0.83', EG2='1.06', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='1.05e-07', ts2='2.70', photon_index='2.45' WHERE bin_id='682' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:58:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 516629: <4FGL_J0948.9+0022_daily_bin682> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin682> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:16 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:18 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:18 2021
Terminated at Wed Sep  1 02:58:09 2021
Results reported at Wed Sep  1 02:58:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin682 147.244 0.3717 416102401 416361601 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 :                                   514.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             226.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

