/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 87 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 = 7394
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin990
RA = 147.244, Dec = 0.3717
tmin = 495936001, tmax = 496195201
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='518338', job_status='RUN', time_executed='2021-09-01 02:53:03.528151', time_epoch_executed='1630489983.53' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518338

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518338/ft1_4FGL_J0948.9+0022_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518338/ft2_4FGL_J0948.9+0022_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518338/ft1_4FGL_J0948.9+0022_daily_bin990.fits outfile=/scratch/kocevski/518338/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin990.fits ra=147.244 dec=0.3717 rad=12.0 tmin=495936001.0 tmax=496195201.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.51
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/518338/ft1_filtered_4FGL_J0948.9+0022_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/518338/ft2_4FGL_J0948.9+0022_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/518338/ltcube_495936001_496195201_4FGL_J0948.9+0022_daily_bin990.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/518338/ft2_4FGL_J0948.9+0022_daily_bin990.fits
.....................!
real 12.83
user 12.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518338/ft1_filtered_4FGL_J0948.9+0022_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/518338/ft2_4FGL_J0948.9+0022_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/518338/ltcube_495936001_496195201_4FGL_J0948.9+0022_daily_bin990.fits outfile=/scratch/kocevski/518338/expmap_495936001_496195201_4FGL_J0948.9+0022_daily_bin990.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/518338/ltcube_495936001_496195201_4FGL_J0948.9+0022_daily_bin990.fits
.....................!
real 191.22
user 185.75
sys 4.76

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/518338/ft1_filtered_4FGL_J0948.9+0022_daily_bin990.fits scfile=/scratch/kocevski/518338/ft2_4FGL_J0948.9+0022_daily_bin990.fits outfile=/scratch/kocevski/518338/cmap_495936001_496195201_4FGL_J0948.9+0022_daily_bin990.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.67
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518338/ft1_filtered_4FGL_J0948.9+0022_daily_bin990.fits scfile=/scratch/kocevski/518338/ft2_4FGL_J0948.9+0022_daily_bin990.fits outfile=/scratch/kocevski/518338/cmap_HighResolution_495936001_496195201_4FGL_J0948.9+0022_daily_bin990.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3622       1.0000         .10000E-03   10000.    
     2 'norm      '    6.5513       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1675       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3279       1.0000         .10000E-03   10000.    
     9 'norm      '    4.4885       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1167       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .81146E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.920       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.8795       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1423       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89323       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=   6961.422     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2566 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3630        3.8659       -.80740E-07   -.36440E-04
   2  norm          6.5520        5.5950        .21910E-05   -.11004E-02
   3  Prefactor     2.1696        16.245        .20862E-06   -.50420E-04
   4  Prefactor     .10000E-03    .97651        .80431E-08** at limit **
   5  Prefactor     .10000E-03    9.0691        .20209E-05** at limit **
   6  Prefactor     .10000E-03    17.250       -.17457E-05** at limit **
   7  Prefactor     .10000E-03    9.4069       -.31249E-05** at limit **
   8  norm          1.3280        1.7211        .25766E-07   -.72817E-07
   9  norm          4.4887        1.6064        .26812E-07   -.17278E-04
  10  norm          .15241E-02    .21017       -.13881E-07** at limit **
  11  norm          1.1168        1.1259        .24624E-07   -.16955E-04
  12  Prefactor     .10004E-03    6.1240       -.21431E-06** at limit **
  13  Prefactor     .10000E-03    72.335       -.22586E-05** at limit **
  14  Prefactor     24.915        28.650       -.48687E-06   -.74807E-04
  15  norm          .10000E-03    6.4432        .14169E-07** at limit **
  16  Prefactor     .10000E-03    3.2544        .30457E-07** at limit **
  17  Prefactor     .10000E-03    41.478        .24564E-05** at limit **
  18  Prefactor     .10000E-03    12.616        .26098E-05** at limit **
  19  Prefactor     .10000E-03    4.0554        .32937E-07** at limit **
  20  norm          2.8796        1.3672        .28871E-07   -.21763E-05
  21  Prefactor     .10000E-03    1.7389        .26168E-07** at limit **
  22  Normalizat    1.1422        .17847       -.34071E-06    .59039E-04
  23  Prefactor     .89324        .13920       -.28139E-06    .53742E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.36299
  norm       = 6.55202
  Prefactor  = 2.16959
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  norm       = 1.328
  norm       = 4.48868
  norm       = 0.00152405
  norm       = 1.1168
  Prefactor  = 0.000100036
  Prefactor  = 0.000100001
  Prefactor  = 24.9154
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 2.87958
  Prefactor  = 0.0001
  Normalizat = 1.14218
  Prefactor  = 0.893242
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.422     FROM HESSE     STATUS=OK           380 CALLS     2946 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3630        3.8675        .11424E-03   -1.5165    
   2  norm          6.5520        5.9213        .78395E-03   -1.5196    
   3  Prefactor     2.1696        16.230        .27974E-03   -1.5413    
   4  Prefactor     .10000E-03    .98222        .80494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3280        1.7016        .12128E-03   -1.5477    
   9  norm          4.4887        1.6113        .60477E-04   -1.5284    
  10  norm          .15241E-02    .51064        .12604E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1168        1.0981        .86395E-04   -1.5497    
  12  Prefactor     .10004E-03    72.257        .39809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    73.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.915        28.731        .80244E-04   -1.4709    
  15  norm          .10000E-03    6.4536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.2656        .14696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0567        .16410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8796        1.3659        .64820E-04   -1.5369    
  21  Prefactor     .10000E-03    1.7520        .10744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1422        .21351        .25240E-03   -.88409    
  23  Prefactor     .89324        .16652        .22595E-03   -.96378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44744e-09
