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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin263
RA = 147.244, Dec = 0.3717
tmin = 307497601, tmax = 307756801
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='514561', job_status='RUN', time_executed='2021-09-01 02:42:54.975509', time_epoch_executed='1630489374.98' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514561

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514561/ft1_4FGL_J0948.9+0022_daily_bin263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514561/ft2_4FGL_J0948.9+0022_daily_bin263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514561/ft1_4FGL_J0948.9+0022_daily_bin263.fits outfile=/scratch/kocevski/514561/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin263.fits ra=147.244 dec=0.3717 rad=12.0 tmin=307497601.0 tmax=307756801.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.43
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514561/ft1_filtered_4FGL_J0948.9+0022_daily_bin263.fits" evtable="EVENTS" scfile=/scratch/kocevski/514561/ft2_4FGL_J0948.9+0022_daily_bin263.fits sctable="SC_DATA" outfile=/scratch/kocevski/514561/ltcube_307497601_307756801_4FGL_J0948.9+0022_daily_bin263.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/514561/ft2_4FGL_J0948.9+0022_daily_bin263.fits
.....................!
real 11.95
user 11.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514561/ft1_filtered_4FGL_J0948.9+0022_daily_bin263.fits evtable="EVENTS" scfile=/scratch/kocevski/514561/ft2_4FGL_J0948.9+0022_daily_bin263.fits sctable="SC_DATA" expcube=/scratch/kocevski/514561/ltcube_307497601_307756801_4FGL_J0948.9+0022_daily_bin263.fits outfile=/scratch/kocevski/514561/expmap_307497601_307756801_4FGL_J0948.9+0022_daily_bin263.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/514561/ltcube_307497601_307756801_4FGL_J0948.9+0022_daily_bin263.fits
.....................!
real 191.53
user 186.01
sys 4.94

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/514561/ft1_filtered_4FGL_J0948.9+0022_daily_bin263.fits scfile=/scratch/kocevski/514561/ft2_4FGL_J0948.9+0022_daily_bin263.fits outfile=/scratch/kocevski/514561/cmap_307497601_307756801_4FGL_J0948.9+0022_daily_bin263.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514561/ft1_filtered_4FGL_J0948.9+0022_daily_bin263.fits scfile=/scratch/kocevski/514561/ft2_4FGL_J0948.9+0022_daily_bin263.fits outfile=/scratch/kocevski/514561/cmap_HighResolution_307497601_307756801_4FGL_J0948.9+0022_daily_bin263.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0934       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2796       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9457       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3562       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1885       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5839       1.0000         .10000E-03   10000.    
     8 'norm      '    .78664E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .42498       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8947       1.0000         .10000E-03   10000.    
    11 'norm      '    .11311E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19387       1.0000         .10000E-03   10000.    
    13 'Prefactor '    66.961       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16958E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16492E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0587       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .90497       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=   6484.241     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2688 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0963        4.7436        .36397E-08   -.17027E-03
   2  norm          1.2792        5.5169        .32784E-05    .14996E-03
   3  Prefactor     8.9505        14.960        .26936E-06    .79603E-05
   4  Prefactor     1.3567        2.8883        .89377E-06    .14280E-03
   5  Prefactor     14.753        26.935        .67680E-07   -.10618E-03
   6  Prefactor     4.1907        11.241        .74819E-06    .30805E-04
   7  Prefactor     2.6025        47.448        .10815E-05   -.68228E-04
   8  norm          .10011E-03    1.7533        .49775E-06** at limit **
   9  norm          .42542        1.0496        .40177E-06   -.23319E-03
  10  norm          1.8949        .66996        .44425E-07   -.28323E-03
  11  norm          .10000E-03    .87949        .15227E-06** at limit **
  12  Prefactor     .41335        11.038       -.22467E-05    .61162E-03
  13  Prefactor     67.006        42.431       -.16599E-06   -.24183E-04
  14  Prefactor     .10000E-03    104.30       -.88796E-06** at limit **
  15  norm          .10000E-03    5.0853       -.95232E-08** at limit **
  16  Prefactor     .10000E-03    5.4813        .29720E-07** at limit **
  17  Prefactor     .10000E-03    347.82       -.22539E-05** at limit **
  18  Prefactor     .10000E-03    32.434        .14508E-07** at limit **
  19  Prefactor     .10000E-03    6.2468        .22864E-07** at limit **
  20  norm          .10000E-03    .70155        .35955E-06** at limit **
  21  Prefactor     .10000E-03    4.6256        .27215E-06** at limit **
  22  Normalizat    1.0580        .18181       -.18532E-05   -.33492E-03
  23  Prefactor     .90543        .13773       -.58869E-06   -.48351E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.09635
  norm       = 1.27919
  Prefactor  = 8.95053
  Prefactor  = 1.35671
  Prefactor  = 14.7533
  Prefactor  = 4.19066
  Prefactor  = 2.60246
  norm       = 0.000100114
  norm       = 0.425421
  norm       = 1.89486
  norm       = 0.0001
  Prefactor  = 0.413353
  Prefactor  = 67.0064
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05801
  Prefactor  = 0.905428
 **********
 **   18 **HESSE 
 **********

 FCN=   6484.241     FROM HESSE     STATUS=OK           384 CALLS     3072 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0963        4.7458        .12000E-03   -1.5105    
   2  norm          1.2792        5.5024        .35968E-03   -1.5482    
   3  Prefactor     8.9505        14.943        .13401E-03   -1.5110    
   4  Prefactor     1.3567        2.8767        .19146E-03   -1.5475    
   5  Prefactor     14.753        26.926        .10436E-03   -1.4940    
   6  Prefactor     4.1907        11.229        .19692E-03   -1.5299    
   7  Prefactor     2.6025        47.925        .25387E-03   -1.5385    
   8  norm          .10011E-03    3.8932        .35655E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .42542        1.3276        .12026E-02   -1.5578    
  10  norm          1.8949        .66814        .37032E-04   -1.5433    
  11  norm          .10000E-03    4.9418        .14526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .41335        104.91        .46973E-02   -1.5579    
  13  Prefactor     67.006        42.518        .49048E-04   -1.4069    
  14  Prefactor     .10000E-03    105.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.0867        .17732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.5174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    352.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1791        .13062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7112        .16924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0580        .21804        .25522E-03   -.91112    
  23  Prefactor     .90543        .16216        .21988E-03   -.95952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08953e-08
