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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin362
RA = 147.244, Dec = 0.3717
tmin = 333158401, tmax = 333417601
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='514753', job_status='RUN', time_executed='2021-09-01 02:45:29.695448', time_epoch_executed='1630489529.7' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514753

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514753/ft1_4FGL_J0948.9+0022_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514753/ft2_4FGL_J0948.9+0022_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514753/ft1_4FGL_J0948.9+0022_daily_bin362.fits outfile=/scratch/kocevski/514753/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin362.fits ra=147.244 dec=0.3717 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.22
user 5.82
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514753/ft2_4FGL_J0948.9+0022_daily_bin362.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/514753/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin362.fits evtable="EVENTS" outfile="/scratch/kocevski/514753/ft1_filtered_4FGL_J0948.9+0022_daily_bin362.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.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514753/ft1_filtered_4FGL_J0948.9+0022_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/514753/ft2_4FGL_J0948.9+0022_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/514753/ltcube_333158401_333417601_4FGL_J0948.9+0022_daily_bin362.fits outfile=/scratch/kocevski/514753/expmap_333158401_333417601_4FGL_J0948.9+0022_daily_bin362.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/514753/ltcube_333158401_333417601_4FGL_J0948.9+0022_daily_bin362.fits
.....................!
real 190.33
user 184.61
sys 5.23

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/514753/ft1_filtered_4FGL_J0948.9+0022_daily_bin362.fits scfile=/scratch/kocevski/514753/ft2_4FGL_J0948.9+0022_daily_bin362.fits outfile=/scratch/kocevski/514753/cmap_333158401_333417601_4FGL_J0948.9+0022_daily_bin362.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514753/ft1_filtered_4FGL_J0948.9+0022_daily_bin362.fits scfile=/scratch/kocevski/514753/ft2_4FGL_J0948.9+0022_daily_bin362.fits outfile=/scratch/kocevski/514753/cmap_HighResolution_333158401_333417601_4FGL_J0948.9+0022_daily_bin362.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.61
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2291       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12074       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5026       1.0000         .10000E-03   10000.    
     5 'Prefactor '    46.745       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1621       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .49629       1.0000         .10000E-03   10000.    
     9 'norm      '    .42175       1.0000         .10000E-03   10000.    
    10 'norm      '    .88817       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3157       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8700       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.010       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.784       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10802E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1058       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0736       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=   4914.912     FROM MIGRAD    STATUS=CONVERGED    953 CALLS     3011 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2292        5.3841        .14432E-03    .45965E-03
   2  norm          .10000E-03    3.7356        .13199E-02** at limit **
   3  Prefactor     .50635E-01    27.768        .87205E-01    .78614E-04
   4  Prefactor     1.5026        3.6454        .19911E-03    .51958E-03
   5  Prefactor     46.722        49.626        .58645E-04    .13523E-03
   6  Prefactor     5.1599        17.192        .17694E-03    .15440E-03
   7  Prefactor     .10000E-03    19.032        .18142E-02** at limit **
   8  norm          .49091        14.547        .24056E-02    .14078E-03
   9  norm          .42169        1.0706        .11249E-03    .86933E-03
  10  norm          .88835        .77409        .55194E-03    .11015E-02
  11  norm          2.3158        1.8489        .82633E-04    .36184E-04
  12  Prefactor     8.8653        16.346        .13458E-03   -.60399E-04
  13  Prefactor     .10000E-03    47.435        .18142E-02** at limit **
  14  Prefactor     .10000E-03    14.831        .18142E-02** at limit **
  15  norm          10.018        22.603        .12665E-03   -.38869E-04
  16  Prefactor     .10000E-03    4.5726        .14626E-02** at limit **
  17  Prefactor     37.712        59.164        .65203E-04   -.35360E-04
  18  Prefactor     .10000E-03    33.719        .18142E-02** at limit **
  19  Prefactor     .10000E-03    8.4261        .18142E-02** at limit **
  20  norm          .10000E-03    .62298        .53578E-03** at limit **
  21  Prefactor     .10000E-03    24.179        .33064E-02** at limit **
  22  Normalizat    1.1062        .28090        .27343E-03    .38500E-03
  23  Prefactor     1.0733        .22142        .22591E-03    .28376E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.22919
  norm       = 0.0001
  Prefactor  = 0.050635
  Prefactor  = 1.50259
  Prefactor  = 46.7215
  Prefactor  = 5.15991
  Prefactor  = 0.0001
  norm       = 0.490913
  norm       = 0.42169
  norm       = 0.888354
  norm       = 2.31583
  Prefactor  = 8.86525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0181
  Prefactor  = 0.0001
  Prefactor  = 37.7116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10618
  Prefactor  = 1.07331
 **********
 **   18 **HESSE 
 **********

 FCN=   4914.912     FROM HESSE     STATUS=OK           360 CALLS     3371 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2292        5.3834        .57727E-05   -1.5209    
   2  norm          .10000E-03    3.7359        .26397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .50635E-01    24.840        .93704E-01   -1.5663    
   4  Prefactor     1.5026        3.6443        .79645E-05   -1.5463    
   5  Prefactor     46.722        49.604        .11729E-04   -1.4340    
   6  Prefactor     5.1599        17.189        .70777E-05   -1.5254    
   7  Prefactor     .10000E-03    19.032        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .49091        14.488        .96224E-04   -1.5568    
   9  norm          .42169        1.0703        .44997E-05   -1.5578    
  10  norm          .88835        .77345        .22078E-04   -1.5519    
  11  norm          2.3158        1.8485        .33053E-05   -1.5404    
  12  Prefactor     8.8653        16.345        .53833E-05   -1.5112    
  13  Prefactor     .10000E-03    47.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.831        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.018        22.601        .50659E-05   -1.5075    
  16  Prefactor     .10000E-03    4.5727        .29253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.712        59.156        .13041E-04   -1.4479    
  18  Prefactor     .10000E-03    33.722        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4268        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .62302        .10716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.483        .66127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1062        .28104        .54685E-04   -.89554    
  23  Prefactor     1.0733        .22123        .45181E-04   -.90324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82995e-10
