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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin344
RA = 147.244, Dec = 0.3717
tmin = 328492801, tmax = 328752001
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='514718', job_status='RUN', time_executed='2021-09-01 02:42:53.454352', time_epoch_executed='1630489373.45' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='344'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514718

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514718/ft1_4FGL_J0948.9+0022_daily_bin344.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514718/ft2_4FGL_J0948.9+0022_daily_bin344.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514718/ft1_4FGL_J0948.9+0022_daily_bin344.fits outfile=/scratch/kocevski/514718/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin344.fits ra=147.244 dec=0.3717 rad=12.0 tmin=328492801.0 tmax=328752001.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.73
user 3.18
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514718/ft1_filtered_4FGL_J0948.9+0022_daily_bin344.fits evtable="EVENTS" scfile=/scratch/kocevski/514718/ft2_4FGL_J0948.9+0022_daily_bin344.fits sctable="SC_DATA" expcube=/scratch/kocevski/514718/ltcube_328492801_328752001_4FGL_J0948.9+0022_daily_bin344.fits outfile=/scratch/kocevski/514718/expmap_328492801_328752001_4FGL_J0948.9+0022_daily_bin344.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/514718/ltcube_328492801_328752001_4FGL_J0948.9+0022_daily_bin344.fits
.....................!
real 192.54
user 185.63
sys 4.86

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/514718/ft1_filtered_4FGL_J0948.9+0022_daily_bin344.fits scfile=/scratch/kocevski/514718/ft2_4FGL_J0948.9+0022_daily_bin344.fits outfile=/scratch/kocevski/514718/cmap_328492801_328752001_4FGL_J0948.9+0022_daily_bin344.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.62
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514718/ft1_filtered_4FGL_J0948.9+0022_daily_bin344.fits scfile=/scratch/kocevski/514718/ft2_4FGL_J0948.9+0022_daily_bin344.fits outfile=/scratch/kocevski/514718/cmap_HighResolution_328492801_328752001_4FGL_J0948.9+0022_daily_bin344.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74275       1.0000         .10000E-03   10000.    
     2 'norm      '    16.755       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12527E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.936       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.869       1.0000         .10000E-03   10000.    
     8 'norm      '    3.1758       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4371       1.0000         .10000E-03   10000.    
    10 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.761       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.596       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5149       1.0000         .10000E-03   10000.    
    15 'norm      '    18.422       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.107       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0695       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10836E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0602       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83463       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=   4570.540     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2582 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74248        4.8288       -.36866E-06   -.92752E-03
   2  norm          16.755        10.958        .34938E-05   -.21509E-04
   3  Prefactor     .10000E-03    56.939       -.54197E-05** at limit **
   4  Prefactor     .10000E-03    3.2724        .41231E-06** at limit **
   5  Prefactor     38.939        36.541       -.55675E-05   -.73696E-05
   6  Prefactor     .10000E-03    7.1088        .15591E-06** at limit **
   7  Prefactor     37.938        59.932        .45631E-04   -.61206E-05
   8  norm          3.1760        5.2441       -.22326E-05   -.52851E-03
   9  norm          1.4370        1.3021        .43830E-06   -.35861E-03
  10  norm          .10000E-03    .29628        .19466E-06** at limit **
  11  norm          .10000E-03    1.3660        .89747E-07** at limit **
  12  Prefactor     26.767        17.898       -.25483E-05   -.81081E-04
  13  Prefactor     15.589        27.604        .43016E-04   -.16325E-04
  14  Prefactor     8.3749        50.912       -.47461E-05   -.53995E-04
  15  norm          18.410        22.658       -.23716E-05   -.31124E-04
  16  Prefactor     .10000E-03    4.1087       -.30089E-06** at limit **
  17  Prefactor     72.175        64.407        .39907E-04   -.18067E-04
  18  Prefactor     .10000E-03    41.884        .57233E-06** at limit **
  19  Prefactor     .10000E-03    6.0287       -.25641E-06** at limit **
  20  norm          2.0697        1.5359       -.22512E-07   -.41821E-03
  21  Prefactor     .10000E-03    8.4538        .80906E-07** at limit **
  22  Normalizat    1.0596        .22436       -.11543E-04    .13451E-03
  23  Prefactor     .83528        .16886        .13261E-05   -.40048E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.742484
  norm       = 16.7551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.939
  Prefactor  = 0.0001
  Prefactor  = 37.9378
  norm       = 3.17601
  norm       = 1.43705
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.7673
  Prefactor  = 15.5889
  Prefactor  = 8.37489
  norm       = 18.4096
  Prefactor  = 0.0001
  Prefactor  = 72.1746
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 2.0697
  Prefactor  = 0.0001
  Normalizat = 1.05957
  Prefactor  = 0.835282
 **********
 **   18 **HESSE 
 **********

 FCN=   4570.540     FROM HESSE     STATUS=OK           374 CALLS     2956 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74248        4.9499        .28066E-03   -1.5536    
   2  norm          16.755        10.935        .97847E-04   -1.4889    
   3  Prefactor     .10000E-03    58.443        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4194        .23856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.939        36.545        .64234E-04   -1.4459    
   6  Prefactor     .10000E-03    7.1296        .17603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.938        59.857        .65130E-04   -1.4475    
   8  norm          3.1760        5.2289        .18818E-03   -1.5352    
   9  norm          1.4370        1.2832        .69648E-04   -1.5468    
  10  norm          .10000E-03    .46734        .70590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3941        .77078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.767        17.942        .77440E-04   -1.4673    
  13  Prefactor     15.589        27.522        .10142E-03   -1.4918    
  14  Prefactor     8.3749        50.885        .13738E-03   -1.5129    
  15  norm          18.410        22.655        .93314E-04   -1.4850    
  16  Prefactor     .10000E-03    4.1156        .13381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.175        64.287        .47277E-04   -1.4007    
  18  Prefactor     .10000E-03    42.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.0325        .16212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0697        1.5307        .69151E-04   -1.5420    
  21  Prefactor     .10000E-03    8.5805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0596        .25690        .25165E-03   -.91061    
  23  Prefactor     .83528        .19544        .22461E-03   -.98441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36069e-09
