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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin761
RA = 147.244, Dec = 0.3717
tmin = 436579201, tmax = 436838401
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='516747', job_status='RUN', time_executed='2021-09-01 02:50:35.082977', time_epoch_executed='1630489835.08' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516747

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516747/ft1_4FGL_J0948.9+0022_daily_bin761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516747/ft2_4FGL_J0948.9+0022_daily_bin761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516747/ft1_4FGL_J0948.9+0022_daily_bin761.fits outfile=/scratch/kocevski/516747/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin761.fits ra=147.244 dec=0.3717 rad=12.0 tmin=436579201.0 tmax=436838401.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.84
user 5.32
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516747/ft1_filtered_4FGL_J0948.9+0022_daily_bin761.fits" evtable="EVENTS" scfile=/scratch/kocevski/516747/ft2_4FGL_J0948.9+0022_daily_bin761.fits sctable="SC_DATA" outfile=/scratch/kocevski/516747/ltcube_436579201_436838401_4FGL_J0948.9+0022_daily_bin761.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/516747/ft2_4FGL_J0948.9+0022_daily_bin761.fits
.....................!
real 11.87
user 11.38
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516747/ft1_filtered_4FGL_J0948.9+0022_daily_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/516747/ft2_4FGL_J0948.9+0022_daily_bin761.fits sctable="SC_DATA" expcube=/scratch/kocevski/516747/ltcube_436579201_436838401_4FGL_J0948.9+0022_daily_bin761.fits outfile=/scratch/kocevski/516747/expmap_436579201_436838401_4FGL_J0948.9+0022_daily_bin761.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/516747/ltcube_436579201_436838401_4FGL_J0948.9+0022_daily_bin761.fits
.....................!
real 192.62
user 187.67
sys 3.68

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/516747/ft1_filtered_4FGL_J0948.9+0022_daily_bin761.fits scfile=/scratch/kocevski/516747/ft2_4FGL_J0948.9+0022_daily_bin761.fits outfile=/scratch/kocevski/516747/cmap_436579201_436838401_4FGL_J0948.9+0022_daily_bin761.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=147.244 yref=0.3717 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516747/ft1_filtered_4FGL_J0948.9+0022_daily_bin761.fits scfile=/scratch/kocevski/516747/ft2_4FGL_J0948.9+0022_daily_bin761.fits outfile=/scratch/kocevski/516747/cmap_HighResolution_436579201_436838401_4FGL_J0948.9+0022_daily_bin761.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.64
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9105       1.0000         .10000E-03   10000.    
     2 'norm      '    9.9808       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12685E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.771       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7140       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9395       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3866       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7706       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.847       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.653       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.089       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.014       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8413       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3243       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72472       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1270       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=   6128.227     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2606 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9109        3.7616       -.11089E-06   -.20250E-03
   2  norm          9.9804        6.4638       -.13679E-05   -.51065E-04
   3  Prefactor     .10000E-03    21.314       -.39789E-06** at limit **
   4  Prefactor     .10000E-03    1.8553       -.19478E-06** at limit **
   5  Prefactor     .10000E-03    255.11       -.11342E-05** at limit **
   6  Prefactor     .10000E-03    3.8121       -.16652E-08** at limit **
   7  Prefactor     21.771        20.299        .14028E-06    .25583E-05
   8  norm          .10000E-03    1.9279       -.27252E-07** at limit **
   9  norm          2.7143        1.5274       -.10969E-06   -.31482E-03
  10  norm          1.9396        .68817       -.32996E-07   -.10386E-03
  11  norm          1.3867        1.6538       -.16825E-06   -.58297E-03
  12  Prefactor     7.7720        11.626        .26006E-06   -.60903E-04
  13  Prefactor     28.849        27.288       -.10235E-05    .13317E-04
  14  Prefactor     .10000E-03    25.816        .41880E-06** at limit **
  15  norm          .10000E-03    4.9536        .11842E-06** at limit **
  16  Prefactor     .10000E-03    4.5215        .85822E-07** at limit **
  17  Prefactor     15.663        64.427        .10501E-04    .24901E-07
  18  Prefactor     33.102        58.749        .94557E-05   -.75195E-05
  19  Prefactor     21.014        20.533       -.78787E-05   -.45923E-05
  20  norm          2.8412        1.5690        .17474E-06    .39482E-05
  21  Prefactor     4.3283        8.2775       -.44212E-05   -.25736E-03
  22  Normalizat    .72463        .20042        .11226E-05    .28945E-04
  23  Prefactor     1.1270        .15584        .26195E-06    .83854E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.91088
  norm       = 9.98037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7707
  norm       = 0.0001
  norm       = 2.71427
  norm       = 1.93961
  norm       = 1.38669
  Prefactor  = 7.77202
  Prefactor  = 28.8486
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6626
  Prefactor  = 33.102
  Prefactor  = 21.0138
  norm       = 2.84124
  Prefactor  = 4.32835
  Normalizat = 0.724628
  Prefactor  = 1.12701
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.227     FROM HESSE     STATUS=OK           374 CALLS     2980 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9109        3.7600        .12736E-03   -1.5265    
   2  norm          9.9804        6.4718        .12684E-03   -1.5076    
   3  Prefactor     .10000E-03    21.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7207        .20595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    265.16        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8197        .14926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.771        20.300        .85845E-04   -1.4774    
   8  norm          .10000E-03    1.9699        .10609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7143        1.5256        .69201E-04   -1.5378    
  10  norm          1.9396        .68651        .36532E-04   -1.5429    
  11  norm          1.3867        1.6338        .10621E-03   -1.5472    
  12  Prefactor     7.7720        11.607        .14385E-03   -1.5150    
  13  Prefactor     28.849        27.282        .74593E-04   -1.4633    
  14  Prefactor     .10000E-03    25.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.9537        .17014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5255        .16244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.663        63.969        .10123E-03   -1.4916    
  18  Prefactor     33.102        58.502        .69661E-04   -1.4557    
  19  Prefactor     21.014        20.374        .87375E-04   -1.4791    
  20  norm          2.8412        1.5641        .69012E-04   -1.5371    
  21  Prefactor     4.3283        8.4283        .19372E-03   -1.5292    
  22  Normalizat    .72463        .23050        .30614E-03   -1.0293    
  23  Prefactor     1.1270        .18059        .20649E-03   -.88608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5516e-10
