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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin442
RA = 147.244, Dec = 0.3717
tmin = 353894401, tmax = 354153601
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='514870', job_status='RUN', time_executed='2021-09-01 02:44:00.039664', time_epoch_executed='1630489440.04' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514870/ft1_4FGL_J0948.9+0022_daily_bin442.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514870/ft2_4FGL_J0948.9+0022_daily_bin442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514870/ft1_4FGL_J0948.9+0022_daily_bin442.fits outfile=/scratch/kocevski/514870/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin442.fits ra=147.244 dec=0.3717 rad=12.0 tmin=353894401.0 tmax=354153601.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.45
user 3.22
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514870/ft2_4FGL_J0948.9+0022_daily_bin442.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/514870/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin442.fits evtable="EVENTS" outfile="/scratch/kocevski/514870/ft1_filtered_4FGL_J0948.9+0022_daily_bin442.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.48
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514870/ft1_filtered_4FGL_J0948.9+0022_daily_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/514870/ft2_4FGL_J0948.9+0022_daily_bin442.fits sctable="SC_DATA" expcube=/scratch/kocevski/514870/ltcube_353894401_354153601_4FGL_J0948.9+0022_daily_bin442.fits outfile=/scratch/kocevski/514870/expmap_353894401_354153601_4FGL_J0948.9+0022_daily_bin442.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/514870/ltcube_353894401_354153601_4FGL_J0948.9+0022_daily_bin442.fits
.....................!
real 190.92
user 186.31
sys 4.27

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.591       1.0000         .10000E-03   10000.    
     2 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.665       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .37985E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.788       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .72879       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3019       1.0000         .10000E-03   10000.    
     9 'norm      '    .17558E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .35319       1.0000         .10000E-03   10000.    
    11 'norm      '    .74592       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8824       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12785E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1808       1.0000         .10000E-03   10000.    
    17 'Prefactor '    81.684       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1862       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .91080       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99589       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=   6517.178     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2625 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.592        4.6234        .81437E-07   -.32745E-03
   2  norm          .10000E-03    2.6053        .38873E-07** at limit **
   3  Prefactor     19.668        20.539       -.12462E-05   -.13065E-03
   4  Prefactor     .10141E-03    1.6666        .15504E-06** at limit **
   5  Prefactor     50.747        39.564        .39472E-05   -.35976E-04
   6  Prefactor     .70798        14.229        .52244E-05   -.79980E-03
   7  Prefactor     .10000E-03    13.427        .14883E-06** at limit **
   8  norm          1.3021        1.8041        .93218E-07    .41917E-04
   9  norm          .10002E-03    .50489        .10054E-06** at limit **
  10  norm          .35285        .50185        .97558E-07   -.10158E-02
  11  norm          .74499        1.4541       -.30472E-06   -.78547E-03
  12  Prefactor     1.8892        21.556        .81508E-05    .21617E-03
  13  Prefactor     .10000E-03    9.1812       -.62946E-06** at limit **
  14  Prefactor     .10000E-03    11.519       -.47925E-06** at limit **
  15  norm          .10000E-03    9.7030        .24618E-06** at limit **
  16  Prefactor     3.1876        7.9470        .17566E-05    .30359E-03
  17  Prefactor     81.586        65.272        .88186E-05    .13662E-03
  18  Prefactor     .10000E-03    24.002       -.43809E-06** at limit **
  19  Prefactor     .10000E-03    5.9412       -.26365E-06** at limit **
  20  norm          1.1862        1.0948        .38481E-07   -.59982E-04
  21  Prefactor     .10000E-03    2.0531        .15630E-07** at limit **
  22  Normalizat    .91023        .19114       -.41257E-06   -.32564E-03
  23  Prefactor     .99638        .14350       -.11252E-05   -.43895E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5923
  norm       = 0.0001
  Prefactor  = 19.6683
  Prefactor  = 0.000101415
  Prefactor  = 50.747
  Prefactor  = 0.707982
  Prefactor  = 0.0001
  norm       = 1.3021
  norm       = 0.000100016
  norm       = 0.352846
  norm       = 0.744994
  Prefactor  = 1.88923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 3.1876
  Prefactor  = 81.5862
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.1862
  Prefactor  = 0.0001
  Normalizat = 0.910232
  Prefactor  = 0.996375
 **********
 **   18 **HESSE 
 **********

 FCN=   6517.178     FROM HESSE     STATUS=OK           392 CALLS     3017 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.592        4.6220        .10096E-03   -1.4998    
   2  norm          .10000E-03    2.6201        .12722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.668        20.595        .90320E-04   -1.4821    
   4  Prefactor     .10141E-03    5.6352        .32772E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     50.747        39.594        .56274E-04   -1.4282    
   6  Prefactor     .70798        68.675        .49012E-02   -1.5540    
   7  Prefactor     .10000E-03    13.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3021        1.7755        .12402E-03   -1.5480    
   9  norm          .10002E-03    .48133        .19576E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .35285        .47483        .63038E-03   -1.5589    
  11  norm          .74499        1.2181        .13186E-02   -1.5535    
  12  Prefactor     1.8892        21.613        .15170E-02   -1.5433    
  13  Prefactor     .10000E-03    9.1867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.7153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1876        7.8487        .11361E-02   -1.5351    
  17  Prefactor     81.586        64.790        .22220E-03   -1.3899    
  18  Prefactor     .10000E-03    24.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1862        1.0738        .77973E-04   -1.5490    
  21  Prefactor     .10000E-03    2.0623        .11294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .91023        .22673        .26807E-03   -.96102    
  23  Prefactor     .99638        .16938        .20867E-03   -.92850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52406e-08
