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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin539
RA = 147.244, Dec = 0.3717
tmin = 379036801, tmax = 379296001
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='515035', job_status='RUN', time_executed='2021-09-01 02:43:48.365705', time_epoch_executed='1630489428.37' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515035/ft1_4FGL_J0948.9+0022_daily_bin539.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515035/ft2_4FGL_J0948.9+0022_daily_bin539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515035/ft1_4FGL_J0948.9+0022_daily_bin539.fits outfile=/scratch/kocevski/515035/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin539.fits ra=147.244 dec=0.3717 rad=12.0 tmin=379036801.0 tmax=379296001.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.45
user 3.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515035/ft1_filtered_4FGL_J0948.9+0022_daily_bin539.fits" evtable="EVENTS" scfile=/scratch/kocevski/515035/ft2_4FGL_J0948.9+0022_daily_bin539.fits sctable="SC_DATA" outfile=/scratch/kocevski/515035/ltcube_379036801_379296001_4FGL_J0948.9+0022_daily_bin539.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/515035/ft2_4FGL_J0948.9+0022_daily_bin539.fits
.....................!
real 12.13
user 11.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515035/ft1_filtered_4FGL_J0948.9+0022_daily_bin539.fits evtable="EVENTS" scfile=/scratch/kocevski/515035/ft2_4FGL_J0948.9+0022_daily_bin539.fits sctable="SC_DATA" expcube=/scratch/kocevski/515035/ltcube_379036801_379296001_4FGL_J0948.9+0022_daily_bin539.fits outfile=/scratch/kocevski/515035/expmap_379036801_379296001_4FGL_J0948.9+0022_daily_bin539.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/515035/ltcube_379036801_379296001_4FGL_J0948.9+0022_daily_bin539.fits
.....................!
real 190.29
user 185.45
sys 4.35

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/515035/ft1_filtered_4FGL_J0948.9+0022_daily_bin539.fits scfile=/scratch/kocevski/515035/ft2_4FGL_J0948.9+0022_daily_bin539.fits outfile=/scratch/kocevski/515035/cmap_379036801_379296001_4FGL_J0948.9+0022_daily_bin539.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.024       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.614       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.063       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4567       1.0000         .10000E-03   10000.    
    10 'norm      '    8.7578       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9140       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.609       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.429       1.0000         .10000E-03   10000.    
    14 'Prefactor '    74.874       1.0000         .10000E-03   10000.    
    15 'norm      '    13.242       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6135       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1721       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75006       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5860.344     FROM MIGRAD    STATUS=CONVERGED     76 CALLS     2168 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.024        1.0308        .26965E-06    .98941E-04
   2  norm          2.7289        3.6911        .30392E-05   -.20807E-03
   3  Prefactor     37.613        1.1032       -.30694E-06    .11752E-02
   4  Prefactor     .10000E-03    1.1838        .16801E-06** at limit **
   5  Prefactor     53.064        1.0127        .92210E-07   -.72065E-03
   6  Prefactor     .10001E-03    7.3873        .12761E-04** at limit **
   7  Prefactor     .10002E-03    4.5510       -.33549E-05** at limit **
   8  norm          .10000E-03    1.2555        .36464E-07** at limit **
   9  norm          1.4568        1.4748        .18328E-06    .15881E-02
  10  norm          8.7578        1.2536        .64274E-09   -.78491E-03
  11  norm          4.9138        2.5385        .46769E-06   -.32971E-03
  12  Prefactor     11.609        1.0012        .11634E-07   -.69299E-04
  13  Prefactor     11.431        1.5612        .14663E-05   -.20926E-02
  14  Prefactor     74.875        1.0025        .31530E-07   -.31517E-03
  15  norm          13.242        1.0013        .25313E-07   -.26078E-04
  16  Prefactor     6.6127        1.0247        .23611E-06   -.17152E-04
  17  Prefactor     .10002E-03    10.341       -.13195E-04** at limit **
  18  Prefactor     .10001E-03    29.579       -.18479E-04** at limit **
  19  Prefactor     .10000E-03    19.852        .26382E-04** at limit **
  20  norm          .10000E-03    1.8342       -.54292E-06** at limit **
  21  Prefactor     .10000E-03    7.6831       -.20094E-05** at limit **
  22  Normalizat    1.1720        .25812       -.11989E-05   -.34698E-03
  23  Prefactor     .75014        .19906       -.31286E-06   -.29827E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0243
  norm       = 2.72891
  Prefactor  = 37.6126
  Prefactor  = 0.0001
  Prefactor  = 53.0636
  Prefactor  = 0.00010001
  Prefactor  = 0.000100018
  norm       = 0.0001
  norm       = 1.45675
  norm       = 8.7578
  norm       = 4.9138
  Prefactor  = 11.609
  Prefactor  = 11.4313
  Prefactor  = 74.8746
  norm       = 13.2424
  Prefactor  = 6.61272
  Prefactor  = 0.00010002
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17205
  Prefactor  = 0.750143
 **********
 **   18 **HESSE 
 **********

 FCN=   5860.344     FROM HESSE     STATUS=OK           424 CALLS     2592 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.024        6.0381        .27748E-02   -1.4986    
   2  norm          2.7289        3.7111        .61626E-02   -1.5378    
   3  Prefactor     37.613        29.968        .16337E-02   -1.4481    
   4  Prefactor     .10000E-03    1.1792        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     53.064        57.259        .13765E-02   -1.4250    
   6  Prefactor     .10001E-03    9.4078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    10.363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2526        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4568        1.5000        .89168E-02   -1.5467    
  10  norm          8.7578        1.2527        .33862E-02   -1.5116    
  11  norm          4.9138        2.5413        .45361E-02   -1.5265    
  12  Prefactor     11.609        10.150        .29394E-02   -1.5026    
  13  Prefactor     11.431        71.814        .29626E-02   -1.5032    
  14  Prefactor     74.875        49.244        .11600E-02   -1.3975    
  15  norm          13.242        11.100        .27518E-02   -1.4980    
  16  Prefactor     6.6127        6.9212        .39011E-02   -1.5194    
  17  Prefactor     .10002E-03    12.417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    29.768        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.161        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .96110        .26165E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.5805        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1720        .22853        .63281E-01   -.87471    
  23  Prefactor     .75014        .16879        .43064E-01   -1.0159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32922e-07
