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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin563
RA = 147.244, Dec = 0.3717
tmin = 385257601, tmax = 385516801
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='516438', job_status='RUN', time_executed='2021-09-01 02:48:55.332638', time_epoch_executed='1630489735.33' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516438

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516438/ft1_4FGL_J0948.9+0022_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516438/ft2_4FGL_J0948.9+0022_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516438/ft1_4FGL_J0948.9+0022_daily_bin563.fits outfile=/scratch/kocevski/516438/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin563.fits ra=147.244 dec=0.3717 rad=12.0 tmin=385257601.0 tmax=385516801.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.60
user 3.33
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516438/ft1_filtered_4FGL_J0948.9+0022_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/516438/ft2_4FGL_J0948.9+0022_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/516438/ltcube_385257601_385516801_4FGL_J0948.9+0022_daily_bin563.fits outfile=/scratch/kocevski/516438/expmap_385257601_385516801_4FGL_J0948.9+0022_daily_bin563.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/516438/ltcube_385257601_385516801_4FGL_J0948.9+0022_daily_bin563.fits
.....................!
real 190.31
user 185.45
sys 4.21

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/516438/ft1_filtered_4FGL_J0948.9+0022_daily_bin563.fits scfile=/scratch/kocevski/516438/ft2_4FGL_J0948.9+0022_daily_bin563.fits outfile=/scratch/kocevski/516438/cmap_385257601_385516801_4FGL_J0948.9+0022_daily_bin563.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516438/ft1_filtered_4FGL_J0948.9+0022_daily_bin563.fits scfile=/scratch/kocevski/516438/ft2_4FGL_J0948.9+0022_daily_bin563.fits outfile=/scratch/kocevski/516438/cmap_HighResolution_385257601_385516801_4FGL_J0948.9+0022_daily_bin563.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.76
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5816       1.0000         .10000E-03   10000.    
     2 'norm      '    15.722       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32730E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4033       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.949       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4951       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.363       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6277       1.0000         .10000E-03   10000.    
     9 'norm      '    4.8245       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6297       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.100       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.566       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13282E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11485E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    74.286       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12967E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .13645       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .37152       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0300       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=   6223.420     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2615 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5814        3.7068       -.24192E-06   -.36605E-03
   2  norm          15.716        8.0408       -.58901E-06   -.18588E-03
   3  Prefactor     .10048E-03    15.459        .72444E-06** at limit **
   4  Prefactor     4.4034        3.0523       -.18973E-06   -.18529E-03
   5  Prefactor     30.901        30.198       -.83391E-06   -.15228E-03
   6  Prefactor     7.4940        9.5897       -.66300E-06   -.12555E-03
   7  Prefactor     28.354        29.321       -.82134E-06   -.24578E-04
   8  norm          2.6278        2.3723       -.44610E-07   -.12286E-03
   9  norm          4.8247        1.6814       -.17407E-06   -.17442E-03
  10  norm          3.6297        .75459       -.21889E-07   -.15611E-03
  11  norm          .10000E-03    .56690       -.51130E-07** at limit **
  12  Prefactor     29.105        15.429        .46649E-05   -.65998E-04
  13  Prefactor     .10000E-03    18.486        .40344E-06** at limit **
  14  Prefactor     37.569        26.962       -.23070E-05   -.38071E-05
  15  norm          .10000E-03    7.1449        .30474E-06** at limit **
  16  Prefactor     .10000E-03    7.3621        .13643E-05** at limit **
  17  Prefactor     .10001E-03    76.856        .25726E-05** at limit **
  18  Prefactor     74.249        49.703       -.22248E-04   -.74107E-04
  19  Prefactor     .10000E-03    9.7404        .13442E-05** at limit **
  20  norm          .13811        .75260       -.29191E-06   -.88721E-03
  21  Prefactor     .10000E-03    2.5975       -.56023E-07** at limit **
  22  Normalizat    .37147        .19754        .50412E-05   -.68719E-04
  23  Prefactor     1.0300        .14352       -.80525E-06    .19255E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.58138
  norm       = 15.7158
  Prefactor  = 0.000100485
  Prefactor  = 4.40336
  Prefactor  = 30.9008
  Prefactor  = 7.49402
  Prefactor  = 28.3545
  norm       = 2.62785
  norm       = 4.82474
  norm       = 3.62975
  norm       = 0.0001
  Prefactor  = 29.1054
  Prefactor  = 0.0001
  Prefactor  = 37.5692
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100006
  Prefactor  = 74.2485
  Prefactor  = 0.000100003
  norm       = 0.138112
  Prefactor  = 0.0001
  Normalizat = 0.371465
  Prefactor  = 1.03003
 **********
 **   18 **HESSE 
 **********

 FCN=   6223.420     FROM HESSE     STATUS=OK           390 CALLS     3005 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5814        3.6965        .13034E-03   -1.5280    
   2  norm          15.716        8.0251        .10101E-03   -1.4915    
   3  Prefactor     .10048E-03    21.831        .78925E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4034        3.0446        .10928E-03   -1.5288    
   5  Prefactor     30.901        30.345        .36011E-03   -1.4596    
   6  Prefactor     7.4940        9.5717        .14649E-03   -1.5160    
   7  Prefactor     28.354        29.277        .75226E-04   -1.4642    
   8  norm          2.6278        2.3687        .11174E-03   -1.5384    
   9  norm          4.8247        1.6772        .56661E-04   -1.5269    
  10  norm          3.6297        .75309        .29436E-04   -1.5327    
  11  norm          .10000E-03    1.5248        .11568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.105        15.323        .74269E-04   -1.4628    
  13  Prefactor     .10000E-03    18.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     37.569        26.923        .65391E-04   -1.4481    
  15  norm          .10000E-03    7.1539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.4684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    77.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     74.249        49.634        .23292E-03   -1.3982    
  19  Prefactor     .10000E-03    9.8137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .13811        1.4402        .12829E-02   -1.5634    
  21  Prefactor     .10000E-03    2.6231        .12407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .37147        .20577        .37291E-03   -1.1880    
  23  Prefactor     1.0300        .15441        .18864E-03   -.91735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52709e-09
