/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 140 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 = 7400
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin138
RA = 147.244, Dec = 0.3717
tmin = 275097601, tmax = 275356801
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='513197', job_status='RUN', time_executed='2021-09-01 02:38:51.778541', time_epoch_executed='1630489131.78' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513197

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513197/ft1_4FGL_J0948.9+0022_daily_bin138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513197/ft2_4FGL_J0948.9+0022_daily_bin138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513197/ft1_4FGL_J0948.9+0022_daily_bin138.fits outfile=/scratch/kocevski/513197/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin138.fits ra=147.244 dec=0.3717 rad=12.0 tmin=275097601.0 tmax=275356801.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.25
user 4.64
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513197/ft1_filtered_4FGL_J0948.9+0022_daily_bin138.fits" evtable="EVENTS" scfile=/scratch/kocevski/513197/ft2_4FGL_J0948.9+0022_daily_bin138.fits sctable="SC_DATA" outfile=/scratch/kocevski/513197/ltcube_275097601_275356801_4FGL_J0948.9+0022_daily_bin138.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/513197/ft2_4FGL_J0948.9+0022_daily_bin138.fits
.....................!
real 12.41
user 11.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513197/ft1_filtered_4FGL_J0948.9+0022_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/513197/ft2_4FGL_J0948.9+0022_daily_bin138.fits sctable="SC_DATA" expcube=/scratch/kocevski/513197/ltcube_275097601_275356801_4FGL_J0948.9+0022_daily_bin138.fits outfile=/scratch/kocevski/513197/expmap_275097601_275356801_4FGL_J0948.9+0022_daily_bin138.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/513197/ltcube_275097601_275356801_4FGL_J0948.9+0022_daily_bin138.fits
.....................!
real 194.98
user 187.00
sys 4.79

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/513197/ft1_filtered_4FGL_J0948.9+0022_daily_bin138.fits scfile=/scratch/kocevski/513197/ft2_4FGL_J0948.9+0022_daily_bin138.fits outfile=/scratch/kocevski/513197/cmap_275097601_275356801_4FGL_J0948.9+0022_daily_bin138.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.59
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513197/ft1_filtered_4FGL_J0948.9+0022_daily_bin138.fits scfile=/scratch/kocevski/513197/ft2_4FGL_J0948.9+0022_daily_bin138.fits outfile=/scratch/kocevski/513197/cmap_HighResolution_275097601_275356801_4FGL_J0948.9+0022_daily_bin138.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.58
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.670       1.0000         .10000E-03   10000.    
     2 'norm      '    8.3750       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7839       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      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .23634       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0426       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.041       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .98428       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.263       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11800E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.029       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1381       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80156       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=   6147.447     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2531 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.669        6.0684       -.19207E-07    .11905E-03
   2  norm          8.3745        5.7200        .40653E-07    .15627E-04
   3  Prefactor     .10000E-03    4.7049        .76745E-07** at limit **
   4  Prefactor     .10001E-03    1.8015       -.40185E-06** at limit **
   5  Prefactor     .10000E-03    24.373        .22114E-06** at limit **
   6  Prefactor     4.7827        14.313       -.40535E-07    .57521E-06
   7  Prefactor     .10000E-03    15.133        .35191E-07** at limit **
   8  norm          .10000E-03    .79046        .33898E-07** at limit **
   9  norm          .10000E-03    .26039        .26223E-07** at limit **
  10  norm          .23632        .54202        .35641E-06   -.81497E-04
  11  norm          4.0427        1.8456        .32950E-07   -.29851E-04
  12  Prefactor     .10000E-03    4.9631       -.29245E-06** at limit **
  13  Prefactor     .10000E-03    14.390       -.82818E-07** at limit **
  14  Prefactor     25.024        36.064       -.29636E-06   -.76998E-04
  15  norm          .10000E-03    7.0166       -.49486E-06** at limit **
  16  Prefactor     .98658        19.363        .83474E-05   -.55340E-05
  17  Prefactor     26.216        49.967       -.37558E-05   -.21222E-03
  18  Prefactor     .10000E-03    87.743       -.73938E-06** at limit **
  19  Prefactor     15.997        17.566       -.19353E-05   -.15665E-03
  20  norm          .10000E-03    .37573        .31497E-07** at limit **
  21  Prefactor     .10000E-03    8.2362        .43980E-07** at limit **
  22  Normalizat    1.1383        .19125        .12723E-05   -.24534E-03
  23  Prefactor     .80141        .14876       -.21924E-05    .97945E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 21.6689
  norm       = 8.37447
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 4.78274
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.236323
  norm       = 4.04266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0245
  norm       = 0.0001
  Prefactor  = 0.986577
  Prefactor  = 26.2163
  Prefactor  = 0.0001
  Prefactor  = 15.9967
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13827
  Prefactor  = 0.801408
 **********
 **   18 **HESSE 
 **********

 FCN=   6147.447     FROM HESSE     STATUS=OK           368 CALLS     2899 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.669        6.0625        .86044E-04   -1.4777    
   2  norm          8.3745        5.7199        .13853E-03   -1.5129    
   3  Prefactor     .10000E-03    4.7100        .16609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    6.8724        .19926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.7827        14.243        .18395E-03   -1.5271    
   7  Prefactor     .10000E-03    15.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .79182        .68073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .26209        .39065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .23632        .53517        .80158E-04   -1.5611    
  11  norm          4.0427        1.8460        .69718E-04   -1.5306    
  12  Prefactor     .10000E-03    4.9798        .17056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.024        36.212        .80052E-04   -1.4707    
  15  norm          .10000E-03    7.0396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .98658        20.963        .52440E-02   -1.5509    
  17  Prefactor     26.216        50.854        .78170E-04   -1.4683    
  18  Prefactor     .10000E-03    87.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.997        17.800        .10004E-03   -1.4908    
  20  norm          .10000E-03    .38381        .46910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.5376        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1383        .22457        .24260E-03   -.88532    
  23  Prefactor     .80141        .17290        .22699E-03   -.99676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39171e-07