Minuit parameter uncertainties:
  1  3.76018
  2  6.47225
  3  1.85874e-05
  4  1.43114e-05
  5  0.000330004
  6  1.3954e-06
  7  20.3061
  8  2.46009e-06
  9  1.5256
  10  0.686508
  11  1.63388
  12  11.6103
  13  27.2936
  14  5.92689e-05
  15  8.29677e-06
  16  1.10896e-05
  17  63.4236
  18  58.6041
  19  20.3811
  20  1.56408
  21  8.43058
  22  0.230811
  23  0.180688
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.940e+00  6.865e-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.127e+00  1.807e-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.246e-01  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.28
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.49e-07 +/- 5.27e-08
Energy Flux (Fixed Index): 3.71e-05 +/- 1.31e-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) = 6128.1347641
delta logL = 0.0923108571769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6128.13180638
delta logL = 0.095268577722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9612       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6444       1.0000          .0000       5.0000    
     3 'Normalizat'    .70614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1378       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=   6128.132     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      200 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9612        .87334        .74049E-02    .89319E-04
   2  alpha         2.6444        .54466        .30137       -.18635E-04
   3  Normalizat    .70614        .19076        .69988E-01    .68983E-04
   4  Prefactor     1.1378        .15668        .36301E-01   -.14563E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96122
  alpha      = 2.6444
  Normalizat = 0.706138
  Prefactor  = 1.13776
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.132     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9612        .67480        .35766E-04   -1.5428    
   2  alpha         2.6444        .44254        .12781E-01    .57791E-01
   3  Normalizat    .70614        .22166        .30973E-03   -1.0365    
   4  Prefactor     1.1378        .18078        .20562E-03   -.88269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93829e-11
Minuit parameter uncertainties:
  1  0.6748
  2  0.44489
  3  0.221938
  4  0.180879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516747': 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) = 6128.13180638
delta logL = 0.0952685777293

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.961e+00  6.748e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.644e+00  4.449e-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.138e+00  1.809e-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.061e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.37
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.64 +/- 0.44
Photon Flux (Free Index): 1.62e-07 +/- 6.20e-08
Energy Flux (Free Index): 3.64e-05 +/- 1.27e-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/516747/cmap_HighResolution_436579201_436838401_4FGL_J0948.9+0022_daily_bin761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-07', energy_flux2='3.64e-05', photon_flux_error='5.27e-08', dlogl='9.53e-02', energy_flux='3.71e-05', photon_flux2='1.62e-07', job_status='DONE', time_completed='2021-09-01 02:59:53.617761', photon_index_error2='0.44', photon_index2='2.64', ts='17.28', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='0.72', time_epoch_completed='1630490393.62', return_code='0', job_id='516747', GAL2='1.14', EG2='0.71', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='6.20e-08', ts2='17.37', photon_index='2.45' WHERE bin_id='761' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:59:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 516747: <4FGL_J0948.9+0022_daily_bin761> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin761 147.244 0.3717 436579201 436838401 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 :                                   551.00 sec.
    Max Memory :                                 1226 MB
    Average Memory :                             256.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

