/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 176 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 = 7379
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin649
RA = 147.244, Dec = 0.3717
tmin = 407548801, tmax = 407808001
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='516580', job_status='RUN', time_executed='2021-09-01 02:49:21.554012', time_epoch_executed='1630489761.55' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='649'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516580

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516580/ft1_4FGL_J0948.9+0022_daily_bin649.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516580/ft2_4FGL_J0948.9+0022_daily_bin649.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516580/ft1_4FGL_J0948.9+0022_daily_bin649.fits outfile=/scratch/kocevski/516580/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin649.fits ra=147.244 dec=0.3717 rad=12.0 tmin=407548801.0 tmax=407808001.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.61
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516580/ft1_filtered_4FGL_J0948.9+0022_daily_bin649.fits" evtable="EVENTS" scfile=/scratch/kocevski/516580/ft2_4FGL_J0948.9+0022_daily_bin649.fits sctable="SC_DATA" outfile=/scratch/kocevski/516580/ltcube_407548801_407808001_4FGL_J0948.9+0022_daily_bin649.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/516580/ft2_4FGL_J0948.9+0022_daily_bin649.fits
.....................!
real 12.33
user 11.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516580/ft1_filtered_4FGL_J0948.9+0022_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/516580/ft2_4FGL_J0948.9+0022_daily_bin649.fits sctable="SC_DATA" expcube=/scratch/kocevski/516580/ltcube_407548801_407808001_4FGL_J0948.9+0022_daily_bin649.fits outfile=/scratch/kocevski/516580/expmap_407548801_407808001_4FGL_J0948.9+0022_daily_bin649.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/516580/ltcube_407548801_407808001_4FGL_J0948.9+0022_daily_bin649.fits
.....................!
real 191.30
user 185.93
sys 4.35

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/516580/ft1_filtered_4FGL_J0948.9+0022_daily_bin649.fits scfile=/scratch/kocevski/516580/ft2_4FGL_J0948.9+0022_daily_bin649.fits outfile=/scratch/kocevski/516580/cmap_407548801_407808001_4FGL_J0948.9+0022_daily_bin649.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.57
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0120       1.0000         .10000E-03   10000.    
     2 'norm      '    18.182       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1942       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5342       1.0000         .10000E-03   10000.    
    10 'norm      '    .94104       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8780       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.016       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    21.218       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.507       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10803E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6939       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3153       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2341       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .50178       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3475       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=   6557.952     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2165 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0113        3.7914        .11912E-05    .96285E-04
   2  norm          18.184        8.2931        .14904E-06   -.46611E-04
   3  Prefactor     .10000E-03    5.9230        .78199E-07** at limit **
   4  Prefactor     1.1931        3.0938        .72322E-06    .11854E-03
   5  Prefactor     .10000E-03    35.604        .24682E-06** at limit **
   6  Prefactor     .10000E-03    10.342       -.54686E-07** at limit **
   7  Prefactor     .10000E-03    14.617        .73477E-06** at limit **
   8  norm          .10000E-03    1.8494        .85237E-07** at limit **
   9  norm          2.5343        1.3518        .11270E-06    .60277E-04
  10  norm          .94110        .59401        .34930E-07   -.10030E-02
  11  norm          2.8778        1.8632        .69550E-07   -.59612E-04
  12  Prefactor     3.4909        11.728        .56631E-05    .11785E-03
  13  Prefactor     16.992        34.988        .32501E-05   -.70571E-05
  14  Prefactor     .10000E-03    10.782       -.79994E-06** at limit **
  15  norm          21.212        15.949       -.30424E-06    .74095E-04
  16  Prefactor     .10000E-03    2.2529        .21124E-06** at limit **
  17  Prefactor     10.523        41.436       -.40879E-05   -.19224E-04
  18  Prefactor     .10000E-03    15.636       -.33009E-06** at limit **
  19  Prefactor     5.6955        9.0113        .55240E-06    .15455E-03
  20  norm          2.3153        1.2962       -.17774E-06   -.48472E-03
  21  Prefactor     2.2356        5.2834        .75941E-05   -.18344E-03
  22  Normalizat    .50161        .20668       -.40607E-05   -.45929E-04
  23  Prefactor     1.3477        .16318        .30503E-06    .19340E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01131
  norm       = 18.1838
  Prefactor  = 0.0001
  Prefactor  = 1.1931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.53425
  norm       = 0.941097
  norm       = 2.87779
  Prefactor  = 3.4909
  Prefactor  = 16.9918
  Prefactor  = 0.000100002
  norm       = 21.2118
  Prefactor  = 0.0001
  Prefactor  = 10.5228
  Prefactor  = 0.0001
  Prefactor  = 5.69551
  norm       = 2.31527
  Prefactor  = 2.23558
  Normalizat = 0.501612
  Prefactor  = 1.34767
 **********
 **   18 **HESSE 
 **********

 FCN=   6557.952     FROM HESSE     STATUS=OK           374 CALLS     2539 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0113        3.8222        .28807E-03   -1.5507    
   2  norm          18.184        8.2718        .93929E-04   -1.4855    
   3  Prefactor     .10000E-03    5.9334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1931        3.0684        .21594E-03   -1.5490    
   5  Prefactor     .10000E-03    35.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.8783        .10751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5343        1.3479        .65343E-04   -1.5390    
  10  norm          .94110        .57603        .46291E-04   -1.5514    
  11  norm          2.8778        1.8636        .85922E-04   -1.5369    
  12  Prefactor     3.4909        11.690        .10826E-02   -1.5334    
  13  Prefactor     16.992        34.957        .97094E-04   -1.4883    
  14  Prefactor     .10000E-03    10.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          21.212        15.900        .86953E-04   -1.4787    
  16  Prefactor     .10000E-03    2.2550        .11872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.523        41.358        .12361E-03   -1.5059    
  18  Prefactor     .10000E-03    15.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.6955        9.0033        .16834E-03   -1.5231    
  20  norm          2.3153        1.2904        .66094E-04   -1.5404    
  21  Prefactor     2.2356        5.2854        .13618E-02   -1.5409    
  22  Normalizat    .50161        .22303        .36011E-03   -1.1234    
  23  Prefactor     1.3477        .17998        .19316E-03   -.81900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43222e-10
