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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin894
RA = 147.244, Dec = 0.3717
tmin = 471052801, tmax = 471312001
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='518190', job_status='RUN', time_executed='2021-09-01 02:54:30.100687', time_epoch_executed='1630490070.1' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518190/ft1_4FGL_J0948.9+0022_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518190/ft2_4FGL_J0948.9+0022_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518190/ft1_4FGL_J0948.9+0022_daily_bin894.fits outfile=/scratch/kocevski/518190/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin894.fits ra=147.244 dec=0.3717 rad=12.0 tmin=471052801.0 tmax=471312001.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.02
user 3.77
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518190/ft1_filtered_4FGL_J0948.9+0022_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/518190/ft2_4FGL_J0948.9+0022_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/518190/ltcube_471052801_471312001_4FGL_J0948.9+0022_daily_bin894.fits outfile=/scratch/kocevski/518190/expmap_471052801_471312001_4FGL_J0948.9+0022_daily_bin894.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/518190/ltcube_471052801_471312001_4FGL_J0948.9+0022_daily_bin894.fits
.....................!
real 193.72
user 188.85
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/518190/ft1_filtered_4FGL_J0948.9+0022_daily_bin894.fits scfile=/scratch/kocevski/518190/ft2_4FGL_J0948.9+0022_daily_bin894.fits outfile=/scratch/kocevski/518190/cmap_471052801_471312001_4FGL_J0948.9+0022_daily_bin894.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518190/ft1_filtered_4FGL_J0948.9+0022_daily_bin894.fits scfile=/scratch/kocevski/518190/ft2_4FGL_J0948.9+0022_daily_bin894.fits outfile=/scratch/kocevski/518190/cmap_HighResolution_471052801_471312001_4FGL_J0948.9+0022_daily_bin894.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/518190/ft1_filtered_4FGL_J0948.9+0022_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/518190/ft2_4FGL_J0948.9+0022_daily_bin894.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/518190/Model_4FGL_J0948.9+0022_daily_bin894.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/518190/ft1_filtered_4FGL_J0948.9+0022_daily_bin894.fits.....................!
real 57.96
user 56.47
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.5942       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4382       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9822       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7699       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19098       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0807       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5999       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5051       1.0000         .10000E-03   10000.    
    11 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.366       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.405       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.044       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4713       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0254       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93763       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5483.760     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     2181 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6872        .28866E-06** at limit **
   2  norm          7.5942        6.1324        .15990E-04    .12507E-02
   3  Prefactor     6.4326        13.218       -.19027E-04    .31228E-02
   4  Prefactor     2.9819        3.9632        .30078E-05    .61297E-04
   5  Prefactor     .10001E-03    115.52        .16889E-04** at limit **
   6  Prefactor     5.7691        1.3762        .15276E-05   -.15631E-03
   7  Prefactor     .10245E-03    1436.4       -.51985E-04** at limit **
   8  norm          1.0805        2.8845        .22074E-06   -.83777E-04
   9  norm          1.5998        1.3589        .72271E-06    .48157E-03
  10  norm          1.5050        .75116        .27672E-06    .54695E-03
  11  norm          .10000E-03    1.5675       -.37370E-07** at limit **
  12  Prefactor     17.372        8.2472        .51714E-05    .84332E-02
  13  Prefactor     .10000E-03    14.317       -.47747E-05** at limit **
  14  Prefactor     31.410        1.1187       -.39011E-06    .13221E-02
  15  norm          .10000E-03    5.5445       -.30558E-05** at limit **
  16  Prefactor     .10000E-03    7.3048        .10255E-06** at limit **
  17  Prefactor     32.033        1.6030        .19089E-06    .30881E-03
  18  Prefactor     .10000E-03    24.752        .94921E-06** at limit **
  19  Prefactor     .10000E-03    5.7845        .87134E-06** at limit **
  20  norm          3.4712        1.5149        .20784E-06   -.43413E-03
  21  Prefactor     .10000E-03    4.5530        .10179E-05** at limit **
  22  Normalizat    1.0253        .23322       -.11016E-05    .40308E-04
  23  Prefactor     .93778        .18494       -.72410E-05    .42930E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.59417
  Prefactor  = 6.43265
  Prefactor  = 2.98193
  Prefactor  = 0.000100012
  Prefactor  = 5.76912
  Prefactor  = 0.000102447
  norm       = 1.08052
  norm       = 1.59981
  norm       = 1.50496
  norm       = 0.0001
  Prefactor  = 17.3716
  Prefactor  = 0.0001
  Prefactor  = 31.4099
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.033
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.47124
  Prefactor  = 0.0001
  Normalizat = 1.02527
  Prefactor  = 0.937778
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.760     FROM HESSE     STATUS=OK           426 CALLS     2607 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.5942        6.1483        .36381E-02   -1.5157    
   3  Prefactor     6.4326        16.981        .39544E-02   -1.5201    
   4  Prefactor     2.9819        4.0137        .58773E-02   -1.5363    
   5  Prefactor     .10001E-03    114.92        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7691        13.362        .41802E-02   -1.5228    
   7  Prefactor     .10245E-03    24.223        .13647       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0805        2.9653        .11586E-01   -1.5500    
   9  norm          1.5998        1.3795        .83799E-02   -1.5455    
  10  norm          1.5050        .76563        .87216E-02   -1.5463    
  11  norm          .10000E-03    .92087        .39884E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.372        14.073        .24028E-02   -1.4874    
  13  Prefactor     .10000E-03    14.346        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.410        45.704        .17875E-02   -1.4586    
  15  norm          .10000E-03    5.5447        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2479        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.033        48.455        .17696E-02   -1.4575    
  18  Prefactor     .10000E-03    24.746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7844        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4712        1.5174        .54261E-02   -1.5335    
  21  Prefactor     .10000E-03    4.4974        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0253        .21760        .42654E-01   -.92188    
  23  Prefactor     .93778        .16115        .45483E-01   -.94833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51345e-07
