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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin152
RA = 147.244, Dec = 0.3717
tmin = 278726401, tmax = 278985601
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='513218', job_status='RUN', time_executed='2021-09-01 02:38:47.386461', time_epoch_executed='1630489127.39' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513218

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513218/ft1_4FGL_J0948.9+0022_daily_bin152.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513218/ft2_4FGL_J0948.9+0022_daily_bin152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513218/ft1_4FGL_J0948.9+0022_daily_bin152.fits outfile=/scratch/kocevski/513218/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin152.fits ra=147.244 dec=0.3717 rad=12.0 tmin=278726401.0 tmax=278985601.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.99
user 3.62
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513218/ft1_filtered_4FGL_J0948.9+0022_daily_bin152.fits evtable="EVENTS" scfile=/scratch/kocevski/513218/ft2_4FGL_J0948.9+0022_daily_bin152.fits sctable="SC_DATA" expcube=/scratch/kocevski/513218/ltcube_278726401_278985601_4FGL_J0948.9+0022_daily_bin152.fits outfile=/scratch/kocevski/513218/expmap_278726401_278985601_4FGL_J0948.9+0022_daily_bin152.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/513218/ltcube_278726401_278985601_4FGL_J0948.9+0022_daily_bin152.fits
.....................!
real 191.66
user 184.99
sys 3.92

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/513218/ft1_filtered_4FGL_J0948.9+0022_daily_bin152.fits scfile=/scratch/kocevski/513218/ft2_4FGL_J0948.9+0022_daily_bin152.fits outfile=/scratch/kocevski/513218/cmap_278726401_278985601_4FGL_J0948.9+0022_daily_bin152.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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513218/ft1_filtered_4FGL_J0948.9+0022_daily_bin152.fits scfile=/scratch/kocevski/513218/ft2_4FGL_J0948.9+0022_daily_bin152.fits outfile=/scratch/kocevski/513218/cmap_HighResolution_278726401_278985601_4FGL_J0948.9+0022_daily_bin152.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.58
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.222       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7519       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.834       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.676       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6185       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1998       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5632       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    41.872       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10419E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.544       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.376       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5135       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1052       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86249       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=   5871.641     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2152 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.222        5.6014       -.34539E-06   -.13018E-03
   2  norm          .10000E-03    3.0575       -.20090E-06** at limit **
   3  Prefactor     .10000E-03    8.5624        .86045E-06** at limit **
   4  Prefactor     5.7521        4.3297       -.28503E-06   -.98193E-04
   5  Prefactor     .10000E-03    14.344       -.78557E-05** at limit **
   6  Prefactor     18.833        19.884       -.70029E-06    .33795E-05
   7  Prefactor     10.669        56.218       -.17334E-04   -.16620E-06
   8  norm          .10000E-03    2.3988        .22126E-07** at limit **
   9  norm          1.6186        1.4223        .53895E-07   -.41937E-03
  10  norm          1.1997        .75523       -.17998E-07   -.45676E-03
  11  norm          1.5632        1.4569       -.18286E-06    .48796E-04
  12  Prefactor     19.982        14.002       -.26993E-06   -.10238E-03
  13  Prefactor     41.871        31.259       -.87074E-06    .12619E-04
  14  Prefactor     .10000E-03    9.9068       -.37578E-05** at limit **
  15  norm          .10000E-03    11.997        .77779E-05** at limit **
  16  Prefactor     10.550        11.606       -.28125E-06   -.16402E-03
  17  Prefactor     .10000E-03    23.176        .26675E-05** at limit **
  18  Prefactor     .10000E-03    51.064       -.14071E-05** at limit **
  19  Prefactor     15.378        17.593       -.22482E-06   -.36298E-04
  20  norm          1.5132        1.2851       -.12494E-06   -.41581E-03
  21  Prefactor     .10000E-03    1.6656        .51501E-07** at limit **
  22  Normalizat    1.1052        .20921        .81829E-06   -.22757E-04
  23  Prefactor     .86249        .15385        .37310E-06    .31786E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2224
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.75208
  Prefactor  = 0.0001
  Prefactor  = 18.833
  Prefactor  = 10.6688
  norm       = 0.0001
  norm       = 1.61858
  norm       = 1.19973
  norm       = 1.56322
  Prefactor  = 19.982
  Prefactor  = 41.8706
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.5504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3776
  norm       = 1.51324
  Prefactor  = 0.0001
  Normalizat = 1.10522
  Prefactor  = 0.862495
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.641     FROM HESSE     STATUS=OK           372 CALLS     2524 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.222        5.6125        .12532E-03   -1.5068    
   2  norm          .10000E-03    3.0726        .13083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7521        4.3332        .13149E-03   -1.5228    
   5  Prefactor     .10000E-03    14.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.833        19.902        .92289E-04   -1.4840    
   7  Prefactor     10.669        56.622        .12262E-03   -1.5055    
   8  norm          .10000E-03    2.4372        .11583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6186        1.4124        .81492E-04   -1.5454    
  10  norm          1.1997        .73801        .48884E-04   -1.5489    
  11  norm          1.5632        1.4587        .86614E-04   -1.5458    
  12  Prefactor     19.982        14.022        .89602E-04   -1.4814    
  13  Prefactor     41.871        31.277        .61950E-04   -1.4413    
  14  Prefactor     .10000E-03    9.9088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.550        11.607        .12339E-03   -1.5058    
  17  Prefactor     .10000E-03    23.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    51.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.378        17.592        .10214E-03   -1.4923    
  20  norm          1.5132        1.2718        .76918E-04   -1.5462    
  21  Prefactor     .10000E-03    1.6683        .96571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1052        .24768        .27019E-03   -.89585    
  23  Prefactor     .86249        .18147        .23430E-03   -.97464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08948e-10
