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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin865
RA = 147.244, Dec = 0.3717
tmin = 463536001, tmax = 463795201
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='518142', job_status='RUN', time_executed='2021-09-01 02:51:35.650863', time_epoch_executed='1630489895.65' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='865'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518142

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518142/ft1_4FGL_J0948.9+0022_daily_bin865.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518142/ft2_4FGL_J0948.9+0022_daily_bin865.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518142/ft1_4FGL_J0948.9+0022_daily_bin865.fits outfile=/scratch/kocevski/518142/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin865.fits ra=147.244 dec=0.3717 rad=12.0 tmin=463536001.0 tmax=463795201.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 4.22
user 3.23
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518142/ft1_filtered_4FGL_J0948.9+0022_daily_bin865.fits evtable="EVENTS" scfile=/scratch/kocevski/518142/ft2_4FGL_J0948.9+0022_daily_bin865.fits sctable="SC_DATA" expcube=/scratch/kocevski/518142/ltcube_463536001_463795201_4FGL_J0948.9+0022_daily_bin865.fits outfile=/scratch/kocevski/518142/expmap_463536001_463795201_4FGL_J0948.9+0022_daily_bin865.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/518142/ltcube_463536001_463795201_4FGL_J0948.9+0022_daily_bin865.fits
.....................!
real 192.55
user 185.59
sys 4.77

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/518142/ft1_filtered_4FGL_J0948.9+0022_daily_bin865.fits scfile=/scratch/kocevski/518142/ft2_4FGL_J0948.9+0022_daily_bin865.fits outfile=/scratch/kocevski/518142/cmap_463536001_463795201_4FGL_J0948.9+0022_daily_bin865.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518142/ft1_filtered_4FGL_J0948.9+0022_daily_bin865.fits scfile=/scratch/kocevski/518142/ft2_4FGL_J0948.9+0022_daily_bin865.fits outfile=/scratch/kocevski/518142/cmap_HighResolution_463536001_463795201_4FGL_J0948.9+0022_daily_bin865.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3166       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7757       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7863       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0016       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.602       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0534       1.0000         .10000E-03   10000.    
     9 'norm      '    4.8040       1.0000         .10000E-03   10000.    
    10 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5188       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5001       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .36139E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10750E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.302       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10954E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5964       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12689E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3763       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75163       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=   6780.330     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2228 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3181        4.6454       -.29694E-06   -.20369E-03
   2  norm          2.7765        4.1313       -.29412E-06   -.31892E-03
   3  Prefactor     6.7884        10.335       -.19755E-05   -.10264E-03
   4  Prefactor     .10000E-03    1.5670       -.70404E-07** at limit **
   5  Prefactor     .10000E-03    9.8743        .10176E-04** at limit **
   6  Prefactor     5.0042        9.4418       -.16148E-05   -.12746E-03
   7  Prefactor     16.604        18.516       -.25393E-05    .23371E-05
   8  norm          2.0539        2.4018       -.15817E-06   -.27586E-03
   9  norm          4.8047        1.8254       -.86135E-07   -.52384E-04
  10  norm          .10000E-03    .25625       -.11759E-06** at limit **
  11  norm          2.5190        1.4514       -.39358E-07    .87259E-04
  12  Prefactor     9.4961        11.873        .44689E-05    .16704E-03
  13  Prefactor     .10003E-03    103.93        .12402E-03** at limit **
  14  Prefactor     .10000E-03    41.801       -.12362E-04** at limit **
  15  norm          .10000E-03    9.6898       -.89212E-05** at limit **
  16  Prefactor     .10000E-03    4.6077        .20533E-06** at limit **
  17  Prefactor     12.186        49.727       -.59739E-04    .90474E-05
  18  Prefactor     .10000E-03    32.560        .62433E-05** at limit **
  19  Prefactor     .10000E-03    8.0248        .38308E-06** at limit **
  20  norm          3.5946        1.5780       -.35856E-07    .25989E-04
  21  Prefactor     .10002E-03    4.8745       -.25148E-05** at limit **
  22  Normalizat    1.3762        .19267        .28864E-05   -.39004E-03
  23  Prefactor     .75149        .14714       -.53645E-06   -.92369E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.31813
  norm       = 2.7765
  Prefactor  = 6.78837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.0042
  Prefactor  = 16.6042
  norm       = 2.05386
  norm       = 4.80475
  norm       = 0.0001
  norm       = 2.51899
  Prefactor  = 9.49607
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1863
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.59457
  Prefactor  = 0.000100023
  Normalizat = 1.37621
  Prefactor  = 0.751491
 **********
 **   18 **HESSE 
 **********

 FCN=   6780.330     FROM HESSE     STATUS=OK           372 CALLS     2600 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3181        4.6430        .13491E-03   -1.5167    
   2  norm          2.7765        4.1165        .19775E-03   -1.5375    
   3  Prefactor     6.7884        10.332        .15402E-03   -1.5187    
   4  Prefactor     .10000E-03    1.5927        .10061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.8911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0042        9.4323        .17981E-03   -1.5261    
   7  Prefactor     16.604        18.516        .98297E-04   -1.4893    
   8  norm          2.0539        2.3872        .13383E-03   -1.5421    
   9  norm          4.8047        1.8273        .65372E-04   -1.5270    
  10  norm          .10000E-03    .51951        .80255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5190        1.4533        .73181E-04   -1.5391    
  12  Prefactor     9.4961        11.875        .13002E-03   -1.5092    
  13  Prefactor     .10003E-03    104.15        .42619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.7089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.6392        .17254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.186        49.974        .11421E-03   -1.5010    
  18  Prefactor     .10000E-03    32.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5946        1.5656        .65251E-04   -1.5329    
  21  Prefactor     .10002E-03    14.689        .34534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3762        .22746        .24367E-03   -.81319    
  23  Prefactor     .75149        .17429        .25116E-03   -1.0154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66541e-09