Minuit parameter uncertainties:
  1  5.5024e-06
  2  6.1488
  3  16.9938
  4  4.01409
  5  0.00234836
  6  13.3688
  7  0.0154054
  8  2.96571
  9  1.37949
  10  0.765634
  11  8.36769e-06
  12  14.076
  13  5.1617e-06
  14  45.7549
  15  2.72035e-05
  16  4.66309e-05
  17  48.5149
  18  0.000266856
  19  2.11812e-05
  20  1.51746
  21  2.42984e-05
  22  0.217788
  23  0.161229
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.505e+00  7.656e-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.378e-01  1.612e-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.025e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.29
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 5.87e-08
Energy Flux (Fixed Index): 2.88e-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) = 5483.70930998
delta logL = 0.0508743647824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5483.70745985
delta logL = 0.0527244950326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4993       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6537       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94846       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=   5483.707     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      228 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4997        18.361        .87439E-02    .44011E-03
   2  alpha         2.6540        2.6060        .40356       -.80951E-05
   3  Normalizat    1.0096        .16743        .46284E-01    .11349E-04
   4  Prefactor     .94826        .26541        .45620E-01    .67405E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.49971
  alpha      = 2.65404
  Normalizat = 1.00959
  Prefactor  = 0.94826
 **********
 **   18 **HESSE 
 **********

 FCN=   5483.707     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4997        .74976        .42231E-04   -1.5463    
   2  alpha         2.6540        .63593        .16011E-01    .61655E-01
   3  Normalizat    1.0096        .23291        .26763E-03   -.92710    
   4  Prefactor     .94826        .18692        .22297E-03   -.94475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37739e-13
Minuit parameter uncertainties:
  1  0.749764
  2  0.643026
  3  0.233141
  4  0.187051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518190': 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) = 5483.70745852
delta logL = 0.0527258249531

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.500e+00  7.498e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.654e+00  6.430e-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:  9.483e-01  1.871e-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.010e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.36
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.65 +/- 0.64
Photon Flux (Free Index): 1.25e-07 +/- 6.52e-08
Energy Flux (Free Index): 2.78e-05 +/- 1.42e-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/518190/cmap_HighResolution_471052801_471312001_4FGL_J0948.9+0022_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='2.78e-05', photon_flux_error='5.87e-08', dlogl='5.27e-02', energy_flux='2.88e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-01 03:03:57.783084', photon_index_error2='0.64', photon_index2='2.65', ts='6.29', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='1.03', time_epoch_completed='1630490637.78', return_code='0', job_id='518190', GAL2='0.95', EG2='1.01', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='6.52e-08', ts2='6.36', photon_index='2.45' WHERE bin_id='894' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:03:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 518190: <4FGL_J0948.9+0022_daily_bin894> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin894 147.244 0.3717 471052801 471312001 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 :                                   509.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             222.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            783 sec.

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