Minuit parameter uncertainties:
  1  4.62212
  2  1.95998e-06
  3  20.602
  4  0.00564802
  5  39.6143
  6  13.9612
  7  7.17116e-06
  8  1.77553
  9  0.000177063
  10  0.474831
  11  1.21815
  12  12.7854
  13  1.13302e-05
  14  3.37957e-06
  15  0.000171963
  16  7.85121
  17  64.8462
  18  0.000242261
  19  5.10075e-05
  20  1.07378
  21  1.91638e-06
  22  0.226966
  23  0.16947
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.528e-01  4.748e-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:  9.964e-01  1.695e-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:  9.102e-01  2.270e-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.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514870/likelihoodResults_353894401_354153601_4FGL_J0948.9+0022_daily_bin442.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) = 6517.02010614
delta logL = 0.157971514112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6517.012856
delta logL = 0.165221657981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41409       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1600       1.0000          .0000       5.0000    
     3 'Normalizat'    .88696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0083       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=   6517.013     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41355        16.733        .10915E-01    .16561E-02
   2  alpha         3.1605        3.2840        .43129       -.74936E-06
   3  Normalizat    .88748        .81707E-01    .44735E-01    .19603E-04
   4  Prefactor     1.0080        .68545E-01    .43586E-01    .68786E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.413554
  alpha      = 3.16046
  Normalizat = 0.887476
  Prefactor  = 1.00798
 **********
 **   18 **HESSE 
 **********

 FCN=   6517.013     FROM HESSE     STATUS=OK            35 CALLS      244 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41355        .49115        .54778E-03   -1.5579    
   2  alpha         3.1605        1.2751        .36757E-01    .26736    
   3  Normalizat    .88748        .20959        .27116E-03   -.96902    
   4  Prefactor     1.0080        .16782        .20759E-03   -.92464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01574e-11
Minuit parameter uncertainties:
  1  0.491153
  2  1.34361
  3  0.209779
  4  0.167908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514870': 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) = 6517.01285246
delta logL = 0.165225202514

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.136e-01  4.912e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.160e+00  1.344e+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.008e+00  1.679e-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:  8.875e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.16 +/- 1.34
Photon Flux (Free Index): 4.40e-08 +/- 4.95e-08
Energy Flux (Free Index): 8.05e-06 +/- 8.87e-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/514870/cmap_HighResolution_353894401_354153601_4FGL_J0948.9+0022_daily_bin442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', comment='SUCCESS', energy_flux2='8.05e-06', dlogl='1.65e-01', photon_flux2='4.40e-08', job_status='DONE', time_completed='2021-09-01 02:54:26.975965', photon_index_error2='1.34', photon_index2='3.16', ts='0.72', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='8.87e-06', EG='0.91', time_epoch_completed='1630490066.98', return_code='0', job_id='514870', GAL2='1.01', EG2='0.89', return_code2='0', photon_flux_error2='4.95e-08', ts2='1.06', photon_index='2.45' WHERE bin_id='442' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:54:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 514870: <4FGL_J0948.9+0022_daily_bin442> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin442 147.244 0.3717 353894401 354153601 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 :                                   616.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            806 sec.

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

