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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin673
RA = 147.244, Dec = 0.3717
tmin = 413769601, tmax = 414028801
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='516616', job_status='RUN', time_executed='2021-09-01 02:46:34.207564', time_epoch_executed='1630489594.21' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516616

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516616/ft1_4FGL_J0948.9+0022_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516616/ft2_4FGL_J0948.9+0022_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516616/ft1_4FGL_J0948.9+0022_daily_bin673.fits outfile=/scratch/kocevski/516616/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin673.fits ra=147.244 dec=0.3717 rad=12.0 tmin=413769601.0 tmax=414028801.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 6.40
user 5.91
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516616/ft1_filtered_4FGL_J0948.9+0022_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/516616/ft2_4FGL_J0948.9+0022_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/516616/ltcube_413769601_414028801_4FGL_J0948.9+0022_daily_bin673.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/516616/ft2_4FGL_J0948.9+0022_daily_bin673.fits
.....................!
real 12.39
user 11.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516616/ft1_filtered_4FGL_J0948.9+0022_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/516616/ft2_4FGL_J0948.9+0022_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/516616/ltcube_413769601_414028801_4FGL_J0948.9+0022_daily_bin673.fits outfile=/scratch/kocevski/516616/expmap_413769601_414028801_4FGL_J0948.9+0022_daily_bin673.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/516616/ltcube_413769601_414028801_4FGL_J0948.9+0022_daily_bin673.fits
.....................!
real 192.88
user 187.66
sys 4.40

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/516616/ft1_filtered_4FGL_J0948.9+0022_daily_bin673.fits scfile=/scratch/kocevski/516616/ft2_4FGL_J0948.9+0022_daily_bin673.fits outfile=/scratch/kocevski/516616/cmap_413769601_414028801_4FGL_J0948.9+0022_daily_bin673.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.91
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516616/ft1_filtered_4FGL_J0948.9+0022_daily_bin673.fits scfile=/scratch/kocevski/516616/ft2_4FGL_J0948.9+0022_daily_bin673.fits outfile=/scratch/kocevski/516616/cmap_HighResolution_413769601_414028801_4FGL_J0948.9+0022_daily_bin673.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.91
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1725       1.0000         .10000E-03   10000.    
     2 'norm      '    .18715E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21093E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.341       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.604       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1725       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6072       1.0000         .10000E-03   10000.    
    11 'norm      '    .61238       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8279       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4376       1.0000         .10000E-03   10000.    
    15 'norm      '    16.884       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9968       1.0000         .10000E-03   10000.    
    20 'norm      '    3.5366       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1178       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82346       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0195       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=   5549.939     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2590 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1727        3.6468        .57185E-07    .94697E-05
   2  norm          .10098E-03    7.0639       -.15022E-05** at limit **
   3  Prefactor     15.100        15.480       -.10750E-06    .32395E-04
   4  Prefactor     .10000E-03    2.3068        .86663E-06** at limit **
   5  Prefactor     .10000E-03    53.375        .66123E-06** at limit **
   6  Prefactor     24.341        16.193       -.11062E-06   -.96046E-04
   7  Prefactor     32.587        33.284       -.12627E-06   -.84166E-04
   8  norm          2.1712        3.3188        .11932E-06   -.36079E-04
   9  norm          .10000E-03    .31919        .91276E-07** at limit **
  10  norm          3.6067        .96364        .47467E-08   -.48855E-03
  11  norm          .61280        1.9506        .12110E-05    .31610E-03
  12  Prefactor     5.8224        17.030        .45367E-06    .24055E-05
  13  Prefactor     .10000E-03    18.076       -.47238E-06** at limit **
  14  Prefactor     8.4063        43.275       -.82602E-06   -.68803E-04
  15  norm          16.883        19.497       -.20364E-06   -.91486E-05
  16  Prefactor     .10000E-03    4.3475       -.93720E-07** at limit **
  17  Prefactor     .10000E-03    20.100       -.20391E-06** at limit **
  18  Prefactor     .10000E-03    33.527       -.16734E-06** at limit **
  19  Prefactor     9.9965        18.413        .28302E-05    .13654E-03
  20  norm          3.5357        1.8122       -.31760E-07   -.15513E-03
  21  Prefactor     3.1139        7.2611        .55184E-06   -.18646E-04
  22  Normalizat    .82407        .22554        .13709E-05   -.20772E-03
  23  Prefactor     1.0191        .17254       -.23518E-05   -.19764E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.17272
  norm       = 0.000100984
  Prefactor  = 15.0998
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3414
  Prefactor  = 32.5866
  norm       = 2.17124
  norm       = 0.0001
  norm       = 3.60671
  norm       = 0.612797
  Prefactor  = 5.82239
  Prefactor  = 0.0001
  Prefactor  = 8.40628
  norm       = 16.8835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.99652
  norm       = 3.53571
  Prefactor  = 3.11387
  Normalizat = 0.824067
  Prefactor  = 1.01913
 **********
 **   18 **HESSE 
 **********

 FCN=   5549.939     FROM HESSE     STATUS=OK           384 CALLS     2974 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1727        3.6401        .12772E-03   -1.5299    
   2  norm          .10098E-03    5.2294        .52419E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.100        15.501        .10305E-03   -1.4931    
   4  Prefactor     .10000E-03    3.8369        .21140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    53.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.341        16.206        .81192E-04   -1.4721    
   7  Prefactor     32.587        33.267        .70175E-04   -1.4566    
   8  norm          2.1712        3.2838        .15992E-03   -1.5413    
   9  norm          .10000E-03    .32279        .41130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6067        .96592        .35120E-04   -1.5328    
  11  norm          .61280        1.9666        .17712E-03   -1.5551    
  12  Prefactor     5.8224        16.981        .16636E-03   -1.5225    
  13  Prefactor     .10000E-03    18.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4063        43.388        .13801E-03   -1.5128    
  15  norm          16.883        19.400        .97473E-04   -1.4886    
  16  Prefactor     .10000E-03    4.3555        .15166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9965        18.630        .63367E-03   -1.5076    
  20  norm          3.5357        1.8059        .67820E-04   -1.5332    
  21  Prefactor     3.1139        7.2695        .22963E-03   -1.5355    
  22  Normalizat    .82407        .25799        .29406E-03   -.99182    
  23  Prefactor     1.0191        .19423        .21594E-03   -.92095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25662e-09
