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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin309
RA = 147.244, Dec = 0.3717
tmin = 319420801, tmax = 319680001
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='514646', job_status='RUN', time_executed='2021-09-01 02:44:02.950806', time_epoch_executed='1630489442.95' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514646

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514646/ft1_4FGL_J0948.9+0022_daily_bin309.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514646/ft2_4FGL_J0948.9+0022_daily_bin309.fits


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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514646/ft1_filtered_4FGL_J0948.9+0022_daily_bin309.fits" evtable="EVENTS" scfile=/scratch/kocevski/514646/ft2_4FGL_J0948.9+0022_daily_bin309.fits sctable="SC_DATA" outfile=/scratch/kocevski/514646/ltcube_319420801_319680001_4FGL_J0948.9+0022_daily_bin309.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/514646/ft2_4FGL_J0948.9+0022_daily_bin309.fits
.....................!
real 11.86
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514646/ft1_filtered_4FGL_J0948.9+0022_daily_bin309.fits evtable="EVENTS" scfile=/scratch/kocevski/514646/ft2_4FGL_J0948.9+0022_daily_bin309.fits sctable="SC_DATA" expcube=/scratch/kocevski/514646/ltcube_319420801_319680001_4FGL_J0948.9+0022_daily_bin309.fits outfile=/scratch/kocevski/514646/expmap_319420801_319680001_4FGL_J0948.9+0022_daily_bin309.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/514646/ltcube_319420801_319680001_4FGL_J0948.9+0022_daily_bin309.fits
.....................!
real 189.93
user 185.55
sys 3.98

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/514646/ft1_filtered_4FGL_J0948.9+0022_daily_bin309.fits scfile=/scratch/kocevski/514646/ft2_4FGL_J0948.9+0022_daily_bin309.fits outfile=/scratch/kocevski/514646/cmap_319420801_319680001_4FGL_J0948.9+0022_daily_bin309.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514646/ft1_filtered_4FGL_J0948.9+0022_daily_bin309.fits scfile=/scratch/kocevski/514646/ft2_4FGL_J0948.9+0022_daily_bin309.fits outfile=/scratch/kocevski/514646/cmap_HighResolution_319420801_319680001_4FGL_J0948.9+0022_daily_bin309.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.63
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.4731       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12702E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10650E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.1706       1.0000         .10000E-03   10000.    
    10 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3994       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.148       1.0000         .10000E-03   10000.    
    15 'norm      '    17.371       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.077       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .79090       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5048       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .76975       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=   5019.775     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2607 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1897       -.25102E-06** at limit **
   2  norm          2.4728        3.7635        .96396E-07    .16239E-05
   3  Prefactor     .10000E-03    19.217       -.34520E-06** at limit **
   4  Prefactor     .10000E-03    2.0026       -.18580E-06** at limit **
   5  Prefactor     .10000E-03    54.607       -.51327E-06** at limit **
   6  Prefactor     .10000E-03    5.7124       -.10704E-06** at limit **
   7  Prefactor     .10000E-03    16.852       -.50131E-07** at limit **
   8  norm          .10000E-03    1.6327       -.27121E-07** at limit **
   9  norm          4.1699        1.7310        .54276E-07   -.21276E-04
  10  norm          .10000E-03    .28091       -.20986E-06** at limit **
  11  norm          .10000E-03    .97340        .65476E-07** at limit **
  12  Prefactor     .10000E-03    3.6973       -.72041E-07** at limit **
  13  Prefactor     3.0467        296.94        .36404E-04   -.24053E-05
  14  Prefactor     23.214        56.141       -.94474E-05    .13934E-05
  15  norm          17.377        12.590        .14400E-07    .56931E-05
  16  Prefactor     .10000E-03    5.9838       -.20293E-06** at limit **
  17  Prefactor     15.062        41.490        .53360E-06   -.12182E-05
  18  Prefactor     .10000E-03    26.410       -.17953E-06** at limit **
  19  Prefactor     .10000E-03    8.1345       -.12245E-06** at limit **
  20  norm          .79315        1.0902       -.39070E-06   -.75056E-03
  21  Prefactor     .10000E-03    4.6515        .33903E-06** at limit **
  22  Normalizat    1.5051        .22223       -.16073E-05    .13557E-03
  23  Prefactor     .76970        .16620        .10050E-05   -.34437E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.47278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.16988
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.04667
  Prefactor  = 23.2141
  norm       = 17.3768
  Prefactor  = 0.0001
  Prefactor  = 15.0617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.793149
  Prefactor  = 0.0001
  Normalizat = 1.50511
  Prefactor  = 0.7697
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.775     FROM HESSE     STATUS=OK           366 CALLS     2973 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2261        .12344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.4728        3.7473        .16520E-03   -1.5393    
   3  Prefactor     .10000E-03    19.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0160        .97817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    55.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7196        .16536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6390        .88403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.1699        1.7349        .57433E-04   -1.5300    
  10  norm          .10000E-03    .45472        .71511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .99425        .68250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6993        .13305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0467        299.18        .21943E-03   -1.5359    
  14  Prefactor     23.214        56.201        .83255E-04   -1.4744    
  15  norm          17.377        12.588        .96098E-04   -1.4874    
  16  Prefactor     .10000E-03    6.0221        .16920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.062        41.574        .10315E-03   -1.4932    
  18  Prefactor     .10000E-03    26.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.1451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .79315        .99036        .85342E-03   -1.5530    
  21  Prefactor     .10000E-03    4.7083        .14915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5051        .25442        .24054E-03   -.77635    
  23  Prefactor     .76970        .19198        .25184E-03   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53397e-10
