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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin196
RA = 147.244, Dec = 0.3717
tmin = 290131201, tmax = 290390401
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='513281', job_status='RUN', time_executed='2021-09-01 02:36:36.852696', time_epoch_executed='1630488996.85' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513281

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513281/ft1_4FGL_J0948.9+0022_daily_bin196.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513281/ft2_4FGL_J0948.9+0022_daily_bin196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513281/ft1_4FGL_J0948.9+0022_daily_bin196.fits outfile=/scratch/kocevski/513281/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin196.fits ra=147.244 dec=0.3717 rad=12.0 tmin=290131201.0 tmax=290390401.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.53
user 3.21
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513281/ft1_filtered_4FGL_J0948.9+0022_daily_bin196.fits evtable="EVENTS" scfile=/scratch/kocevski/513281/ft2_4FGL_J0948.9+0022_daily_bin196.fits sctable="SC_DATA" expcube=/scratch/kocevski/513281/ltcube_290131201_290390401_4FGL_J0948.9+0022_daily_bin196.fits outfile=/scratch/kocevski/513281/expmap_290131201_290390401_4FGL_J0948.9+0022_daily_bin196.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/513281/ltcube_290131201_290390401_4FGL_J0948.9+0022_daily_bin196.fits
.....................!
real 192.22
user 185.38
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/513281/ft1_filtered_4FGL_J0948.9+0022_daily_bin196.fits scfile=/scratch/kocevski/513281/ft2_4FGL_J0948.9+0022_daily_bin196.fits outfile=/scratch/kocevski/513281/cmap_290131201_290390401_4FGL_J0948.9+0022_daily_bin196.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.70
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513281/ft1_filtered_4FGL_J0948.9+0022_daily_bin196.fits scfile=/scratch/kocevski/513281/ft2_4FGL_J0948.9+0022_daily_bin196.fits outfile=/scratch/kocevski/513281/cmap_HighResolution_290131201_290390401_4FGL_J0948.9+0022_daily_bin196.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.66
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.635       1.0000         .10000E-03   10000.    
     2 'norm      '    28.127       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12667E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1426       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.522       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .23528       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6537       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.144       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27164E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.307       1.0000         .10000E-03   10000.    
    20 'norm      '    .75148       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12402E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78323       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3245       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=   6384.048     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2584 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.634        5.6817        .78364E-07   -.89111E-04
   2  norm          28.126        9.7797        .13739E-06   -.34436E-04
   3  Prefactor     .10000E-03    19.198        .58635E-06** at limit **
   4  Prefactor     .10000E-03    2.0929        .33277E-06** at limit **
   5  Prefactor     3.1524        188.79        .26324E-05    .62230E-05
   6  Prefactor     .10000E-03    4.4682        .92351E-07** at limit **
   7  Prefactor     21.497        28.250       -.29762E-06   -.14605E-03
   8  norm          .10000E-03    1.3173       -.19345E-07** at limit **
   9  norm          .23553        .97651        .11356E-05    .43466E-04
  10  norm          .10000E-03    .20242        .13771E-06** at limit **
  11  norm          2.6538        1.7698        .22618E-07   -.22534E-04
  12  Prefactor     27.142        15.858       -.18873E-06    .14744E-04
  13  Prefactor     .10000E-03    28.546        .21560E-06** at limit **
  14  Prefactor     .10000E-03    15.778        .15985E-06** at limit **
  15  norm          .10000E-03    9.9765        .14214E-06** at limit **
  16  Prefactor     .10000E-03    9.6920       -.62724E-06** at limit **
  17  Prefactor     .10000E-03    29.769       -.12487E-06** at limit **
  18  Prefactor     .10001E-03    579.67       -.15794E-04** at limit **
  19  Prefactor     14.284        19.342       -.28786E-05   -.26448E-04
  20  norm          .75195        1.2537        .26852E-06    .74367E-03
  21  Prefactor     .10001E-03    5.2292       -.43322E-06** at limit **
  22  Normalizat    .78302        .21032       -.16109E-05   -.16122E-03
  23  Prefactor     1.3245        .16257       -.16715E-06   -.26662E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6339
  norm       = 28.1261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.15237
  Prefactor  = 0.0001
  Prefactor  = 21.4965
  norm       = 0.0001
  norm       = 0.235531
  norm       = 0.0001
  norm       = 2.65377
  Prefactor  = 27.1422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 14.2844
  norm       = 0.751948
  Prefactor  = 0.000100008
  Normalizat = 0.783016
  Prefactor  = 1.32455
 **********
 **   18 **HESSE 
 **********

 FCN=   6384.048     FROM HESSE     STATUS=OK           372 CALLS     2956 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.634        5.6711        .10847E-03   -1.4969    
   2  norm          28.126        9.7774        .37770E-03   -1.4647    
   3  Prefactor     .10000E-03    19.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.1943        .21979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1524        187.29        .22867E-03   -1.5353    
   6  Prefactor     .10000E-03    4.4736        .16495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.497        28.673        .86338E-04   -1.4780    
   8  norm          .10000E-03    1.3235        .89542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .23553        1.0168        .15181E-03   -1.5611    
  10  norm          .10000E-03    .25573        .69813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6538        1.7737        .84319E-04   -1.5382    
  12  Prefactor     27.142        15.844        .76893E-04   -1.4666    
  13  Prefactor     .10000E-03    28.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    553.65        .42862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.284        18.705        .10589E-03   -1.4952    
  20  norm          .75195        1.1041        .11202E-02   -1.5535    
  21  Prefactor     .10001E-03    17.177        .34636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .78302        .24576        .32762E-03   -1.0070    
  23  Prefactor     1.3245        .19351        .21149E-03   -.82580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22498e-10
