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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin867
RA = 147.244, Dec = 0.3717
tmin = 464054401, tmax = 464313601
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='518146', job_status='RUN', time_executed='2021-09-01 02:54:15.162179', time_epoch_executed='1630490055.16' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='867'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518146

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518146/ft1_4FGL_J0948.9+0022_daily_bin867.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518146/ft2_4FGL_J0948.9+0022_daily_bin867.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518146/ft1_4FGL_J0948.9+0022_daily_bin867.fits outfile=/scratch/kocevski/518146/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin867.fits ra=147.244 dec=0.3717 rad=12.0 tmin=464054401.0 tmax=464313601.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.54
user 3.15
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518146/ft1_filtered_4FGL_J0948.9+0022_daily_bin867.fits evtable="EVENTS" scfile=/scratch/kocevski/518146/ft2_4FGL_J0948.9+0022_daily_bin867.fits sctable="SC_DATA" expcube=/scratch/kocevski/518146/ltcube_464054401_464313601_4FGL_J0948.9+0022_daily_bin867.fits outfile=/scratch/kocevski/518146/expmap_464054401_464313601_4FGL_J0948.9+0022_daily_bin867.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/518146/ltcube_464054401_464313601_4FGL_J0948.9+0022_daily_bin867.fits
.....................!
real 191.27
user 186.04
sys 4.32

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/518146/ft1_filtered_4FGL_J0948.9+0022_daily_bin867.fits scfile=/scratch/kocevski/518146/ft2_4FGL_J0948.9+0022_daily_bin867.fits outfile=/scratch/kocevski/518146/cmap_464054401_464313601_4FGL_J0948.9+0022_daily_bin867.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.70
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9452       1.0000         .10000E-03   10000.    
     2 'norm      '    8.3273       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29667E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19849E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .47729       1.0000         .10000E-03   10000.    
    10 'norm      '    .66647       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.162       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11049E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2925       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56366E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10928E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.5939       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1838       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89296       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91871       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=   6281.745     FROM MIGRAD    STATUS=CONVERGED    959 CALLS     3040 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9465        3.4808        .15377E-03   -.13633E-03
   2  norm          8.3238        5.7636        .13892E-03   -.72914E-04
   3  Prefactor     .10084        15.889        .73681E-01   -.20610E-04
   4  Prefactor     .10000E-03    2.2928        .22905E-03** at limit **
   5  Prefactor     .10000E-03    31.158        .18142E-02** at limit **
   6  Prefactor     .10000E-03    10.046        .18142E-02** at limit **
   7  Prefactor     .10000E-03    9.8880        .18142E-02** at limit **
   8  norm          .10000E-03    1.4635        .92767E-03** at limit **
   9  norm          .47841        1.0343        .11431E-03   -.15982E-03
  10  norm          .66696        .52638        .49839E-03    .16602E-03
  11  norm          .10000E-03    1.1316        .12805E-02** at limit **
  12  Prefactor     .10000E-03    6.5612        .18142E-02** at limit **
  13  Prefactor     22.128        35.621        .85084E-04   -.12026E-04
  14  Prefactor     .10000E-03    19.380        .18142E-02** at limit **
  15  norm          2.2844        12.256        .27110E-03   -.23065E-04
  16  Prefactor     .10000E-03    3.2863        .14014E-02** at limit **
  17  Prefactor     .10019E-03    57.770        .15464    ** at limit **
  18  Prefactor     .10000E-03    16.438        .18142E-02** at limit **
  19  Prefactor     .10000E-03    4.6585        .16701E-02** at limit **
  20  norm          2.5950        1.4867        .69488E-04   -.76895E-04
  21  Prefactor     3.1897        5.6123        .22711E-03   -.63175E-04
  22  Normalizat    .89224        .20732        .25138E-03   -.24779E-03
  23  Prefactor     .91899        .16166        .20283E-03   -.21469E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.94649
  norm       = 8.32385
  Prefactor  = 0.100842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.478413
  norm       = 0.666957
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1277
  Prefactor  = 0.0001
  norm       = 2.28436
  Prefactor  = 0.0001
  Prefactor  = 0.000100186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.595
  Prefactor  = 3.18969
  Normalizat = 0.892241
  Prefactor  = 0.918995
 **********
 **   18 **HESSE 
 **********

 FCN=   6281.745     FROM HESSE     STATUS=OK           368 CALLS     3408 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9465        3.4806        .61509E-05   -1.5365    
   2  norm          8.3238        5.7626        .55570E-05   -1.5131    
   3  Prefactor     .10084        14.151        .79294E-01   -1.5644    
   4  Prefactor     .10000E-03    2.2929        .45810E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.163        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.050        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.8885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4638        .18553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .47841        1.0342        .45724E-05   -1.5570    
  10  norm          .66696        .52609        .19935E-04   -1.5545    
  11  norm          .10000E-03    1.1329        .25610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5615        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.128        35.628        .34034E-05   -1.4767    
  14  Prefactor     .10000E-03    19.383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2844        12.254        .10844E-04   -1.5406    
  16  Prefactor     .10000E-03    3.2864        .28027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10019E-03    60.995        .14939       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6586        .33402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.5950        1.4866        .27795E-05   -1.5386    
  21  Prefactor     3.1897        5.6115        .90842E-05   -1.5351    
  22  Normalizat    .89224        .20748        .10055E-04   -.96733    
  23  Prefactor     .91899        .16185        .40567E-04   -.95480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79319e-10
