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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin847
RA = 147.244, Dec = 0.3717
tmin = 458870401, tmax = 459129601
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='518097', job_status='RUN', time_executed='2021-09-01 02:54:20.616746', time_epoch_executed='1630490060.62' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='847'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518097

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518097/ft1_4FGL_J0948.9+0022_daily_bin847.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518097/ft2_4FGL_J0948.9+0022_daily_bin847.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518097/ft1_4FGL_J0948.9+0022_daily_bin847.fits outfile=/scratch/kocevski/518097/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin847.fits ra=147.244 dec=0.3717 rad=12.0 tmin=458870401.0 tmax=459129601.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.59
user 3.33
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/518097/ft1_filtered_4FGL_J0948.9+0022_daily_bin847.fits" evtable="EVENTS" scfile=/scratch/kocevski/518097/ft2_4FGL_J0948.9+0022_daily_bin847.fits sctable="SC_DATA" outfile=/scratch/kocevski/518097/ltcube_458870401_459129601_4FGL_J0948.9+0022_daily_bin847.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/518097/ft2_4FGL_J0948.9+0022_daily_bin847.fits
.....................!
real 12.24
user 11.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518097/ft1_filtered_4FGL_J0948.9+0022_daily_bin847.fits evtable="EVENTS" scfile=/scratch/kocevski/518097/ft2_4FGL_J0948.9+0022_daily_bin847.fits sctable="SC_DATA" expcube=/scratch/kocevski/518097/ltcube_458870401_459129601_4FGL_J0948.9+0022_daily_bin847.fits outfile=/scratch/kocevski/518097/expmap_458870401_459129601_4FGL_J0948.9+0022_daily_bin847.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/518097/ltcube_458870401_459129601_4FGL_J0948.9+0022_daily_bin847.fits
.....................!
real 191.21
user 185.97
sys 4.82

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/518097/ft1_filtered_4FGL_J0948.9+0022_daily_bin847.fits scfile=/scratch/kocevski/518097/ft2_4FGL_J0948.9+0022_daily_bin847.fits outfile=/scratch/kocevski/518097/cmap_458870401_459129601_4FGL_J0948.9+0022_daily_bin847.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518097/ft1_filtered_4FGL_J0948.9+0022_daily_bin847.fits scfile=/scratch/kocevski/518097/ft2_4FGL_J0948.9+0022_daily_bin847.fits outfile=/scratch/kocevski/518097/cmap_HighResolution_458870401_459129601_4FGL_J0948.9+0022_daily_bin847.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1191       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1331       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.741       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5339       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16672       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7031       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4166       1.0000         .10000E-03   10000.    
     9 'norm      '    3.0763       1.0000         .10000E-03   10000.    
    10 'norm      '    .39055       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2192       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.110       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.261       1.0000         .10000E-03   10000.    
    15 'norm      '    13.450       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5475       1.0000         .10000E-03   10000.    
    17 'Prefactor '    54.504       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36141E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.4521       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.636       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1622       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80786       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=   6976.424     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2666 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1200        4.4013       -.69829E-07   -.78533E-04
   2  norm          1.1318        4.7437        .28087E-05    .12382E-03
   3  Prefactor     16.763        16.017       -.41971E-06   -.10102E-03
   4  Prefactor     3.5341        4.2810        .34859E-06    .33296E-04
   5  Prefactor     .10024E-03    20.420        .42402E-06** at limit **
   6  Prefactor     9.7078        12.439       -.28114E-06   -.32756E-04
   7  Prefactor     .10000E-03    8.9007        .85092E-07** at limit **
   8  norm          3.4168        2.6379       -.22484E-07   -.55280E-04
   9  norm          3.0767        1.6665        .16187E-07    .44835E-05
  10  norm          .39035        .51310        .26887E-06    .53669E-03
  11  norm          1.2183        1.8165        .47826E-06    .15337E-03
  12  Prefactor     22.113        17.698        .99796E-07    .29243E-04
  13  Prefactor     .10000E-03    6.8997       -.64195E-08** at limit **
  14  Prefactor     13.262        22.073       -.62752E-07   -.29932E-04
  15  norm          13.450        15.641        .11256E-06    .40882E-04
  16  Prefactor     4.5360        11.137       -.88379E-07    .29271E-04
  17  Prefactor     54.377        69.416       -.42294E-06   -.58348E-04
  18  Prefactor     .10000E-03    72.447       -.32368E-05** at limit **
  19  Prefactor     .10000E-03    9.9388       -.43419E-06** at limit **
  20  norm          2.4520        1.3774        .49171E-07   -.17104E-04
  21  Prefactor     12.637        7.0780        .36053E-07    .23826E-04
  22  Normalizat    1.1617        .21452        .27417E-05   -.25747E-03
  23  Prefactor     .80834        .16035       -.35003E-05   -.84614E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.12003
  norm       = 1.13184
  Prefactor  = 16.7626
  Prefactor  = 3.53408
  Prefactor  = 0.000100237
  Prefactor  = 9.70784
  Prefactor  = 0.0001
  norm       = 3.41676
  norm       = 3.07675
  norm       = 0.390347
  norm       = 1.21835
  Prefactor  = 22.1127
  Prefactor  = 0.0001
  Prefactor  = 13.2623
  norm       = 13.4504
  Prefactor  = 4.53602
  Prefactor  = 54.3775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.45198
  Prefactor  = 12.637
  Normalizat = 1.16167
  Prefactor  = 0.808341
 **********
 **   18 **HESSE 
 **********

 FCN=   6976.424     FROM HESSE     STATUS=OK           390 CALLS     3056 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1200        4.3985        .13130E-03   -1.5174    
   2  norm          1.1318        4.9728        .35630E-03   -1.5495    
   3  Prefactor     16.763        16.019        .97887E-04   -1.4889    
   4  Prefactor     3.5341        4.2954        .17781E-03   -1.5332    
   5  Prefactor     .10024E-03    23.462        .11509       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7078        12.432        .12865E-03   -1.5085    
   7  Prefactor     .10000E-03    8.9079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4168        2.6352        .11512E-03   -1.5338    
   9  norm          3.0767        1.6681        .74916E-04   -1.5357    
  10  norm          .39035        .50078        .64680E-03   -1.5583    
  11  norm          1.2183        1.7904        .13048E-03   -1.5487    
  12  Prefactor     22.113        17.687        .85185E-04   -1.4767    
  13  Prefactor     .10000E-03    6.9011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.262        22.089        .10999E-03   -1.4979    
  15  norm          13.450        15.621        .10922E-03   -1.4974    
  16  Prefactor     4.5360        11.005        .18878E-03   -1.5282    
  17  Prefactor     54.377        69.429        .54332E-04   -1.4232    
  18  Prefactor     .10000E-03    72.619        .21309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.4520        1.3735        .69881E-04   -1.5395    
  21  Prefactor     12.637        7.0840        .11269E-03   -1.4997    
  22  Normalizat    1.1617        .23378        .25888E-03   -.87796    
  23  Prefactor     .80834        .17164        .24134E-03   -.99422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72983e-10
