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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin564
RA = 147.244, Dec = 0.3717
tmin = 385516801, tmax = 385776001
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='516439', job_status='RUN', time_executed='2021-09-01 02:48:13.838527', time_epoch_executed='1630489693.84' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='564'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516439

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516439/ft1_4FGL_J0948.9+0022_daily_bin564.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516439/ft2_4FGL_J0948.9+0022_daily_bin564.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516439/ft1_4FGL_J0948.9+0022_daily_bin564.fits outfile=/scratch/kocevski/516439/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin564.fits ra=147.244 dec=0.3717 rad=12.0 tmin=385516801.0 tmax=385776001.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.30
user 4.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516439/ft1_filtered_4FGL_J0948.9+0022_daily_bin564.fits" evtable="EVENTS" scfile=/scratch/kocevski/516439/ft2_4FGL_J0948.9+0022_daily_bin564.fits sctable="SC_DATA" outfile=/scratch/kocevski/516439/ltcube_385516801_385776001_4FGL_J0948.9+0022_daily_bin564.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/516439/ft2_4FGL_J0948.9+0022_daily_bin564.fits
.....................!
real 12.27
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516439/ft1_filtered_4FGL_J0948.9+0022_daily_bin564.fits evtable="EVENTS" scfile=/scratch/kocevski/516439/ft2_4FGL_J0948.9+0022_daily_bin564.fits sctable="SC_DATA" expcube=/scratch/kocevski/516439/ltcube_385516801_385776001_4FGL_J0948.9+0022_daily_bin564.fits outfile=/scratch/kocevski/516439/expmap_385516801_385776001_4FGL_J0948.9+0022_daily_bin564.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/516439/ltcube_385516801_385776001_4FGL_J0948.9+0022_daily_bin564.fits
.....................!
real 195.20
user 190.23
sys 4.27

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/516439/ft1_filtered_4FGL_J0948.9+0022_daily_bin564.fits scfile=/scratch/kocevski/516439/ft2_4FGL_J0948.9+0022_daily_bin564.fits outfile=/scratch/kocevski/516439/cmap_385516801_385776001_4FGL_J0948.9+0022_daily_bin564.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 14.82
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516439/ft1_filtered_4FGL_J0948.9+0022_daily_bin564.fits scfile=/scratch/kocevski/516439/ft2_4FGL_J0948.9+0022_daily_bin564.fits outfile=/scratch/kocevski/516439/cmap_HighResolution_385516801_385776001_4FGL_J0948.9+0022_daily_bin564.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2517       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.813       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.046       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.1865       1.0000         .10000E-03   10000.    
     9 'norm      '    3.8014       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7524       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5796       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5395       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.490       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0311       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45291       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.150       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .20563       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0870       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .61670       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=   6005.105     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2613 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4143        .16242E-07** at limit **
   2  norm          .10000E-03    3.3414        .33542E-07** at limit **
   3  Prefactor     .22039        14.416        .16960E-05   -.91693E-04
   4  Prefactor     7.2518        4.1017        .26482E-06   -.79772E-04
   5  Prefactor     38.890        38.321        .52980E-06   -.46079E-04
   6  Prefactor     11.047        11.687       -.67975E-07   -.54736E-04
   7  Prefactor     .10000E-03    22.207        .26333E-06** at limit **
   8  norm          5.1858        3.2773        .46184E-07   -.58696E-04
   9  norm          3.8014        1.5928        .14884E-06   -.10108E-03
  10  norm          2.7524        .73216        .64435E-07   -.48741E-03
  11  norm          1.5794        1.1589        .23068E-07    .26566E-04
  12  Prefactor     9.5388        8.8056       -.47205E-06   -.10498E-03
  13  Prefactor     .10000E-03    15.141       -.69084E-07** at limit **
  14  Prefactor     43.477        28.422        .77019E-06   -.29364E-04
  15  norm          2.0261        17.226        .11246E-05   -.10111E-04
  16  Prefactor     .47178        8.5000        .92498E-07    .14135E-03
  17  Prefactor     30.128        41.755       -.10957E-06   -.42855E-04
  18  Prefactor     .10000E-03    62.356       -.13244E-05** at limit **
  19  Prefactor     .10000E-03    10.016       -.18561E-06** at limit **
  20  norm          .20546        .79199        .58928E-06   -.34006E-03
  21  Prefactor     .10000E-03    5.2476        .27137E-08** at limit **
  22  Normalizat    1.0868        .20749       -.43043E-05   -.18780E-03
  23  Prefactor     .61692        .14460        .15818E-05   -.38775E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.220389
  Prefactor  = 7.25181
  Prefactor  = 38.89
  Prefactor  = 11.0467
  Prefactor  = 0.0001
  norm       = 5.18579
  norm       = 3.80137
  norm       = 2.75235
  norm       = 1.57944
  Prefactor  = 9.53878
  Prefactor  = 0.0001
  Prefactor  = 43.4774
  norm       = 2.02606
  Prefactor  = 0.471785
  Prefactor  = 30.128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.20546
  Prefactor  = 0.0001
  Normalizat = 1.08683
  Prefactor  = 0.616916
 **********
 **   18 **HESSE 
 **********

 FCN=   6005.105     FROM HESSE     STATUS=OK           384 CALLS     2997 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4285        .90008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.3719        .13833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22039        24.410        .76396E-01   -1.5614    
   4  Prefactor     7.2518        4.1071        .11150E-03   -1.5169    
   5  Prefactor     38.890        41.107        .64335E-04   -1.4460    
   6  Prefactor     11.047        11.682        .12054E-03   -1.5043    
   7  Prefactor     .10000E-03    22.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.1858        3.2775        .10761E-03   -1.5252    
   9  norm          3.8014        1.5943        .60351E-04   -1.5318    
  10  norm          2.7524        .73195        .32283E-04   -1.5376    
  11  norm          1.5794        1.1642        .69451E-04   -1.5457    
  12  Prefactor     9.5388        8.8534        .12975E-03   -1.5090    
  13  Prefactor     .10000E-03    15.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     43.477        28.447        .60791E-04   -1.4388    
  15  norm          2.0261        16.984        .29027E-03   -1.5423    
  16  Prefactor     .47178        37.474        .39397E-02   -1.5571    
  17  Prefactor     30.128        41.776        .72968E-04   -1.4610    
  18  Prefactor     .10000E-03    62.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .20546        1.1357        .12469E-02   -1.5617    
  21  Prefactor     .10000E-03    5.4650        .34647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0868        .22590        .23534E-03   -.90176    
  23  Prefactor     .61692        .16205        .23769E-03   -1.0688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99957e-08