Minuit parameter uncertainties:
  1  6.06264
  2  5.72024
  3  1.42851e-07
  4  0.000406368
  5  7.603e-06
  6  14.2531
  7  2.26683e-05
  8  2.4365e-07
  9  9.78299e-08
  10  0.53518
  11  1.84604
  12  3.04531e-06
  13  4.18769e-05
  14  36.2435
  15  2.14036e-05
  16  9.09868
  17  50.9385
  18  0.000168629
  19  17.8062
  20  2.69262e-07
  21  1.37351e-05
  22  0.224756
  23  0.173014
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.363e-01  5.352e-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:  8.014e-01  1.730e-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.138e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513197/likelihoodResults_275097601_275356801_4FGL_J0948.9+0022_daily_bin138.txt

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) = 6147.40941381
delta logL = 0.0377618584616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6147.40666197
delta logL = 0.0405136972568

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20513       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9600       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79466       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=   6147.407     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20513        .44905        .16469E-01    .21247E-02
   2  alpha         1.9598        .98345        .42435       -.44412E-04
   3  Normalizat    1.1484        .17842        .54652E-01    .70605E-05
   4  Prefactor     .79467        .14384        .43648E-01    .13085E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.205129
  alpha      = 1.95984
  Normalizat = 1.14837
  Prefactor  = 0.794667
 **********
 **   18 **HESSE 
 **********

 FCN=   6147.407     FROM HESSE     STATUS=OK            35 CALLS      251 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20513        .51299        .71910E-03   -1.5617    
   2  alpha         1.9598        1.4798        .31391E-01   -.21778    
   3  Normalizat    1.1484        .21507        .24166E-03   -.88213    
   4  Prefactor     .79467        .17247        .22784E-03   -.99925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29054e-08
Minuit parameter uncertainties:
  1  0.513004
  2  1.58986
  3  0.215232
  4  0.172584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513197': 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) = 6147.40666196
delta logL = 0.0405137102634

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.051e-01  5.130e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.960e+00  1.590e+00  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:  7.947e-01  1.726e-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.148e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
Ra Dec: 147.244 0.372

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/513197/cmap_HighResolution_275097601_275356801_4FGL_J0948.9+0022_daily_bin138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-05', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-01 02:49:01.455925', job_id='513197', GAL2='0.79', fit_tolerance='1e-08', EG2='1.15', EG='1.14', time_epoch_completed='1630489741.46', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='4.05e-02', ts2='0.32', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='138' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:49:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 513197: <4FGL_J0948.9+0022_daily_bin138> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin138 147.244 0.3717 275097601 275356801 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 :                                   599.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            772 sec.

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

