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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin105
RA = 147.244, Dec = 0.3717
tmin = 266544001, tmax = 266803201
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='513148', job_status='RUN', time_executed='2021-09-01 02:38:36.315101', time_epoch_executed='1630489116.32' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513148/ft1_4FGL_J0948.9+0022_daily_bin105.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513148/ft2_4FGL_J0948.9+0022_daily_bin105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513148/ft1_4FGL_J0948.9+0022_daily_bin105.fits outfile=/scratch/kocevski/513148/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin105.fits ra=147.244 dec=0.3717 rad=12.0 tmin=266544001.0 tmax=266803201.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 2.88
user 1.18
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513148/ft1_filtered_4FGL_J0948.9+0022_daily_bin105.fits" evtable="EVENTS" scfile=/scratch/kocevski/513148/ft2_4FGL_J0948.9+0022_daily_bin105.fits sctable="SC_DATA" outfile=/scratch/kocevski/513148/ltcube_266544001_266803201_4FGL_J0948.9+0022_daily_bin105.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/513148/ft2_4FGL_J0948.9+0022_daily_bin105.fits
.....................!
real 12.88
user 12.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513148/ft1_filtered_4FGL_J0948.9+0022_daily_bin105.fits evtable="EVENTS" scfile=/scratch/kocevski/513148/ft2_4FGL_J0948.9+0022_daily_bin105.fits sctable="SC_DATA" expcube=/scratch/kocevski/513148/ltcube_266544001_266803201_4FGL_J0948.9+0022_daily_bin105.fits outfile=/scratch/kocevski/513148/expmap_266544001_266803201_4FGL_J0948.9+0022_daily_bin105.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/513148/ltcube_266544001_266803201_4FGL_J0948.9+0022_daily_bin105.fits
.....................!
real 194.46
user 188.35
sys 5.42

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/513148/ft1_filtered_4FGL_J0948.9+0022_daily_bin105.fits scfile=/scratch/kocevski/513148/ft2_4FGL_J0948.9+0022_daily_bin105.fits outfile=/scratch/kocevski/513148/cmap_266544001_266803201_4FGL_J0948.9+0022_daily_bin105.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.58
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513148/ft1_filtered_4FGL_J0948.9+0022_daily_bin105.fits scfile=/scratch/kocevski/513148/ft2_4FGL_J0948.9+0022_daily_bin105.fits outfile=/scratch/kocevski/513148/cmap_HighResolution_266544001_266803201_4FGL_J0948.9+0022_daily_bin105.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9498       1.0000         .10000E-03   10000.    
     2 'norm      '    6.3713       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15568       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.569       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13679E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19194E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1109       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6638       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.198       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5325       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4630       1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.061       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1075       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99674       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93844       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=   9113.912     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2226 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9481        3.8481       -.19015E-06   -.71108E-03
   2  norm          6.3713        5.3420       -.80125E-07   -.22330E-03
   3  Prefactor     .74749E-01    8.7607       -.66508E-06    .11131E-03
   4  Prefactor     10.566        4.1046        .19314E-07   -.19328E-03
   5  Prefactor     .10000E-03    69.941       -.38559E-05** at limit **
   6  Prefactor     .10000E-03    15.411       -.31111E-07** at limit **
   7  Prefactor     .10000E-03    51.862        .15953E-05** at limit **
   8  norm          .10000E-03    .80215        .82805E-08** at limit **
   9  norm          .10000E-03    .20099       -.18620E-08** at limit **
  10  norm          4.1105        .74251       -.25069E-07   -.26794E-03
  11  norm          1.6637        1.2406        .66517E-08    .16309E-04
  12  Prefactor     12.195        8.4565       -.13395E-05   -.27481E-04
  13  Prefactor     3.4827        47.401        .29178E-04   -.25744E-04
  14  Prefactor     6.4288        19.171       -.33320E-05   -.73728E-04
  15  norm          .10000E-03    4.0542        .45892E-07** at limit **
  16  Prefactor     22.059        8.6097       -.35284E-06   -.15738E-04
  17  Prefactor     .10000E-03    12.972        .18800E-06** at limit **
  18  Prefactor     .10000E-03    21.380        .14071E-07** at limit **
  19  Prefactor     .10000E-03    5.5677        .61537E-08** at limit **
  20  norm          .10000E-03    .34896       -.36088E-07** at limit **
  21  Prefactor     5.1032        6.0598       -.76676E-06   -.43712E-03
  22  Normalizat    .99715        .16758       -.19317E-06    .45018E-05
  23  Prefactor     .93830        .12770       -.21368E-06    .15849E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.94809
  norm       = 6.37135
  Prefactor  = 0.074749
  Prefactor  = 10.5663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.11051
  norm       = 1.66367
  Prefactor  = 12.1948
  Prefactor  = 3.48273
  Prefactor  = 6.42884
  norm       = 0.0001
  Prefactor  = 22.0592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.1032
  Normalizat = 0.997146
  Prefactor  = 0.938302
 **********
 **   18 **HESSE 
 **********

 FCN=   9113.912     FROM HESSE     STATUS=OK           382 CALLS     2608 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9481        3.8575        .17559E-03   -1.5311    
   2  norm          6.3713        5.3420        .15901E-03   -1.5203    
   3  Prefactor     .74749E-01    11.224        .82161E-01   -1.5653    
   4  Prefactor     10.566        4.1167        .11248E-03   -1.5058    
   5  Prefactor     .10000E-03    70.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    53.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .80527        .83489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20102        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1105        .74398        .32946E-04   -1.5302    
  11  norm          1.6637        1.2451        .89091E-04   -1.5450    
  12  Prefactor     12.195        8.4695        .11469E-03   -1.5009    
  13  Prefactor     3.4827        45.793        .21508E-03   -1.5335    
  14  Prefactor     6.4288        19.208        .15787E-03   -1.5201    
  15  norm          .10000E-03    4.0595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.059        8.6138        .85278E-04   -1.4768    
  17  Prefactor     .10000E-03    12.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .71664        .10932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1032        6.0921        .17790E-03   -1.5256    
  22  Normalizat    .99715        .19528        .27481E-03   -.93126    
  23  Prefactor     .93830        .14854        .22823E-03   -.94815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99455e-10
