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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin512
RA = 147.244, Dec = 0.3717
tmin = 372038401, tmax = 372297601
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='514991', job_status='RUN', time_executed='2021-09-01 02:43:35.265955', time_epoch_executed='1630489415.27' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514991

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514991/ft1_4FGL_J0948.9+0022_daily_bin512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514991/ft2_4FGL_J0948.9+0022_daily_bin512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514991/ft1_4FGL_J0948.9+0022_daily_bin512.fits outfile=/scratch/kocevski/514991/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin512.fits ra=147.244 dec=0.3717 rad=12.0 tmin=372038401.0 tmax=372297601.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.39
user 4.17
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514991/ft1_filtered_4FGL_J0948.9+0022_daily_bin512.fits evtable="EVENTS" scfile=/scratch/kocevski/514991/ft2_4FGL_J0948.9+0022_daily_bin512.fits sctable="SC_DATA" expcube=/scratch/kocevski/514991/ltcube_372038401_372297601_4FGL_J0948.9+0022_daily_bin512.fits outfile=/scratch/kocevski/514991/expmap_372038401_372297601_4FGL_J0948.9+0022_daily_bin512.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/514991/ltcube_372038401_372297601_4FGL_J0948.9+0022_daily_bin512.fits
.....................!
real 190.90
user 187.05
sys 3.52

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/514991/ft1_filtered_4FGL_J0948.9+0022_daily_bin512.fits scfile=/scratch/kocevski/514991/ft2_4FGL_J0948.9+0022_daily_bin512.fits outfile=/scratch/kocevski/514991/cmap_372038401_372297601_4FGL_J0948.9+0022_daily_bin512.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514991/ft1_filtered_4FGL_J0948.9+0022_daily_bin512.fits scfile=/scratch/kocevski/514991/ft2_4FGL_J0948.9+0022_daily_bin512.fits outfile=/scratch/kocevski/514991/cmap_HighResolution_372038401_372297601_4FGL_J0948.9+0022_daily_bin512.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.53
user 0.40
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5545       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7957       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.221       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.7284       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7995       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2651       1.0000         .10000E-03   10000.    
    11 'norm      '    .38871       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.396       1.0000         .10000E-03   10000.    
    15 'norm      '    12.795       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.335       1.0000         .10000E-03   10000.    
    17 'Prefactor '    120.21       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0599       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11899       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72872       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1721       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=   8084.750     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2585 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5563        4.1886       -.16461E-06   -.16117E-03
   2  norm          .10000E-03    9.9529       -.96142E-07** at limit **
   3  Prefactor     8.7967        10.421       -.42698E-06   -.14735E-04
   4  Prefactor     .10000E-03    1.7880       -.17565E-06** at limit **
   5  Prefactor     18.220        25.858       -.16958E-05   -.29684E-05
   6  Prefactor     .10000E-03    7.7027       -.20436E-07** at limit **
   7  Prefactor     .10000E-03    40.852       -.31235E-06** at limit **
   8  norm          4.7279        2.9432       -.67833E-07   -.64300E-04
   9  norm          2.7996        1.3076       -.52450E-07   -.15808E-03
  10  norm          3.2650        .74862       -.31540E-07    .65479E-04
  11  norm          .38866        .66178       -.34382E-07   -.15546E-03
  12  Prefactor     6.0895        7.3164        .13768E-06    .90862E-06
  13  Prefactor     .10000E-03    62.395        .60711E-06** at limit **
  14  Prefactor     29.393        27.528       -.15201E-05    .36901E-04
  15  norm          12.796        13.774        .16357E-05   -.26881E-05
  16  Prefactor     13.334        9.1172        .12912E-05   -.69885E-05
  17  Prefactor     120.19        57.985       -.11440E-04   -.35194E-05
  18  Prefactor     .10000E-03    27.169        .11719E-06** at limit **
  19  Prefactor     .10000E-03    5.3993        .29951E-07** at limit **
  20  norm          1.0601        1.1247       -.74207E-07   -.55663E-03
  21  Prefactor     .11650        4.6402       -.80306E-06   -.16209E-04
  22  Normalizat    .72859        .17995        .21189E-05    .71923E-04
  23  Prefactor     1.1723        .13982       -.13559E-06    .24059E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.55631
  norm       = 0.0001
  Prefactor  = 8.79668
  Prefactor  = 0.0001
  Prefactor  = 18.2198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.72793
  norm       = 2.79955
  norm       = 3.26501
  norm       = 0.388664
  Prefactor  = 6.08947
  Prefactor  = 0.0001
  Prefactor  = 29.3927
  norm       = 12.7956
  Prefactor  = 13.3341
  Prefactor  = 120.194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.06013
  Prefactor  = 0.116502
  Normalizat = 0.728593
  Prefactor  = 1.17227
 **********
 **   18 **HESSE 
 **********

 FCN=   8084.750     FROM HESSE     STATUS=OK           388 CALLS     2973 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5563        4.1944        .12238E-03   -1.5123    
   2  norm          .10000E-03    10.402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.7967        10.418        .13515E-03   -1.5115    
   4  Prefactor     .10000E-03    3.9636        .23102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.220        25.862        .93827E-04   -1.4854    
   6  Prefactor     .10000E-03    7.7847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.7279        2.9429        .11782E-03   -1.5273    
   9  norm          2.7996        1.3085        .67037E-04   -1.5373    
  10  norm          3.2650        .74943        .34957E-04   -1.5347    
  11  norm          .38866        .66144        .43231E-04   -1.5583    
  12  Prefactor     6.0895        7.3082        .16271E-03   -1.5214    
  13  Prefactor     .10000E-03    62.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.393        27.515        .73896E-04   -1.4623    
  15  norm          12.796        13.755        .11198E-03   -1.4992    
  16  Prefactor     13.334        9.0960        .10969E-03   -1.4977    
  17  Prefactor     120.19        57.929        .18352E-03   -1.3511    
  18  Prefactor     .10000E-03    27.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0601        1.0242        .93006E-03   -1.5502    
  21  Prefactor     .11650        5.5124        .53006E-01   -1.5640    
  22  Normalizat    .72859        .20155        .31979E-03   -1.0277    
  23  Prefactor     1.1723        .15835        .21334E-03   -.87189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21366e-10