Minuit parameter uncertainties:
  1  3.64027
  2  0.00453669
  3  15.5051
  4  3.66572e-05
  5  0.000199564
  6  16.2089
  7  33.2856
  8  3.28412
  9  1.25218e-06
  10  0.965927
  11  1.96684
  12  16.9946
  13  2.84193e-05
  14  38.2393
  15  19.407
  16  1.43265e-05
  17  0.000112622
  18  3.52239e-05
  19  18.6404
  20  1.80597
  21  7.27157
  22  0.25837
  23  0.194361
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.607e+00  9.659e-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.019e+00  1.944e-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:  8.241e-01  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.96
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.77e-07 +/- 7.41e-08
Energy Flux (Fixed Index): 6.90e-05 +/- 1.85e-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) = 5549.33988516
delta logL = 0.599230327683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5549.33854828
delta logL = 0.600567206887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5570       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8378       1.0000          .0000       5.0000    
     3 'Normalizat'    .76330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0576       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=   5549.339     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5571        1.2703        .53575E-02    .13194E-03
   2  alpha         2.8377        .48334        .22791       -.19650E-05
   3  Normalizat    .76328        .20613        .68717E-01    .21117E-04
   4  Prefactor     1.0576        .16603        .39484E-01    .30847E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.55709
  alpha      = 2.83774
  Normalizat = 0.763283
  Prefactor  = 1.05761
 **********
 **   18 **HESSE 
 **********

 FCN=   5549.339     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .59E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5571        .94090        .33405E-04   -1.5331    
   2  alpha         2.8377        .36769        .98839E-03    .13551    
   3  Normalizat    .76328        .24437        .30407E-03   -1.0145    
   4  Prefactor     1.0576        .19487        .21243E-03   -.90833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92982e-15
Minuit parameter uncertainties:
  1  0.940903
  2  0.369056
  3  0.244721
  4  0.195005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516616': 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) = 5549.33854827
delta logL = 0.60056722155

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.557e+00  9.409e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.838e+00  3.691e-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.058e+00  1.950e-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:  7.633e-01  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.24
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.84 +/- 0.37
Photon Flux (Free Index): 3.21e-07 +/- 8.84e-08
Energy Flux (Free Index): 6.59e-05 +/- 1.71e-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/516616/cmap_HighResolution_413769601_414028801_4FGL_J0948.9+0022_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.77e-07', energy_flux2='6.59e-05', photon_flux_error='7.41e-08', dlogl='6.01e-01', energy_flux='6.90e-05', photon_flux2='3.21e-07', job_status='DONE', time_completed='2021-09-01 02:55:48.663045', photon_index_error2='0.37', photon_index2='2.84', ts='29.96', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.82', time_epoch_completed='1630490148.66', return_code='0', job_id='516616', GAL2='1.06', EG2='0.76', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='8.84e-08', ts2='31.24', photon_index='2.45' WHERE bin_id='673' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:55:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 516616: <4FGL_J0948.9+0022_daily_bin673> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin673> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:15 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:16 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:16 2021
Terminated at Wed Sep  1 02:55:49 2021
Results reported at Wed Sep  1 02:55:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin673 147.244 0.3717 413769601 414028801 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 :                                   540.16 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            574 sec.

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