Minuit parameter uncertainties:
  1  5.3838
  2  2.44189e-06
  3  2.24171
  4  3.64488
  5  49.6474
  6  17.2056
  7  3.1529e-05
  8  5.33471
  9  1.07034
  10  0.77346
  11  1.84852
  12  16.3533
  13  7.37037e-05
  14  5.44254e-06
  15  22.6199
  16  1.23109e-05
  17  59.2483
  18  1.538e-05
  19  5.87009e-06
  20  3.92982e-06
  21  4.05609e-06
  22  0.281418
  23  0.221416
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.884e-01  7.735e-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.073e+00  2.214e-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.106e+00  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.82e-08 +/- 5.93e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/514753/likelihoodResults_333158401_333417601_4FGL_J0948.9+0022_daily_bin362.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) = 4914.34823835
delta logL = 0.56361309506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4914.34405635
delta logL = 0.567795098959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97677       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4579       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1161       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=   4914.344     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97664        15.266        .96674E-02    .63775E-03
   2  alpha         3.4583        2.9876        .45829        .48291E-05
   3  Normalizat    1.0286        .98413E-01    .63800E-01    .10873E-04
   4  Prefactor     1.1161        .92957E-01    .37004E-01    .34266E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.976641
  alpha      = 3.4583
  Normalizat = 1.0286
  Prefactor  = 1.11609
 **********
 **   18 **HESSE 
 **********

 FCN=   4914.344     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97664        .78924        .43495E-04   -1.5510    
   2  alpha         3.4583        1.0542        .24763E-01    .39339    
   3  Normalizat    1.0286        .28168        .28219E-03   -.92078    
   4  Prefactor     1.1161        .22352        .22203E-03   -.88954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.64358e-11
Minuit parameter uncertainties:
  1  0.789247
  2  1.09472
  3  0.28209
  4  0.223712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514753': 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) = 4914.34405623
delta logL = 0.567795215695

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  9.766e-01  7.892e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.458e+00  1.095e+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.116e+00  2.237e-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.029e+00  2.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.11
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.46 +/- 1.09
Photon Flux (Free Index): 1.23e-07 +/- 8.75e-08
Energy Flux (Free Index): 2.08e-05 +/- 1.41e-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/514753/cmap_HighResolution_333158401_333417601_4FGL_J0948.9+0022_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-05', comment='SUCCESS', photon_flux='6.82e-08', energy_flux2='2.08e-05', photon_flux_error='5.93e-08', dlogl='5.68e-01', energy_flux='1.70e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-01 02:55:16.947787', photon_index_error2='1.09', photon_index2='3.46', ts='1.86', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.41e-05', EG='1.11', time_epoch_completed='1630490116.95', return_code='0', job_id='514753', GAL2='1.12', EG2='1.03', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='8.75e-08', ts2='3.11', photon_index='2.45' WHERE bin_id='362' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:55:16 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin362 147.244 0.3717 333158401 333417601 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 :                                   575.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             215.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

