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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin623
RA = 147.244, Dec = 0.3717
tmin = 400809601, tmax = 401068801
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='516501', job_status='RUN', time_executed='2021-09-01 02:48:10.704409', time_epoch_executed='1630489690.7' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516501

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516501/ft1_4FGL_J0948.9+0022_daily_bin623.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516501/ft2_4FGL_J0948.9+0022_daily_bin623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516501/ft1_4FGL_J0948.9+0022_daily_bin623.fits outfile=/scratch/kocevski/516501/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin623.fits ra=147.244 dec=0.3717 rad=12.0 tmin=400809601.0 tmax=401068801.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.43
user 3.18
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516501/ft1_filtered_4FGL_J0948.9+0022_daily_bin623.fits evtable="EVENTS" scfile=/scratch/kocevski/516501/ft2_4FGL_J0948.9+0022_daily_bin623.fits sctable="SC_DATA" expcube=/scratch/kocevski/516501/ltcube_400809601_401068801_4FGL_J0948.9+0022_daily_bin623.fits outfile=/scratch/kocevski/516501/expmap_400809601_401068801_4FGL_J0948.9+0022_daily_bin623.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/516501/ltcube_400809601_401068801_4FGL_J0948.9+0022_daily_bin623.fits
.....................!
real 193.72
user 187.65
sys 4.55

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/516501/ft1_filtered_4FGL_J0948.9+0022_daily_bin623.fits scfile=/scratch/kocevski/516501/ft2_4FGL_J0948.9+0022_daily_bin623.fits outfile=/scratch/kocevski/516501/cmap_400809601_401068801_4FGL_J0948.9+0022_daily_bin623.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 1.10
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516501/ft1_filtered_4FGL_J0948.9+0022_daily_bin623.fits scfile=/scratch/kocevski/516501/ft2_4FGL_J0948.9+0022_daily_bin623.fits outfile=/scratch/kocevski/516501/cmap_HighResolution_400809601_401068801_4FGL_J0948.9+0022_daily_bin623.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 1.05
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0209       1.0000         .10000E-03   10000.    
     2 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6730       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18505E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9057       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9867       1.0000         .10000E-03   10000.    
    10 'norm      '    .59420       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6994       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.797       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.969       1.0000         .10000E-03   10000.    
    15 'norm      '    9.4454       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.686       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.497       1.0000         .10000E-03   10000.    
    20 'norm      '    4.7691       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .59007       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .51050       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3062       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=   6112.930     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2536 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0208        2.4266        .79330E-07   -.25086E-04
   2  norm          .10000E-03    5.5341       -.15242E-06** at limit **
   3  Prefactor     8.6361        20.384       -.22345E-05   -.19307E-03
   4  Prefactor     .10000E-03    1.3605        .53673E-07** at limit **
   5  Prefactor     .10000E-03    44.965        .69444E-06** at limit **
   6  Prefactor     .10000E-03    8.1991       -.33060E-07** at limit **
   7  Prefactor     .10000E-03    26.422        .11167E-05** at limit **
   8  norm          1.9057        1.8708       -.22918E-07    .24623E-04
   9  norm          2.9865        1.2361       -.12515E-08   -.18807E-04
  10  norm          .59349        .78134        .15015E-06   -.16823E-03
  11  norm          1.6992        1.3766        .34840E-08   -.81200E-06
  12  Prefactor     18.793        15.785       -.15207E-06   -.13334E-04
  13  Prefactor     .10000E-03    51.946       -.26119E-06** at limit **
  14  Prefactor     34.970        39.969       -.23876E-06   -.99932E-05
  15  norm          9.4445        13.886        .12971E-06    .19348E-04
  16  Prefactor     11.686        13.518        .35545E-06    .43089E-04
  17  Prefactor     .10000E-03    29.230       -.19888E-05** at limit **
  18  Prefactor     .10000E-03    38.509        .38245E-06** at limit **
  19  Prefactor     16.488        21.549       -.55607E-06   -.60277E-04
  20  norm          4.7689        1.8085       -.60007E-07   -.22777E-03
  21  Prefactor     .58873        6.8127        .33963E-05   -.21757E-03
  22  Normalizat    .51055        .21454        .73130E-06   -.69803E-04
  23  Prefactor     1.3063        .16469       -.59527E-06   -.60979E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02075
  norm       = 0.0001
  Prefactor  = 8.63612
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90567
  norm       = 2.98652
  norm       = 0.593494
  norm       = 1.69915
  Prefactor  = 18.7929
  Prefactor  = 0.0001
  Prefactor  = 34.9703
  norm       = 9.44449
  Prefactor  = 11.6857
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.4876
  norm       = 4.76891
  Prefactor  = 0.588727
  Normalizat = 0.510548
  Prefactor  = 1.30629
 **********
 **   18 **HESSE 
 **********

 FCN=   6112.930     FROM HESSE     STATUS=OK           376 CALLS     2912 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0208        2.4111        .12932E-03   -1.5424    
   2  norm          .10000E-03    5.6339        .17940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.6361        21.420        .13611E-03   -1.5120    
   4  Prefactor     .10000E-03    1.3808        .89002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9057        1.8838        .10328E-03   -1.5432    
   9  norm          2.9865        1.2355        .53836E-04   -1.5362    
  10  norm          .59349        .76236        .70236E-04   -1.5554    
  11  norm          1.6992        1.3834        .80307E-04   -1.5447    
  12  Prefactor     18.793        15.772        .92381E-04   -1.4841    
  13  Prefactor     .10000E-03    52.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.970        39.936        .67768E-04   -1.4525    
  15  norm          9.4445        13.867        .13040E-03   -1.5093    
  16  Prefactor     11.686        13.521        .11719E-03   -1.5024    
  17  Prefactor     .10000E-03    29.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    38.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.488        21.618        .98610E-04   -1.4896    
  20  norm          4.7689        1.8077        .62058E-04   -1.5271    
  21  Prefactor     .58873        7.2129        .39822E-03   -1.5555    
  22  Normalizat    .51055        .23007        .36000E-03   -1.1193    
  23  Prefactor     1.3063        .18112        .19555E-03   -.83120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33071e-10