Minuit parameter uncertainties:
  1  3.86765
  2  5.92188
  3  11.8721
  4  3.69787e-07
  5  0.000257837
  6  0.000282423
  7  0.000413709
  8  1.70167
  9  1.61129
  10  0.0539331
  11  1.09817
  12  0.00321907
  13  0.000662092
  14  28.7473
  15  2.68018e-06
  16  1.90467e-06
  17  0.000651191
  18  0.000394111
  19  2.41279e-06
  20  1.36593
  21  1.82795e-06
  22  0.213672
  23  0.166616
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.524e-03  5.393e-02  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.932e-01  1.666e-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.142e+00  2.137e-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: 8.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/518338/likelihoodResults_495936001_496195201_4FGL_J0948.9+0022_daily_bin990.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) = 6961.42158595
delta logL = 0.000239951925323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6961.24762451
delta logL = 0.174201395467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17305       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8565       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90651       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6961.248     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      320 TOTAL
                     EDM=   .13E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17328        .36134        .58092E-04    .15069E-04
   2  alpha         3.8576        1.7496        .69369E-02    .39333E-07
   3  Normalizat    1.1097        .21347        .25569E-03    .26678E-06
   4  Prefactor     .90627        .16770        .22449E-03    .40513E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.173282
  alpha      = 3.85764
  Normalizat = 1.10967
  Prefactor  = 0.906266
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.248     FROM HESSE     STATUS=OK            23 CALLS      343 TOTAL
                     EDM=   .63E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17328        .35698        .23237E-05   -1.5625    
   2  alpha         3.8576        1.7358        .27748E-03    .57407    
   3  Normalizat    1.1097        .21377        .10228E-04   -.89442    
   4  Prefactor     .90627        .16791        .89798E-05   -.95922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34173e-15
Minuit parameter uncertainties:
  1  0.356987
  2  2.04371
  3  0.213934
  4  0.16801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518338': 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) = 6961.2476224
delta logL = 0.174203505916

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.733e-01  3.570e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.858e+00  2.044e+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:  9.063e-01  1.680e-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.110e+00  2.139e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/518338/cmap_HighResolution_495936001_496195201_4FGL_J0948.9+0022_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-05', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-09-01 03:04:32.867520', job_id='518338', GAL2='0.91', fit_tolerance='1e-08', EG2='1.11', EG='1.14', time_epoch_completed='1630490672.87', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.74e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='990' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:04:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 518338: <4FGL_J0948.9+0022_daily_bin990> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin990> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:51:08 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:51:10 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:51:10 2021
Terminated at Wed Sep  1 03:04:34 2021
Results reported at Wed Sep  1 03:04:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin990 147.244 0.3717 495936001 496195201 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 :                                   647.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             306.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            806 sec.

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

