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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin201
RA = 147.244, Dec = 0.3717
tmin = 291427201, tmax = 291686401
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='513288', job_status='RUN', time_executed='2021-09-01 02:36:34.928905', time_epoch_executed='1630488994.93' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513288/ft1_4FGL_J0948.9+0022_daily_bin201.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513288/ft2_4FGL_J0948.9+0022_daily_bin201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513288/ft1_4FGL_J0948.9+0022_daily_bin201.fits outfile=/scratch/kocevski/513288/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin201.fits ra=147.244 dec=0.3717 rad=12.0 tmin=291427201.0 tmax=291686401.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.57
user 3.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513288/ft2_4FGL_J0948.9+0022_daily_bin201.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/513288/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin201.fits evtable="EVENTS" outfile="/scratch/kocevski/513288/ft1_filtered_4FGL_J0948.9+0022_daily_bin201.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.53
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513288/ft1_filtered_4FGL_J0948.9+0022_daily_bin201.fits" evtable="EVENTS" scfile=/scratch/kocevski/513288/ft2_4FGL_J0948.9+0022_daily_bin201.fits sctable="SC_DATA" outfile=/scratch/kocevski/513288/ltcube_291427201_291686401_4FGL_J0948.9+0022_daily_bin201.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/513288/ft2_4FGL_J0948.9+0022_daily_bin201.fits
.....................!
real 11.76
user 11.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513288/ft1_filtered_4FGL_J0948.9+0022_daily_bin201.fits evtable="EVENTS" scfile=/scratch/kocevski/513288/ft2_4FGL_J0948.9+0022_daily_bin201.fits sctable="SC_DATA" expcube=/scratch/kocevski/513288/ltcube_291427201_291686401_4FGL_J0948.9+0022_daily_bin201.fits outfile=/scratch/kocevski/513288/expmap_291427201_291686401_4FGL_J0948.9+0022_daily_bin201.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/513288/ltcube_291427201_291686401_4FGL_J0948.9+0022_daily_bin201.fits
.....................!
real 191.44
user 186.03
sys 4.52

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/513288/ft1_filtered_4FGL_J0948.9+0022_daily_bin201.fits scfile=/scratch/kocevski/513288/ft2_4FGL_J0948.9+0022_daily_bin201.fits outfile=/scratch/kocevski/513288/cmap_291427201_291686401_4FGL_J0948.9+0022_daily_bin201.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513288/ft1_filtered_4FGL_J0948.9+0022_daily_bin201.fits scfile=/scratch/kocevski/513288/ft2_4FGL_J0948.9+0022_daily_bin201.fits outfile=/scratch/kocevski/513288/cmap_HighResolution_291427201_291686401_4FGL_J0948.9+0022_daily_bin201.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.68
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2389       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.559       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.530       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3364       1.0000         .10000E-03   10000.    
     8 'norm      '    5.4144       1.0000         .10000E-03   10000.    
     9 'norm      '    .92853       1.0000         .10000E-03   10000.    
    10 'norm      '    .79896       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7909       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.035       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.783       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4118       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22579E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.348       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9427       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .65745       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1779       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=   4920.741     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2516 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2394        4.3556       -.59663E-06   -.58043E-03
   2  norm          .10000E-03    7.2711       -.11537E-07** at limit **
   3  Prefactor     .10000E-03    19.937       -.73720E-07** at limit **
   4  Prefactor     .10000E-03    1.3009        .89311E-07** at limit **
   5  Prefactor     45.555        39.380       -.40707E-05    .12826E-05
   6  Prefactor     37.529        18.540       -.42551E-08    .49928E-05
   7  Prefactor     6.3374        49.591        .18963E-05   -.10184E-04
   8  norm          5.4145        3.9411        .86244E-08    .49945E-04
   9  norm          .92847        1.0550       -.17200E-06   -.70912E-03
  10  norm          .79927        .67168       -.20126E-07   -.59295E-03
  11  norm          .10000E-03    .79122        .71692E-07** at limit **
  12  Prefactor     7.7919        8.6002        .40773E-07   -.31516E-04
  13  Prefactor     23.030        32.857       -.67639E-05   -.34511E-05
  14  Prefactor     12.786        27.544        .30255E-05   -.37152E-05
  15  norm          .10000E-03    5.2204       -.12560E-07** at limit **
  16  Prefactor     6.4114        6.8577       -.12245E-06    .20089E-04
  17  Prefactor     .10000E-03    13.565       -.14369E-06** at limit **
  18  Prefactor     .10000E-03    61.233       -.10919E-05** at limit **
  19  Prefactor     10.338        14.638        .34846E-05   -.62014E-05
  20  norm          .10000E-03    .35185        .43680E-07** at limit **
  21  Prefactor     6.9436        7.9285       -.26329E-06   -.15415E-03
  22  Normalizat    .65728        .21474        .10057E-05   -.15844E-04
  23  Prefactor     1.1780        .17080        .23132E-06    .22276E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.23935
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.5549
  Prefactor  = 37.529
  Prefactor  = 6.33736
  norm       = 5.41454
  norm       = 0.928471
  norm       = 0.799274
  norm       = 0.0001
  Prefactor  = 7.79188
  Prefactor  = 23.0296
  Prefactor  = 12.7857
  norm       = 0.0001
  Prefactor  = 6.41144
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.3376
  norm       = 0.0001
  Prefactor  = 6.9436
  Normalizat = 0.65728
  Prefactor  = 1.17804
 **********
 **   18 **HESSE 
 **********

 FCN=   4920.741     FROM HESSE     STATUS=OK           378 CALLS     2894 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2394        4.4305        .19741E-03   -1.5409    
   2  norm          .10000E-03    7.4226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.3146        .78103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.555        39.282        .59401E-04   -1.4357    
   6  Prefactor     37.529        18.532        .65423E-04   -1.4482    
   7  Prefactor     6.3374        49.361        .15946E-03   -1.5204    
   8  norm          5.4145        3.9405        .11495E-03   -1.5243    
   9  norm          .92847        1.0169        .73719E-03   -1.5515    
  10  norm          .79927        .64845        .49260E-03   -1.5529    
  11  norm          .10000E-03    .79611        .60913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7919        8.5965        .14366E-03   -1.5150    
  13  Prefactor     23.030        32.649        .83458E-04   -1.4748    
  14  Prefactor     12.786        27.454        .11203E-03   -1.4993    
  15  norm          .10000E-03    5.2227        .15651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4114        6.8558        .15851E-03   -1.5201    
  17  Prefactor     .10000E-03    13.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    61.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.338        14.500        .12456E-03   -1.5065    
  20  norm          .10000E-03    .35350        .40613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.9436        7.9402        .15226E-03   -1.5181    
  22  Normalizat    .65728        .24235        .31051E-03   -1.0560    
  23  Prefactor     1.1780        .19504        .19919E-03   -.87010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3449e-10
