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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin273
RA = 147.244, Dec = 0.3717
tmin = 310089601, tmax = 310348801
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='514582', job_status='RUN', time_executed='2021-09-01 02:44:59.196082', time_epoch_executed='1630489499.2' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514582

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514582/ft1_4FGL_J0948.9+0022_daily_bin273.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514582/ft2_4FGL_J0948.9+0022_daily_bin273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514582/ft1_4FGL_J0948.9+0022_daily_bin273.fits outfile=/scratch/kocevski/514582/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin273.fits ra=147.244 dec=0.3717 rad=12.0 tmin=310089601.0 tmax=310348801.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.52
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514582/ft1_filtered_4FGL_J0948.9+0022_daily_bin273.fits" evtable="EVENTS" scfile=/scratch/kocevski/514582/ft2_4FGL_J0948.9+0022_daily_bin273.fits sctable="SC_DATA" outfile=/scratch/kocevski/514582/ltcube_310089601_310348801_4FGL_J0948.9+0022_daily_bin273.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/514582/ft2_4FGL_J0948.9+0022_daily_bin273.fits
.....................!
real 12.86
user 12.37
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514582/ft1_filtered_4FGL_J0948.9+0022_daily_bin273.fits evtable="EVENTS" scfile=/scratch/kocevski/514582/ft2_4FGL_J0948.9+0022_daily_bin273.fits sctable="SC_DATA" expcube=/scratch/kocevski/514582/ltcube_310089601_310348801_4FGL_J0948.9+0022_daily_bin273.fits outfile=/scratch/kocevski/514582/expmap_310089601_310348801_4FGL_J0948.9+0022_daily_bin273.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/514582/ltcube_310089601_310348801_4FGL_J0948.9+0022_daily_bin273.fits
.....................!
real 190.96
user 185.91
sys 4.48

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/514582/ft1_filtered_4FGL_J0948.9+0022_daily_bin273.fits scfile=/scratch/kocevski/514582/ft2_4FGL_J0948.9+0022_daily_bin273.fits outfile=/scratch/kocevski/514582/cmap_310089601_310348801_4FGL_J0948.9+0022_daily_bin273.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.72
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514582/ft1_filtered_4FGL_J0948.9+0022_daily_bin273.fits scfile=/scratch/kocevski/514582/ft2_4FGL_J0948.9+0022_daily_bin273.fits outfile=/scratch/kocevski/514582/cmap_HighResolution_310089601_310348801_4FGL_J0948.9+0022_daily_bin273.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.68
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.171       1.0000         .10000E-03   10000.    
     2 'norm      '    11.345       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8620       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .43061       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.136       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.792       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2095       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9298       1.0000         .10000E-03   10000.    
    11 'norm      '    .99851       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3783       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.955       1.0000         .10000E-03   10000.    
    15 'norm      '    13.487       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.522       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12663E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.777       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17032E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    2.0877       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .56023       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=   6295.194     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2548 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.173        7.6017       -.63567E-06    .14661E-03
   2  norm          11.349        9.3976        .21954E-06    .39416E-04
   3  Prefactor     2.8485        35.900       -.19640E-04   -.50461E-04
   4  Prefactor     .42320        2.0605       -.58435E-06   -.13192E-03
   5  Prefactor     .10000E-03    18.457        .10238E-05** at limit **
   6  Prefactor     31.142        17.760        .11930E-05    .72936E-04
   7  Prefactor     26.795        29.643        .29987E-05    .11813E-04
   8  norm          .10000E-03    1.4456        .30350E-07** at limit **
   9  norm          1.2103        1.8228       -.50611E-06   -.10491E-02
  10  norm          2.9299        .91549       -.41525E-07    .13945E-03
  11  norm          .99846        1.1939        .46310E-08    .13048E-03
  12  Prefactor     .10000E-03    23.585        .39631E-05** at limit **
  13  Prefactor     8.3772        26.785       -.21911E-05    .70465E-05
  14  Prefactor     24.957        35.967        .11317E-05    .37068E-04
  15  norm          13.489        17.366        .12726E-05   -.51213E-04
  16  Prefactor     .10000E-03    9.8447       -.12961E-06** at limit **
  17  Prefactor     31.517        66.961       -.71722E-05   -.45769E-05
  18  Prefactor     .10000E-03    43.482        .76182E-06** at limit **
  19  Prefactor     12.771        13.800        .34075E-06    .31375E-05
  20  norm          .10000E-03    .46510        .47528E-08** at limit **
  21  Prefactor     .10004E-03    4.6316       -.12860E-05** at limit **
  22  Normalizat    2.0869        .26555        .19745E-05    .18781E-03
  23  Prefactor     .56087        .18560       -.95067E-06    .22155E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 25.1731
  norm       = 11.349
  Prefactor  = 2.8485
  Prefactor  = 0.423201
  Prefactor  = 0.0001
  Prefactor  = 31.142
  Prefactor  = 26.7949
  norm       = 0.0001
  norm       = 1.21033
  norm       = 2.92991
  norm       = 0.998459
  Prefactor  = 0.0001
  Prefactor  = 8.37715
  Prefactor  = 24.9565
  norm       = 13.4891
  Prefactor  = 0.0001
  Prefactor  = 31.5171
  Prefactor  = 0.0001
  Prefactor  = 12.7714
  norm       = 0.0001
  Prefactor  = 0.000100038
  Normalizat = 2.08691
  Prefactor  = 0.560872
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.194     FROM HESSE     STATUS=OK           378 CALLS     2926 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.173        7.5900        .79845E-04   -1.4704    
   2  norm          11.349        9.3904        .11894E-03   -1.5034    
   3  Prefactor     2.8485        37.391        .24030E-03   -1.5370    
   4  Prefactor     .42320        7.0665        .21656E-02   -1.5578    
   5  Prefactor     .10000E-03    18.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.142        17.779        .71807E-04   -1.4591    
   7  Prefactor     26.795        29.590        .77396E-04   -1.4672    
   8  norm          .10000E-03    1.4501        .93154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2103        1.8529        .12216E-03   -1.5488    
  10  norm          2.9299        .91589        .40214E-04   -1.5366    
  11  norm          .99846        1.1725        .92393E-04   -1.5508    
  12  Prefactor     .10000E-03    23.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3772        26.784        .13850E-03   -1.5129    
  14  Prefactor     24.957        35.952        .80188E-04   -1.4708    
  15  norm          13.489        17.284        .10907E-03   -1.4973    
  16  Prefactor     .10000E-03    9.9269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.517        67.820        .71367E-04   -1.4585    
  18  Prefactor     .10000E-03    43.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.771        13.779        .11206E-03   -1.4993    
  20  norm          .10000E-03    .47073        .52805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    21.993        .32287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    2.0869        .31396        .25884E-03   -.62390    
  23  Prefactor     .56087        .21677        .34671E-03   -1.0926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72433e-08
