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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin282
RA = 147.244, Dec = 0.3717
tmin = 312422401, tmax = 312681601
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='514601', job_status='RUN', time_executed='2021-09-01 02:42:24.208616', time_epoch_executed='1630489344.21' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514601

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514601/ft1_4FGL_J0948.9+0022_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514601/ft2_4FGL_J0948.9+0022_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514601/ft1_4FGL_J0948.9+0022_daily_bin282.fits outfile=/scratch/kocevski/514601/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin282.fits ra=147.244 dec=0.3717 rad=12.0 tmin=312422401.0 tmax=312681601.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 4.03
user 3.63
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514601/ft2_4FGL_J0948.9+0022_daily_bin282.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/514601/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin282.fits evtable="EVENTS" outfile="/scratch/kocevski/514601/ft1_filtered_4FGL_J0948.9+0022_daily_bin282.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.60
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514601/ft1_filtered_4FGL_J0948.9+0022_daily_bin282.fits" evtable="EVENTS" scfile=/scratch/kocevski/514601/ft2_4FGL_J0948.9+0022_daily_bin282.fits sctable="SC_DATA" outfile=/scratch/kocevski/514601/ltcube_312422401_312681601_4FGL_J0948.9+0022_daily_bin282.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/514601/ft2_4FGL_J0948.9+0022_daily_bin282.fits
.....................!
real 15.02
user 14.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514601/ft1_filtered_4FGL_J0948.9+0022_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/514601/ft2_4FGL_J0948.9+0022_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/514601/ltcube_312422401_312681601_4FGL_J0948.9+0022_daily_bin282.fits outfile=/scratch/kocevski/514601/expmap_312422401_312681601_4FGL_J0948.9+0022_daily_bin282.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/514601/ltcube_312422401_312681601_4FGL_J0948.9+0022_daily_bin282.fits
.....................!
real 191.82
user 184.93
sys 4.47

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/514601/ft1_filtered_4FGL_J0948.9+0022_daily_bin282.fits scfile=/scratch/kocevski/514601/ft2_4FGL_J0948.9+0022_daily_bin282.fits outfile=/scratch/kocevski/514601/cmap_312422401_312681601_4FGL_J0948.9+0022_daily_bin282.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=147.244 yref=0.3717 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514601/ft1_filtered_4FGL_J0948.9+0022_daily_bin282.fits scfile=/scratch/kocevski/514601/ft2_4FGL_J0948.9+0022_daily_bin282.fits outfile=/scratch/kocevski/514601/cmap_HighResolution_312422401_312681601_4FGL_J0948.9+0022_daily_bin282.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.60
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    59.609       1.0000         .10000E-03   10000.    
     2 'norm      '    6.5262       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .54290       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17126E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6139       1.0000         .10000E-03   10000.    
    10 'norm      '    .38910       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.177       1.0000         .10000E-03   10000.    
    13 'Prefactor '    85.499       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.873       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23260       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.111       1.0000         .10000E-03   10000.    
    18 'Prefactor '    71.537       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14300E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5020       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2384       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81526       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7815.625     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     2634 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          59.609        7.6968        .78663E-06   -.18524E-03
   2  norm          6.5261        4.2468        .13076E-05   -.69131E-05
   3  Prefactor     .10000E-03    3.6790       -.82006E-08** at limit **
   4  Prefactor     .10000E-03    .99223        .81493E-06** at limit **
   5  Prefactor     .69623        56.528       -.62868E-05    .37252E-03
   6  Prefactor     .10000E-03    2.8956        .11366E-05** at limit **
   7  Prefactor     .10583E-03    61.755       -.14532E-04** at limit **
   8  norm          .10000E-03    .99327        .38793E-06** at limit **
   9  norm          3.6142        1.7986       -.53535E-07   -.23397E-04
  10  norm          .38909        .43230       -.19620E-05   -.41761E-03
  11  norm          .10000E-03    .39113        .11231E-05** at limit **
  12  Prefactor     19.173        14.651       -.11609E-05   -.87808E-03
  13  Prefactor     85.548        13.358       -.63803E-05    .10151E-01
  14  Prefactor     19.883        17.473       -.15890E-04    .22935E-02
  15  norm          .10000E-03    9.3438       -.49096E-05** at limit **
  16  Prefactor     .33277        140.41       -.86893E-04   -.37238E-02
  17  Prefactor     22.954        30.906        .18265E-04   -.14619E-01
  18  Prefactor     71.186        74.446        .87397E-05    .30453E-02
  19  Prefactor     .10000E-03    36.612       -.11169E-04** at limit **
  20  norm          .10000E-03    2.3333       -.21736E-06** at limit **
  21  Prefactor     2.5020        4.3148        .34817E-06   -.58759E-04
  22  Normalizat    1.2384        .22790        .16005E-04   -.10392E-03
  23  Prefactor     .81521        .16720       -.19251E-04   -.14996E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 59.6085
  norm       = 6.52608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.696229
  Prefactor  = 0.0001
  Prefactor  = 0.000105831
  norm       = 0.0001
  norm       = 3.61422
  norm       = 0.389093
  norm       = 0.0001
  Prefactor  = 19.1732
  Prefactor  = 85.5483
  Prefactor  = 19.8825
  norm       = 0.0001
  Prefactor  = 0.332768
  Prefactor  = 22.9537
  Prefactor  = 71.1862
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.50199
  Normalizat = 1.23838
  Prefactor  = 0.815215
 **********
 **   18 **HESSE 
 **********

 FCN=   7815.625     FROM HESSE     STATUS=OK           430 CALLS     3064 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          59.609        7.6851        .12991E-02   -1.4162    
   2  norm          6.5261        4.2466        .39274E-02   -1.5197    
   3  Prefactor     .10000E-03    3.6739        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .98833        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .69623        12.378        .16776       -1.5541    
   6  Prefactor     .10000E-03    2.8934        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10583E-03    98.342        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .98202        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6142        1.7907        .53135E-02   -1.5328    
  10  norm          .38909        .45945        .10809E-01   -1.5583    
  11  norm          .10000E-03    .38804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.173        15.084        .22865E-02   -1.4832    
  13  Prefactor     85.548        46.486        .10862E-02   -1.3855    
  14  Prefactor     19.883        33.312        .22462E-02   -1.4816    
  15  norm          .10000E-03    9.3400        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .33277        15.768        .10125       -1.5593    
  17  Prefactor     22.954        64.585        .20830E-02   -1.4749    
  18  Prefactor     71.186        94.217        .11866E-02   -1.4019    
  19  Prefactor     .10000E-03    36.676        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .73702        .24428E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5020        4.3425        .64589E-02   -1.5392    
  22  Normalizat    1.2384        .19270        .61115E-01   -.85425    
  23  Prefactor     .81521        .14072        .43915E-01   -.99170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.83815e-06
