/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 115 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7466
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin664
RA = 147.244, Dec = 0.3717
tmin = 411436801, tmax = 411696001
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='516602', job_status='RUN', time_executed='2021-09-01 02:48:19.819230', time_epoch_executed='1630489699.82' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516602

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516602/ft1_4FGL_J0948.9+0022_daily_bin664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516602/ft2_4FGL_J0948.9+0022_daily_bin664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516602/ft1_4FGL_J0948.9+0022_daily_bin664.fits outfile=/scratch/kocevski/516602/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin664.fits ra=147.244 dec=0.3717 rad=12.0 tmin=411436801.0 tmax=411696001.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 7.04
user 6.53
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516602/ft2_4FGL_J0948.9+0022_daily_bin664.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/516602/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin664.fits evtable="EVENTS" outfile="/scratch/kocevski/516602/ft1_filtered_4FGL_J0948.9+0022_daily_bin664.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/516602/ft1_filtered_4FGL_J0948.9+0022_daily_bin664.fits" evtable="EVENTS" scfile=/scratch/kocevski/516602/ft2_4FGL_J0948.9+0022_daily_bin664.fits sctable="SC_DATA" outfile=/scratch/kocevski/516602/ltcube_411436801_411696001_4FGL_J0948.9+0022_daily_bin664.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/516602/ft2_4FGL_J0948.9+0022_daily_bin664.fits
.....................!
real 12.08
user 11.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516602/ft1_filtered_4FGL_J0948.9+0022_daily_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/516602/ft2_4FGL_J0948.9+0022_daily_bin664.fits sctable="SC_DATA" expcube=/scratch/kocevski/516602/ltcube_411436801_411696001_4FGL_J0948.9+0022_daily_bin664.fits outfile=/scratch/kocevski/516602/expmap_411436801_411696001_4FGL_J0948.9+0022_daily_bin664.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/516602/ltcube_411436801_411696001_4FGL_J0948.9+0022_daily_bin664.fits
.....................!
real 190.84
user 185.96
sys 4.25

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/516602/ft1_filtered_4FGL_J0948.9+0022_daily_bin664.fits scfile=/scratch/kocevski/516602/ft2_4FGL_J0948.9+0022_daily_bin664.fits outfile=/scratch/kocevski/516602/cmap_411436801_411696001_4FGL_J0948.9+0022_daily_bin664.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.62
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10299E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.1520       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    66.498       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.293       1.0000         .10000E-03   10000.    
     9 'norm      '    .10806E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2482       1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9573       1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.911       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0883       1.0000         .10000E-03   10000.    
    15 'norm      '    9.6625       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.6726       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96186       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99460       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=   3347.649     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2956 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9911       -.59199E-07** at limit **
   2  norm          6.1508        8.4363        .30586E-05   -.47598E-04
   3  Prefactor     .10000E-03    48.544       -.36187E-05** at limit **
   4  Prefactor     .10000E-03    3.1162        .56695E-08** at limit **
   5  Prefactor     66.448        60.122       -.47912E-05   -.89665E-04
   6  Prefactor     .10000E-03    14.355       -.26502E-06** at limit **
   7  Prefactor     .10000E-03    137.13        .70339E-06** at limit **
   8  norm          10.291        6.6891        .10891E-06    .74316E-05
   9  norm          .10000E-03    .75158        .31971E-07** at limit **
  10  norm          2.2483        1.0954        .14359E-07    .36378E-05
  11  norm          .10000E-03    1.6622        .13381E-06** at limit **
  12  Prefactor     5.9561        13.142        .32855E-05   -.28433E-04
  13  Prefactor     53.844        84.876       -.49576E-07   -.56759E-04
  14  Prefactor     3.1538        485.45       -.46663E-06    .16407E-04
  15  norm          9.6724        13.880       -.52992E-06    .41655E-05
  16  Prefactor     .10000E-03    5.7787       -.54772E-07** at limit **
  17  Prefactor     .10000E-03    25.343        .61878E-06** at limit **
  18  Prefactor     .10000E-03    25.943       -.67838E-06** at limit **
  19  Prefactor     .10000E-03    9.0858       -.30095E-07** at limit **
  20  norm          1.6728        1.5219       -.10488E-07   -.12970E-04
  21  Prefactor     .10000E-03    6.2619        .20780E-06** at limit **
  22  Normalizat    .96181        .27062        .48770E-06    .13971E-05
  23  Prefactor     .99479        .20822       -.77546E-08    .16485E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.1508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2914
  norm       = 0.0001
  norm       = 2.24834
  norm       = 0.0001
  Prefactor  = 5.95614
  Prefactor  = 53.8439
  Prefactor  = 3.1538
  norm       = 9.67241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.67283
  Prefactor  = 0.0001
  Normalizat = 0.961806
  Prefactor  = 0.99479
 **********
 **   18 **HESSE 
 **********

 FCN=   3347.649     FROM HESSE     STATUS=OK           368 CALLS     3324 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0564        .97702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.1508        8.4761        .80929E-03   -1.5212    
   3  Prefactor     .10000E-03    48.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.384        .19507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     66.448        60.661        .49217E-04   -1.4076    
   6  Prefactor     .10000E-03    14.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    138.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.291        6.6859        .11608E-03   -1.5066    
   9  norm          .10000E-03    1.3467        .97054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2483        1.0979        .27406E-04   -1.5408    
  11  norm          .10000E-03    1.6897        .72794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9561        13.157        .82259E-03   -1.5220    
  13  Prefactor     53.844        84.518        .54628E-04   -1.4239    
  14  Prefactor     3.1538        466.39        .23078E-03   -1.5353    
  15  norm          9.6724        13.877        .12892E-03   -1.5086    
  16  Prefactor     .10000E-03    5.7970        .13584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.0998        .17035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.6728        1.5177        .65902E-04   -1.5449    
  21  Prefactor     .10000E-03    6.3092        .14135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96181        .31244        .27606E-03   -.94321    
  23  Prefactor     .99479        .24273        .22109E-03   -.92903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46634e-10
