/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 9 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin527
RA = 147.244, Dec = 0.3717
tmin = 375926401, tmax = 376185601
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='515015', job_status='RUN', time_executed='2021-09-01 02:41:43.243329', time_epoch_executed='1630489303.24' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='527'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515015

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515015/ft1_4FGL_J0948.9+0022_daily_bin527.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515015/ft2_4FGL_J0948.9+0022_daily_bin527.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515015/ft1_4FGL_J0948.9+0022_daily_bin527.fits outfile=/scratch/kocevski/515015/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin527.fits ra=147.244 dec=0.3717 rad=12.0 tmin=375926401.0 tmax=376185601.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.48
user 3.18
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515015/ft1_filtered_4FGL_J0948.9+0022_daily_bin527.fits evtable="EVENTS" scfile=/scratch/kocevski/515015/ft2_4FGL_J0948.9+0022_daily_bin527.fits sctable="SC_DATA" expcube=/scratch/kocevski/515015/ltcube_375926401_376185601_4FGL_J0948.9+0022_daily_bin527.fits outfile=/scratch/kocevski/515015/expmap_375926401_376185601_4FGL_J0948.9+0022_daily_bin527.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/515015/ltcube_375926401_376185601_4FGL_J0948.9+0022_daily_bin527.fits
.....................!
real 191.54
user 186.29
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/515015/ft1_filtered_4FGL_J0948.9+0022_daily_bin527.fits scfile=/scratch/kocevski/515015/ft2_4FGL_J0948.9+0022_daily_bin527.fits outfile=/scratch/kocevski/515015/cmap_375926401_376185601_4FGL_J0948.9+0022_daily_bin527.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.63
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515015/ft1_filtered_4FGL_J0948.9+0022_daily_bin527.fits scfile=/scratch/kocevski/515015/ft2_4FGL_J0948.9+0022_daily_bin527.fits outfile=/scratch/kocevski/515015/cmap_HighResolution_375926401_376185601_4FGL_J0948.9+0022_daily_bin527.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2788       1.0000         .10000E-03   10000.    
     2 'norm      '    15.447       1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.417       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26715       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3440       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.669       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0492       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6709       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7313       1.0000         .10000E-03   10000.    
    11 'norm      '    .21994       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0261       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13989E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.765       1.0000         .10000E-03   10000.    
    15 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .87990       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .41666       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3877       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=   7527.999     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2681 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2787        4.3007       -.40633E-06    .29077E-04
   2  norm          15.447        7.5227        .45425E-06   -.21441E-03
   3  Prefactor     30.418        20.003       -.53272E-06    .28923E-04
   4  Prefactor     .27741        1.4707       -.71706E-06   -.95858E-05
   5  Prefactor     .10000E-03    38.968       -.12788E-05** at limit **
   6  Prefactor     1.3309        29.239       -.63053E-05   -.19915E-03
   7  Prefactor     33.667        28.525       -.16873E-05    .92628E-04
   8  norm          1.0500        2.2287       -.55958E-06   -.12940E-02
   9  norm          1.6707        1.2135       -.33084E-06   -.40987E-03
  10  norm          2.7313        .73851       -.65686E-07    .84503E-03
  11  norm          .22126        1.0731       -.81132E-06   -.67310E-03
  12  Prefactor     3.0309        10.039       -.30176E-05   -.13285E-03
  13  Prefactor     .10000E-03    54.976        .46010E-05** at limit **
  14  Prefactor     31.745        31.997       -.14087E-04    .60096E-03
  15  norm          .10000E-03    22.837       -.20693E-06** at limit **
  16  Prefactor     .10000E-03    4.0354        .71919E-08** at limit **
  17  Prefactor     .10000E-03    56.509        .12414E-05** at limit **
  18  Prefactor     .10000E-03    15.377       -.56889E-06** at limit **
  19  Prefactor     .10000E-03    4.4000       -.47414E-06** at limit **
  20  norm          .87996        1.0803       -.21260E-06   -.12391E-02
  21  Prefactor     .10000E-03    3.9237        .21385E-06** at limit **
  22  Normalizat    .41686        .20267        .60879E-05    .30634E-03
  23  Prefactor     1.3875        .15897       -.32551E-06    .50771E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.27868
  norm       = 15.4468
  Prefactor  = 30.4181
  Prefactor  = 0.277411
  Prefactor  = 0.0001
  Prefactor  = 1.33089
  Prefactor  = 33.6674
  norm       = 1.05002
  norm       = 1.67074
  norm       = 2.73125
  norm       = 0.221261
  Prefactor  = 3.0309
  Prefactor  = 0.0001
  Prefactor  = 31.7447
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.879962
  Prefactor  = 0.0001
  Normalizat = 0.416862
  Prefactor  = 1.38745
 **********
 **   18 **HESSE 
 **********

 FCN=   7527.999     FROM HESSE     STATUS=OK           378 CALLS     3059 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2787        4.2882        .13149E-03   -1.5168    
   2  norm          15.447        7.5091        .10191E-03   -1.4922    
   3  Prefactor     30.418        19.928        .72648E-04   -1.4604    
   4  Prefactor     .27741        5.1493        .19786E-02   -1.5603    
   5  Prefactor     .10000E-03    39.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3309        30.565        .37784E-03   -1.5477    
   7  Prefactor     33.667        28.484        .69060E-04   -1.4547    
   8  norm          1.0500        1.7329        .18441E-02   -1.5503    
   9  norm          1.6707        1.2047        .76750E-04   -1.5449    
  10  norm          2.7313        .73402        .35984E-04   -1.5377    
  11  norm          .22126        2.0006        .17262E-02   -1.5614    
  12  Prefactor     3.0309        10.055        .23328E-03   -1.5360    
  13  Prefactor     .10000E-03    55.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.745        31.302        .71094E-04   -1.4581    
  15  norm          .10000E-03    23.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.0706        .17011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    56.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4040        .17773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .87996        .99177        .95381E-03   -1.5520    
  21  Prefactor     .10000E-03    4.0646        .33536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .41686        .20681        .39775E-03   -1.1644    
  23  Prefactor     1.3875        .16729        .19429E-03   -.80743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62079e-08
