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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin715
RA = 147.244, Dec = 0.3717
tmin = 424656001, tmax = 424915201
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='516679', job_status='RUN', time_executed='2021-09-01 02:50:16.351022', time_epoch_executed='1630489816.35' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516679/ft1_4FGL_J0948.9+0022_daily_bin715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516679/ft2_4FGL_J0948.9+0022_daily_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516679/ft1_4FGL_J0948.9+0022_daily_bin715.fits outfile=/scratch/kocevski/516679/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin715.fits ra=147.244 dec=0.3717 rad=12.0 tmin=424656001.0 tmax=424915201.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.55
user 4.32
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516679/ft1_filtered_4FGL_J0948.9+0022_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/516679/ft2_4FGL_J0948.9+0022_daily_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/516679/ltcube_424656001_424915201_4FGL_J0948.9+0022_daily_bin715.fits outfile=/scratch/kocevski/516679/expmap_424656001_424915201_4FGL_J0948.9+0022_daily_bin715.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/516679/ltcube_424656001_424915201_4FGL_J0948.9+0022_daily_bin715.fits
.....................!
real 191.34
user 186.07
sys 4.57

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/516679/ft1_filtered_4FGL_J0948.9+0022_daily_bin715.fits scfile=/scratch/kocevski/516679/ft2_4FGL_J0948.9+0022_daily_bin715.fits outfile=/scratch/kocevski/516679/cmap_424656001_424915201_4FGL_J0948.9+0022_daily_bin715.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516679/ft1_filtered_4FGL_J0948.9+0022_daily_bin715.fits scfile=/scratch/kocevski/516679/ft2_4FGL_J0948.9+0022_daily_bin715.fits outfile=/scratch/kocevski/516679/cmap_HighResolution_424656001_424915201_4FGL_J0948.9+0022_daily_bin715.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.60
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0825       1.0000         .10000E-03   10000.    
     2 'norm      '    8.6945       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.551       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.080       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8600       1.0000         .10000E-03   10000.    
     8 'norm      '    .18671E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.7897       1.0000         .10000E-03   10000.    
    10 'norm      '    .89408       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3648       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.220       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11313E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23181E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6887       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6648       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3437       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87224       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=   5094.443     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2556 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0827        4.8070        .71536E-02    .57260E-03
   2  norm          8.6948        6.2876        .33985E-02    .27592E-02
   3  Prefactor     32.552        22.789        .17558E-02    .32993E-03
   4  Prefactor     .10000E-03    1.7323        .90712E-02** at limit **
   5  Prefactor     31.083        47.543        .17968E-02   -.42292E-03
   6  Prefactor     .10000E-03    20.296        .90712E-02** at limit **
   7  Prefactor     7.8703        36.028        .35756E-02   -.17280E-03
   8  norm          .10000E-03    2.5815        .42185E-01** at limit **
   9  norm          5.7894        2.3487        .41729E-02    .86930E-04
  10  norm          .89418        .91641        .12786E-01    .85487E-03
  11  norm          1.3655        1.8285        .93392E-02    .42196E-03
  12  Prefactor     .10000E-03    6.9038        .90712E-02** at limit **
  13  Prefactor     10.215        50.185        .31334E-02    .37481E-03
  14  Prefactor     .10000E-03    68.406        .90712E-02** at limit **
  15  norm          .10000E-03    7.3747        .90712E-02** at limit **
  16  Prefactor     .10000E-03    13.795        .90712E-02** at limit **
  17  Prefactor     .10000E-03    33.104        .90712E-02** at limit **
  18  Prefactor     .10000E-03    185.04        .90712E-02** at limit **
  19  Prefactor     .10000E-03    14.510        .90712E-02** at limit **
  20  norm          1.6881        1.5357        .80995E-02    .41062E-03
  21  Prefactor     8.6641        8.2354        .34044E-02    .27242E-02
  22  Normalizat    1.3438        .24341        .60271E-01    .10186E-04
  23  Prefactor     .87222        .18064        .44650E-01    .17064E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.08265
  norm       = 8.69476
  Prefactor  = 32.5522
  Prefactor  = 0.0001
  Prefactor  = 31.0832
  Prefactor  = 0.0001
  Prefactor  = 7.87027
  norm       = 0.0001
  norm       = 5.78944
  norm       = 0.89418
  norm       = 1.36551
  Prefactor  = 0.0001
  Prefactor  = 10.215
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.68811
  Prefactor  = 8.66408
  Normalizat = 1.3438
  Prefactor  = 0.872218
 **********
 **   18 **HESSE 
 **********

 FCN=   5094.443     FROM HESSE     STATUS=OK           366 CALLS     2922 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0827        4.7991        .22741E-03   -1.5419    
   2  norm          8.6948        6.2867        .13594E-03   -1.5118    
   3  Prefactor     32.552        22.791        .70233E-04   -1.4566    
   4  Prefactor     .10000E-03    1.7440        .91722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.083        47.594        .71871E-04   -1.4592    
   6  Prefactor     .10000E-03    20.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8703        35.945        .14302E-03   -1.5147    
   8  norm          .10000E-03    4.7678        .22166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.7894        2.3540        .66666E-04   -1.5227    
  10  norm          .89418        .88779        .63167E-04   -1.5519    
  11  norm          1.3655        1.7971        .10721E-03   -1.5474    
  12  Prefactor     .10000E-03    6.9140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.215        50.133        .12534E-03   -1.5069    
  14  Prefactor     .10000E-03    68.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.3796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    188.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6881        1.5168        .79855E-04   -1.5448    
  21  Prefactor     8.6641        8.2342        .68088E-03   -1.5119    
  22  Normalizat    1.3438        .29092        .26656E-03   -.82268    
  23  Prefactor     .87222        .21510        .24883E-03   -.97119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39884e-09
