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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin699
RA = 147.244, Dec = 0.3717
tmin = 420508801, tmax = 420768001
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='516655', job_status='RUN', time_executed='2021-09-01 02:48:50.299419', time_epoch_executed='1630489730.3' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516655/ft1_4FGL_J0948.9+0022_daily_bin699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516655/ft2_4FGL_J0948.9+0022_daily_bin699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516655/ft1_4FGL_J0948.9+0022_daily_bin699.fits outfile=/scratch/kocevski/516655/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin699.fits ra=147.244 dec=0.3717 rad=12.0 tmin=420508801.0 tmax=420768001.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.35
user 3.14
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516655/ft2_4FGL_J0948.9+0022_daily_bin699.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/516655/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin699.fits evtable="EVENTS" outfile="/scratch/kocevski/516655/ft1_filtered_4FGL_J0948.9+0022_daily_bin699.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516655/ft1_filtered_4FGL_J0948.9+0022_daily_bin699.fits evtable="EVENTS" scfile=/scratch/kocevski/516655/ft2_4FGL_J0948.9+0022_daily_bin699.fits sctable="SC_DATA" expcube=/scratch/kocevski/516655/ltcube_420508801_420768001_4FGL_J0948.9+0022_daily_bin699.fits outfile=/scratch/kocevski/516655/expmap_420508801_420768001_4FGL_J0948.9+0022_daily_bin699.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/516655/ltcube_420508801_420768001_4FGL_J0948.9+0022_daily_bin699.fits
.....................!
real 192.69
user 186.47
sys 5.15

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/516655/ft1_filtered_4FGL_J0948.9+0022_daily_bin699.fits scfile=/scratch/kocevski/516655/ft2_4FGL_J0948.9+0022_daily_bin699.fits outfile=/scratch/kocevski/516655/cmap_420508801_420768001_4FGL_J0948.9+0022_daily_bin699.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.64
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516655/ft1_filtered_4FGL_J0948.9+0022_daily_bin699.fits scfile=/scratch/kocevski/516655/ft2_4FGL_J0948.9+0022_daily_bin699.fits outfile=/scratch/kocevski/516655/cmap_HighResolution_420508801_420768001_4FGL_J0948.9+0022_daily_bin699.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.58
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5916       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9828       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.680       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6208       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4244       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5309       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7407       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7996       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2372       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    146.01       1.0000         .10000E-03   10000.    
    15 'norm      '    8.4973       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.3529       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20968E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .51505       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3436       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=   5323.174     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2541 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5918        4.7915       -.21498E-06   -.29734E-03
   2  norm          3.9832        4.6001       -.15964E-05   -.59554E-04
   3  Prefactor     12.681        17.888       -.81885E-07   -.87456E-05
   4  Prefactor     3.6223        4.8721        .10152E-05   -.44126E-03
   5  Prefactor     .10000E-03    38.748       -.85369E-05** at limit **
   6  Prefactor     3.4141        26.474       -.28537E-05   -.64928E-04
   7  Prefactor     .10000E-03    46.619        .28474E-04** at limit **
   8  norm          5.5311        4.4581       -.47156E-06   -.62349E-04
   9  norm          3.7408        1.6318       -.10771E-07   -.13016E-03
  10  norm          1.7998        .74353        .19607E-07    .11664E-03
  11  norm          .10000E-03    .81309        .21648E-07** at limit **
  12  Prefactor     5.2371        8.0404       -.93218E-07   -.57980E-04
  13  Prefactor     .10000E-03    16.057       -.19349E-04** at limit **
  14  Prefactor     146.01        59.965       -.33468E-05    .69326E-04
  15  norm          8.4964        11.201       -.23477E-06    .62761E-05
  16  Prefactor     .10000E-03    2.5440        .54899E-07** at limit **
  17  Prefactor     .10000E-03    67.031       -.29006E-04** at limit **
  18  Prefactor     .10000E-03    14.943        .17138E-04** at limit **
  19  Prefactor     .10000E-03    7.9953        .71554E-06** at limit **
  20  norm          7.3525        2.0978        .39283E-07    .17277E-03
  21  Prefactor     .10000E-03    9.2655       -.17297E-05** at limit **
  22  Normalizat    .51494        .24368        .77295E-06    .21177E-04
  23  Prefactor     1.3436        .18707       -.29840E-06    .83112E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.59178
  norm       = 3.98325
  Prefactor  = 12.6811
  Prefactor  = 3.62229
  Prefactor  = 0.0001
  Prefactor  = 3.4141
  Prefactor  = 0.0001
  norm       = 5.53114
  norm       = 3.74081
  norm       = 1.79978
  norm       = 0.0001
  Prefactor  = 5.23706
  Prefactor  = 0.0001
  Prefactor  = 146.007
  norm       = 8.49638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.35246
  Prefactor  = 0.0001
  Normalizat = 0.514943
  Prefactor  = 1.3436
 **********
 **   18 **HESSE 
 **********

 FCN=   5323.174     FROM HESSE     STATUS=OK           366 CALLS     2907 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5918        4.7828        .15403E-03   -1.5279    
   2  norm          3.9832        4.5971        .16344E-03   -1.5309    
   3  Prefactor     12.681        17.878        .11249E-03   -1.4996    
   4  Prefactor     3.6223        4.8365        .17115E-03   -1.5327    
   5  Prefactor     .10000E-03    38.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4141        26.128        .21859E-03   -1.5338    
   7  Prefactor     .10000E-03    46.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.5311        4.4592        .13372E-03   -1.5238    
   9  norm          3.7408        1.6299        .58075E-04   -1.5321    
  10  norm          1.7998        .73900        .38142E-04   -1.5440    
  11  norm          .10000E-03    .81836        .64231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2371        8.0292        .17564E-03   -1.5250    
  13  Prefactor     .10000E-03    16.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     146.01        59.819        .33347E-04   -1.3285    
  15  norm          8.4964        11.194        .13752E-03   -1.5125    
  16  Prefactor     .10000E-03    2.5455        .11365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    67.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.3525        2.0965        .54336E-04   -1.5166    
  21  Prefactor     .10000E-03    9.6754        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .51494        .26768        .38363E-03   -1.1173    
  23  Prefactor     1.3436        .21043        .20901E-03   -.82020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44555e-10