Minuit parameter uncertainties:
  1  7.68525
  2  4.24676
  3  4.30004e-06
  4  2.16418e-07
  5  5.87217
  6  5.96422e-06
  7  0.0479707
  8  6.86594e-07
  9  1.79071
  10  0.45945
  11  1.2932e-06
  12  15.0874
  13  46.5063
  14  33.3435
  15  4.1354e-06
  16  4.58195
  17  64.7826
  18  94.4158
  19  0.000409551
  20  1.33258e-06
  21  4.34304
  22  0.192815
  23  0.140786
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.891e-01  4.594e-01  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.152e-01  1.408e-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.238e+00  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.99e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 7.44e-06 +/- 8.79e-06

TS (Fixed Index): 1.10
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514601/likelihoodResults_312422401_312681601_4FGL_J0948.9+0022_daily_bin282.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) = 7815.56705019
delta logL = 0.0583475456751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7815.56404085
delta logL = 0.0613568866829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41971       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7865       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81913       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=   7815.564     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      248 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41973        .44028        .59805E-03    .33583E-03
   2  alpha         2.7865        .94979        .31302E-01    .79437E-05
   3  Normalizat    1.2301        .21451        .27109E-03   -.37743E-06
   4  Prefactor     .81912        .16603        .25263E-03    .22501E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.419732
  alpha      = 2.78651
  Normalizat = 1.23011
  Prefactor  = 0.819117
 **********
 **   18 **HESSE 
 **********

 FCN=   7815.564     FROM HESSE     STATUS=OK            27 CALLS      275 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41973        .43900        .23922E-04   -1.5578    
   2  alpha         2.7865        .94797        .12521E-02    .11486    
   3  Normalizat    1.2301        .21475        .10844E-04   -.85677    
   4  Prefactor     .81912        .16618        .10105E-04   -.99027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82987e-11
Minuit parameter uncertainties:
  1  0.439007
  2  0.972648
  3  0.214904
  4  0.166287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514601': 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) = 7815.56404084
delta logL = 0.0613568895196

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.197e-01  4.390e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.787e+00  9.726e-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.191e-01  1.663e-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.230e+00  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.79 +/- 0.97
Photon Flux (Free Index): 3.70e-08 +/- 4.18e-08
Energy Flux (Free Index): 7.76e-06 +/- 8.11e-06

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/514601/cmap_HighResolution_312422401_312681601_4FGL_J0948.9+0022_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.61e-05', comment='SUCCESS', photon_flux='2.99e-08', energy_flux2='7.76e-06', photon_flux_error='3.53e-08', dlogl='6.14e-02', energy_flux='7.44e-06', photon_flux2='3.70e-08', job_status='DONE', time_completed='2021-09-01 02:54:46.331491', photon_index_error2='0.97', photon_index2='2.79', ts='1.10', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='8.11e-06', EG='1.24', time_epoch_completed='1630490086.33', return_code='0', job_id='514601', GAL2='0.82', EG2='1.23', return_code2='0', energy_flux_error='8.79e-06', photon_flux_error2='4.18e-08', ts2='1.21', photon_index='2.45' WHERE bin_id='282' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:54:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 514601: <4FGL_J0948.9+0022_daily_bin282> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin282 147.244 0.3717 312422401 312681601 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 :                                   703.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             268.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            847 sec.

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

