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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin774
RA = 147.244, Dec = 0.3717
tmin = 439948801, tmax = 440208001
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='516767', job_status='RUN', time_executed='2021-09-01 02:49:08.627749', time_epoch_executed='1630489748.63' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516767

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516767/ft1_4FGL_J0948.9+0022_daily_bin774.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516767/ft2_4FGL_J0948.9+0022_daily_bin774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516767/ft1_4FGL_J0948.9+0022_daily_bin774.fits outfile=/scratch/kocevski/516767/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin774.fits ra=147.244 dec=0.3717 rad=12.0 tmin=439948801.0 tmax=440208001.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.92
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516767/ft1_filtered_4FGL_J0948.9+0022_daily_bin774.fits" evtable="EVENTS" scfile=/scratch/kocevski/516767/ft2_4FGL_J0948.9+0022_daily_bin774.fits sctable="SC_DATA" outfile=/scratch/kocevski/516767/ltcube_439948801_440208001_4FGL_J0948.9+0022_daily_bin774.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/516767/ft2_4FGL_J0948.9+0022_daily_bin774.fits
.....................!
real 12.10
user 11.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516767/ft1_filtered_4FGL_J0948.9+0022_daily_bin774.fits evtable="EVENTS" scfile=/scratch/kocevski/516767/ft2_4FGL_J0948.9+0022_daily_bin774.fits sctable="SC_DATA" expcube=/scratch/kocevski/516767/ltcube_439948801_440208001_4FGL_J0948.9+0022_daily_bin774.fits outfile=/scratch/kocevski/516767/expmap_439948801_440208001_4FGL_J0948.9+0022_daily_bin774.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/516767/ltcube_439948801_440208001_4FGL_J0948.9+0022_daily_bin774.fits
.....................!
real 192.42
user 186.30
sys 4.76

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/516767/ft1_filtered_4FGL_J0948.9+0022_daily_bin774.fits scfile=/scratch/kocevski/516767/ft2_4FGL_J0948.9+0022_daily_bin774.fits outfile=/scratch/kocevski/516767/cmap_439948801_440208001_4FGL_J0948.9+0022_daily_bin774.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.53
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.2489       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21430E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3226       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11716E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5914       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3355       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9736       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.654       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.645       1.0000         .10000E-03   10000.    
    15 'norm      '    .10764E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10951E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.163       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13841E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7484       1.0000         .10000E-03   10000.    
    20 'norm      '    5.2123       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28981       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5267       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .76011       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=   7770.247     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2564 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3815       -.20247E-06** at limit **
   2  norm          4.2492        4.4071       -.34967E-05   -.17483E-03
   3  Prefactor     .10002E-03    9.9545       -.13002E-05** at limit **
   4  Prefactor     1.3228        3.2089       -.18403E-05   -.12305E-02
   5  Prefactor     .10000E-03    71.227        .69011E-05** at limit **
   6  Prefactor     .10000E-03    20.366       -.12353E-06** at limit **
   7  Prefactor     .10000E-03    14.786        .39519E-06** at limit **
   8  norm          1.5911        3.1719       -.11189E-05   -.88583E-03
   9  norm          3.3363        1.5672       -.16970E-06   -.46971E-04
  10  norm          1.9739        .74241       -.21918E-06    .90541E-04
  11  norm          .10000E-03    .52241        .16985E-06** at limit **
  12  Prefactor     17.662        11.668        .39404E-05    .10003E-03
  13  Prefactor     .10000E-03    10.527       -.21072E-06** at limit **
  14  Prefactor     25.662        32.772        .11397E-04    .79033E-04
  15  norm          .10000E-03    6.4485        .50396E-06** at limit **
  16  Prefactor     .10000E-03    4.9714        .24748E-06** at limit **
  17  Prefactor     29.105        57.148       -.82100E-04    .19954E-04
  18  Prefactor     .10000E-03    35.486       -.33477E-06** at limit **
  19  Prefactor     7.7529        10.912        .46712E-05    .48732E-04
  20  norm          5.2126        1.5947       -.37308E-07    .81174E-03
  21  Prefactor     .29704        2.7525       -.13600E-05   -.70125E-04
  22  Normalizat    1.5260        .20146        .64234E-05   -.43576E-04
  23  Prefactor     .76061        .14893       -.20278E-05    .59404E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.24917
  Prefactor  = 0.000100022
  Prefactor  = 1.32281
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.5911
  norm       = 3.33627
  norm       = 1.97385
  norm       = 0.0001
  Prefactor  = 17.6617
  Prefactor  = 0.0001
  Prefactor  = 25.6616
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 29.1049
  Prefactor  = 0.000100003
  Prefactor  = 7.75288
  norm       = 5.21265
  Prefactor  = 0.297044
  Normalizat = 1.52601
  Prefactor  = 0.760615
 **********
 **   18 **HESSE 
 **********

 FCN=   7770.247     FROM HESSE     STATUS=OK           376 CALLS     2940 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4223        .13277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2492        4.4039        .18315E-03   -1.5296    
   3  Prefactor     .10002E-03    89.458        .53460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3228        3.1941        .23370E-03   -1.5478    
   5  Prefactor     .10000E-03    71.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5911        3.1456        .21326E-03   -1.5456    
   9  norm          3.3363        1.5671        .72029E-04   -1.5343    
  10  norm          1.9739        .74108        .43651E-04   -1.5427    
  11  norm          .10000E-03    .52567        .62196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.662        11.661        .95323E-04   -1.4867    
  13  Prefactor     .10000E-03    10.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.662        32.844        .79104E-04   -1.4694    
  15  norm          .10000E-03    6.4611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.0523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.105        57.241        .74189E-04   -1.4628    
  18  Prefactor     .10000E-03    35.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.7529        10.867        .14406E-03   -1.5151    
  20  norm          5.2126        1.5899        .58863E-04   -1.5251    
  21  Prefactor     .29704        18.123        .27793E-02   -1.5599    
  22  Normalizat    1.5260        .23777        .25663E-03   -.77050    
  23  Prefactor     .76061        .17578        .27038E-03   -1.0120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76406e-08