Minuit parameter uncertainties:
  1  4.78324
  2  4.59753
  3  17.8851
  4  4.83705
  5  4.65588e-05
  6  18.9008
  7  5.12889e-05
  8  4.45945
  9  1.62992
  10  0.739
  11  1.15441e-06
  12  8.03086
  13  2.86195e-05
  14  59.844
  15  11.1969
  16  4.52435e-07
  17  0.000211716
  18  1.06015e-06
  19  9.23884e-07
  20  2.0965
  21  5.79269e-05
  22  0.268348
  23  0.210563
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.800e+00  7.390e-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.344e+00  2.106e-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:  5.149e-01  2.683e-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.38e-07 +/- 5.67e-08
Energy Flux (Fixed Index): 3.44e-05 +/- 1.41e-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) = 5322.39997147
delta logL = 0.773691956124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5322.38775219
delta logL = 0.785911240554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4885       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8904       1.0000          .0000       5.0000    
     3 'Normalizat'    .56356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3174       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=   5322.388     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4893        .67523        .83716E-02    .94348E-04
   2  alpha         1.8896        .36116        .23942       -.30790E-04
   3  Normalizat    .56344        .21788        .83028E-01    .30951E-04
   4  Prefactor     1.3175        .18375        .47690E-01   -.21981E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48931
  alpha      = 1.88965
  Normalizat = 0.563438
  Prefactor  = 1.31747
 **********
 **   18 **HESSE 
 **********

 FCN=   5322.388     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4893        .77372        .37104E-04   -1.5464    
   2  alpha         1.8896        .43209        .10176E-01   -.24663    
   3  Normalizat    .56344        .24806        .36775E-03   -1.0956    
   4  Prefactor     1.3175        .20948        .21081E-03   -.82789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88046e-10
Minuit parameter uncertainties:
  1  0.773725
  2  0.434408
  3  0.248552
  4  0.209619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516655': 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) = 5322.38774756
delta logL = 0.785915867395

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.489e+00  7.737e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.890e+00  4.344e-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.317e+00  2.096e-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:  5.634e-01  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.81
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.89 +/- 0.43
Photon Flux (Free Index): 1.00e-07 +/- 5.43e-08
Energy Flux (Free Index): 3.96e-05 +/- 1.80e-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/516655/cmap_HighResolution_420508801_420768001_4FGL_J0948.9+0022_daily_bin699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='3.96e-05', photon_flux_error='5.67e-08', dlogl='7.86e-01', energy_flux='3.44e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-01 02:57:30.131140', photon_index_error2='0.43', photon_index2='1.89', ts='15.36', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='0.51', time_epoch_completed='1630490250.13', return_code='0', job_id='516655', GAL2='1.32', EG2='0.56', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='5.43e-08', ts2='16.81', photon_index='2.45' WHERE bin_id='699' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:57:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 516655: <4FGL_J0948.9+0022_daily_bin699> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin699 147.244 0.3717 420508801 420768001 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 :                                   514.17 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             254.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            672 sec.

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