Minuit parameter uncertainties:
  1  4.43111
  2  7.06051e-06
  3  4.9027e-05
  4  8.76215e-07
  5  39.3044
  6  18.5346
  7  35.4135
  8  3.94073
  9  1.01693
  10  0.648457
  11  7.99884e-07
  12  8.5979
  13  32.6746
  14  27.4809
  15  5.4395e-06
  16  6.85661
  17  9.77783e-06
  18  0.000700846
  19  14.5052
  20  1.17594e-07
  21  7.94137
  22  0.242746
  23  0.19516
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  7.993e-01  6.485e-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.178e+00  1.952e-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:  6.573e-01  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.19
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.14e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.24e-05

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

Saving results to:
/scratch/kocevski/513288/likelihoodResults_291427201_291686401_4FGL_J0948.9+0022_daily_bin201.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) = 4920.60598449
delta logL = 0.135063987956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4920.60391917
delta logL = 0.13712931179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85232       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9452       1.0000          .0000       5.0000    
     3 'Normalizat'    .63019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1932       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=   4920.604     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85225        20.028        .10166E-01    .69902E-03
   2  alpha         2.9457        3.4677        .42008       -.46762E-05
   3  Normalizat    .63018        .10951        .71516E-01    .23945E-04
   4  Prefactor     1.1932        .11822        .34794E-01   -.49130E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.85225
  alpha      = 2.94569
  Normalizat = 0.63018
  Prefactor  = 1.19321
 **********
 **   18 **HESSE 
 **********

 FCN=   4920.604     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85225        .65356        .46008E-04   -1.5523    
   2  alpha         2.9457        .98026        .23805E-01    .17924    
   3  Normalizat    .63018        .23874        .31655E-03   -1.0672    
   4  Prefactor     1.1932        .19731        .19808E-03   -.86541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80968e-13
Minuit parameter uncertainties:
  1  0.653567
  2  1.00825
  3  0.239136
  4  0.197435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513288': 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) = 4920.60391906
delta logL = 0.137129425241

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.522e-01  6.536e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.946e+00  1.008e+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.193e+00  1.974e-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:  6.302e-01  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.95 +/- 1.01
Photon Flux (Free Index): 8.11e-08 +/- 6.49e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.19e-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/513288/cmap_HighResolution_291427201_291686401_4FGL_J0948.9+0022_daily_bin201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-05', comment='SUCCESS', photon_flux='6.14e-08', energy_flux2='1.59e-05', photon_flux_error='4.98e-08', dlogl='1.37e-01', energy_flux='1.53e-05', photon_flux2='8.11e-08', job_status='DONE', time_completed='2021-09-01 02:45:41.664842', photon_index_error2='1.01', photon_index2='2.95', ts='2.19', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.19e-05', EG='0.66', time_epoch_completed='1630489541.66', return_code='0', job_id='513288', GAL2='1.19', EG2='0.63', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='6.49e-08', ts2='2.50', photon_index='2.45' WHERE bin_id='201' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:45:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 513288: <4FGL_J0948.9+0022_daily_bin201> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin201> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 02:36:16 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:36:19 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:36:19 2021
Terminated at Wed Sep  1 02:45:43 2021
Results reported at Wed Sep  1 02:45:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin201 147.244 0.3717 291427201 291686401 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 :                                   532.01 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             382.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   562 sec.
    Turnaround time :                            567 sec.

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