Minuit parameter uncertainties:
  1  7.09176e-06
  2  4.4042
  3  0.00278114
  4  3.19448
  5  0.000381572
  6  0.000104776
  7  2.58248e-05
  8  3.14592
  9  1.5671
  10  0.741084
  11  2.74246e-06
  12  11.6629
  13  5.00686e-05
  14  32.8671
  15  0.000112265
  16  0.000142817
  17  57.3494
  18  0.000660628
  19  10.8696
  20  1.5899
  21  4.64103
  22  0.237945
  23  0.175904
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  7.606e-01  1.759e-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.526e+00  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.36
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.52e-07 +/- 5.69e-08
Energy Flux (Fixed Index): 3.78e-05 +/- 1.42e-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) = 7769.84307546
delta logL = 0.404282839398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7769.83865131
delta logL = 0.408706983726

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7789       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0277       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72469       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=   7769.839     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7798        .68241        .78454E-02    .35788E-03
   2  alpha         2.0270        .34235        .29818       -.54973E-04
   3  Normalizat    1.5816        .18925        .57215E-01    .22397E-05
   4  Prefactor     .72486        .14695        .62492E-01    .27933E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.7798
  alpha      = 2.02702
  Normalizat = 1.58162
  Prefactor  = 0.724855
 **********
 **   18 **HESSE 
 **********

 FCN=   7769.839     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7798        .77401        .42640E-04   -1.5441    
   2  alpha         2.0270        .43603        .11904E-01   -.19034    
   3  Normalizat    1.5816        .23010        .25299E-03   -.75510    
   4  Prefactor     .72486        .17659        .27643E-03   -1.0256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.557e-09
Minuit parameter uncertainties:
  1  0.774016
  2  0.438353
  3  0.230258
  4  0.176724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516767': 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) = 7769.83864675
delta logL = 0.408711547469

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.780e+00  7.740e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.027e+00  4.384e-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.249e-01  1.767e-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.582e+00  2.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.16
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.03 +/- 0.44
Photon Flux (Free Index): 1.22e-07 +/- 5.79e-08
Energy Flux (Free Index): 4.20e-05 +/- 1.68e-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/516767/cmap_HighResolution_439948801_440208001_4FGL_J0948.9+0022_daily_bin774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.52e-07', energy_flux2='4.20e-05', photon_flux_error='5.69e-08', dlogl='4.09e-01', energy_flux='3.78e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-01 02:59:24.187836', photon_index_error2='0.44', photon_index2='2.03', ts='15.36', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.53', time_epoch_completed='1630490364.19', return_code='0', job_id='516767', GAL2='0.72', EG2='1.58', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='5.79e-08', ts2='16.16', photon_index='2.45' WHERE bin_id='774' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:59:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 516767: <4FGL_J0948.9+0022_daily_bin774> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin774> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:27 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:28 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:46:28 2021
Terminated at Wed Sep  1 02:59:24 2021
Results reported at Wed Sep  1 02:59:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin774 147.244 0.3717 439948801 440208001 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 :                                   611.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             267.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            777 sec.

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

