/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 4 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 = 7683
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin378
RA = 147.244, Dec = 0.3717
tmin = 337305601, tmax = 337564801
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='514780', job_status='RUN', time_executed='2021-09-01 02:41:57.926769', time_epoch_executed='1630489317.93' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514780

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514780/ft1_4FGL_J0948.9+0022_daily_bin378.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514780/ft2_4FGL_J0948.9+0022_daily_bin378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514780/ft1_4FGL_J0948.9+0022_daily_bin378.fits outfile=/scratch/kocevski/514780/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin378.fits ra=147.244 dec=0.3717 rad=12.0 tmin=337305601.0 tmax=337564801.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 7.81
user 7.39
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514780/ft1_filtered_4FGL_J0948.9+0022_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/514780/ft2_4FGL_J0948.9+0022_daily_bin378.fits sctable="SC_DATA" expcube=/scratch/kocevski/514780/ltcube_337305601_337564801_4FGL_J0948.9+0022_daily_bin378.fits outfile=/scratch/kocevski/514780/expmap_337305601_337564801_4FGL_J0948.9+0022_daily_bin378.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/514780/ltcube_337305601_337564801_4FGL_J0948.9+0022_daily_bin378.fits
.....................!
real 191.53
user 185.47
sys 4.28

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/514780/ft1_filtered_4FGL_J0948.9+0022_daily_bin378.fits scfile=/scratch/kocevski/514780/ft2_4FGL_J0948.9+0022_daily_bin378.fits outfile=/scratch/kocevski/514780/cmap_337305601_337564801_4FGL_J0948.9+0022_daily_bin378.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    21.993       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.343       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4552       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1561       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .23846E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.1737       1.0000         .10000E-03   10000.    
    11 'norm      '    .47059       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.699       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.599       1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.558       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1401       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    114.40       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5881       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2796       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0867       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99852       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=   8067.281     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2550 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5234        .30605E-07** at limit **
   2  norm          21.994        8.7047        .14681E-06   -.23074E-03
   3  Prefactor     10.345        15.457        .17414E-05    .27830E-05
   4  Prefactor     3.4560        2.7535        .46009E-06   -.39886E-02
   5  Prefactor     .10000E-03    10.667        .24672E-05** at limit **
   6  Prefactor     4.1572        8.1321        .23944E-06   -.91731E-03
   7  Prefactor     .10000E-03    7.0774        .66259E-06** at limit **
   8  norm          .10002E-03    1.7370       -.31248E-06** at limit **
   9  norm          .10000E-03    .21416        .17666E-07** at limit **
  10  norm          1.1738        .53928        .35746E-07   -.31513E-03
  11  norm          .47036        1.0958        .16817E-06    .22552E-03
  12  Prefactor     15.704        12.316        .13651E-05    .76931E-04
  13  Prefactor     12.604        27.363        .73361E-05    .45503E-04
  14  Prefactor     58.560        37.362        .18968E-05    .19560E-04
  15  norm          3.1400        10.896       -.39245E-05   -.94935E-04
  16  Prefactor     .10000E-03    2.6529       -.62326E-07** at limit **
  17  Prefactor     114.41        52.373        .90219E-05    .15424E-03
  18  Prefactor     .10000E-03    13.904       -.62454E-06** at limit **
  19  Prefactor     .10000E-03    5.0330       -.12716E-06** at limit **
  20  norm          1.5880        1.1928       -.20740E-07   -.27871E-03
  21  Prefactor     2.2799        2.9089        .32737E-07   -.25852E-02
  22  Normalizat    1.0861        .18326       -.29368E-05    .12761E-03
  23  Prefactor     .99905        .14177        .28424E-06   -.10405E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 21.9938
  Prefactor  = 10.3445
  Prefactor  = 3.45602
  Prefactor  = 0.0001
  Prefactor  = 4.15715
  Prefactor  = 0.0001
  norm       = 0.000100016
  norm       = 0.0001
  norm       = 1.1738
  norm       = 0.470357
  Prefactor  = 15.7043
  Prefactor  = 12.6036
  Prefactor  = 58.56
  norm       = 3.14004
  Prefactor  = 0.0001
  Prefactor  = 114.411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.58798
  Prefactor  = 2.27994
  Normalizat = 1.08612
  Prefactor  = 0.999051
 **********
 **   18 **HESSE 
 **********

 FCN=   8067.281     FROM HESSE     STATUS=OK           378 CALLS     2928 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5477        .10822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.994        8.7208        .42705E-03   -1.4770    
   3  Prefactor     10.345        15.445        .12459E-03   -1.5065    
   4  Prefactor     3.4560        3.8471        .85979E-03   -1.5336    
   5  Prefactor     .10000E-03    10.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1572        8.4892        .98855E-03   -1.5300    
   7  Prefactor     .10000E-03    7.0795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10002E-03    9.0944        .22683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .21680        .40575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.1738        .53239        .42302E-04   -1.5491    
  11  norm          .47036        .86944        .13912E-02   -1.5571    
  12  Prefactor     15.704        12.298        .10108E-03   -1.4915    
  13  Prefactor     12.604        27.313        .11285E-03   -1.4998    
  14  Prefactor     58.560        37.432        .52427E-04   -1.4176    
  15  norm          3.1400        10.859        .22876E-03   -1.5354    
  16  Prefactor     .10000E-03    2.6592        .14286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     114.41        52.386        .37614E-04   -1.3565    
  18  Prefactor     .10000E-03    13.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5880        1.1802        .81263E-04   -1.5456    
  21  Prefactor     2.2799        3.3799        .97772E-03   -1.5406    
  22  Normalizat    1.0861        .22223        .27218E-03   -.90199    
  23  Prefactor     .99905        .17005        .23101E-03   -.92761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38873e-08
