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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin158
RA = 147.244, Dec = 0.3717
tmin = 280281601, tmax = 280540801
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='513227', job_status='RUN', time_executed='2021-09-01 02:38:44.849046', time_epoch_executed='1630489124.85' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513227

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513227/ft1_4FGL_J0948.9+0022_daily_bin158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513227/ft2_4FGL_J0948.9+0022_daily_bin158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513227/ft1_4FGL_J0948.9+0022_daily_bin158.fits outfile=/scratch/kocevski/513227/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin158.fits ra=147.244 dec=0.3717 rad=12.0 tmin=280281601.0 tmax=280540801.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.43
user 3.08
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513227/ft1_filtered_4FGL_J0948.9+0022_daily_bin158.fits" evtable="EVENTS" scfile=/scratch/kocevski/513227/ft2_4FGL_J0948.9+0022_daily_bin158.fits sctable="SC_DATA" outfile=/scratch/kocevski/513227/ltcube_280281601_280540801_4FGL_J0948.9+0022_daily_bin158.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/513227/ft2_4FGL_J0948.9+0022_daily_bin158.fits
.....................!
real 9.25
user 8.81
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513227/ft1_filtered_4FGL_J0948.9+0022_daily_bin158.fits evtable="EVENTS" scfile=/scratch/kocevski/513227/ft2_4FGL_J0948.9+0022_daily_bin158.fits sctable="SC_DATA" expcube=/scratch/kocevski/513227/ltcube_280281601_280540801_4FGL_J0948.9+0022_daily_bin158.fits outfile=/scratch/kocevski/513227/expmap_280281601_280540801_4FGL_J0948.9+0022_daily_bin158.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/513227/ltcube_280281601_280540801_4FGL_J0948.9+0022_daily_bin158.fits
.....................!
real 145.46
user 140.91
sys 3.22

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/513227/ft1_filtered_4FGL_J0948.9+0022_daily_bin158.fits scfile=/scratch/kocevski/513227/ft2_4FGL_J0948.9+0022_daily_bin158.fits outfile=/scratch/kocevski/513227/cmap_280281601_280540801_4FGL_J0948.9+0022_daily_bin158.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.49
user 0.30
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513227/ft1_filtered_4FGL_J0948.9+0022_daily_bin158.fits scfile=/scratch/kocevski/513227/ft2_4FGL_J0948.9+0022_daily_bin158.fits outfile=/scratch/kocevski/513227/cmap_HighResolution_280281601_280540801_4FGL_J0948.9+0022_daily_bin158.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.45
user 0.30
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7461       1.0000         .10000E-03   10000.    
     2 'norm      '    .10354E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0105       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3186       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4994       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.4221       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1460       1.0000         .10000E-03   10000.    
    11 'norm      '    .80482       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24100E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23627E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10961E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.111       1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.572       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4911       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3607       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0741       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97155       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=   6609.342     FROM MIGRAD    STATUS=CONVERGED    937 CALLS     3013 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7468        4.7429        .12381E-03   -.56304E-03
   2  norm          .10001E-03    8.0012        .53198E-01** at limit **
   3  Prefactor     5.0104        11.627        .89825E-03   -.24250E-04
   4  Prefactor     2.3183        3.8825        .19617E-03    .30483E-04
   5  Prefactor     .10000E-03    11.666        .18142E-02** at limit **
   6  Prefactor     7.4988        9.8037        .73224E-03   -.17622E-04
   7  Prefactor     .10000E-03    31.589        .18142E-02** at limit **
   8  norm          .10000E-03    2.5872        .25043E-03** at limit **
   9  norm          2.4221        1.3439        .67582E-04   -.21869E-03
  10  norm          1.1457        .70446        .50483E-04    .33397E-03
  11  norm          .80481        .80936        .67137E-03   -.17188E-02
  12  Prefactor     .10001E-03    57.743        .52553E-02** at limit **
  13  Prefactor     .10000E-03    109.25        .36562E-03** at limit **
  14  Prefactor     .10000E-03    18.380        .18142E-02** at limit **
  15  norm          .10000E-03    8.4413        .18142E-02** at limit **
  16  Prefactor     .10000E-03    12.855        .18142E-02** at limit **
  17  Prefactor     27.114        68.355        .76940E-04   -.83011E-04
  18  Prefactor     41.644        90.345        .62172E-04    .31086E-05
  19  Prefactor     4.4698        36.833        .18999E-03    .13889E-03
  20  norm          .10000E-03    .57728        .11835E-03** at limit **
  21  Prefactor     1.3579        6.2329        .37439E-03    .11633E-03
  22  Normalizat    1.0743        .22720        .26670E-03   -.27231E-03
  23  Prefactor     .97140        .17163        .22260E-03   -.85166E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.74677
  norm       = 0.000100014
  Prefactor  = 5.01039
  Prefactor  = 2.31828
  Prefactor  = 0.0001
  Prefactor  = 7.49878
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.42211
  norm       = 1.1457
  norm       = 0.804805
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.1141
  Prefactor  = 41.6444
  Prefactor  = 4.46979
  norm       = 0.0001
  Prefactor  = 1.35789
  Normalizat = 1.07428
  Prefactor  = 0.971399
 **********
 **   18 **HESSE 
 **********

 FCN=   6609.342     FROM HESSE     STATUS=OK           362 CALLS     3375 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7468        4.7429        .49526E-05   -1.5116    
   2  norm          .10001E-03    7.1036        .57381E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.0104        11.624        .35930E-04   -1.5260    
   4  Prefactor     2.3183        3.8818        .78470E-05   -1.5403    
   5  Prefactor     .10000E-03    11.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.4988        9.8018        .29290E-04   -1.5160    
   7  Prefactor     .10000E-03    31.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5872        .50086E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.4221        1.3439        .27033E-05   -1.5397    
  10  norm          1.1457        .70438        .20193E-05   -1.5494    
  11  norm          .80481        .80944        .13427E-03   -1.5529    
  12  Prefactor     .10001E-03    58.655        .10511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    109.26        .73124E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.4417        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.114        68.332        .15388E-04   -1.4666    
  18  Prefactor     41.644        90.224        .24869E-05   -1.4416    
  19  Prefactor     4.4698        36.733        .75995E-05   -1.5285    
  20  norm          .10000E-03    .57728        .23670E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3579        6.2286        .14976E-04   -1.5475    
  22  Normalizat    1.0743        .22726        .53339E-04   -.90582    
  23  Prefactor     .97140        .17176        .44521E-04   -.93689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02553e-09
