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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin338
RA = 147.244, Dec = 0.3717
tmin = 326937601, tmax = 327196801
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='514707', job_status='RUN', time_executed='2021-09-01 02:41:27.683953', time_epoch_executed='1630489287.68' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514707

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514707/ft1_4FGL_J0948.9+0022_daily_bin338.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514707/ft2_4FGL_J0948.9+0022_daily_bin338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514707/ft1_4FGL_J0948.9+0022_daily_bin338.fits outfile=/scratch/kocevski/514707/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin338.fits ra=147.244 dec=0.3717 rad=12.0 tmin=326937601.0 tmax=327196801.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.06
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514707/ft1_filtered_4FGL_J0948.9+0022_daily_bin338.fits" evtable="EVENTS" scfile=/scratch/kocevski/514707/ft2_4FGL_J0948.9+0022_daily_bin338.fits sctable="SC_DATA" outfile=/scratch/kocevski/514707/ltcube_326937601_327196801_4FGL_J0948.9+0022_daily_bin338.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/514707/ft2_4FGL_J0948.9+0022_daily_bin338.fits
.....................!
real 12.05
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514707/ft1_filtered_4FGL_J0948.9+0022_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/514707/ft2_4FGL_J0948.9+0022_daily_bin338.fits sctable="SC_DATA" expcube=/scratch/kocevski/514707/ltcube_326937601_327196801_4FGL_J0948.9+0022_daily_bin338.fits outfile=/scratch/kocevski/514707/expmap_326937601_327196801_4FGL_J0948.9+0022_daily_bin338.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/514707/ltcube_326937601_327196801_4FGL_J0948.9+0022_daily_bin338.fits
.....................!
real 191.04
user 185.80
sys 3.46

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/514707/ft1_filtered_4FGL_J0948.9+0022_daily_bin338.fits scfile=/scratch/kocevski/514707/ft2_4FGL_J0948.9+0022_daily_bin338.fits outfile=/scratch/kocevski/514707/cmap_326937601_327196801_4FGL_J0948.9+0022_daily_bin338.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.57
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4893       1.0000         .10000E-03   10000.    
     2 'norm      '    10.038       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84111E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.130       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4900       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9829       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0446       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.389       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.734       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.0331       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9552       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0307       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99416       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=   5706.802     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2188 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4904        1.0291        .36974E-07   -.69259E-03
   2  norm          10.037        5.6415        .27866E-06    .24532E-04
   3  Prefactor     .10000E-03    12.225       -.25095E-05** at limit **
   4  Prefactor     .10000E-03    1.9985       -.81584E-07** at limit **
   5  Prefactor     .10000E-03    18.038       -.18417E-05** at limit **
   6  Prefactor     19.128        17.734       -.57938E-06    .21444E-04
   7  Prefactor     .10000E-03    12.568        .27516E-05** at limit **
   8  norm          1.4899        3.2236       -.69217E-07   -.33359E-04
   9  norm          2.9831        1.5806       -.40118E-07    .17132E-04
  10  norm          1.0448        .78757        .32250E-07    .21928E-03
  11  norm          .10000E-03    .92982       -.15441E-07** at limit **
  12  Prefactor     13.391        12.094       -.14365E-06    .10920E-05
  13  Prefactor     12.728        42.155       -.12672E-04   -.56434E-05
  14  Prefactor     .10000E-03    17.476        .11316E-05** at limit **
  15  norm          7.0340        11.097       -.29185E-07   -.14418E-05
  16  Prefactor     5.9593        8.4469       -.21415E-06   -.75882E-05
  17  Prefactor     .10000E-03    47.037       -.25167E-06** at limit **
  18  Prefactor     .10000E-03    25.879        .65980E-06** at limit **
  19  Prefactor     .10000E-03    7.0820        .23181E-07** at limit **
  20  norm          .10000E-03    .62877        .92893E-07** at limit **
  21  Prefactor     .10000E-03    3.3084        .34201E-07** at limit **
  22  Normalizat    1.0305        .21155        .95731E-06   -.47965E-05
  23  Prefactor     .99434        .15892        .11445E-06    .36573E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.4904
  norm       = 10.0374
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 19.1278
  Prefactor  = 0.0001
  norm       = 1.48988
  norm       = 2.98306
  norm       = 1.0448
  norm       = 0.0001
  Prefactor  = 13.3908
  Prefactor  = 12.7276
  Prefactor  = 0.0001
  norm       = 7.03405
  Prefactor  = 5.95934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03048
  Prefactor  = 0.994344
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.802     FROM HESSE     STATUS=OK           376 CALLS     2564 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4904        5.4042        .12070E-02   -1.5392    
   2  norm          10.037        5.6488        .12647E-03   -1.5074    
   3  Prefactor     .10000E-03    12.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.848        .20238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.128        17.728        .91573E-04   -1.4833    
   7  Prefactor     .10000E-03    12.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4899        3.1995        .19248E-03   -1.5464    
   9  norm          2.9831        1.5813        .66182E-04   -1.5363    
  10  norm          1.0448        .76145        .53776E-03   -1.5504    
  11  norm          .10000E-03    .95058        .71088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.391        12.108        .10947E-03   -1.4976    
  13  Prefactor     12.728        42.296        .11225E-03   -1.4994    
  14  Prefactor     .10000E-03    17.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.0340        11.090        .15127E-03   -1.5177    
  16  Prefactor     5.9593        8.4380        .16455E-03   -1.5220    
  17  Prefactor     .10000E-03    47.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .99570        .11583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.3284        .13417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0305        .25488        .27794E-03   -.92016    
  23  Prefactor     .99434        .19081        .22263E-03   -.92918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60682e-10