Minuit parameter uncertainties:
  1  4.19455
  2  2.65946e-05
  3  10.42
  4  3.34625e-05
  5  25.8783
  6  9.93976e-06
  7  6.1879e-05
  8  2.94304
  9  1.30855
  10  0.749432
  11  0.661452
  12  7.30925
  13  2.31842e-05
  14  27.5266
  15  13.758
  16  9.09693
  17  57.9566
  18  4.59429e-05
  19  5.6757e-06
  20  1.02426
  21  1.60222
  22  0.201756
  23  0.158414
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.265e+00  7.494e-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.172e+00  1.584e-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.286e-01  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 41.52
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.51e-07 +/- 5.75e-08
Energy Flux (Fixed Index): 6.25e-05 +/- 1.43e-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) = 8084.63244299
delta logL = 0.117905869163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8084.62829389
delta logL = 0.12205497116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2693       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5958       1.0000          .0000       5.0000    
     3 'Normalizat'    .70890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1841       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=   8084.628     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      191 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2693        .83079        .55991E-02    .12685E-02
   2  alpha         2.5958        .32028        .22695       -.15665E-04
   3  Normalizat    .70890        .17153        .73142E-01   -.45328E-05
   4  Prefactor     1.1841        .14076        .35018E-01    .37562E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.26926
  alpha      = 2.5958
  Normalizat = 0.7089
  Prefactor  = 1.18411
 **********
 **   18 **HESSE 
 **********

 FCN=   8084.628     FROM HESSE     STATUS=OK            29 CALLS      220 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2693        .73938        .34484E-04   -1.5346    
   2  alpha         2.5958        .29283        .97977E-03    .38328E-01
   3  Normalizat    .70890        .19493        .32374E-03   -1.0354    
   4  Prefactor     1.1841        .15909        .21242E-03   -.86822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5522e-11
Minuit parameter uncertainties:
  1  0.739386
  2  0.293504
  3  0.195119
  4  0.159151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514991': 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) = 8084.62829389
delta logL = 0.122054972179

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.269e+00  7.394e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.596e+00  2.935e-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.184e+00  1.592e-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.089e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 41.32
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.60 +/- 0.29
Photon Flux (Free Index): 2.65e-07 +/- 6.57e-08
Energy Flux (Free Index): 6.09e-05 +/- 1.41e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/514991/cmap_HighResolution_372038401_372297601_4FGL_J0948.9+0022_daily_bin512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.51e-07', energy_flux2='6.09e-05', photon_flux_error='5.75e-08', dlogl='1.22e-01', energy_flux='6.25e-05', photon_flux2='2.65e-07', job_status='DONE', time_completed='2021-09-01 02:54:10.942936', photon_index_error2='0.29', photon_index2='2.60', ts='41.52', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='0.73', time_epoch_completed='1630490050.94', return_code='0', job_id='514991', GAL2='1.18', EG2='0.71', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='6.57e-08', ts2='41.32', photon_index='2.45' WHERE bin_id='512' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:54:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 514991: <4FGL_J0948.9+0022_daily_bin512> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin512 147.244 0.3717 372038401 372297601 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 :                                   629.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

