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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin325
RA = 147.244, Dec = 0.3717
tmin = 323568001, tmax = 323827201
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='514676', job_status='RUN', time_executed='2021-09-01 02:41:54.165695', time_epoch_executed='1630489314.17' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514676

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514676/ft1_4FGL_J0948.9+0022_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514676/ft2_4FGL_J0948.9+0022_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514676/ft1_4FGL_J0948.9+0022_daily_bin325.fits outfile=/scratch/kocevski/514676/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin325.fits ra=147.244 dec=0.3717 rad=12.0 tmin=323568001.0 tmax=323827201.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.31
user 3.07
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514676/ft2_4FGL_J0948.9+0022_daily_bin325.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/514676/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin325.fits evtable="EVENTS" outfile="/scratch/kocevski/514676/ft1_filtered_4FGL_J0948.9+0022_daily_bin325.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.64
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514676/ft1_filtered_4FGL_J0948.9+0022_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/514676/ft2_4FGL_J0948.9+0022_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/514676/ltcube_323568001_323827201_4FGL_J0948.9+0022_daily_bin325.fits outfile=/scratch/kocevski/514676/expmap_323568001_323827201_4FGL_J0948.9+0022_daily_bin325.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/514676/ltcube_323568001_323827201_4FGL_J0948.9+0022_daily_bin325.fits
.....................!
real 190.17
user 185.55
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/514676/ft1_filtered_4FGL_J0948.9+0022_daily_bin325.fits scfile=/scratch/kocevski/514676/ft2_4FGL_J0948.9+0022_daily_bin325.fits outfile=/scratch/kocevski/514676/cmap_323568001_323827201_4FGL_J0948.9+0022_daily_bin325.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=147.244 yref=0.3717 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514676/ft1_filtered_4FGL_J0948.9+0022_daily_bin325.fits scfile=/scratch/kocevski/514676/ft2_4FGL_J0948.9+0022_daily_bin325.fits outfile=/scratch/kocevski/514676/cmap_HighResolution_323568001_323827201_4FGL_J0948.9+0022_daily_bin325.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5113       1.0000         .10000E-03   10000.    
     2 'norm      '    16.385       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11391E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.621       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.565       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6905       1.0000         .10000E-03   10000.    
     8 'norm      '    .43325E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1508       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0642       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.278       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.6562       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .49822       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0679       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1187       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=   5244.799     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2618 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5115        3.3446       -.27816E-07   -.54341E-04
   2  norm          16.385        8.7372        .34150E-07    .31572E-05
   3  Prefactor     5.8497        32.244       -.10790E-05   -.63638E-05
   4  Prefactor     .10000E-03    5.2797        .63115E-06** at limit **
   5  Prefactor     36.600        56.740        .64642E-06    .35253E-04
   6  Prefactor     14.566        19.929       -.37525E-07   -.22025E-04
   7  Prefactor     4.7765        180.13        .13443E-04    .33766E-04
   8  norm          .10001E-03    3.8492       -.19247E-05** at limit **
   9  norm          1.1507        1.1775       -.34066E-07   -.22893E-03
  10  norm          2.0641        .83809       -.27583E-08   -.22441E-03
  11  norm          .10000E-03    1.0101       -.27063E-07** at limit **
  12  Prefactor     .10000E-03    7.2485        .16585E-05** at limit **
  13  Prefactor     46.277        46.529       -.38035E-06   -.40600E-04
  14  Prefactor     .10000E-03    90.563        .13620E-05** at limit **
  15  norm          6.6634        13.998       -.20964E-05   -.15943E-03
  16  Prefactor     .46357        44.383        .11339E-04   -.84330E-04
  17  Prefactor     .10000E-03    14.673        .24980E-06** at limit **
  18  Prefactor     .10000E-03    24.243        .50686E-06** at limit **
  19  Prefactor     .10000E-03    6.5627        .19199E-06** at limit **
  20  norm          .10000E-03    .92357       -.20566E-06** at limit **
  21  Prefactor     .10000E-03    5.7302        .40509E-06** at limit **
  22  Normalizat    1.0680        .24978       -.80547E-06   -.26156E-03
  23  Prefactor     1.1186        .18861       -.84432E-07    .49599E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.5115
  norm       = 16.3846
  Prefactor  = 5.84973
  Prefactor  = 0.0001
  Prefactor  = 36.5998
  Prefactor  = 14.5662
  Prefactor  = 4.77646
  norm       = 0.00010001
  norm       = 1.1507
  norm       = 2.06414
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.2774
  Prefactor  = 0.0001
  norm       = 6.66343
  Prefactor  = 0.463571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06804
  Prefactor  = 1.11864
 **********
 **   18 **HESSE 
 **********

 FCN=   5244.799     FROM HESSE     STATUS=OK           372 CALLS     2990 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5115        3.3407        .12527E-03   -1.5333    
   2  norm          16.385        8.7273        .98945E-04   -1.4898    
   3  Prefactor     5.8497        31.558        .16606E-03   -1.5224    
   4  Prefactor     .10000E-03    5.4879        .32390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.600        56.331        .66226E-04   -1.4497    
   6  Prefactor     14.566        19.913        .10495E-03   -1.4944    
   7  Prefactor     4.7765        185.85        .18581E-03   -1.5271    
   8  norm          .10001E-03    24.187        .23591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1507        1.1501        .75677E-04   -1.5493    
  10  norm          2.0641        .83464        .39765E-04   -1.5421    
  11  norm          .10000E-03    1.0205        .71051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     46.277        46.508        .58939E-04   -1.4346    
  14  Prefactor     .10000E-03    91.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.6634        14.062        .15554E-03   -1.5192    
  16  Prefactor     .46357        47.945        .40874E-02   -1.5572    
  17  Prefactor     .10000E-03    14.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5643        .18116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0502        .13305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.8402        .16916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0680        .27462        .28333E-03   -.90785    
  23  Prefactor     1.1186        .20864        .22784E-03   -.88873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80353e-08
