/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 170 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 = 7471
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin86
RA = 147.244, Dec = 0.3717
tmin = 261619201, tmax = 261878401
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='513118', job_status='RUN', time_executed='2021-09-01 02:39:05.831769', time_epoch_executed='1630489145.83' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513118/ft1_4FGL_J0948.9+0022_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513118/ft2_4FGL_J0948.9+0022_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513118/ft1_4FGL_J0948.9+0022_daily_bin86.fits outfile=/scratch/kocevski/513118/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin86.fits ra=147.244 dec=0.3717 rad=12.0 tmin=261619201.0 tmax=261878401.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 1.15
user 0.98
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513118/ft2_4FGL_J0948.9+0022_daily_bin86.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/513118/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin86.fits evtable="EVENTS" outfile="/scratch/kocevski/513118/ft1_filtered_4FGL_J0948.9+0022_daily_bin86.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.42
user 0.29
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513118/ft1_filtered_4FGL_J0948.9+0022_daily_bin86.fits" evtable="EVENTS" scfile=/scratch/kocevski/513118/ft2_4FGL_J0948.9+0022_daily_bin86.fits sctable="SC_DATA" outfile=/scratch/kocevski/513118/ltcube_261619201_261878401_4FGL_J0948.9+0022_daily_bin86.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/513118/ft2_4FGL_J0948.9+0022_daily_bin86.fits
.....................!
real 10.05
user 9.75
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513118/ft1_filtered_4FGL_J0948.9+0022_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/513118/ft2_4FGL_J0948.9+0022_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/513118/ltcube_261619201_261878401_4FGL_J0948.9+0022_daily_bin86.fits outfile=/scratch/kocevski/513118/expmap_261619201_261878401_4FGL_J0948.9+0022_daily_bin86.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/513118/ltcube_261619201_261878401_4FGL_J0948.9+0022_daily_bin86.fits
.....................!
real 154.35
user 149.43
sys 4.55

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/513118/ft1_filtered_4FGL_J0948.9+0022_daily_bin86.fits scfile=/scratch/kocevski/513118/ft2_4FGL_J0948.9+0022_daily_bin86.fits outfile=/scratch/kocevski/513118/cmap_261619201_261878401_4FGL_J0948.9+0022_daily_bin86.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.50
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513118/ft1_filtered_4FGL_J0948.9+0022_daily_bin86.fits scfile=/scratch/kocevski/513118/ft2_4FGL_J0948.9+0022_daily_bin86.fits outfile=/scratch/kocevski/513118/cmap_HighResolution_261619201_261878401_4FGL_J0948.9+0022_daily_bin86.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.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1043       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.132       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7099       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27153E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4650       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.0138       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6968       1.0000         .10000E-03   10000.    
    11 'norm      '    .24827       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5772       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.732       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.064       1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.867       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86386       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1053       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9290.176     FROM MIGRAD    STATUS=CONVERGED    892 CALLS     2925 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1041        2.1479        .13827E-03    .77289E-05
   2  norm          .10000E-03    .98202        .93215E-03** at limit **
   3  Prefactor     10.132        12.075        .12588E-03   -.58703E-04
   4  Prefactor     1.7095        2.3983        .16992E-03    .39099E-04
   5  Prefactor     .10000E-03    183.69        .81285E-02** at limit **
   6  Prefactor     1.4626        15.467        .35529E-03   -.25599E-05
   7  Prefactor     .10000E-03    21.432        .18142E-02** at limit **
   8  norm          .10000E-03    .74036        .80819E-03** at limit **
   9  norm          2.0137        1.1353        .73594E-04   -.37075E-05
  10  norm          1.6968        .57729        .40455E-04   -.27990E-03
  11  norm          .24776        .88528        .16971E-03   -.11120E-04
  12  Prefactor     9.5768        9.3241        .12949E-03    .33362E-05
  13  Prefactor     .10000E-03    63.464        .18142E-02** at limit **
  14  Prefactor     .10000E-03    35.037        .18142E-02** at limit **
  15  norm          13.730        12.110        .10809E-03    .10938E-04
  16  Prefactor     32.066        11.783        .70763E-04    .93504E-04
  17  Prefactor     56.855        48.792        .53197E-04    .23423E-04
  18  Prefactor     .10000E-03    79.272        .18142E-02** at limit **
  19  Prefactor     .10000E-03    8.2415        .18142E-02** at limit **
  20  norm          .10000E-03    .50410        .10947E-02** at limit **
  21  Prefactor     .10000E-03    1.5128        .11548E-02** at limit **
  22  Normalizat    .86386        .18917        .28883E-03   -.10549E-03
  23  Prefactor     1.1054        .14899        .21322E-03   -.24377E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10409
  norm       = 0.0001
  Prefactor  = 10.1319
  Prefactor  = 1.70949
  Prefactor  = 0.0001
  Prefactor  = 1.46256
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.01371
  norm       = 1.69677
  norm       = 0.247757
  Prefactor  = 9.57681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.7303
  Prefactor  = 32.0657
  Prefactor  = 56.8551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.863863
  Prefactor  = 1.10538
 **********
 **   18 **HESSE 
 **********

 FCN=   9290.176     FROM HESSE     STATUS=OK           348 CALLS     3273 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1041        2.1478        .55307E-05   -1.5418    
   2  norm          .10000E-03    .98203        .18643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.132        12.061        .50353E-05   -1.5071    
   4  Prefactor     1.7095        2.3981        .33985E-04   -1.5446    
   5  Prefactor     .10000E-03    190.75        .32514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4626        15.453        .14212E-04   -1.5466    
   7  Prefactor     .10000E-03    21.452        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .74038        .16164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0137        1.1352        .29438E-05   -1.5424    
  10  norm          1.6968        .57727        .16182E-05   -1.5447    
  11  norm          .24776        .88522        .67885E-05   -1.5608    
  12  Prefactor     9.5768        9.3234        .51797E-05   -1.5089    
  13  Prefactor     .10000E-03    63.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.730        12.109        .43236E-05   -1.4967    
  16  Prefactor     32.066        11.782        .28305E-05   -1.4575    
  17  Prefactor     56.855        48.788        .10639E-04   -1.4198    
  18  Prefactor     .10000E-03    79.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.2420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .50452        .21895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.5129        .23097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .86386        .18924        .11553E-04   -.97742    
  23  Prefactor     1.1054        .14911        .42644E-04   -.89295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85726e-11