Minuit parameter uncertainties:
  1  3.82309
  2  8.2723
  3  1.24998e-05
  4  3.06876
  5  0.000122606
  6  8.74669e-05
  7  2.28014e-05
  8  8.05375e-06
  9  1.34796
  10  0.576037
  11  1.86363
  12  11.6976
  13  34.999
  14  0.000274003
  15  15.903
  16  2.04749e-05
  17  41.4712
  18  0.000103953
  19  9.00548
  20  1.29044
  21  5.2865
  22  0.223425
  23  0.180068
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  9.411e-01  5.760e-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.348e+00  1.801e-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:  5.016e-01  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.85
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 7.23e-08 +/- 4.42e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.10e-05

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

Saving results to:
/scratch/kocevski/516580/likelihoodResults_407548801_407808001_4FGL_J0948.9+0022_daily_bin649.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) = 6557.03884677
delta logL = 0.912873667488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6557.02650523
delta logL = 0.925215214979

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83297       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5190       1.0000          .0000       5.0000    
     3 'Normalizat'    .43951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3871       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=   6557.027     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83292        8.3016        .80863E-02    .71953E-03
   2  alpha         3.5191        2.9339        .46624        .13107E-04
   3  Normalizat    .43948        .79616E-01    .86568E-01    .49630E-04
   4  Prefactor     1.3871        .74363E-01    .31243E-01   -.55698E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.832923
  alpha      = 3.51912
  Normalizat = 0.439481
  Prefactor  = 1.38708
 **********
 **   18 **HESSE 
 **********

 FCN=   6557.027     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .79E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83292        .60432        .36340E-04   -1.5525    
   2  alpha         3.5191        .93265        .22960E-02    .41988    
   3  Normalizat    .43948        .21741        .38349E-03   -1.1531    
   4  Prefactor     1.3871        .18207        .19081E-03   -.80753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93119e-14
Minuit parameter uncertainties:
  1  0.604328
  2  0.960765
  3  0.217829
  4  0.182158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516580': 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) = 6557.02650521
delta logL = 0.925215228445

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.329e-01  6.043e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.519e+00  9.608e-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:  1.387e+00  1.822e-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:  4.395e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.89
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.52 +/- 0.96
Photon Flux (Free Index): 1.09e-07 +/- 5.71e-08
Energy Flux (Free Index): 1.81e-05 +/- 9.74e-06

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/516580/cmap_HighResolution_407548801_407808001_4FGL_J0948.9+0022_daily_bin649.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-05', comment='SUCCESS', photon_flux='7.23e-08', energy_flux2='1.81e-05', photon_flux_error='4.42e-08', dlogl='9.25e-01', energy_flux='1.80e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-01 02:59:20.374061', photon_index_error2='0.96', photon_index2='3.52', ts='3.85', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='9.74e-06', EG='0.50', time_epoch_completed='1630490360.37', return_code='0', job_id='516580', GAL2='1.39', EG2='0.44', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='5.71e-08', ts2='5.89', photon_index='2.45' WHERE bin_id='649' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:59:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 516580: <4FGL_J0948.9+0022_daily_bin649> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin649> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:12 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:14 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:46:14 2021
Terminated at Wed Sep  1 02:59:21 2021
Results reported at Wed Sep  1 02:59:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin649 147.244 0.3717 407548801 407808001 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 :                                   587.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            789 sec.

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

