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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin726
RA = 147.244, Dec = 0.3717
tmin = 427507201, tmax = 427766401
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='516696', job_status='RUN', time_executed='2021-09-01 02:50:35.582838', time_epoch_executed='1630489835.58' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516696

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516696/ft1_4FGL_J0948.9+0022_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516696/ft2_4FGL_J0948.9+0022_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516696/ft1_4FGL_J0948.9+0022_daily_bin726.fits outfile=/scratch/kocevski/516696/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin726.fits ra=147.244 dec=0.3717 rad=12.0 tmin=427507201.0 tmax=427766401.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 5.49
user 5.18
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516696/ft1_filtered_4FGL_J0948.9+0022_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/516696/ft2_4FGL_J0948.9+0022_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/516696/ltcube_427507201_427766401_4FGL_J0948.9+0022_daily_bin726.fits outfile=/scratch/kocevski/516696/expmap_427507201_427766401_4FGL_J0948.9+0022_daily_bin726.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/516696/ltcube_427507201_427766401_4FGL_J0948.9+0022_daily_bin726.fits
.....................!
real 190.67
user 185.57
sys 4.27

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/516696/ft1_filtered_4FGL_J0948.9+0022_daily_bin726.fits scfile=/scratch/kocevski/516696/ft2_4FGL_J0948.9+0022_daily_bin726.fits outfile=/scratch/kocevski/516696/cmap_427507201_427766401_4FGL_J0948.9+0022_daily_bin726.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516696/ft1_filtered_4FGL_J0948.9+0022_daily_bin726.fits scfile=/scratch/kocevski/516696/ft2_4FGL_J0948.9+0022_daily_bin726.fits outfile=/scratch/kocevski/516696/cmap_HighResolution_427507201_427766401_4FGL_J0948.9+0022_daily_bin726.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4816       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.826       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3737       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.543       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6178       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .37486       1.0000         .10000E-03   10000.    
    11 'norm      '    2.4540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.179       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.050       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12297E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7604       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15564E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.480       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4017       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4490       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96532       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0410       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=   5924.632     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2541 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4823        4.0629       -.24624E-06   -.17812E-04
   2  norm          .10000E-03    1.4500       -.70861E-08** at limit **
   3  Prefactor     14.824        15.485       -.44181E-06   -.14268E-04
   4  Prefactor     .10000E-03    2.5101       -.53344E-06** at limit **
   5  Prefactor     .10000E-03    11.168        .54025E-05** at limit **
   6  Prefactor     2.3748        16.461       -.40073E-05   -.16283E-03
   7  Prefactor     36.541        28.289       -.11963E-05    .49390E-05
   8  norm          2.6173        3.2575       -.35661E-06   -.37292E-03
   9  norm          .10000E-03    .75552       -.57060E-07** at limit **
  10  norm          .37479        .39489       -.18526E-06   -.17414E-02
  11  norm          2.4539        1.7324       -.10903E-06   -.30155E-05
  12  Prefactor     17.187        19.174        .39544E-05    .33279E-03
  13  Prefactor     .10000E-03    56.137        .47776E-04** at limit **
  14  Prefactor     .10000E-03    10.412       -.37525E-05** at limit **
  15  norm          19.056        19.198        .29356E-05    .29912E-03
  16  Prefactor     .10000E-03    15.822       -.24292E-05** at limit **
  17  Prefactor     7.7066        113.08       -.16748E-03    .51810E-04
  18  Prefactor     .10001E-03    65.549       -.53077E-04** at limit **
  19  Prefactor     11.495        18.538        .13264E-04    .49050E-03
  20  norm          1.4020        1.3420       -.18679E-06   -.44890E-03
  21  Prefactor     7.4476        6.9582       -.45689E-06   -.19009E-03
  22  Normalizat    .96528        .20350        .81176E-05   -.15018E-04
  23  Prefactor     1.0411        .15722       -.25581E-05    .46624E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.48228
  norm       = 0.0001
  Prefactor  = 14.824
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.3748
  Prefactor  = 36.5415
  norm       = 2.61732
  norm       = 0.0001
  norm       = 0.374792
  norm       = 2.4539
  Prefactor  = 17.1874
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 19.0562
  Prefactor  = 0.000100003
  Prefactor  = 7.70662
  Prefactor  = 0.000100007
  Prefactor  = 11.4951
  norm       = 1.40197
  Prefactor  = 7.44761
  Normalizat = 0.965275
  Prefactor  = 1.0411
 **********
 **   18 **HESSE 
 **********

 FCN=   5924.632     FROM HESSE     STATUS=OK           374 CALLS     2915 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4823        4.0630        .11775E-03   -1.5199    
   2  norm          .10000E-03    1.4521        .90511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.824        15.485        .10402E-03   -1.4938    
   4  Prefactor     .10000E-03    5.2371        .23355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3748        16.380        .26592E-03   -1.5400    
   7  Prefactor     36.541        28.284        .66297E-04   -1.4498    
   8  norm          2.6173        3.2445        .14940E-03   -1.5384    
   9  norm          .10000E-03    .78633        .13039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .37479        .36571        .47709E-03   -1.5586    
  11  norm          2.4539        1.7336        .82446E-04   -1.5395    
  12  Prefactor     17.187        19.170        .96630E-04   -1.4879    
  13  Prefactor     .10000E-03    56.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.056        19.182        .91766E-04   -1.4835    
  16  Prefactor     .10000E-03    16.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7066        113.40        .14394E-03   -1.5153    
  18  Prefactor     .10001E-03    65.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.495        18.540        .11824E-03   -1.5030    
  20  norm          1.4020        1.3199        .83414E-04   -1.5471    
  21  Prefactor     7.4476        6.9440        .14695E-03   -1.5162    
  22  Normalizat    .96528        .23273        .27454E-03   -.94203    
  23  Prefactor     1.0411        .18189        .21656E-03   -.91372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5644e-09