Minuit parameter uncertainties:
  1  3.34084
  2  8.728
  3  27.1961
  4  3.21882e-06
  5  56.4127
  6  19.9225
  7  59.7886
  8  0.000992431
  9  1.15013
  10  0.834647
  11  5.10667e-07
  12  8.92181e-05
  13  46.5448
  14  0.000268542
  15  14.069
  16  9.43561
  17  9.98097e-06
  18  2.65186e-05
  19  2.50826e-06
  20  5.57228e-05
  21  3.50893e-06
  22  0.274983
  23  0.208796
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.064e+00  8.346e-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:  1.119e+00  2.088e-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.068e+00  2.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.74
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 6.40e-08
Energy Flux (Fixed Index): 3.95e-05 +/- 1.60e-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) = 5244.16644231
delta logL = 0.632123337891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5244.15046152
delta logL = 0.648104126395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7504       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9332       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0906       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=   5244.150     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7503        .76544        .79228E-02    .13504E-03
   2  alpha         1.9331        .36646        .24455       -.29815E-04
   3  Normalizat    1.1194        .21623        .62801E-01    .93460E-05
   4  Prefactor     1.0906        .17727        .37957E-01    .47782E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75032
  alpha      = 1.93315
  Normalizat = 1.11942
  Prefactor  = 1.09057
 **********
 **   18 **HESSE 
 **********

 FCN=   5244.150     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .77E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7503        .87577        .38804E-04   -1.5443    
   2  alpha         1.9331        .44190        .10302E-01   -.22873    
   3  Normalizat    1.1194        .25306        .27778E-03   -.89131    
   4  Prefactor     1.0906        .20672        .23041E-03   -.89769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69948e-13
Minuit parameter uncertainties:
  1  0.875778
  2  0.444365
  3  0.253337
  4  0.206869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514676': 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) = 5244.15046152
delta logL = 0.648104129586

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.750e+00  8.758e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.933e+00  4.444e-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:  1.091e+00  2.069e-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.119e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.06
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.93 +/- 0.44
Photon Flux (Free Index): 1.18e-07 +/- 6.26e-08
Energy Flux (Free Index): 4.46e-05 +/- 1.98e-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/514676/cmap_HighResolution_323568001_323827201_4FGL_J0948.9+0022_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='4.46e-05', photon_flux_error='6.40e-08', dlogl='6.48e-01', energy_flux='3.95e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-01 02:51:10.799192', photon_index_error2='0.44', photon_index2='1.93', ts='14.74', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='1.07', time_epoch_completed='1630489870.8', return_code='0', job_id='514676', GAL2='1.09', EG2='1.12', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='6.26e-08', ts2='16.06', photon_index='2.45' WHERE bin_id='325' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:51:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 514676: <4FGL_J0948.9+0022_daily_bin325> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin325 147.244 0.3717 323568001 323827201 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 :                                   512.25 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             336.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            626 sec.

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

