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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin419
RA = 147.244, Dec = 0.3717
tmin = 347932801, tmax = 348192001
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='514847', job_status='RUN', time_executed='2021-09-01 02:41:28.030956', time_epoch_executed='1630489288.03' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514847

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514847/ft1_4FGL_J0948.9+0022_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514847/ft2_4FGL_J0948.9+0022_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514847/ft1_4FGL_J0948.9+0022_daily_bin419.fits outfile=/scratch/kocevski/514847/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin419.fits ra=147.244 dec=0.3717 rad=12.0 tmin=347932801.0 tmax=348192001.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.38
user 3.20
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514847/ft1_filtered_4FGL_J0948.9+0022_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/514847/ft2_4FGL_J0948.9+0022_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/514847/ltcube_347932801_348192001_4FGL_J0948.9+0022_daily_bin419.fits outfile=/scratch/kocevski/514847/expmap_347932801_348192001_4FGL_J0948.9+0022_daily_bin419.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/514847/ltcube_347932801_348192001_4FGL_J0948.9+0022_daily_bin419.fits
.....................!
real 189.71
user 184.67
sys 4.72

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/514847/ft1_filtered_4FGL_J0948.9+0022_daily_bin419.fits scfile=/scratch/kocevski/514847/ft2_4FGL_J0948.9+0022_daily_bin419.fits outfile=/scratch/kocevski/514847/cmap_347932801_348192001_4FGL_J0948.9+0022_daily_bin419.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514847/ft1_filtered_4FGL_J0948.9+0022_daily_bin419.fits scfile=/scratch/kocevski/514847/ft2_4FGL_J0948.9+0022_daily_bin419.fits outfile=/scratch/kocevski/514847/cmap_HighResolution_347932801_348192001_4FGL_J0948.9+0022_daily_bin419.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.52
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0982       1.0000         .10000E-03   10000.    
     2 'norm      '    .71887       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.164       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.1734       1.0000         .10000E-03   10000.    
    10 'norm      '    .95682       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    54.668       1.0000         .10000E-03   10000.    
    15 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.763       1.0000         .10000E-03   10000.    
    17 'Prefactor '    92.137       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11097E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5167       1.0000         .10000E-03   10000.    
    20 'norm      '    .27703E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3794       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94155       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=   7159.112     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2642 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0984        4.6793       -.26840E-06   -.56849E-07
   2  norm          .72002        .42376        .19705E-07   -.22739E-03
   3  Prefactor     23.163        17.061        .43898E-06    .34724E-05
   4  Prefactor     .10000E-03    1.7584       -.32442E-08** at limit **
   5  Prefactor     .10000E-03    22.862        .60325E-07** at limit **
   6  Prefactor     .10000E-03    3.8156        .19775E-07** at limit **
   7  Prefactor     .10000E-03    34.017       -.17366E-06** at limit **
   8  norm          .10000E-03    1.7693       -.81529E-08** at limit **
   9  norm          3.1736        1.7847        .22397E-07    .53159E-04
  10  norm          .95682        .77808       -.17318E-07    .31445E-04
  11  norm          .10000E-03    .68951        .40225E-08** at limit **
  12  Prefactor     17.542        20.921       -.65032E-05    .17226E-04
  13  Prefactor     .10000E-03    8.9982       -.12508E-07** at limit **
  14  Prefactor     54.670        31.472        .11039E-06    .91203E-05
  15  norm          .10000E-03    8.1131        .46049E-07** at limit **
  16  Prefactor     28.774        23.227        .67552E-05    .13782E-03
  17  Prefactor     92.132        71.492       -.34993E-05    .28048E-04
  18  Prefactor     .10000E-03    166.62        .21883E-05** at limit **
  19  Prefactor     4.4911        50.721       -.13724E-04   -.30000E-04
  20  norm          .10000E-03    .71695       -.12050E-06** at limit **
  21  Prefactor     .10000E-03    3.7717       -.12271E-07** at limit **
  22  Normalizat    1.3794        .21631        .58829E-06    .61837E-04
  23  Prefactor     .94149        .15685       -.18925E-07    .10239E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.0984
  norm       = 0.720015
  Prefactor  = 23.1634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.17363
  norm       = 0.956819
  norm       = 0.0001
  Prefactor  = 17.5423
  Prefactor  = 0.0001
  Prefactor  = 54.67
  norm       = 0.0001
  Prefactor  = 28.7739
  Prefactor  = 92.1324
  Prefactor  = 0.0001
  Prefactor  = 4.49107
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37941
  Prefactor  = 0.941487
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.112     FROM HESSE     STATUS=OK           368 CALLS     3010 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0984        4.6793        .16791E-03   -1.5256    
   2  norm          .72002        9.6376        .24268E-02   -1.5538    
   3  Prefactor     23.163        17.101        .83225E-04   -1.4745    
   4  Prefactor     .10000E-03    1.7816        .10951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8181        .16141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7943        .10988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.1736        1.7876        .80004E-04   -1.5352    
  10  norm          .95682        .75245        .61908E-04   -1.5512    
  11  norm          .10000E-03    .70059        .68591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.542        20.905        .95630E-04   -1.4870    
  13  Prefactor     .10000E-03    9.0004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     54.670        31.512        .54250E-04   -1.4228    
  15  norm          .10000E-03    8.1182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.774        23.258        .74703E-04   -1.4635    
  17  Prefactor     92.132        71.309        .41866E-04   -1.3785    
  18  Prefactor     .10000E-03    166.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4911        50.045        .18944E-03   -1.5284    
  20  norm          .10000E-03    3.9407        .13658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.8045        .16041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3794        .25712        .27922E-03   -.81226    
  23  Prefactor     .94149        .18565        .25459E-03   -.94706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13546e-10
