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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin101
RA = 147.244, Dec = 0.3717
tmin = 265507201, tmax = 265766401
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='513142', job_status='RUN', time_executed='2021-09-01 02:38:49.159133', time_epoch_executed='1630489129.16' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513142

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513142/ft1_4FGL_J0948.9+0022_daily_bin101.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513142/ft2_4FGL_J0948.9+0022_daily_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513142/ft1_4FGL_J0948.9+0022_daily_bin101.fits outfile=/scratch/kocevski/513142/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin101.fits ra=147.244 dec=0.3717 rad=12.0 tmin=265507201.0 tmax=265766401.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.98
user 1.37
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513142/ft1_filtered_4FGL_J0948.9+0022_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/513142/ft2_4FGL_J0948.9+0022_daily_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/513142/ltcube_265507201_265766401_4FGL_J0948.9+0022_daily_bin101.fits outfile=/scratch/kocevski/513142/expmap_265507201_265766401_4FGL_J0948.9+0022_daily_bin101.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/513142/ltcube_265507201_265766401_4FGL_J0948.9+0022_daily_bin101.fits
.....................!
real 194.08
user 187.64
sys 4.61

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/513142/ft1_filtered_4FGL_J0948.9+0022_daily_bin101.fits scfile=/scratch/kocevski/513142/ft2_4FGL_J0948.9+0022_daily_bin101.fits outfile=/scratch/kocevski/513142/cmap_265507201_265766401_4FGL_J0948.9+0022_daily_bin101.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.67
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513142/ft1_filtered_4FGL_J0948.9+0022_daily_bin101.fits scfile=/scratch/kocevski/513142/ft2_4FGL_J0948.9+0022_daily_bin101.fits outfile=/scratch/kocevski/513142/cmap_HighResolution_265507201_265766401_4FGL_J0948.9+0022_daily_bin101.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.67
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5838       1.0000         .10000E-03   10000.    
     2 'norm      '    12.757       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6907       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.057       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.089       1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1127       1.0000         .10000E-03   10000.    
    10 'norm      '    .38834       1.0000         .10000E-03   10000.    
    11 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.492       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.724       1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.349       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20264E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10683E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1460       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5791       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .56968       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3095       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=   9015.071     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2548 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5834        3.3147        .33474E-05   -.17476E-03
   2  norm          12.757        6.4591       -.32611E-06   -.72300E-04
   3  Prefactor     .10000E-03    3.0387        .78800E-07** at limit **
   4  Prefactor     4.6906        3.2124       -.14729E-06   -.17762E-03
   5  Prefactor     .10000E-03    13.455        .22234E-06** at limit **
   6  Prefactor     19.061        12.059       -.51769E-06   -.12871E-03
   7  Prefactor     39.087        26.275        .11193E-06   -.22833E-04
   8  norm          .10000E-03    1.0324        .13581E-06** at limit **
   9  norm          2.1128        1.1300        .68776E-07   -.67571E-04
  10  norm          .38803        .44541        .27904E-06    .44263E-03
  11  norm          .10000E-03    .82522        .39609E-06** at limit **
  12  Prefactor     .10000E-03    3.6369       -.44828E-06** at limit **
  13  Prefactor     51.489        33.197       -.17868E-06   -.49275E-04
  14  Prefactor     .10000E-03    12.892        .11140E-06** at limit **
  15  norm          .10000E-03    11.746       -.10093E-05** at limit **
  16  Prefactor     11.728        9.2488        .13206E-05    .81743E-04
  17  Prefactor     56.259        47.165       -.66210E-05   -.45189E-03
  18  Prefactor     .10000E-03    57.072       -.18937E-05** at limit **
  19  Prefactor     .10000E-03    9.9856       -.61828E-06** at limit **
  20  norm          1.1461        .83585        .34006E-07   -.10380E-03
  21  Prefactor     2.5787        5.0304        .76586E-06   -.12341E-03
  22  Normalizat    .56934        .17932        .17019E-05   -.21161E-03
  23  Prefactor     1.3098        .13816       -.19913E-05   -.12140E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.58341
  norm       = 12.757
  Prefactor  = 0.0001
  Prefactor  = 4.69059
  Prefactor  = 0.0001
  Prefactor  = 19.0609
  Prefactor  = 39.0873
  norm       = 0.0001
  norm       = 2.11282
  norm       = 0.38803
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.4888
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.7279
  Prefactor  = 56.2594
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14607
  Prefactor  = 2.57868
  Normalizat = 0.569341
  Prefactor  = 1.3098
 **********
 **   18 **HESSE 
 **********

 FCN=   9015.071     FROM HESSE     STATUS=OK           374 CALLS     2922 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5834        3.3717        .79939E-03   -1.5329    
   2  norm          12.757        6.4516        .11215E-03   -1.4993    
   3  Prefactor     .10000E-03    3.0410        .16164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6906        3.2053        .13248E-03   -1.5275    
   5  Prefactor     .10000E-03    13.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.061        12.044        .91748E-04   -1.4835    
   7  Prefactor     39.087        26.272        .64109E-04   -1.4457    
   8  norm          .10000E-03    1.0398        .94197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1128        1.1252        .69682E-04   -1.5417    
  10  norm          .38803        .42561        .62967E-03   -1.5583    
  11  norm          .10000E-03    1.7532        .16669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6430        .17673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     51.489        33.188        .55890E-04   -1.4272    
  14  Prefactor     .10000E-03    12.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.728        9.2670        .11699E-03   -1.5023    
  17  Prefactor     56.259        49.132        .26720E-03   -1.4206    
  18  Prefactor     .10000E-03    57.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1461        .81987        .71416E-04   -1.5494    
  21  Prefactor     2.5787        5.0198        .25413E-03   -1.5387    
  22  Normalizat    .56934        .19479        .34609E-03   -1.0930    
  23  Prefactor     1.3098        .15195        .19955E-03   -.83016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09012e-09