Minuit parameter uncertainties:
  1  3.8577
  2  5.34244
  3  1.83106
  4  4.11683
  5  0.000173585
  6  2.3911e-05
  7  3.62219e-06
  8  2.72327e-07
  9  2.61834e-08
  10  0.743981
  11  1.24517
  12  8.47037
  13  25.2809
  14  19.2262
  15  1.15951e-05
  16  8.61426
  17  1.32329e-05
  18  3.45764e-05
  19  8.19861e-06
  20  2.94287e-06
  21  6.09288
  22  0.195418
  23  0.148605
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.111e+00  7.440e-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.383e-01  1.486e-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:  9.971e-01  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 68.91
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.16e-07 +/- 5.71e-08
Energy Flux (Fixed Index): 7.86e-05 +/- 1.42e-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) = 9113.11222158
delta logL = 0.799884602144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9113.1065085
delta logL = 0.805597685681

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9907       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1670       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90317       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=   9113.107     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      198 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9913        .73071        .50473E-02    .39290E-04
   2  alpha         2.1669        .20297        .17431       -.40962E-04
   3  Normalizat    1.0515        .15711        .60805E-01    .10237E-04
   4  Prefactor     .90305        .12591        .45045E-01    .11540E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.9913
  alpha      = 2.16685
  Normalizat = 1.05147
  Prefactor  = 0.903048
 **********
 **   18 **HESSE 
 **********

 FCN=   9113.107     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9913        .76226        .33125E-04   -1.5308    
   2  alpha         2.1669        .21736        .75467E-03   -.13366    
   3  Normalizat    1.0515        .18772        .26892E-03   -.91326    
   4  Prefactor     .90305        .14946        .23194E-03   -.96035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65659e-13
Minuit parameter uncertainties:
  1  0.762264
  2  0.217636
  3  0.18784
  4  0.14953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513148': 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) = 9113.10650723
delta logL = 0.805598953766

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.991e+00  7.623e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.167e+00  2.176e-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:  9.030e-01  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:  1.051e+00  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 69.89
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.17 +/- 0.22
Photon Flux (Free Index): 2.81e-07 +/- 5.95e-08
Energy Flux (Free Index): 8.57e-05 +/- 1.68e-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/513148/cmap_HighResolution_266544001_266803201_4FGL_J0948.9+0022_daily_bin105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.16e-07', energy_flux2='8.57e-05', photon_flux_error='5.71e-08', dlogl='8.06e-01', energy_flux='7.86e-05', photon_flux2='2.81e-07', job_status='DONE', time_completed='2021-09-01 02:49:19.507814', photon_index_error2='0.22', photon_index2='2.17', ts='68.91', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.00', time_epoch_completed='1630489759.51', return_code='0', job_id='513148', GAL2='0.90', EG2='1.05', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='5.95e-08', ts2='69.89', photon_index='2.45' WHERE bin_id='105' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:49:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 513148: <4FGL_J0948.9+0022_daily_bin105> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin105 147.244 0.3717 266544001 266803201 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 :                                   637.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            794 sec.

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