Minuit parameter uncertainties:
  1  4.96822e-06
  2  8.72127
  3  15.4512
  4  3.8474
  5  3.56183e-05
  6  8.49163
  7  9.69301e-06
  8  0.000762825
  9  6.23325e-07
  10  0.532393
  11  0.86946
  12  12.2997
  13  27.3398
  14  37.4467
  15  10.8654
  16  1.57187e-05
  17  52.4073
  18  5.45666e-05
  19  1.64027e-05
  20  1.18023
  21  3.38021
  22  0.222423
  23  0.170143
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.174e+00  5.324e-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:  9.991e-01  1.701e-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.086e+00  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.21
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 9.01e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.02e-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) = 8067.19861122
delta logL = 0.0828872632037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8067.19431084
delta logL = 0.0871876409283

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1076       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2078       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98749       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=   8067.194     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1085        .56257        .95482E-02    .38435E-03
   2  alpha         2.2080        .47421        .41208       -.42383E-04
   3  Normalizat    1.1061        .17296        .61062E-01   -.20808E-04
   4  Prefactor     .98698        .14147        .46111E-01    .24824E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10849
  alpha      = 2.20798
  Normalizat = 1.10611
  Prefactor  = 0.986981
 **********
 **   18 **HESSE 
 **********

 FCN=   8067.194     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1085        .56656        .42666E-04   -1.5497    
   2  alpha         2.2080        .56798        .15566E-01   -.11708    
   3  Normalizat    1.1061        .21050        .27007E-03   -.89556    
   4  Prefactor     .98698        .17002        .23223E-03   -.93165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37489e-11
Minuit parameter uncertainties:
  1  0.566566
  2  0.57305
  3  0.210663
  4  0.170111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514780': 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) = 8067.19430412
delta logL = 0.0871943637312

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.108e+00  5.666e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.208e+00  5.730e-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:  9.870e-01  1.701e-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.106e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.21 +/- 0.57
Photon Flux (Free Index): 7.89e-08 +/- 4.63e-08
Energy Flux (Free Index): 2.33e-05 +/- 1.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/514780/cmap_HighResolution_337305601_337564801_4FGL_J0948.9+0022_daily_bin378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.01e-08', energy_flux2='2.33e-05', photon_flux_error='4.08e-08', dlogl='8.72e-02', energy_flux='2.25e-05', photon_flux2='7.89e-08', job_status='DONE', time_completed='2021-09-01 02:53:40.984004', photon_index_error2='0.57', photon_index2='2.21', ts='9.21', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='1.09', time_epoch_completed='1630490020.98', return_code='0', job_id='514780', GAL2='0.99', EG2='1.11', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.63e-08', ts2='9.32', photon_index='2.45' WHERE bin_id='378' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:53:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 514780: <4FGL_J0948.9+0022_daily_bin378> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin378 147.244 0.3717 337305601 337564801 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 :                                   654.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            768 sec.

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