Minuit parameter uncertainties:
  1  6.03838
  2  3.71141
  3  29.9798
  4  6.45749e-06
  5  57.318
  6  0.000628521
  7  0.000852151
  8  5.03642e-06
  9  1.50008
  10  1.25271
  11  2.54139
  12  10.1513
  13  57.4052
  14  49.2706
  15  11.1014
  16  6.92204
  17  0.000995326
  18  0.000997166
  19  5.38023e-05
  20  3.00649e-05
  21  6.81598e-05
  22  0.228722
  23  0.168906
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.758e+00  1.253e+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

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  7.501e-01  1.689e-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.172e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 154.07
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.72e-07 +/- 9.61e-08
Energy Flux (Fixed Index): 1.68e-04 +/- 2.40e-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) = 5856.6440157
delta logL = 3.70032476585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5856.5497104
delta logL = 3.79463006024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1525       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9819       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66974       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=   5856.550     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1527        1.2361        .35104E-02    .73937E-03
   2  alpha         1.9820        .15486        .10374       -.14413E-03
   3  Normalizat    1.3056        .21415        .60647E-01    .13323E-03
   4  Prefactor     .66986        .16585        .63688E-01    .11177E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.15274
  alpha      = 1.982
  Normalizat = 1.30561
  Prefactor  = 0.669861
 **********
 **   18 **HESSE 
 **********

 FCN=   5856.550     FROM HESSE     STATUS=OK            27 CALLS      237 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1527        1.2966        .30625E-04   -1.5137    
   2  alpha         1.9820        .16387        .45586E-03   -.20871    
   3  Normalizat    1.3056        .25723        .26822E-03   -.83399    
   4  Prefactor     .66986        .19807        .28176E-03   -1.0472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.13183e-11
Minuit parameter uncertainties:
  1  1.29657
  2  0.163992
  3  0.257485
  4  0.198282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515035': 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) = 5856.54971011
delta logL = 3.7946303509

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.153e+00  1.297e+00  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.982e+00  1.640e-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:  6.699e-01  1.983e-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.306e+00  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 160.31
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.98 +/- 0.16
Photon Flux (Free Index): 5.54e-07 +/- 9.39e-08
Energy Flux (Free Index): 1.99e-04 +/- 3.30e-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/515035/cmap_HighResolution_379036801_379296001_4FGL_J0948.9+0022_daily_bin539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.72e-07', energy_flux2='1.99e-04', photon_flux_error='9.61e-08', dlogl='3.79e+00', energy_flux='1.68e-04', photon_flux2='5.54e-07', job_status='DONE', time_completed='2021-09-01 02:52:39.854052', photon_index_error2='0.16', photon_index2='1.98', ts='154.07', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='3.30e-05', EG='1.17', time_epoch_completed='1630489959.85', return_code='0', job_id='515035', GAL2='0.67', EG2='1.31', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='9.39e-08', ts2='160.31', photon_index='2.45' WHERE bin_id='539' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:52:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 515035: <4FGL_J0948.9+0022_daily_bin539> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin539> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:41:14 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:41: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:41:16 2021
Terminated at Wed Sep  1 02:52:40 2021
Results reported at Wed Sep  1 02:52:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin539 147.244 0.3717 379036801 379296001 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 :                                   518.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            686 sec.

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

