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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin313
RA = 147.244, Dec = 0.3717
tmin = 320457601, tmax = 320716801
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='514652', job_status='RUN', time_executed='2021-09-01 02:42:49.373658', time_epoch_executed='1630489369.37' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514652

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514652/ft1_4FGL_J0948.9+0022_daily_bin313.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514652/ft2_4FGL_J0948.9+0022_daily_bin313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514652/ft1_4FGL_J0948.9+0022_daily_bin313.fits outfile=/scratch/kocevski/514652/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin313.fits ra=147.244 dec=0.3717 rad=12.0 tmin=320457601.0 tmax=320716801.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.97
user 3.59
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514652/ft1_filtered_4FGL_J0948.9+0022_daily_bin313.fits evtable="EVENTS" scfile=/scratch/kocevski/514652/ft2_4FGL_J0948.9+0022_daily_bin313.fits sctable="SC_DATA" expcube=/scratch/kocevski/514652/ltcube_320457601_320716801_4FGL_J0948.9+0022_daily_bin313.fits outfile=/scratch/kocevski/514652/expmap_320457601_320716801_4FGL_J0948.9+0022_daily_bin313.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/514652/ltcube_320457601_320716801_4FGL_J0948.9+0022_daily_bin313.fits
.....................!
real 192.68
user 185.75
sys 6.00

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/514652/ft1_filtered_4FGL_J0948.9+0022_daily_bin313.fits scfile=/scratch/kocevski/514652/ft2_4FGL_J0948.9+0022_daily_bin313.fits outfile=/scratch/kocevski/514652/cmap_320457601_320716801_4FGL_J0948.9+0022_daily_bin313.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514652/ft1_filtered_4FGL_J0948.9+0022_daily_bin313.fits scfile=/scratch/kocevski/514652/ft2_4FGL_J0948.9+0022_daily_bin313.fits outfile=/scratch/kocevski/514652/cmap_HighResolution_320457601_320716801_4FGL_J0948.9+0022_daily_bin313.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.192       1.0000         .10000E-03   10000.    
     2 'norm      '    .14474E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83511       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8015       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .78352       1.0000         .10000E-03   10000.    
    10 'norm      '    .60593       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0967       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.419       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.078       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25764       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.849       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3142       1.0000         .10000E-03   10000.    
    20 'norm      '    .58132       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4650       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76787       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1080       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6092.719     FROM MIGRAD    STATUS=CONVERGED    912 CALLS     3396 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.193        5.2596        .11161E-03   -.76496E-04
   2  norm          .10000E-03    11.401        .30688E-02** at limit **
   3  Prefactor     .10000E-03    7.9983        .18142E-02** at limit **
   4  Prefactor     .10000E-03    1.6208        .96585E-03** at limit **
   5  Prefactor     .10000E-03    17.982        .18142E-02** at limit **
   6  Prefactor     .84155        71.030        .50368E-02   -.12700E-03
   7  Prefactor     3.8044        95.662        .20703E-03   -.10983E-05
   8  norm          .10000E-03    2.5765        .23957E-03** at limit **
   9  norm          .78307        1.4419        .11959E-03   -.10248E-03
  10  norm          .60579        .65174        .61774E-04    .44169E-04
  11  norm          2.0968        1.7479        .90548E-04    .69181E-04
  12  Prefactor     39.422        15.967        .63841E-04    .12740E-03
  13  Prefactor     25.071        41.721        .79992E-04   -.23735E-04
  14  Prefactor     .30268        23.291        .11322        .14456E-03
  15  norm          .10000E-03    5.0330        .17099E-02** at limit **
  16  Prefactor     .10000E-03    8.9384        .18142E-02** at limit **
  17  Prefactor     23.867        44.173        .82023E-04   -.37007E-04
  18  Prefactor     .10002E-03    62.099        .18142E-02** at limit **
  19  Prefactor     1.3139        26.802        .38433E-03   -.34716E-03
  20  norm          .58122        1.2546        .12263E-03   -.27107E-03
  21  Prefactor     2.4650        6.6529        .13023E-02    .40768E-03
  22  Normalizat    .76815        .23555        .29471E-03    .24585E-03
  23  Prefactor     1.1079        .17690        .20279E-03   -.24512E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.193
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.841546
  Prefactor  = 3.80445
  norm       = 0.0001
  norm       = 0.783072
  norm       = 0.605793
  norm       = 2.09675
  Prefactor  = 39.4216
  Prefactor  = 25.0713
  Prefactor  = 0.302683
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.8669
  Prefactor  = 0.000100017
  Prefactor  = 1.31394
  norm       = 0.581221
  Prefactor  = 2.46495
  Normalizat = 0.76815
  Prefactor  = 1.10786
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.719     FROM HESSE     STATUS=OK           360 CALLS     3756 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.193        5.2587        .44645E-05   -1.5009    
   2  norm          .10000E-03    11.484        .61377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.9996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6209        .19317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .84155        69.638        .20147E-03   -1.5524    
   7  Prefactor     3.8044        95.504        .82811E-05   -1.5318    
   8  norm          .10000E-03    2.5766        .47913E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .78307        1.4403        .47835E-05   -1.5531    
  10  norm          .60579        .65111        .24709E-05   -1.5552    
  11  norm          2.0968        1.7477        .36219E-05   -1.5418    
  12  Prefactor     39.422        15.962        .12768E-04   -1.4451    
  13  Prefactor     25.071        41.668        .31997E-05   -1.4706    
  14  Prefactor     .30268        22.734        .11558       -1.5598    
  15  norm          .10000E-03    5.0331        .34199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.9413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.867        44.115        .32809E-05   -1.4731    
  18  Prefactor     .10002E-03    62.100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3139        26.768        .15373E-04   -1.5479    
  20  norm          .58122        1.2538        .49053E-05   -1.5555    
  21  Prefactor     2.4650        6.6417        .52093E-04   -1.5394    
  22  Normalizat    .76815        .23421        .11788E-04   -1.0126    
  23  Prefactor     1.1079        .17700        .40558E-04   -.89216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56075e-09