Minuit parameter uncertainties:
  1  4.28839
  2  7.50951
  3  19.9322
  4  2.39018
  5  6.32989e-05
  6  12.7628
  7  28.4953
  8  1.73295
  9  1.20475
  10  0.734024
  11  1.3304
  12  10.0608
  13  0.000191051
  14  31.3182
  15  0.000171208
  16  3.94244e-06
  17  0.000210101
  18  2.16465e-05
  19  9.87139e-06
  20  0.991787
  21  9.46331e-06
  22  0.20719
  23  0.167357
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.731e+00  7.340e-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.387e+00  1.674e-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:  4.169e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.36
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.10e-07 +/- 5.63e-08
Energy Flux (Fixed Index): 5.23e-05 +/- 1.40e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7527.47187814
delta logL = 0.526852049616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7527.46418469
delta logL = 0.53454550286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5443       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1270       1.0000          .0000       5.0000    
     3 'Normalizat'    .46330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3603       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=   7527.464     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      201 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5443        .70766        .64003E-02    .40413E-02
   2  alpha         2.1270        .27142        .21423       -.20511E-04
   3  Normalizat    .46331        .18389        .85425E-01    .52676E-04
   4  Prefactor     1.3603        .15457        .31634E-01   -.73836E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.54428
  alpha      = 2.12703
  Normalizat = 0.463305
  Prefactor  = 1.36026
 **********
 **   18 **HESSE 
 **********

 FCN=   7527.464     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5443        .76929        .36218E-04   -1.5389    
   2  alpha         2.1270        .30618        .91599E-02   -.14975    
   3  Normalizat    .46331        .19840        .37844E-03   -1.1415    
   4  Prefactor     1.3603        .16627        .19591E-03   -.81532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71636e-10
Minuit parameter uncertainties:
  1  0.769297
  2  0.30697
  3  0.198704
  4  0.166336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515015': 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) = 7527.46418469
delta logL = 0.53454550449

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.544e+00  7.693e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.127e+00  3.070e-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.360e+00  1.663e-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:  4.633e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.08
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.13 +/- 0.31
Photon Flux (Free Index): 1.77e-07 +/- 5.96e-08
Energy Flux (Free Index): 5.59e-05 +/- 1.59e-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/515015/cmap_HighResolution_375926401_376185601_4FGL_J0948.9+0022_daily_bin527.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.10e-07', energy_flux2='5.59e-05', photon_flux_error='5.63e-08', dlogl='5.35e-01', energy_flux='5.23e-05', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-09-01 02:52:29.997277', photon_index_error2='0.31', photon_index2='2.13', ts='29.36', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.42', time_epoch_completed='1630489950.0', return_code='0', job_id='515015', GAL2='1.36', EG2='0.46', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='5.96e-08', ts2='30.08', photon_index='2.45' WHERE bin_id='527' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:52:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 515015: <4FGL_J0948.9+0022_daily_bin527> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin527 147.244 0.3717 375926401 376185601 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 :                                   605.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             327.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            678 sec.

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

