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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin560
RA = 147.244, Dec = 0.3717
tmin = 384480001, tmax = 384739201
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='516434', job_status='RUN', time_executed='2021-09-01 02:49:08.766501', time_epoch_executed='1630489748.77' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516434

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516434/ft1_4FGL_J0948.9+0022_daily_bin560.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516434/ft2_4FGL_J0948.9+0022_daily_bin560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516434/ft1_4FGL_J0948.9+0022_daily_bin560.fits outfile=/scratch/kocevski/516434/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin560.fits ra=147.244 dec=0.3717 rad=12.0 tmin=384480001.0 tmax=384739201.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 4.07
user 3.70
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516434/ft2_4FGL_J0948.9+0022_daily_bin560.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/516434/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin560.fits evtable="EVENTS" outfile="/scratch/kocevski/516434/ft1_filtered_4FGL_J0948.9+0022_daily_bin560.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 2.10
user 0.33
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516434/ft1_filtered_4FGL_J0948.9+0022_daily_bin560.fits evtable="EVENTS" scfile=/scratch/kocevski/516434/ft2_4FGL_J0948.9+0022_daily_bin560.fits sctable="SC_DATA" expcube=/scratch/kocevski/516434/ltcube_384480001_384739201_4FGL_J0948.9+0022_daily_bin560.fits outfile=/scratch/kocevski/516434/expmap_384480001_384739201_4FGL_J0948.9+0022_daily_bin560.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/516434/ltcube_384480001_384739201_4FGL_J0948.9+0022_daily_bin560.fits
.....................!
real 191.05
user 185.10
sys 4.38

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/516434/ft1_filtered_4FGL_J0948.9+0022_daily_bin560.fits scfile=/scratch/kocevski/516434/ft2_4FGL_J0948.9+0022_daily_bin560.fits outfile=/scratch/kocevski/516434/cmap_384480001_384739201_4FGL_J0948.9+0022_daily_bin560.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.85
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516434/ft1_filtered_4FGL_J0948.9+0022_daily_bin560.fits scfile=/scratch/kocevski/516434/ft2_4FGL_J0948.9+0022_daily_bin560.fits outfile=/scratch/kocevski/516434/cmap_HighResolution_384480001_384739201_4FGL_J0948.9+0022_daily_bin560.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.71
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    22.255       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1994       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.829       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.453       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.620       1.0000         .10000E-03   10000.    
     8 'norm      '    .10557E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    4.2001       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2685       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    101.94       1.0000         .10000E-03   10000.    
    15 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23050E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    68.638       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.793       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7570       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .55886       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1882       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=   5666.087     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2639 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0240        .13127E-08** at limit **
   2  norm          22.256        9.2319        .21848E-07    .38090E-05
   3  Prefactor     .10000E-03    10.326        .34652E-07** at limit **
   4  Prefactor     3.1998        4.7122        .97967E-06   -.50718E-04
   5  Prefactor     26.828        29.283       -.12059E-07    .22146E-04
   6  Prefactor     17.453        19.806       -.26071E-06    .12529E-04
   7  Prefactor     50.603        46.078        .91735E-06    .18086E-03
   8  norm          .21604E-01    2.5262       -.51681E-06    .11593E-03
   9  norm          4.2002        1.5723        .15693E-07    .25813E-04
  10  norm          1.2686        .78078        .36667E-07    .27818E-04
  11  norm          .10000E-03    .72901        .70193E-08** at limit **
  12  Prefactor     .10000E-03    8.0467       -.51132E-06** at limit **
  13  Prefactor     .10000E-03    17.668       -.29066E-07** at limit **
  14  Prefactor     101.95        55.257       -.68478E-06   -.13857E-04
  15  norm          .10000E-03    24.960       -.14113E-05** at limit **
  16  Prefactor     .10000E-03    7.9806        .13229E-05** at limit **
  17  Prefactor     68.683        66.080        .18661E-05   -.62988E-04
  18  Prefactor     .10000E-03    83.473       -.21137E-05** at limit **
  19  Prefactor     24.785        20.800        .24769E-05    .15082E-03
  20  norm          .10000E-03    .53505       -.37151E-07** at limit **
  21  Prefactor     1.7580        6.2276        .44927E-05   -.22500E-04
  22  Normalizat    .55892        .23728       -.77840E-06    .11345E-03
  23  Prefactor     1.1881        .16920        .49974E-07    .49071E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 22.2557
  Prefactor  = 0.0001
  Prefactor  = 3.19979
  Prefactor  = 26.8275
  Prefactor  = 17.4532
  Prefactor  = 50.6025
  norm       = 0.0216043
  norm       = 4.20024
  norm       = 1.26855
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.947
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 68.6832
  Prefactor  = 0.000100001
  Prefactor  = 24.7846
  norm       = 0.0001
  Prefactor  = 1.758
  Normalizat = 0.558924
  Prefactor  = 1.18812
 **********
 **   18 **HESSE 
 **********

 FCN=   5666.087     FROM HESSE     STATUS=OK           374 CALLS     3013 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0428        .10451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          22.256        9.2314        .84907E-04   -1.4764    
   3  Prefactor     .10000E-03    10.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1998        4.7207        .91234E-03   -1.5350    
   5  Prefactor     26.828        29.281        .77342E-04   -1.4672    
   6  Prefactor     17.453        19.769        .95869E-04   -1.4872    
   7  Prefactor     50.603        46.193        .56367E-04   -1.4284    
   8  norm          .21604E-01    4.8535        .39854E-01   -1.5679    
   9  norm          4.2002        1.5724        .55327E-04   -1.5298    
  10  norm          1.2686        .76526        .47575E-04   -1.5483    
  11  norm          .10000E-03    .74097        .62736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.0750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     101.95        55.283        .39821E-04   -1.3685    
  15  norm          .10000E-03    25.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.188        .34746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     68.683        66.177        .48449E-04   -1.4049    
  18  Prefactor     .10000E-03    84.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.785        20.812        .80450E-04   -1.4712    
  20  norm          .10000E-03    .55252        .10744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7580        6.3522        .15809E-02   -1.5443    
  22  Normalizat    .55892        .25545        .35514E-03   -1.0976    
  23  Prefactor     1.1881        .18685        .20384E-03   -.86698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00826e-09
