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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin454
RA = 147.244, Dec = 0.3717
tmin = 357004801, tmax = 357264001
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='514885', job_status='RUN', time_executed='2021-09-01 02:45:36.167956', time_epoch_executed='1630489536.17' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514885

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514885/ft1_4FGL_J0948.9+0022_daily_bin454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514885/ft2_4FGL_J0948.9+0022_daily_bin454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514885/ft1_4FGL_J0948.9+0022_daily_bin454.fits outfile=/scratch/kocevski/514885/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin454.fits ra=147.244 dec=0.3717 rad=12.0 tmin=357004801.0 tmax=357264001.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.94
user 3.72
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514885/ft1_filtered_4FGL_J0948.9+0022_daily_bin454.fits evtable="EVENTS" scfile=/scratch/kocevski/514885/ft2_4FGL_J0948.9+0022_daily_bin454.fits sctable="SC_DATA" expcube=/scratch/kocevski/514885/ltcube_357004801_357264001_4FGL_J0948.9+0022_daily_bin454.fits outfile=/scratch/kocevski/514885/expmap_357004801_357264001_4FGL_J0948.9+0022_daily_bin454.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/514885/ltcube_357004801_357264001_4FGL_J0948.9+0022_daily_bin454.fits
.....................!
real 191.35
user 186.03
sys 4.61

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/514885/ft1_filtered_4FGL_J0948.9+0022_daily_bin454.fits scfile=/scratch/kocevski/514885/ft2_4FGL_J0948.9+0022_daily_bin454.fits outfile=/scratch/kocevski/514885/cmap_357004801_357264001_4FGL_J0948.9+0022_daily_bin454.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7513       1.0000         .10000E-03   10000.    
     2 'norm      '    38.878       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14491E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.648       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3315       1.0000         .10000E-03   10000.    
     9 'norm      '    .11120E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5034       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8524       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5116       1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.426       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .14192E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3851       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3601       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .73375       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=   5779.955     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2592 TOTAL
                     EDM=   .60E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7496        5.6916       -.18210E-06    .15775E-04
   2  norm          38.876        12.298        .22327E-07    .18127E-04
   3  Prefactor     .10000E-03    7.0146       -.11223E-06** at limit **
   4  Prefactor     .10001E-03    2.5635       -.71271E-07** at limit **
   5  Prefactor     .10000E-03    30.602       -.73509E-05** at limit **
   6  Prefactor     29.641        19.402        .30051E-06    .19058E-04
   7  Prefactor     .10000E-03    36.444        .92629E-05** at limit **
   8  norm          1.3310        3.6609       -.26298E-07   -.22647E-04
   9  norm          .10000E-03    .69303        .28817E-07** at limit **
  10  norm          1.5032        .83147       -.96586E-08    .17742E-04
  11  norm          1.8522        1.7633       -.71236E-08   -.72296E-05
  12  Prefactor     5.5108        6.6910        .44038E-07   -.15342E-05
  13  Prefactor     70.427        52.831        .16668E-07    .30973E-05
  14  Prefactor     .10000E-03    14.327       -.74552E-06** at limit **
  15  norm          .10000E-03    4.4392       -.18674E-07** at limit **
  16  Prefactor     .10000E-03    2.8908        .22324E-07** at limit **
  17  Prefactor     .10000E-03    20.567        .49015E-05** at limit **
  18  Prefactor     .10000E-03    22.777       -.38438E-05** at limit **
  19  Prefactor     .10000E-03    5.5094        .68944E-07** at limit **
  20  norm          .10000E-03    .68253       -.13425E-07** at limit **
  21  Prefactor     1.3843        .74549        .11751E-07   -.20939E-03
  22  Normalizat    1.3603        .21716       -.35603E-07    .96779E-05
  23  Prefactor     .73370        .15841       -.23846E-08    .85542E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.74961
  norm       = 38.8762
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 29.6413
  Prefactor  = 0.0001
  norm       = 1.33098
  norm       = 0.0001
  norm       = 1.50324
  norm       = 1.85224
  Prefactor  = 5.51077
  Prefactor  = 70.4267
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.3843
  Normalizat = 1.36028
  Prefactor  = 0.7337
 **********
 **   18 **HESSE 
 **********

 FCN=   5779.955     FROM HESSE     STATUS=OK           376 CALLS     2968 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7496        5.6615        .15442E-03   -1.5188    
   2  norm          38.876        12.292        .32141E-03   -1.4460    
   3  Prefactor     .10000E-03    7.0247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    63.513        .22716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.641        19.341        .73582E-04   -1.4619    
   7  Prefactor     .10000E-03    36.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3310        3.6191        .22993E-03   -1.5477    
   9  norm          .10000E-03    11.332        .11928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5032        .82162        .47857E-04   -1.5463    
  11  norm          1.8522        1.7564        .94614E-04   -1.5436    
  12  Prefactor     5.5108        6.6917        .17114E-03   -1.5238    
  13  Prefactor     70.427        52.889        .23917E-03   -1.4028    
  14  Prefactor     .10000E-03    14.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.4439        .15644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8971        .12623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5212        .17428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.2560        .12062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3843        9.2238        .18478E-02   -1.5473    
  22  Normalizat    1.3603        .24740        .25439E-03   -.81784    
  23  Prefactor     .73370        .18495        .25632E-03   -1.0222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2328e-10