Minuit parameter uncertainties:
  1  2.14788
  2  5.67365e-07
  3  12.0635
  4  2.39822
  5  0.00032547
  6  9.51088
  7  1.31711e-05
  8  7.55796e-07
  9  1.13525
  10  0.577269
  11  0.885266
  12  9.32477
  13  0.000146091
  14  7.23051e-05
  15  12.1108
  16  11.7826
  17  48.8219
  18  0.000197448
  19  2.44472e-06
  20  1.20737e-06
  21  1.57733e-06
  22  0.189386
  23  0.149166
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.697e+00  5.773e-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.105e+00  1.492e-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:  8.639e-01  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.65
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 4.43e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 1.10e-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) = 9290.07613782
delta logL = 0.0996738199647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9290.07349595
delta logL = 0.102315682063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6750       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2732       1.0000          .0000       5.0000    
     3 'Normalizat'    .88072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0940       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=   9290.073     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6749        .62111        .81405E-02    .43036E-03
   2  alpha         2.2727        .37045        .31911       -.11188E-03
   3  Normalizat    .88067        .15420        .64739E-01   -.20021E-03
   4  Prefactor     1.0941        .12737        .37819E-01    .41080E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.67488
  alpha      = 2.27269
  Normalizat = 0.880667
  Prefactor  = 1.09407
 **********
 **   18 **HESSE 
 **********

 FCN=   9290.073     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6749        .58038        .40570E-04   -1.5449    
   2  alpha         2.2727        .38465        .12882E-01   -.91050E-01
   3  Normalizat    .88067        .18235        .28637E-03   -.97143    
   4  Prefactor     1.0941        .14939        .21413E-03   -.89656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25369e-10
Minuit parameter uncertainties:
  1  0.580385
  2  0.386199
  3  0.182473
  4  0.149452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513118': 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) = 9290.07349501
delta logL = 0.102316621385

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.675e+00  5.804e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.273e+00  3.862e-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.094e+00  1.495e-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:  8.807e-01  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.72
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.27 +/- 0.39
Photon Flux (Free Index): 1.21e-07 +/- 4.63e-08
Energy Flux (Free Index): 3.41e-05 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/513118/cmap_HighResolution_261619201_261878401_4FGL_J0948.9+0022_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='3.41e-05', photon_flux_error='4.43e-08', dlogl='1.02e-01', energy_flux='3.25e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-01 02:48:30.226307', photon_index_error2='0.39', photon_index2='2.27', ts='14.65', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.86', time_epoch_completed='1630489710.23', return_code='0', job_id='513118', GAL2='1.09', EG2='0.88', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='4.63e-08', ts2='14.72', photon_index='2.45' WHERE bin_id='86' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:48:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 513118: <4FGL_J0948.9+0022_daily_bin86> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin86> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 02:36:04 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:36:06 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:36:06 2021
Terminated at Wed Sep  1 02:48:30 2021
Results reported at Wed Sep  1 02:48:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin86 147.244 0.3717 261619201 261878401 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 :                                   561.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            746 sec.

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

