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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin198
RA = 147.244, Dec = 0.3717
tmin = 290649601, tmax = 290908801
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='513284', job_status='RUN', time_executed='2021-09-01 02:39:16.586466', time_epoch_executed='1630489156.59' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='198'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513284

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513284/ft1_4FGL_J0948.9+0022_daily_bin198.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513284/ft2_4FGL_J0948.9+0022_daily_bin198.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513284/ft1_4FGL_J0948.9+0022_daily_bin198.fits outfile=/scratch/kocevski/513284/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin198.fits ra=147.244 dec=0.3717 rad=12.0 tmin=290649601.0 tmax=290908801.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.40
user 3.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513284/ft1_filtered_4FGL_J0948.9+0022_daily_bin198.fits" evtable="EVENTS" scfile=/scratch/kocevski/513284/ft2_4FGL_J0948.9+0022_daily_bin198.fits sctable="SC_DATA" outfile=/scratch/kocevski/513284/ltcube_290649601_290908801_4FGL_J0948.9+0022_daily_bin198.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/513284/ft2_4FGL_J0948.9+0022_daily_bin198.fits
.....................!
real 11.88
user 11.28
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513284/ft1_filtered_4FGL_J0948.9+0022_daily_bin198.fits evtable="EVENTS" scfile=/scratch/kocevski/513284/ft2_4FGL_J0948.9+0022_daily_bin198.fits sctable="SC_DATA" expcube=/scratch/kocevski/513284/ltcube_290649601_290908801_4FGL_J0948.9+0022_daily_bin198.fits outfile=/scratch/kocevski/513284/expmap_290649601_290908801_4FGL_J0948.9+0022_daily_bin198.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/513284/ltcube_290649601_290908801_4FGL_J0948.9+0022_daily_bin198.fits
.....................!
real 191.82
user 186.29
sys 4.59

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/513284/ft1_filtered_4FGL_J0948.9+0022_daily_bin198.fits scfile=/scratch/kocevski/513284/ft2_4FGL_J0948.9+0022_daily_bin198.fits outfile=/scratch/kocevski/513284/cmap_290649601_290908801_4FGL_J0948.9+0022_daily_bin198.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513284/ft1_filtered_4FGL_J0948.9+0022_daily_bin198.fits scfile=/scratch/kocevski/513284/ft2_4FGL_J0948.9+0022_daily_bin198.fits outfile=/scratch/kocevski/513284/cmap_HighResolution_290649601_290908801_4FGL_J0948.9+0022_daily_bin198.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.57
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1845       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4382       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1184       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.593       1.0000         .10000E-03   10000.    
     8 'norm      '    .10122       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1040       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0538       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.987       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.949       1.0000         .10000E-03   10000.    
    15 'norm      '    14.499       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11093E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.062       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.271       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .55987E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1985       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88310       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=   5243.080     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2561 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1840        4.7714        .29987E-06    .54818E-04
   2  norm          4.4376        5.6056        .35194E-06    .58768E-04
   3  Prefactor     .10000E-03    15.156        .70673E-07** at limit **
   4  Prefactor     2.1181        4.1178        .81732E-06    .17444E-03
   5  Prefactor     .10000E-03    23.953        .18143E-06** at limit **
   6  Prefactor     .10000E-03    4.3370        .18560E-07** at limit **
   7  Prefactor     23.581        42.538        .65632E-07   -.31664E-04
   8  norm          .11582        2.5058       -.36365E-06    .19649E-03
   9  norm          2.1040        1.2755        .37366E-07   -.12896E-04
  10  norm          .10000E-03    .21216        .10524E-07** at limit **
  11  norm          1.0525        2.1182        .10810E-05    .99331E-03
  12  Prefactor     17.992        17.621        .58873E-07   -.29474E-04
  13  Prefactor     .10000E-03    26.975        .20721E-06** at limit **
  14  Prefactor     29.960        39.772       -.16555E-06    .19995E-04
  15  norm          14.502        20.813        .16899E-08   -.24559E-04
  16  Prefactor     .10000E-03    11.456        .72613E-06** at limit **
  17  Prefactor     51.016        65.932       -.38078E-06   -.70318E-04
  18  Prefactor     39.298        48.269       -.21203E-07    .10881E-04
  19  Prefactor     .10000E-03    8.3738        .29795E-06** at limit **
  20  norm          .10000E-03    .83788        .27678E-06** at limit **
  21  Prefactor     .10001E-03    7.0378       -.24840E-05** at limit **
  22  Normalizat    1.1981        .21688        .48371E-06   -.13904E-03
  23  Prefactor     .88342        .16892       -.19307E-05   -.10878E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.184
  norm       = 4.43757
  Prefactor  = 0.0001
  Prefactor  = 2.11812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5813
  norm       = 0.115823
  norm       = 2.10405
  norm       = 0.0001
  norm       = 1.05251
  Prefactor  = 17.992
  Prefactor  = 0.0001
  Prefactor  = 29.9603
  norm       = 14.5019
  Prefactor  = 0.0001
  Prefactor  = 51.0165
  Prefactor  = 39.2976
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100012
  Normalizat = 1.19815
  Prefactor  = 0.883419
 **********
 **   18 **HESSE 
 **********

 FCN=   5243.080     FROM HESSE     STATUS=OK           376 CALLS     2937 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1840        4.7719        .16094E-03   -1.5299    
   2  norm          4.4376        5.6039        .18645E-03   -1.5287    
   3  Prefactor     .10000E-03    15.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1181        4.1370        .19406E-03   -1.5417    
   5  Prefactor     .10000E-03    23.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3422        .14727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.581        42.535        .82467E-04   -1.4736    
   8  norm          .11582        18.720        .21599E-02   -1.5640    
   9  norm          2.1040        1.2754        .61239E-04   -1.5418    
  10  norm          .10000E-03    .21232        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0525        2.1063        .15737E-02   -1.5503    
  12  Prefactor     17.992        17.621        .94435E-04   -1.4859    
  13  Prefactor     .10000E-03    27.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.960        39.784        .73212E-04   -1.4613    
  15  norm          14.502        20.789        .10519E-03   -1.4946    
  16  Prefactor     .10000E-03    11.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     51.016        66.085        .56123E-04   -1.4278    
  18  Prefactor     39.298        48.232        .63961E-04   -1.4453    
  19  Prefactor     .10000E-03    8.3826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.6227        .12818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    9.4683        .28573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1981        .25519        .25730E-03   -.86660    
  23  Prefactor     .88342        .19655        .23376E-03   -.96723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4917e-09
