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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin874
RA = 147.244, Dec = 0.3717
tmin = 465868801, tmax = 466128001
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='518157', job_status='RUN', time_executed='2021-09-01 02:51:28.261087', time_epoch_executed='1630489888.26' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='874'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518157

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518157/ft1_4FGL_J0948.9+0022_daily_bin874.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518157/ft2_4FGL_J0948.9+0022_daily_bin874.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518157/ft1_4FGL_J0948.9+0022_daily_bin874.fits outfile=/scratch/kocevski/518157/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin874.fits ra=147.244 dec=0.3717 rad=12.0 tmin=465868801.0 tmax=466128001.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 4.13
user 3.70
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/518157/ft2_4FGL_J0948.9+0022_daily_bin874.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/518157/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin874.fits evtable="EVENTS" outfile="/scratch/kocevski/518157/ft1_filtered_4FGL_J0948.9+0022_daily_bin874.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.62
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/518157/ft1_filtered_4FGL_J0948.9+0022_daily_bin874.fits" evtable="EVENTS" scfile=/scratch/kocevski/518157/ft2_4FGL_J0948.9+0022_daily_bin874.fits sctable="SC_DATA" outfile=/scratch/kocevski/518157/ltcube_465868801_466128001_4FGL_J0948.9+0022_daily_bin874.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/518157/ft2_4FGL_J0948.9+0022_daily_bin874.fits
.....................!
real 13.23
user 11.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518157/ft1_filtered_4FGL_J0948.9+0022_daily_bin874.fits evtable="EVENTS" scfile=/scratch/kocevski/518157/ft2_4FGL_J0948.9+0022_daily_bin874.fits sctable="SC_DATA" expcube=/scratch/kocevski/518157/ltcube_465868801_466128001_4FGL_J0948.9+0022_daily_bin874.fits outfile=/scratch/kocevski/518157/expmap_465868801_466128001_4FGL_J0948.9+0022_daily_bin874.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/518157/ltcube_465868801_466128001_4FGL_J0948.9+0022_daily_bin874.fits
.....................!
real 191.97
user 185.40
sys 4.93

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/518157/ft1_filtered_4FGL_J0948.9+0022_daily_bin874.fits scfile=/scratch/kocevski/518157/ft2_4FGL_J0948.9+0022_daily_bin874.fits outfile=/scratch/kocevski/518157/cmap_465868801_466128001_4FGL_J0948.9+0022_daily_bin874.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.59
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518157/ft1_filtered_4FGL_J0948.9+0022_daily_bin874.fits scfile=/scratch/kocevski/518157/ft2_4FGL_J0948.9+0022_daily_bin874.fits outfile=/scratch/kocevski/518157/cmap_HighResolution_465868801_466128001_4FGL_J0948.9+0022_daily_bin874.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.62
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.7454       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2735       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.601       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.603       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.852       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1903       1.0000         .10000E-03   10000.    
    10 'norm      '    .90866       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61006E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.425       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5534       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    187.69       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.5314       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4877       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6614       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .57252       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=   5607.852     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2576 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0070        .21803E-07** at limit **
   2  norm          3.7448        5.6739       -.18834E-05   -.31519E-03
   3  Prefactor     27.351        17.812       -.80841E-07   -.90276E-05
   4  Prefactor     4.2721        3.9841        .78719E-07   -.27116E-03
   5  Prefactor     22.593        35.061       -.36798E-05   -.90579E-05
   6  Prefactor     17.596        17.520       -.73673E-06   -.28249E-04
   7  Prefactor     34.847        30.358       -.63332E-06   -.65325E-05
   8  norm          .10000E-03    1.7509        .17718E-07** at limit **
   9  norm          2.1899        1.4710       -.53852E-07   -.17948E-03
  10  norm          .90854        .59983        .42180E-07    .42027E-04
  11  norm          .10000E-03    1.5120        .14881E-07** at limit **
  12  Prefactor     .10012E-03    22.006       -.51382E-05** at limit **
  13  Prefactor     .10000E-03    11.996        .49769E-07** at limit **
  14  Prefactor     19.416        37.163       -.52776E-05   -.89740E-05
  15  norm          5.5934        21.146       -.75811E-05    .35799E-03
  16  Prefactor     .10000E-03    3.7188       -.17891E-06** at limit **
  17  Prefactor     187.73        89.073        .26323E-04    .32560E-03
  18  Prefactor     .10000E-03    16.949       -.24470E-06** at limit **
  19  Prefactor     .10000E-03    6.3680       -.14865E-06** at limit **
  20  norm          2.5312        1.4205       -.35685E-07   -.77986E-04
  21  Prefactor     4.4874        4.5606       -.16973E-06   -.12114E-03
  22  Normalizat    1.6619        .22754       -.33395E-05    .65998E-03
  23  Prefactor     .57223        .16302        .28328E-05    .10135E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.74477
  Prefactor  = 27.3506
  Prefactor  = 4.2721
  Prefactor  = 22.5928
  Prefactor  = 17.5958
  Prefactor  = 34.8475
  norm       = 0.0001
  norm       = 2.18992
  norm       = 0.908542
  norm       = 0.0001
  Prefactor  = 0.000100124
  Prefactor  = 0.0001
  Prefactor  = 19.4164
  norm       = 5.59335
  Prefactor  = 0.0001
  Prefactor  = 187.734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.53124
  Prefactor  = 4.48742
  Normalizat = 1.66191
  Prefactor  = 0.57223
 **********
 **   18 **HESSE 
 **********

 FCN=   5607.852     FROM HESSE     STATUS=OK           378 CALLS     2954 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0095        .73381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7448        5.6826        .20863E-03   -1.5321    
   3  Prefactor     27.351        17.817        .76597E-04   -1.4662    
   4  Prefactor     4.2721        3.9834        .13705E-03   -1.5295    
   5  Prefactor     22.593        35.084        .84256E-04   -1.4757    
   6  Prefactor     17.596        17.558        .95462E-04   -1.4869    
   7  Prefactor     34.847        30.363        .67882E-04   -1.4527    
   8  norm          .10000E-03    1.7636        .96752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1899        1.4692        .70997E-04   -1.5412    
  10  norm          .90854        .59358        .44835E-04   -1.5517    
  11  norm          .10000E-03    1.5819        .17965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10012E-03    143.95        .57497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.416        37.258        .90876E-04   -1.4826    
  15  norm          5.5934        18.500        .17049E-03   -1.5235    
  16  Prefactor     .10000E-03    3.7226        .14103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     187.73        89.098        .14738E-03   -1.2959    
  18  Prefactor     .10000E-03    16.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.3766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.5312        1.4183        .64618E-04   -1.5390    
  21  Prefactor     4.4874        4.5555        .15657E-03   -1.5284    
  22  Normalizat    1.6619        .26372        .24027E-03   -.73325    
  23  Prefactor     .57223        .18770        .29350E-03   -1.0877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52507e-09