Minuit parameter uncertainties:
  1  3.48085
  2  5.76301
  3  2.38853
  4  7.48782e-06
  5  6.41846e-06
  6  1.06327e-05
  7  4.29865e-06
  8  1.62032e-06
  9  1.03419
  10  0.526093
  11  1.44894e-05
  12  1.98184e-06
  13  35.6624
  14  2.62737e-05
  15  10.5848
  16  1.96469e-06
  17  0.00674666
  18  4.99448e-06
  19  1.81495e-06
  20  1.48659
  21  5.61238
  22  0.207667
  23  0.161931
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  6.670e-01  5.261e-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.190e-01  1.619e-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.922e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.12e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.01e-05

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

Saving results to:
/scratch/kocevski/518146/likelihoodResults_464054401_464313601_4FGL_J0948.9+0022_daily_bin867.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) = 6281.74502139
delta logL = 5.42182442587e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6281.74502073
delta logL = 6.08110531175e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66693       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4508       1.0000          .0000       5.0000    
     3 'Normalizat'    .89233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91893       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=   6281.745     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66679        .99698        .10899E-01    .11035E-02
   2  alpha         2.4505        1.0881        .41162       -.20658E-04
   3  Normalizat    .89233        .16531        .44803E-01    .16132E-03
   4  Prefactor     .91894        .13687        .45246E-01    .19741E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.666787
  alpha      = 2.45055
  Normalizat = 0.892327
  Prefactor  = 0.918943
 **********
 **   18 **HESSE 
 **********

 FCN=   6281.745     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66679        .52478        .49841E-03   -1.5545    
   2  alpha         2.4505        .67737        .19015E-01   -.19783E-01
   3  Normalizat    .89233        .19660        .25137E-03   -.96730    
   4  Prefactor     .91894        .16060        .20284E-03   -.95482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76157e-11
Minuit parameter uncertainties:
  1  0.524785
  2  0.685949
  3  0.196756
  4  0.160679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518146': 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) = 6281.74502061
delta logL = 6.20627361059e-06

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  6.668e-01  5.248e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.451e+00  6.859e-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.189e-01  1.607e-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.923e-01  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.45 +/- 0.69
Photon Flux (Free Index): 5.11e-08 +/- 4.28e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.02e-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/518146/cmap_HighResolution_464054401_464313601_4FGL_J0948.9+0022_daily_bin867.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-05', comment='SUCCESS', photon_flux='5.12e-08', energy_flux2='1.28e-05', photon_flux_error='4.04e-08', dlogl='6.21e-06', energy_flux='1.28e-05', photon_flux2='5.11e-08', job_status='DONE', time_completed='2021-09-01 03:05:43.650278', photon_index_error2='0.69', photon_index2='2.45', ts='2.38', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.02e-05', EG='0.89', time_epoch_completed='1630490743.65', return_code='0', job_id='518146', GAL2='0.92', EG2='0.89', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.28e-08', ts2='2.37', photon_index='2.45' WHERE bin_id='867' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:05:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 518146: <4FGL_J0948.9+0022_daily_bin867> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin867 147.244 0.3717 464054401 464313601 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 :                                   628.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             273.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