Minuit parameter uncertainties:
  1  4.77236
  2  5.60452
  3  2.26615e-05
  4  4.13761
  5  7.326e-05
  6  1.35618e-06
  7  42.5894
  8  2.94462
  9  1.27544
  10  1.80098e-07
  11  2.10641
  12  17.6259
  13  3.9893e-06
  14  39.8194
  15  20.7994
  16  5.55378e-05
  17  66.1801
  18  48.2799
  19  3.19053e-05
  20  1.10567e-05
  21  0.00067029
  22  0.255455
  23  0.196708
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.801e-07  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.834e-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.198e+00  2.555e-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.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513284/likelihoodResults_290649601_290908801_4FGL_J0948.9+0022_daily_bin198.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) = 5243.07998074
delta logL = -0.000240018915065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5243.07974372
delta logL = -3.00605915982e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4718       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1979       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88382       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=   5243.080     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      208 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1150        .14828E-01** at limit **
   2  alpha         3.1283        2.6884        .41155       -.12044E-06
   3  Normalizat    1.1981        .18098E-01    .58181E-01    .56733E-05
   4  Prefactor     .88342        .14415E-01    .44798E-01    .84858E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.12826
  Normalizat = 1.19814
  Prefactor  = 0.883421
 **********
 **   18 **HESSE 
 **********

 FCN=   5243.080     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .24488        .60603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1283        2.9649        .16462E-01    .25403    
   3  Normalizat    1.1981        .24326        .25730E-03   -.86660    
   4  Prefactor     .88342        .19403        .23376E-03   -.96723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47519e-11
Minuit parameter uncertainties:
  1  1.56364e-06
  2  85.8643
  3  0.243492
  4  0.194183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513284': 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) = 5243.07970955
delta logL = 3.11680505547e-05

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.564e-06  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.128e+00  8.586e+01  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.834e-01  1.942e-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.198e+00  2.435e-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/513284/cmap_HighResolution_290649601_290908801_4FGL_J0948.9+0022_daily_bin198.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-05', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-09-01 02:48:29.647750', job_id='513284', GAL2='0.88', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630489709.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.12e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='198' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:48:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 513284: <4FGL_J0948.9+0022_daily_bin198> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin198> 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) <bullet0114>, 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:48:30 2021
Results reported at Wed Sep  1 02:48:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin198 147.244 0.3717 290649601 290908801 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 :                                   548.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             309.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            734 sec.

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