Minuit parameter uncertainties:
  1  5.61279
  2  4.42857e-07
  3  9.10094e-06
  4  4.33346
  5  1.15627e-05
  6  19.9086
  7  49.2291
  8  1.58312e-05
  9  1.41247
  10  0.73802
  11  1.45877
  12  14.0243
  13  31.2893
  14  5.46866e-07
  15  1.65879e-05
  16  11.6093
  17  5.2371e-06
  18  2.30059e-05
  19  17.5975
  20  1.2718
  21  2.782e-07
  22  0.247944
  23  0.181601
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.200e+00  7.380e-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:  8.625e-01  1.816e-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.105e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.99
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 9.21e-08 +/- 5.66e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/513218/likelihoodResults_278726401_278985601_4FGL_J0948.9+0022_daily_bin152.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) = 5870.96926353
delta logL = 0.67140009713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5870.95448607
delta logL = 0.686177563563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2855       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4156       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91134       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=   5870.954     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2851        12.018        .91779E-02    .42315E-03
   2  alpha         3.4157        2.6008        .45337        .23785E-04
   3  Normalizat    1.0173        .89353E-01    .63288E-01    .11431E-04
   4  Prefactor     .91143        .88183E-01    .45149E-01    .88012E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28508
  alpha      = 3.41566
  Normalizat = 1.01735
  Prefactor  = 0.911435
 **********
 **   18 **HESSE 
 **********

 FCN=   5870.954     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2851        .78920        .41119E-04   -1.5481    
   2  alpha         3.4157        .93654        .22700E-01    .37499    
   3  Normalizat    1.0173        .24767        .27991E-03   -.92451    
   4  Prefactor     .91143        .18732        .22863E-03   -.95743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8765e-11
Minuit parameter uncertainties:
  1  0.78921
  2  0.963882
  3  0.247951
  4  0.187453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513218': 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) = 5870.95448557
delta logL = 0.686178064636

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.285e+00  7.892e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.416e+00  9.639e-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.114e-01  1.875e-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.017e+00  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.55
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.42 +/- 0.96
Photon Flux (Free Index): 1.58e-07 +/- 8.83e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.37e-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/513218/cmap_HighResolution_278726401_278985601_4FGL_J0948.9+0022_daily_bin152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-05', comment='SUCCESS', photon_flux='9.21e-08', energy_flux2='2.70e-05', photon_flux_error='5.66e-08', dlogl='6.86e-01', energy_flux='2.30e-05', photon_flux2='1.58e-07', job_status='DONE', time_completed='2021-09-01 02:48:04.091602', photon_index_error2='0.96', photon_index2='3.42', ts='3.99', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='2.02e-07', energy_flux_error2='1.37e-05', EG='1.11', time_epoch_completed='1630489684.09', return_code='0', job_id='513218', GAL2='0.91', EG2='1.02', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='8.83e-08', ts2='5.55', photon_index='2.45' WHERE bin_id='152' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:48:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 513218: <4FGL_J0948.9+0022_daily_bin152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin152 147.244 0.3717 278726401 278985601 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 :                                   549.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             275.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