Minuit parameter uncertainties:
  1  4.79995
  2  6.28717
  3  22.7967
  4  6.95456e-08
  5  47.6524
  6  5.75204e-05
  7  33.6723
  8  3.59282e-07
  9  2.354
  10  0.887806
  11  1.79722
  12  2.0253e-06
  13  45.3207
  14  0.000171119
  15  1.31654e-06
  16  0.000139551
  17  5.87492e-05
  18  0.000552006
  19  0.00016671
  20  1.5168
  21  8.23523
  22  0.291279
  23  0.215311
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.942e-01  8.878e-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:  8.722e-01  2.153e-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.344e+00  2.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.86e-08 +/- 6.81e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.70e-05

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

Saving results to:
/scratch/kocevski/516679/likelihoodResults_424656001_424915201_4FGL_J0948.9+0022_daily_bin715.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) = 5094.14077462
delta logL = 0.302464501613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5094.13702199
delta logL = 0.306217125671

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80416       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5068       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91397       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=   5094.137     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80412        15.800        .11001E-01    .82920E-03
   2  alpha         3.5072        3.2392        .46456        .14814E-04
   3  Normalizat    1.2798        .86295E-01    .61508E-01    .57285E-05
   4  Prefactor     .91398        .75328E-01    .45183E-01    .89318E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.804122
  alpha      = 3.50722
  Normalizat = 1.27984
  Prefactor  = 0.913979
 **********
 **   18 **HESSE 
 **********

 FCN=   5094.137     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80412        1.1297        .49733E-04   -1.5529    
   2  alpha         3.5072        1.7472        .32893E-01    .41467    
   3  Normalizat    1.2798        .28994        .27205E-03   -.84170    
   4  Prefactor     .91398        .22116        .24372E-03   -.95654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64919e-09
Minuit parameter uncertainties:
  1  1.12972
  2  1.98803
  3  0.290308
  4  0.221374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516679': 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) = 5094.13702194
delta logL = 0.306217181973

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.041e-01  1.130e+00  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.507e+00  1.988e+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:  9.140e-01  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.280e+00  2.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.96
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.51 +/- 1.99
Photon Flux (Free Index): 1.05e-07 +/- 8.70e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.59e-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/516679/cmap_HighResolution_424656001_424915201_4FGL_J0948.9+0022_daily_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-05', comment='SUCCESS', photon_flux='6.86e-08', energy_flux2='1.74e-05', photon_flux_error='6.81e-08', dlogl='3.06e-01', energy_flux='1.71e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-01 02:59:36.379615', photon_index_error2='1.99', photon_index2='3.51', ts='1.28', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='2.03e-07', energy_flux_error2='1.59e-05', EG='1.34', time_epoch_completed='1630490376.38', return_code='0', job_id='516679', GAL2='0.91', EG2='1.28', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='8.70e-08', ts2='1.96', photon_index='2.45' WHERE bin_id='715' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:59:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 516679: <4FGL_J0948.9+0022_daily_bin715> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:20 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:46:22 2021
Terminated at Wed Sep  1 02:59:37 2021
Results reported at Wed Sep  1 02:59:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin715 147.244 0.3717 424656001 424915201 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 :                                   552.00 sec.
    Max Memory :                                 1076 MB
    Average Memory :                             216.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            797 sec.

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