Minuit parameter uncertainties:
  1  7.59027
  2  9.39167
  3  20.6562
  4  3.4587
  5  9.00738e-05
  6  17.7816
  7  29.6059
  8  8.71354e-07
  9  1.85295
  10  0.915889
  11  1.17249
  12  3.90334e-05
  13  26.8226
  14  35.9836
  15  17.2907
  16  7.89703e-06
  17  67.9864
  18  1.01013e-05
  19  13.7824
  20  1.57494e-07
  21  0.00183474
  22  0.31427
  23  0.217096
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.930e+00  9.159e-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:  5.609e-01  2.171e-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:  2.087e+00  3.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.53
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.25e-07 +/- 7.03e-08
Energy Flux (Fixed Index): 5.61e-05 +/- 1.75e-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) = 6294.44341857
delta logL = 0.750919288726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6294.42574823
delta logL = 0.768589633351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6761       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0378       1.0000          .0000       5.0000    
     3 'Normalizat'    2.1407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52935       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=   6294.426     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6765        .86550        .62276E-02    .83256E-04
   2  alpha         2.0369        .28818        .20894       -.26167E-04
   3  Normalizat    2.1407        .24465        .58048E-01    .10037E-04
   4  Prefactor     .52947        .18505        .80351E-01    .45194E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.67651
  alpha      = 2.03686
  Normalizat = 2.14067
  Prefactor  = 0.529472
 **********
 **   18 **HESSE 
 **********

 FCN=   6294.426     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6765        .94232        .39715E-04   -1.5381    
   2  alpha         2.0369        .32407        .89682E-02   -.18633    
   3  Normalizat    2.1407        .28151        .25662E-03   -.61070    
   4  Prefactor     .52947        .21114        .35589E-03   -1.1064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91226e-10
Minuit parameter uncertainties:
  1  0.942322
  2  0.325015
  3  0.281733
  4  0.211451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514582': 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) = 6294.42574242
delta logL = 0.768595439065

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.677e+00  9.423e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.037e+00  3.250e-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:  5.295e-01  2.115e-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:  2.141e+00  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.09
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.04 +/- 0.33
Photon Flux (Free Index): 1.83e-07 +/- 6.96e-08
Energy Flux (Free Index): 6.26e-05 +/- 2.09e-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/514582/cmap_HighResolution_310089601_310348801_4FGL_J0948.9+0022_daily_bin273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.25e-07', energy_flux2='6.26e-05', photon_flux_error='7.03e-08', dlogl='7.69e-01', energy_flux='5.61e-05', photon_flux2='1.83e-07', job_status='DONE', time_completed='2021-09-01 02:54:28.096292', photon_index_error2='0.33', photon_index2='2.04', ts='23.53', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='2.09e-05', EG='2.09', time_epoch_completed='1630490068.1', return_code='0', job_id='514582', GAL2='0.53', EG2='2.14', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='6.96e-08', ts2='25.09', photon_index='2.45' WHERE bin_id='273' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:54:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 514582: <4FGL_J0948.9+0022_daily_bin273> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin273 147.244 0.3717 310089601 310348801 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 :                                   562.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