Minuit parameter uncertainties:
  1  8.53215e-06
  2  9.23195
  3  2.57723e-05
  4  4.72123
  5  29.2971
  6  19.7767
  7  46.2254
  8  0.646187
  9  1.57242
  10  0.765267
  11  1.94044e-06
  12  2.85005e-05
  13  7.30519e-06
  14  55.3105
  15  0.000217914
  16  0.000867195
  17  66.2483
  18  0.000518596
  19  20.8178
  20  4.34104e-06
  21  6.35459
  22  0.255986
  23  0.18695
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.269e+00  7.653e-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.188e+00  1.870e-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.589e-01  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.45
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 9.74e-08 +/- 5.87e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.46e-05

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) = 5665.00833347
delta logL = 1.07848403178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5665.00229503
delta logL = 1.08452247092

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3545       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5159       1.0000          .0000       5.0000    
     3 'Normalizat'    .45576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2438       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=   5665.002     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      194 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3533        10.965        .84601E-02    .51136E-03
   2  alpha         3.5162        3.1354        .45487        .84021E-05
   3  Normalizat    .45601        .98217E-01    .88263E-01    .40508E-04
   4  Prefactor     1.2437        .92385E-01    .33669E-01   -.33420E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.35333
  alpha      = 3.51621
  Normalizat = 0.456014
  Prefactor  = 1.24372
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.002     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3533        .75757        .37813E-04   -1.5475    
   2  alpha         3.5162        .77487        .19913E-02    .41860    
   3  Normalizat    .45601        .24064        .39102E-03   -1.1450    
   4  Prefactor     1.2437        .18957        .19975E-03   -.84996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00366e-14
Minuit parameter uncertainties:
  1  0.75757
  2  0.790557
  3  0.241194
  4  0.189677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516434': 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) = 5665.00229334
delta logL = 1.08452416572

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.353e+00  7.576e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.516e+00  7.906e-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.244e+00  1.897e-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.560e-01  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.01
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.52 +/- 0.79
Photon Flux (Free Index): 1.77e-07 +/- 8.96e-08
Energy Flux (Free Index): 2.94e-05 +/- 1.39e-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/516434/cmap_HighResolution_384480001_384739201_4FGL_J0948.9+0022_daily_bin560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.74e-08', energy_flux2='2.94e-05', photon_flux_error='5.87e-08', dlogl='1.08e+00', energy_flux='2.43e-05', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-09-01 02:58:11.197069', photon_index_error2='0.79', photon_index2='3.52', ts='4.45', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.56', time_epoch_completed='1630490291.2', return_code='0', job_id='516434', GAL2='1.24', EG2='0.46', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='8.96e-08', ts2='7.01', photon_index='2.45' WHERE bin_id='560' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:58:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 516434: <4FGL_J0948.9+0022_daily_bin560> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin560 147.244 0.3717 384480001 384739201 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 :                                   524.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             258.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            737 sec.

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