Minuit parameter uncertainties:
  1  4.39866
  2  4.7453
  3  16.0235
  4  4.29581
  5  0.00471626
  6  12.4353
  7  2.159e-06
  8  2.63528
  9  1.66809
  10  0.500787
  11  1.79048
  12  17.6911
  13  1.41488e-06
  14  22.1026
  15  15.6255
  16  11.0096
  17  69.5325
  18  0.000186527
  19  7.70724e-06
  20  1.37347
  21  7.08449
  22  0.233993
  23  0.171756
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.903e-01  5.008e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.453e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  8.083e-01  1.718e-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.162e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/518097/likelihoodResults_458870401_459129601_4FGL_J0948.9+0022_daily_bin847.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) = 6976.39496181
delta logL = 0.0285420386945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6976.39250856
delta logL = 0.0309952881562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35935       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1538       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80261       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=   6976.393     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35909        .81945        .10682E-01    .16787E-02
   2  alpha         2.1538        1.6104        .41661E-01   -.15728E-04
   3  Normalizat    1.1709        .18803        .58333E-01    .88455E-05
   4  Prefactor     .80270        .14379        .43751E-01    .16424E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.35909
  alpha      = 2.15379
  Normalizat = 1.17085
  Prefactor  = 0.802701
 **********
 **   18 **HESSE 
 **********

 FCN=   6976.393     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35909        .52444        .63241E-03   -1.5588    
   2  alpha         2.1538        1.1449        .16665E-02   -.13893    
   3  Normalizat    1.1709        .21508        .25798E-03   -.87508    
   4  Prefactor     .80270        .16983        .24208E-03   -.99629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49857e-12
Minuit parameter uncertainties:
  1  0.524445
  2  1.19026
  3  0.21524
  4  0.169944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518097': 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) = 6976.39250819
delta logL = 0.0309956581514

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.591e-01  5.244e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.154e+00  1.190e+00  0.000e+00  5.000e+00 ( 1.000e+00)
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  8.027e-01  1.699e-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.171e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/518097/cmap_HighResolution_458870401_459129601_4FGL_J0948.9+0022_daily_bin847.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-01 03:06:09.808730', job_id='518097', GAL2='0.80', fit_tolerance='1e-08', EG2='1.17', EG='1.16', time_epoch_completed='1630490769.81', return_code2='0', ts='0.79', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.10e-02', ts2='0.84', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='847' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:06:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 518097: <4FGL_J0948.9+0022_daily_bin847> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin847 147.244 0.3717 458870401 459129601 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 :                                   653.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