Minuit parameter uncertainties:
  1  3.83436
  2  10.9367
  3  0.000328101
  4  7.75856e-05
  5  36.566
  6  5.31104e-05
  7  59.9519
  8  5.22964
  9  1.28324
  10  1.47727e-05
  11  1.28008e-05
  12  17.946
  13  27.5445
  14  41.3393
  15  22.6658
  16  5.82187e-05
  17  64.3486
  18  0.000799682
  19  6.41489e-05
  20  1.53075
  21  2.81371e-05
  22  0.257197
  23  0.195598
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.477e-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:  8.353e-01  1.956e-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.060e+00  2.572e-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.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514718/likelihoodResults_328492801_328752001_4FGL_J0948.9+0022_daily_bin344.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) = 4570.55061469
delta logL = -0.0102774872921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4570.54033617
delta logL = 1.03086040326e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4378       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83529       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=   4570.538     FROM MIGRAD    STATUS=CONVERGED    148 CALLS      296 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12319E-01    .36809        .14341E-01   -.18324E-02
   2  alpha         1.1843        2.7181        .41168       -.36898E-04
   3  Normalizat    1.0616        .20767        .39957E-01    .44855E-04
   4  Prefactor     .83278        .16833        .44175E-01    .62952E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.012319
  alpha      = 1.18434
  Normalizat = 1.06165
  Prefactor  = 0.832777
 **********
 **   18 **HESSE 
 **********

 FCN=   4570.538     FROM HESSE     STATUS=OK            35 CALLS      331 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12319E-01    .73019        .50406E-03   -1.5730    
   2  alpha         1.1843        2.9740        .75639E-01   -.55420    
   3  Normalizat    1.0616        .24154        .25145E-03   -.90993    
   4  Prefactor     .83278        .19651        .22493E-03   -.98531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62152e-08
Minuit parameter uncertainties:
  1  0.188917
  2  3.09281
  3  0.241791
  4  0.19668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514718': 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) = 4570.53800731
delta logL = 0.00232989450797

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.232e-02  1.889e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.184e+00  3.093e+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.328e-01  1.967e-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.062e+00  2.418e-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/514718/cmap_HighResolution_328492801_328752001_4FGL_J0948.9+0022_daily_bin344.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', job_status='DONE', photon_flux_upper_limit='9.70e-08', time_completed='2021-09-01 02:52:13.221285', job_id='514718', GAL2='0.83', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630489933.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.33e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='344' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:52:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 514718: <4FGL_J0948.9+0022_daily_bin344> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin344 147.244 0.3717 328492801 328752001 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 :                                   531.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             341.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            687 sec.

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