Minuit parameter uncertainties:
  1  5.40529
  2  5.64914
  3  7.93915e-06
  4  0.000316798
  5  5.47598e-06
  6  17.7329
  7  1.71514e-06
  8  3.19989
  9  1.58129
  10  0.761461
  11  7.6738e-07
  12  12.1103
  13  42.3954
  14  3.69389e-05
  15  11.0931
  16  8.43968
  17  7.77888e-06
  18  2.52436e-06
  19  3.55383e-07
  20  8.5244e-06
  21  3.02442e-06
  22  0.255181
  23  0.190937
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.045e+00  7.615e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.453e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  9.943e-01  1.909e-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.030e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.67
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 8.02e-08 +/- 5.84e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.46e-05

TS (Fixed Index): 2.67
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 1.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514707/likelihoodResults_326937601_327196801_4FGL_J0948.9+0022_daily_bin338.txt

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) = 5706.78045562
delta logL = 0.0218974734562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5706.77500444
delta logL = 0.0273486553797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1074       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7138       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0071       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=   5706.775     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      267 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1071        .78352        .53122E-04   -.66558E-04
   2  alpha         2.7131        1.1284        .25242E-01   -.65062E-05
   3  Normalizat    1.0087        .26002        .28037E-03    .59202E-05
   4  Prefactor     1.0071        .19833        .22141E-03   -.22593E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10708
  alpha      = 2.7131
  Normalizat = 1.00874
  Prefactor  = 1.00706
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.775     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1071        .78792        .21249E-05   -1.5498    
   2  alpha         2.7131        1.1343        .10097E-02    .85343E-01
   3  Normalizat    1.0087        .26114        .11215E-04   -.92738    
   4  Prefactor     1.0071        .19873        .88562E-05   -.92494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84512e-12
Minuit parameter uncertainties:
  1  0.787931
  2  1.17767
  3  0.261471
  4  0.198874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514707': 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) = 5706.77500397
delta logL = 0.0273491298294

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.107e+00  7.879e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.713e+00  1.178e+00  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.007e+00  1.989e-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.009e+00  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.71 +/- 1.18
Photon Flux (Free Index): 9.43e-08 +/- 8.79e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.45e-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/514707/cmap_HighResolution_326937601_327196801_4FGL_J0948.9+0022_daily_bin338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-05', comment='SUCCESS', photon_flux='8.02e-08', energy_flux2='2.05e-05', photon_flux_error='5.84e-08', dlogl='2.73e-02', energy_flux='2.00e-05', photon_flux2='9.43e-08', job_status='DONE', time_completed='2021-09-01 02:50:57.091779', photon_index_error2='1.18', photon_index2='2.71', ts='2.67', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='1.45e-05', EG='1.03', time_epoch_completed='1630489857.09', return_code='0', job_id='514707', GAL2='1.01', EG2='1.01', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='8.79e-08', ts2='2.73', photon_index='2.45' WHERE bin_id='338' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:50:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 514707: <4FGL_J0948.9+0022_daily_bin338> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin338 147.244 0.3717 326937601 327196801 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 :                                   545.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            610 sec.

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