Minuit parameter uncertainties:
  1  4.64319
  2  4.11694
  3  10.3345
  4  4.60637e-06
  5  2.32523e-06
  6  9.43515
  7  18.522
  8  2.38735
  9  1.82727
  10  7.2833e-06
  11  1.45329
  12  11.8784
  13  0.00343689
  14  0.000290046
  15  8.59641e-05
  16  7.83107e-05
  17  49.4267
  18  0.00043094
  19  0.000102016
  20  1.56563
  21  0.00117415
  22  0.22763
  23  0.174419
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  7.283e-06  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.515e-01  1.744e-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.376e+00  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/518142/likelihoodResults_463536001_463795201_4FGL_J0948.9+0022_daily_bin865.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) = 6780.32969856
delta logL = -0.000119360216559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6780.32953371
delta logL = 4.5496911298e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7672       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75148       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6780.330     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      296 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2135        .71664E-03** at limit **
   2  alpha         3.4037        4.2015        .20000        .10732E-06
   3  Normalizat    1.3762        .21919        .24367E-03    .44423E-03
   4  Prefactor     .75149        .17341        .25116E-03    .47080E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 3.40368
  Normalizat = 1.37621
  Prefactor  = 0.751493
 **********
 **   18 **HESSE 
 **********

 FCN=   6780.330     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1507        .14333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.4037        3.2148        .80000E-02    .36984    
   3  Normalizat    1.3762        .21923        .48734E-04   -.81319    
   4  Prefactor     .75149        .17354        .50232E-04   -1.0154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08898e-09
Minuit parameter uncertainties:
  1  6.68844e-05
  2  98.8656
  3  0.219383
  4  0.173669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518142': 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) = 6780.32952669
delta logL = 5.25110899616e-05

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  6.688e-05  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.404e+00  9.887e+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.515e-01  1.737e-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.376e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 147.244 0.372

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/518142/cmap_HighResolution_463536001_463795201_4FGL_J0948.9+0022_daily_bin865.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-05', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-01 03:01:55.208658', job_id='518142', GAL2='0.75', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630490515.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='5.25e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='865' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:01:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 518142: <4FGL_J0948.9+0022_daily_bin865> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin865> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:50:51 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:50:52 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:50:52 2021
Terminated at Wed Sep  1 03:01:56 2021
Results reported at Wed Sep  1 03:01:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin865 147.244 0.3717 463536001 463795201 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 :                                   607.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             354.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            665 sec.

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