Minuit parameter uncertainties:
  1  4.06321
  2  2.72017e-06
  3  15.4896
  4  0.000124788
  5  1.98616e-05
  6  12.4785
  7  28.294
  8  3.24477
  9  4.90127e-06
  10  0.365711
  11  1.73365
  12  19.1773
  13  0.000476053
  14  1.97291e-05
  15  19.1884
  16  0.000439919
  17  59.2599
  18  0.00133718
  19  18.5496
  20  1.31992
  21  6.94479
  22  0.232976
  23  0.182002
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.748e-01  3.657e-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:  1.041e+00  1.820e-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.653e-01  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.88e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 7.17e-06 +/- 7.00e-06

TS (Fixed Index): 1.81
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 9.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516696/likelihoodResults_427507201_427766401_4FGL_J0948.9+0022_daily_bin726.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) = 5924.37710079
delta logL = 0.254451633159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5924.36222073
delta logL = 0.269331698762

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29084       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7749       1.0000          .0000       5.0000    
     3 'Normalizat'    .97832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0340       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=   5924.362     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      201 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29055        .29637        .85025E-02    .46932E-03
   2  alpha         1.7754        .62340        .43587       -.14310E-04
   3  Normalizat    .97872        .18995        .45895E-01    .92279E-04
   4  Prefactor     1.0335        .15560        .40956E-01   -.33937E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.290554
  alpha      = 1.77538
  Normalizat = 0.978723
  Prefactor  = 1.03346
 **********
 **   18 **HESSE 
 **********

 FCN=   5924.362     FROM HESSE     STATUS=OK            35 CALLS      236 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29055        .33425        .39972E-03   -1.5600    
   2  alpha         1.7754        .84475        .19251E-01   -.29407    
   3  Normalizat    .97872        .21935        .27281E-03   -.93747    
   4  Prefactor     1.0335        .17979        .21718E-03   -.91622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71381e-11
Minuit parameter uncertainties:
  1  0.334257
  2  0.863368
  3  0.21955
  4  0.179899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516696': 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) = 5924.3622141
delta logL = 0.269338325349

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.906e-01  3.343e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.775e+00  8.634e-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.033e+00  1.799e-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.787e-01  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.78 +/- 0.86
Photon Flux (Free Index): 1.94e-08 +/- 2.25e-08
Energy Flux (Free Index): 8.74e-06 +/- 8.69e-06

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/516696/cmap_HighResolution_427507201_427766401_4FGL_J0948.9+0022_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', comment='SUCCESS', photon_flux='2.88e-08', energy_flux2='8.74e-06', photon_flux_error='2.81e-08', dlogl='2.69e-01', energy_flux='7.17e-06', photon_flux2='1.94e-08', job_status='DONE', time_completed='2021-09-01 03:00:25.830961', photon_index_error2='0.86', photon_index2='1.78', ts='1.81', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.98e-08', energy_flux_error2='8.69e-06', EG='0.97', time_epoch_completed='1630490425.83', return_code='0', job_id='516696', GAL2='1.03', EG2='0.98', return_code2='0', energy_flux_error='7.00e-06', photon_flux_error2='2.25e-08', ts2='2.36', photon_index='2.45' WHERE bin_id='726' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:00:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 516696: <4FGL_J0948.9+0022_daily_bin726> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin726> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:21 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:46:23 2021
Terminated at Wed Sep  1 03:00:26 2021
Results reported at Wed Sep  1 03:00:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin726 147.244 0.3717 427507201 427766401 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 :                                   585.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             277.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