Minuit parameter uncertainties:
  1  5.66195
  2  12.2932
  3  6.1878e-07
  4  0.00166385
  5  1.56525e-05
  6  19.3451
  7  2.92647e-05
  8  3.61969
  9  0.000143023
  10  0.821631
  11  1.75646
  12  6.69259
  13  52.9242
  14  3.74646e-07
  15  9.16e-08
  16  3.17949e-07
  17  1.35641e-07
  18  3.80293e-06
  19  8.59226e-07
  20  2.58009e-05
  21  7.14797
  22  0.24762
  23  0.185101
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.503e+00  8.216e-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:  7.337e-01  1.851e-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.360e+00  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.02
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 6.30e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 1.57e-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) = 5779.42969561
delta logL = 0.52520294868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5779.4287604
delta logL = 0.526138157657

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5313       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1228       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76637       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=   5779.429     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5314        15.581        .86219E-02   -.19213E-03
   2  alpha         3.1228        2.8923        .42894        .14976E-04
   3  Normalizat    1.3044        .12282        .58473E-01    .50894E-05
   4  Prefactor     .76639        .13293        .43278E-01    .15101E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.53141
  alpha      = 3.12285
  Normalizat = 1.30438
  Prefactor  = 0.766392
 **********
 **   18 **HESSE 
 **********

 FCN=   5779.429     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5314        .82397        .42897E-04   -1.5460    
   2  alpha         3.1228        .71500        .18324E-01    .25179    
   3  Normalizat    1.3044        .24604        .25858E-03   -.83436    
   4  Prefactor     .76639        .18592        .25132E-03   -1.0098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.236e-11
Minuit parameter uncertainties:
  1  0.823971
  2  0.725824
  3  0.24626
  4  0.186069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514885': 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) = 5779.42876038
delta logL = 0.526138179366

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.531e+00  8.240e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.123e+00  7.258e-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:  7.664e-01  1.861e-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.304e+00  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.14
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.12 +/- 0.73
Photon Flux (Free Index): 1.60e-07 +/- 8.14e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.45e-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/514885/cmap_HighResolution_357004801_357264001_4FGL_J0948.9+0022_daily_bin454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='2.95e-05', photon_flux_error='6.30e-08', dlogl='5.26e-01', energy_flux='2.88e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-01 02:54:40.054145', photon_index_error2='0.73', photon_index2='3.12', ts='5.02', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.36', time_epoch_completed='1630490080.05', return_code='0', job_id='514885', GAL2='0.77', EG2='1.30', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='8.14e-08', ts2='6.14', photon_index='2.45' WHERE bin_id='454' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:54:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 514885: <4FGL_J0948.9+0022_daily_bin454> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin454 147.244 0.3717 357004801 357264001 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 :                                   537.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            817 sec.

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