Minuit parameter uncertainties:
  1  4.74309
  2  0.000622301
  3  11.6289
  4  3.88221
  5  4.98604e-05
  6  9.80389
  7  6.93607e-05
  8  1.04098e-05
  9  1.34392
  10  0.704385
  11  0.809455
  12  0.00186689
  13  0.000431026
  14  9.03194e-05
  15  3.53474e-06
  16  1.43545e-05
  17  68.5302
  18  90.5221
  19  25.6484
  20  4.69715e-06
  21  5.81724
  22  0.227466
  23  0.171858
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.146e+00  7.044e-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.714e-01  1.719e-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.074e+00  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 8.80e-08 +/- 5.40e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/513227/likelihoodResults_280281601_280540801_4FGL_J0948.9+0022_daily_bin158.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) = 6608.38503693
delta logL = 0.956793156337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6608.36921635
delta logL = 0.972613737174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0071       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6069       1.0000          .0000       5.0000    
     3 'Normalizat'    .99618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0198       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=   6608.369     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      194 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0070        8.6895        .85316E-02    .22101E-02
   2  alpha         3.6088        3.1065        .47981        .56386E-04
   3  Normalizat    .99652        .80463E-01    .46119E-01    .60851E-04
   4  Prefactor     1.0196        .70907E-01    .42162E-01   -.23927E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.00702
  alpha      = 3.60875
  Normalizat = 0.996521
  Prefactor  = 1.01956
 **********
 **   18 **HESSE 
 **********

 FCN=   6608.369     FROM HESSE     STATUS=OK            29 CALLS      223 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0070        .72268        .38258E-04   -1.5507    
   2  alpha         3.6088        .93000        .23228E-02    .45950    
   3  Normalizat    .99652        .22169        .27518E-03   -.93147    
   4  Prefactor     1.0196        .17417        .21788E-03   -.92080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44893e-10
Minuit parameter uncertainties:
  1  0.722689
  2  0.959014
  3  0.221898
  4  0.174268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513227': 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) = 6608.36921013
delta logL = 0.972619954831

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.007e+00  7.227e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.609e+00  9.590e-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.020e+00  1.743e-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.965e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.90
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.61 +/- 0.96
Photon Flux (Free Index): 1.40e-07 +/- 7.08e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.17e-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/513227/cmap_HighResolution_280281601_280540801_4FGL_J0948.9+0022_daily_bin158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-05', comment='SUCCESS', photon_flux='8.80e-08', energy_flux2='2.27e-05', photon_flux_error='5.40e-08', dlogl='9.73e-01', energy_flux='2.19e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-01 02:46:57.399700', photon_index_error2='0.96', photon_index2='3.61', ts='3.74', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.17e-05', EG='1.07', time_epoch_completed='1630489617.4', return_code='0', job_id='513227', GAL2='1.02', EG2='1.00', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='7.08e-08', ts2='5.90', photon_index='2.45' WHERE bin_id='158' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:46:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 513227: <4FGL_J0948.9+0022_daily_bin158> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin158 147.244 0.3717 280281601 280540801 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 :                                   487.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             280.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            646 sec.

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