Minuit parameter uncertainties:
  1  6.93752e-06
  2  8.47779
  3  0.000223407
  4  0.000130057
  5  60.718
  6  6.07806e-07
  7  0.000204743
  8  6.68635
  9  1.01109e-05
  10  1.09791
  11  1.0505e-06
  12  13.1637
  13  84.707
  14  77.3248
  15  13.8817
  16  7.11372e-06
  17  2.875e-05
  18  5.28011e-05
  19  4.46684e-06
  20  1.51769
  21  3.1382e-06
  22  0.313037
  23  0.242998
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.248e+00  1.098e+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

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  9.948e-01  2.430e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  9.618e-01  3.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.06
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 8.42e-08
Energy Flux (Fixed Index): 4.30e-05 +/- 2.10e-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) = 3346.3658831
delta logL = 1.28344515857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3346.35384058
delta logL = 1.29548768461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9710       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5250       1.0000          .0000       5.0000    
     3 'Normalizat'    .84344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0666       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3346.354     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      259 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9710        1.0621        .31274E-04   -.14543E-02
   2  alpha         3.5249        .72479        .13571E-02   -.36269E-04
   3  Normalizat    .84337        .30875        .29210E-03    .12416E-04
   4  Prefactor     1.0667        .24707        .21422E-03    .31046E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97101
  alpha      = 3.52487
  Normalizat = 0.843375
  Prefactor  = 1.06666
 **********
 **   18 **HESSE 
 **********

 FCN=   3346.354     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9710        1.0587        .12509E-05   -1.5427    
   2  alpha         3.5249        .72260        .54284E-04    .42240    
   3  Normalizat    .84337        .30906        .11684E-04   -.98479    
   4  Prefactor     1.0667        .24731        .85687E-05   -.90539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60723e-11
Minuit parameter uncertainties:
  1  1.05873
  2  0.735278
  3  0.309713
  4  0.247576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516602': 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) = 3346.35384043
delta logL = 1.29548782592

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.971e+00  1.059e+00  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.525e+00  7.353e-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.067e+00  2.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  8.434e-01  3.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.97
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.52 +/- 0.74
Photon Flux (Free Index): 2.59e-07 +/- 1.11e-07
Energy Flux (Free Index): 4.30e-05 +/- 1.80e-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/516602/cmap_HighResolution_411436801_411696001_4FGL_J0948.9+0022_daily_bin664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='4.30e-05', photon_flux_error='8.42e-08', dlogl='1.30e+00', energy_flux='4.30e-05', photon_flux2='2.59e-07', job_status='DONE', time_completed='2021-09-01 02:56:11.750595', photon_index_error2='0.74', photon_index2='3.52', ts='8.06', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='0.96', time_epoch_completed='1630490171.75', return_code='0', job_id='516602', GAL2='1.07', EG2='0.84', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='1.11e-07', ts2='10.97', photon_index='2.45' WHERE bin_id='664' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:56:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 516602: <4FGL_J0948.9+0022_daily_bin664> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin664 147.244 0.3717 411436801 411696001 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 :                                   465.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            598 sec.

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