Minuit parameter uncertainties:
  1  3.69664
  2  8.0256
  3  0.00651004
  4  3.04476
  5  30.36
  6  9.57365
  7  29.292
  8  2.36879
  9  1.67723
  10  0.753095
  11  5.67653e-06
  12  15.325
  13  7.72334e-06
  14  26.9314
  15  2.49463e-05
  16  0.00035213
  17  0.00137399
  18  49.6618
  19  0.000345108
  20  0.891693
  21  1.39596e-06
  22  0.20619
  23  0.154478
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.630e+00  7.531e-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.030e+00  1.545e-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:  3.715e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 60.73
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.79e-07 +/- 5.78e-08
Energy Flux (Fixed Index): 6.94e-05 +/- 1.44e-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) = 6223.41832879
delta logL = 0.00145875888393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6223.41825781
delta logL = 0.00152974383309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6300       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4683       1.0000          .0000       5.0000    
     3 'Normalizat'    .36925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0314       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=   6223.418     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      189 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6311        .77822        .53012E-02   -.22116E-05
   2  alpha         2.4683        .28170        .18858       -.15062E-04
   3  Normalizat    .36924        .17677        .84429E-01    .51799E-04
   4  Prefactor     1.0314        .14352        .41148E-01   -.30343E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.63114
  alpha      = 2.46828
  Normalizat = 0.369238
  Prefactor  = 1.0314
 **********
 **   18 **HESSE 
 **********

 FCN=   6223.418     FROM HESSE     STATUS=OK            31 CALLS      220 TOTAL
                     EDM=   .28E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6311        .74859        .29403E-04   -1.5327    
   2  alpha         2.4683        .27665        .81840E-03   -.12687E-01
   3  Normalizat    .36924        .19053        .37398E-03   -1.1892    
   4  Prefactor     1.0314        .15464        .18853E-03   -.91690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76302e-14
Minuit parameter uncertainties:
  1  0.748591
  2  0.277221
  3  0.190869
  4  0.154705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516438': 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) = 6223.41825659
delta logL = 0.0015309589462

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.631e+00  7.486e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.468e+00  2.772e-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.031e+00  1.547e-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:  3.692e-01  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 59.86
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.47 +/- 0.28
Photon Flux (Free Index): 2.80e-07 +/- 6.49e-08
Energy Flux (Free Index): 6.92e-05 +/- 1.49e-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/516438/cmap_HighResolution_385257601_385516801_4FGL_J0948.9+0022_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.79e-07', energy_flux2='6.92e-05', photon_flux_error='5.78e-08', dlogl='1.53e-03', energy_flux='6.94e-05', photon_flux2='2.80e-07', job_status='DONE', time_completed='2021-09-01 02:58:07.480547', photon_index_error2='0.28', photon_index2='2.47', ts='60.73', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='0.37', time_epoch_completed='1630490287.48', return_code='0', job_id='516438', GAL2='1.03', EG2='0.37', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.49e-08', ts2='59.86', photon_index='2.45' WHERE bin_id='563' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:58:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 516438: <4FGL_J0948.9+0022_daily_bin563> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin563 147.244 0.3717 385257601 385516801 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 :                                   544.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