Minuit parameter uncertainties:
  1  3.37183
  2  6.45195
  3  9.38529e-07
  4  3.20543
  5  8.0096e-07
  6  12.0458
  7  26.2799
  8  9.76823e-07
  9  1.12518
  10  0.425618
  11  3.0839e-05
  12  9.1038e-06
  13  33.1995
  14  8.86311e-07
  15  6.45165e-05
  16  9.26816
  17  49.1675
  18  0.000279375
  19  2.13794e-05
  20  0.819876
  21  5.02065
  22  0.195024
  23  0.152
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.880e-01  4.256e-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.310e+00  1.520e-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.693e-01  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.98e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 7.42e-06 +/- 8.14e-06

TS (Fixed Index): 1.07
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 9.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513142/likelihoodResults_265507201_265766401_4FGL_J0948.9+0022_daily_bin101.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) = 9014.68321992
delta logL = 0.387428699974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9014.67830394
delta logL = 0.392344675492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43585       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3852       1.0000          .0000       5.0000    
     3 'Normalizat'    .53693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3271       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=   9014.678     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43550        8.9191        .10910E-01    .21823E-02
   2  alpha         3.3859        3.0631        .45010        .10455E-04
   3  Normalizat    .53701        .59050E-01    .80356E-01    .54593E-04
   4  Prefactor     1.3271        .51061E-01    .32153E-01   -.73751E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.435496
  alpha      = 3.3859
  Normalizat = 0.537011
  Prefactor  = 1.32707
 **********
 **   18 **HESSE 
 **********

 FCN=   9014.678     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43550        .45055        .49955E-03   -1.5576    
   2  alpha         3.3859        1.2111        .37295E-01    .36223    
   3  Normalizat    .53701        .18276        .35586E-03   -1.1073    
   4  Prefactor     1.3271        .15219        .19842E-03   -.82505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61012e-10
Minuit parameter uncertainties:
  1  0.450549
  2  1.27314
  3  0.182964
  4  0.152244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513142': 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) = 9014.67830342
delta logL = 0.392345194539

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.355e-01  4.505e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.386e+00  1.273e+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.327e+00  1.522e-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.370e-01  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.39 +/- 1.27
Photon Flux (Free Index): 5.27e-08 +/- 4.40e-08
Energy Flux (Free Index): 9.04e-06 +/- 7.68e-06

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/513142/cmap_HighResolution_265507201_265766401_4FGL_J0948.9+0022_daily_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', comment='SUCCESS', photon_flux='2.98e-08', energy_flux2='9.04e-06', photon_flux_error='3.27e-08', dlogl='3.92e-01', energy_flux='7.42e-06', photon_flux2='5.27e-08', job_status='DONE', time_completed='2021-09-01 02:50:53.982606', photon_index_error2='1.27', photon_index2='3.39', ts='1.07', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='9.78e-08', energy_flux_error2='7.68e-06', EG='0.57', time_epoch_completed='1630489853.98', return_code='0', job_id='513142', GAL2='1.33', EG2='0.54', return_code2='0', energy_flux_error='8.14e-06', photon_flux_error2='4.40e-08', ts2='1.91', photon_index='2.45' WHERE bin_id='101' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:50:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 513142: <4FGL_J0948.9+0022_daily_bin101> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin101> 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) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:36:07 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:07 2021
Terminated at Wed Sep  1 02:50:54 2021
Results reported at Wed Sep  1 02:50:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin101 147.244 0.3717 265507201 265766401 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 :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