Minuit parameter uncertainties:
  1  4.74595
  2  5.30668
  3  14.9496
  4  2.87699
  5  26.9486
  6  11.2351
  7  22.3562
  8  0.00133504
  9  1.32772
  10  0.668141
  11  2.99933e-05
  12  13.1925
  13  42.5377
  14  0.00129649
  15  9.98662e-06
  16  2.73628e-05
  17  0.000886177
  18  6.48673e-05
  19  1.28175e-05
  20  1.28691e-05
  21  2.51887e-05
  22  0.218226
  23  0.162249
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.895e+00  6.681e-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.054e-01  1.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  1.058e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.45
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 5.13e-08
Energy Flux (Fixed Index): 3.63e-05 +/- 1.28e-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) = 6484.24034771
delta logL = 0.000215886053411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6484.24033936
delta logL = 0.000224236384383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8932       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4437       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90481       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=   6484.240     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      196 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8932        .72469        .75593E-02    .30316E-02
   2  alpha         2.4440        .43136        .29552       -.14702E-04
   3  Normalizat    1.0588        .17139        .57698E-01    .10553E-04
   4  Prefactor     .90497        .13743        .45066E-01    .87155E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.89322
  alpha      = 2.44395
  Normalizat = 1.0588
  Prefactor  = 0.904968
 **********
 **   18 **HESSE 
 **********

 FCN=   6484.240     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8932        .66705        .37051E-04   -1.5433    
   2  alpha         2.4440        .42200        .12389E-01   -.22421E-01
   3  Normalizat    1.0588        .20270        .25514E-03   -.91086    
   4  Prefactor     .90497        .16133        .21993E-03   -.95968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11638e-10
Minuit parameter uncertainties:
  1  0.667054
  2  0.424029
  3  0.202846
  4  0.161419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514561': 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) = 6484.24033872
delta logL = 0.000224873334446

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.893e+00  6.671e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.444e+00  4.240e-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.050e-01  1.614e-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.059e+00  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.40
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.44 +/- 0.42
Photon Flux (Free Index): 1.45e-07 +/- 5.75e-08
Energy Flux (Free Index): 3.63e-05 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/514561/cmap_HighResolution_307497601_307756801_4FGL_J0948.9+0022_daily_bin263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='3.63e-05', photon_flux_error='5.13e-08', dlogl='2.25e-04', energy_flux='3.63e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-01 02:53:07.595350', photon_index_error2='0.42', photon_index2='2.44', ts='16.45', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='1.06', time_epoch_completed='1630489987.6', return_code='0', job_id='514561', GAL2='0.90', EG2='1.06', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='5.75e-08', ts2='16.40', photon_index='2.45' WHERE bin_id='263' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:53:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 514561: <4FGL_J0948.9+0022_daily_bin263> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin263 147.244 0.3717 307497601 307756801 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 :                                   568.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             255.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            751 sec.

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