Minuit parameter uncertainties:
  1  5.67131
  2  9.77798
  3  3.53393e-05
  4  4.93246e-05
  5  48.7564
  6  3.17279e-06
  7  28.6911
  8  1.38758e-06
  9  0.978556
  10  1.37563e-06
  11  1.77376
  12  15.8462
  13  8.36436e-05
  14  4.63915e-05
  15  6.60796e-05
  16  4.7521e-05
  17  0.000106191
  18  0.00424093
  19  18.7125
  20  1.10415
  21  0.000740596
  22  0.246107
  23  0.193617
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.376e-06  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.325e+00  1.936e-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.830e-01  2.461e-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: 7.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513281/likelihoodResults_290131201_290390401_4FGL_J0948.9+0022_daily_bin196.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) = 6384.04847243
delta logL = -0.000325966933815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6384.04801739
delta logL = 0.00012907349992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9954       1.0000          .0000       5.0000    
     3 'Normalizat'    .78295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3245       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=   6384.048     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      308 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .80020        .56671E-03** at limit **
   2  alpha         5.0000        4.8587        .18553    ** at limit **
   3  Normalizat    .78297        .23366        .32763E-03    .12145E-04
   4  Prefactor     1.3246        .19189        .21149E-03   -.84932E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 5
  Normalizat = 0.782974
  Prefactor  = 1.32457
 **********
 **   18 **HESSE 
 **********

 FCN=   6384.048     FROM HESSE     STATUS=OK            23 CALLS      331 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .75799        .11334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        3.2361        .37106E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .78297        .23356        .13105E-04   -1.0070    
   4  Prefactor     1.3246        .19197        .84597E-05   -.82579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19327e-12
Minuit parameter uncertainties:
  1  3.09494e-08
  2  0.000399429
  3  0.23386
  4  0.192074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513281': 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) = 6384.0480168
delta logL = 0.000129660707898

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  3.095e-08  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  5.000e+00  3.994e-04  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.325e+00  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:  7.830e-01  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 147.244 0.372

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/513281/cmap_HighResolution_290131201_290390401_4FGL_J0948.9+0022_daily_bin196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-05', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2021-09-01 02:47:02.893325', job_id='513281', GAL2='1.32', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630489622.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='1.30e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='196' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:47:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 513281: <4FGL_J0948.9+0022_daily_bin196> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin196> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 02:36:16 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:36:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:36:19 2021
Terminated at Wed Sep  1 02:47:05 2021
Results reported at Wed Sep  1 02:47:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin196 147.244 0.3717 290131201 290390401 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 :                                   609.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            649 sec.

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