Minuit parameter uncertainties:
  1  5.2589
  2  0.000120136
  3  1.34873e-05
  4  6.0846e-06
  5  5.40249e-05
  6  15.3281
  7  38.1908
  8  4.85064e-06
  9  1.44034
  10  0.651118
  11  1.7477
  12  15.9637
  13  41.7162
  14  5.24758
  15  6.47395e-05
  16  0.000225753
  17  44.1758
  18  0.00205913
  19  11.8668
  20  1.25383
  21  6.64367
  22  0.234518
  23  0.177094
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  6.058e-01  6.511e-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:  1.108e+00  1.771e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  7.681e-01  2.345e-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): 4.65e-08 +/- 5.00e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/514652/likelihoodResults_320457601_320716801_4FGL_J0948.9+0022_daily_bin313.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) = 6092.47737746
delta logL = 0.241643442384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6092.47699817
delta logL = 0.242022730245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61749       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4560       1.0000          .0000       5.0000    
     3 'Normalizat'    .71777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1381       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=   6092.477     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      230 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61796        12.397        .11079E-01    .15122E-02
   2  alpha         3.4579        3.1539        .45806        .14394E-04
   3  Normalizat    .71752        .60565E-01    .68741E-01    .31235E-04
   4  Prefactor     1.1383        .56449E-01    .36291E-01   -.26855E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.617964
  alpha      = 3.45789
  Normalizat = 0.717518
  Prefactor  = 1.13826
 **********
 **   18 **HESSE 
 **********

 FCN=   6092.477     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61796        .73228        .50031E-04   -1.5551    
   2  alpha         3.4579        1.6601        .39504E-01    .39321    
   3  Normalizat    .71752        .23031        .30419E-03   -1.0321    
   4  Prefactor     1.1383        .18200        .20042E-03   -.88253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41187e-12
Minuit parameter uncertainties:
  1  0.732292
  2  1.85253
  3  0.230621
  4  0.182098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514652': 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) = 6092.47699604
delta logL = 0.242024863878

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  6.180e-01  7.323e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.458e+00  1.853e+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:  1.138e+00  1.821e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  7.175e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.46 +/- 1.85
Photon Flux (Free Index): 7.81e-08 +/- 7.28e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.17e-05

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/514652/cmap_HighResolution_320457601_320716801_4FGL_J0948.9+0022_daily_bin313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-05', comment='SUCCESS', photon_flux='4.65e-08', energy_flux2='1.32e-05', photon_flux_error='5.00e-08', dlogl='2.42e-01', energy_flux='1.16e-05', photon_flux2='7.81e-08', job_status='DONE', time_completed='2021-09-01 02:54:05.041033', photon_index_error2='1.85', photon_index2='3.46', ts='1.10', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.17e-05', EG='0.77', time_epoch_completed='1630490045.04', return_code='0', job_id='514652', GAL2='1.14', EG2='0.72', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='7.28e-08', ts2='1.66', photon_index='2.45' WHERE bin_id='313' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:54:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 514652: <4FGL_J0948.9+0022_daily_bin313> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin313 147.244 0.3717 320457601 320716801 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 :                                   646.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             317.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