Minuit parameter uncertainties:
  1  4.67968
  2  5.26916
  3  17.1041
  4  8.45593e-07
  5  1.46002e-05
  6  8.17391e-07
  7  1.12401e-05
  8  1.26929e-06
  9  1.78758
  10  0.752453
  11  5.10131e-07
  12  20.9132
  13  2.01865e-06
  14  31.5218
  15  1.28822e-05
  16  23.2656
  17  71.3757
  18  0.000374236
  19  30.0152
  20  2.72387e-05
  21  3.01405e-06
  22  0.257359
  23  0.185771
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  9.568e-01  7.525e-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.415e-01  1.858e-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.379e+00  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 7.35e-08 +/- 5.77e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.44e-05

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

Saving results to:
/scratch/kocevski/514847/likelihoodResults_347932801_348192001_4FGL_J0948.9+0022_daily_bin419.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) = 7158.79460155
delta logL = 0.317510085608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7158.78830759
delta logL = 0.32380404198

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84937       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4658       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98108       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=   7158.788     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      226 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84883        11.642        .11161E-01    .14297E-02
   2  alpha         3.4650        3.1060        .45926        .29497E-04
   3  Normalizat    1.3191        .74881E-01    .64312E-01    .18477E-04
   4  Prefactor     .98113        .65778E-01    .46030E-01    .61049E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.848832
  alpha      = 3.46501
  Normalizat = 1.31906
  Prefactor  = 0.981127
 **********
 **   18 **HESSE 
 **********

 FCN=   7158.788     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84883        .81607        .50522E-04   -1.5524    
   2  alpha         3.4650        1.3266        .34151E-02    .39629    
   3  Normalizat    1.3191        .24993        .28448E-03   -.82999    
   4  Prefactor     .98113        .18948        .25006E-03   -.93361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54407e-12
Minuit parameter uncertainties:
  1  0.816083
  2  1.41342
  3  0.250164
  4  0.189612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514847': 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) = 7158.78830565
delta logL = 0.323805977062

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.488e-01  8.161e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.465e+00  1.413e+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.811e-01  1.896e-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.319e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.47 +/- 1.41
Photon Flux (Free Index): 1.08e-07 +/- 7.64e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/514847/cmap_HighResolution_347932801_348192001_4FGL_J0948.9+0022_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-05', comment='SUCCESS', photon_flux='7.35e-08', energy_flux2='1.81e-05', photon_flux_error='5.77e-08', dlogl='3.24e-01', energy_flux='1.83e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-01 02:52:35.352320', photon_index_error2='1.41', photon_index2='3.47', ts='2.07', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='1.28e-05', EG='1.38', time_epoch_completed='1630489955.35', return_code='0', job_id='514847', GAL2='0.98', EG2='1.32', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='7.64e-08', ts2='2.79', photon_index='2.45' WHERE bin_id='419' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:52:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 514847: <4FGL_J0948.9+0022_daily_bin419> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin419> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:40:58 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:41:00 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:41:00 2021
Terminated at Wed Sep  1 02:52:35 2021
Results reported at Wed Sep  1 02:52:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin419 147.244 0.3717 347932801 348192001 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 :                                   640.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            697 sec.

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