Minuit parameter uncertainties:
  1  2.12113e-06
  2  5.68339
  3  17.8206
  4  3.98367
  5  35.1162
  6  17.5628
  7  30.3766
  8  2.73563e-06
  9  1.46918
  10  0.593585
  11  2.43802e-06
  12  0.00848099
  13  1.51766e-05
  14  37.3027
  15  18.5189
  16  3.43991e-05
  17  89.1623
  18  0.000101986
  19  4.16618e-05
  20  1.41835
  21  4.55587
  22  0.263939
  23  0.187903
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  9.085e-01  5.936e-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:  5.722e-01  1.879e-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.662e+00  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.43
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.98e-08 +/- 4.55e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.14e-05

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) = 5607.678438
delta logL = 0.17348208553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5607.65817753
delta logL = 0.193742554127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66128       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8091       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54741       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=   5607.658     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66061        .47460        .91371E-02    .25960E-03
   2  alpha         1.8095        .51766        .42417       -.39617E-04
   3  Normalizat    1.7053        .21225        .53799E-01   -.15448E-05
   4  Prefactor     .54736        .16175        .67691E-01    .26284E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.660609
  alpha      = 1.80952
  Normalizat = 1.70527
  Prefactor  = 0.547356
 **********
 **   18 **HESSE 
 **********

 FCN=   5607.658     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66061        .65331        .40581E-04   -1.5545    
   2  alpha         1.8095        .87727        .15215E-01   -.27983    
   3  Normalizat    1.7053        .24838        .23785E-03   -.72163    
   4  Prefactor     .54736        .18730        .29960E-03   -1.0985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78363e-12
Minuit parameter uncertainties:
  1  0.65332
  2  0.898032
  3  0.248562
  4  0.187515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518157': 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) = 5607.65817184
delta logL = 0.193748244956

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  6.606e-01  6.533e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.810e+00  8.980e-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:  5.474e-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.705e+00  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.84
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.81 +/- 0.90
Photon Flux (Free Index): 4.41e-08 +/- 4.48e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.43e-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/518157/cmap_HighResolution_465868801_466128001_4FGL_J0948.9+0022_daily_bin874.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.98e-08', energy_flux2='1.91e-05', photon_flux_error='4.55e-08', dlogl='1.94e-01', energy_flux='1.74e-05', photon_flux2='4.41e-08', job_status='DONE', time_completed='2021-09-01 03:00:32.974276', photon_index_error2='0.90', photon_index2='1.81', ts='5.43', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.66', time_epoch_completed='1630490432.97', return_code='0', job_id='518157', GAL2='0.55', EG2='1.71', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='4.48e-08', ts2='5.84', photon_index='2.45' WHERE bin_id='874' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:00:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 518157: <4FGL_J0948.9+0022_daily_bin874> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin874> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:50:52 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:50:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:50:54 2021
Terminated at Wed Sep  1 03:00:33 2021
Results reported at Wed Sep  1 03:00:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin874 147.244 0.3717 465868801 466128001 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 :                                   533.55 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             327.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            581 sec.

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