Minuit parameter uncertainties:
  1  8.4327e-06
  2  3.74762
  3  2.92412e-05
  4  5.18304e-06
  5  5.38153e-05
  6  6.45587e-06
  7  5.20396e-06
  8  8.48295e-07
  9  1.7349
  10  1.12663e-05
  11  5.56915e-07
  12  1.51253e-06
  13  60.6959
  14  56.3297
  15  12.5901
  16  4.92313e-06
  17  41.6539
  18  1.12362e-05
  19  3.76739e-06
  20  0.990379
  21  5.0661e-06
  22  0.254638
  23  0.192145
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.127e-05  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:  7.697e-01  1.921e-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.505e+00  2.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 9.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514646/likelihoodResults_319420801_319680001_4FGL_J0948.9+0022_daily_bin309.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): 102
logL (Free Index) = 5019.78530407
delta logL = -0.0103995523823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5019.26848084
delta logL = 0.506423676718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16904       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80297       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=   5019.268     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      286 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16902        11.431        .69602E-02    .16364E-02
   2  alpha         5.0000        2.6979        .46355    ** at limit **
   3  Normalizat    1.4324        .31786        .55510E-01   -.22442E-04
   4  Prefactor     .80289        .11904        .43756E-01   -.95222E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.16902
  alpha      = 5
  Normalizat = 1.43244
  Prefactor  = 0.802891
 **********
 **   18 **HESSE 
 **********

 FCN=   5019.268     FROM HESSE     STATUS=OK            33 CALLS      319 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16902        .19311        .32141E-03   -1.5626    
   2  alpha         5.0000        3.6968        .94766E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4324        .25403        .24545E-03   -.79695    
   4  Prefactor     .80289        .19394        .24709E-03   -.99622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1174e-09
Minuit parameter uncertainties:
  1  0.193106
  2  2.06022e-08
  3  0.254257
  4  0.194106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514646': 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) = 5019.2684801
delta logL = 0.506424423118

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.690e-01  1.931e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  5.000e+00  2.060e-08  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.029e-01  1.941e-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.432e+00  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 147.244 0.372
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.21e-08 +/- 7.06e-08
Energy Flux (Free Index): 8.36e-06 +/- 9.52e-06

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/514646/cmap_HighResolution_319420801_319680001_4FGL_J0948.9+0022_daily_bin309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', comment='SUCCESS', energy_flux2='8.36e-06', dlogl='5.06e-01', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-01 02:53:15.782498', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='9.40e-08', energy_flux_error2='9.52e-06', EG='1.51', time_epoch_completed='1630489995.78', return_code='0', job_id='514646', GAL2='0.80', EG2='1.43', return_code2='0', photon_flux_error2='7.06e-08', ts2='1.07', photon_index='2.45' WHERE bin_id='309' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:53:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 514646: <4FGL_J0948.9+0022_daily_bin309> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin309 147.244 0.3717 319420801 319680001 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 :                                   543.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            753 sec.

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