Minuit parameter uncertainties:
  1  2.4112
  2  1.73057e-05
  3  21.4387
  4  4.62551e-07
  5  0.000534906
  6  7.37827e-07
  7  0.000198271
  8  1.88385
  9  1.23549
  10  0.762369
  11  1.38343
  12  15.7754
  13  0.000109595
  14  39.9661
  15  13.8718
  16  13.5244
  17  0.000372589
  18  8.57897e-05
  19  21.6284
  20  1.80768
  21  4.12164
  22  0.230504
  23  0.18121
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  5.935e-01  7.624e-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.306e+00  1.812e-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.105e-01  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/516501/likelihoodResults_400809601_401068801_4FGL_J0948.9+0022_daily_bin623.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) = 6112.5212047
delta logL = 0.408996039584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6112.52109033
delta logL = 0.409110408348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58916       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6166       1.0000          .0000       5.0000    
     3 'Normalizat'    .45473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3391       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=   6112.521     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      197 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58914        11.687        .10849E-01    .12985E-02
   2  alpha         3.6169        3.1496        .48149        .15739E-04
   3  Normalizat    .45471        .68835E-01    .85922E-01    .44612E-04
   4  Prefactor     1.3391        .59277E-01    .31962E-01   -.40521E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.589141
  alpha      = 3.61695
  Normalizat = 0.454707
  Prefactor  = 1.33907
 **********
 **   18 **HESSE 
 **********

 FCN=   6112.521     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58914        .74981        .49014E-04   -1.5554    
   2  alpha         3.6169        1.4379        .35446E-02    .46316    
   3  Normalizat    .45471        .22453        .38065E-03   -1.1456    
   4  Prefactor     1.3391        .18290        .19347E-03   -.82153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63649e-13
Minuit parameter uncertainties:
  1  0.749822
  2  1.56174
  3  0.224974
  4  0.182985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516501': 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) = 6112.52109028
delta logL = 0.40911045864

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  5.891e-01  7.498e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.617e+00  1.562e+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.339e+00  1.830e-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.547e-01  2.250e-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.62 +/- 1.56
Photon Flux (Free Index): 8.21e-08 +/- 7.33e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.24e-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/516501/cmap_HighResolution_400809601_401068801_4FGL_J0948.9+0022_daily_bin623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-05', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='4.09e-01', photon_flux2='8.21e-08', job_status='DONE', time_completed='2021-09-01 02:58:12.031672', photon_index_error2='1.56', photon_index2='3.62', ts='0.72', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.24e-05', EG='0.51', time_epoch_completed='1630490292.03', return_code='0', job_id='516501', GAL2='1.34', EG2='0.45', return_code2='0', photon_flux_error2='7.33e-08', ts2='1.66', photon_index='2.45' WHERE bin_id='623' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:58:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 516501: <4FGL_J0948.9+0022_daily_bin623> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin623 147.244 0.3717 400809601 401068801 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.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            733 sec.

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