Minuit parameter uncertainties:
  1  5.34986e-06
  2  1.06565e-05
  3  4.63972
  4  4.1073
  5  41.1368
  6  11.6846
  7  4.49807e-05
  8  3.2776
  9  1.5943
  10  0.731955
  11  1.16419
  12  8.85457
  13  1.23321e-05
  14  28.4555
  15  11.7364
  16  8.41398
  17  41.8169
  18  0.000119543
  19  1.93329e-05
  20  0.965903
  21  2.97183e-05
  22  0.226097
  23  0.162176
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.752e+00  7.320e-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:  6.169e-01  1.622e-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.087e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.61
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.11e-07 +/- 5.62e-08
Energy Flux (Fixed Index): 5.27e-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) = 6004.25748473
delta logL = 0.847638208963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6004.2137939
delta logL = 0.89132904087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5196       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9907       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65947       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=   6004.214     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5198        9.2575        .64343E-02    .14769E-03
   2  alpha         2.9905        3.8989        .25824        .64945E-05
   3  Normalizat    1.0267        .18541        .42506E-01    .89711E-05
   4  Prefactor     .65949        .23201        .41859E-01    .17289E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.51979
  alpha      = 2.9905
  Normalizat = 1.02671
  Prefactor  = 0.659486
 **********
 **   18 **HESSE 
 **********

 FCN=   6004.214     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .40E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5198        .75728        .30052E-04   -1.5390    
   2  alpha         2.9905        .44275        .11231E-02    .19748    
   3  Normalizat    1.0267        .20980        .24098E-03   -.92141    
   4  Prefactor     .65949        .16321        .23083E-03   -1.0514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97537e-15
Minuit parameter uncertainties:
  1  0.757286
  2  0.445192
  3  0.209972
  4  0.163331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516439': 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) = 6004.21379376
delta logL = 0.891329180963

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.520e+00  7.573e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.991e+00  4.452e-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:  6.595e-01  1.633e-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.027e+00  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.37
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.99 +/- 0.45
Photon Flux (Free Index): 2.45e-07 +/- 6.57e-08
Energy Flux (Free Index): 4.74e-05 +/- 1.29e-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/516439/cmap_HighResolution_385516801_385776001_4FGL_J0948.9+0022_daily_bin564.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.11e-07', energy_flux2='4.74e-05', photon_flux_error='5.62e-08', dlogl='8.91e-01', energy_flux='5.27e-05', photon_flux2='2.45e-07', job_status='DONE', time_completed='2021-09-01 02:58:02.386322', photon_index_error2='0.45', photon_index2='2.99', ts='27.61', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='1.09', time_epoch_completed='1630490282.39', return_code='0', job_id='516439', GAL2='0.66', EG2='1.03', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='6.57e-08', ts2='29.37', photon_index='2.45' WHERE bin_id='564' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:58:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 516439: <4FGL_J0948.9+0022_daily_bin564> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin564> 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) <bullet0080>, 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:02 2021
Results reported at Wed Sep  1 02:58:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin564 147.244 0.3717 385516801 385776001 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 :                                   556.30 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             304.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            727 sec.

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

