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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin267
RA = 147.244, Dec = 0.3717
tmin = 308534401, tmax = 308793601
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='514569', job_status='RUN', time_executed='2021-09-01 02:41:28.693401', time_epoch_executed='1630489288.69' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514569

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514569/ft1_4FGL_J0948.9+0022_daily_bin267.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514569/ft2_4FGL_J0948.9+0022_daily_bin267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514569/ft1_4FGL_J0948.9+0022_daily_bin267.fits outfile=/scratch/kocevski/514569/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin267.fits ra=147.244 dec=0.3717 rad=12.0 tmin=308534401.0 tmax=308793601.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 5.80
user 5.13
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514569/ft2_4FGL_J0948.9+0022_daily_bin267.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/514569/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin267.fits evtable="EVENTS" outfile="/scratch/kocevski/514569/ft1_filtered_4FGL_J0948.9+0022_daily_bin267.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514569/ft1_filtered_4FGL_J0948.9+0022_daily_bin267.fits" evtable="EVENTS" scfile=/scratch/kocevski/514569/ft2_4FGL_J0948.9+0022_daily_bin267.fits sctable="SC_DATA" outfile=/scratch/kocevski/514569/ltcube_308534401_308793601_4FGL_J0948.9+0022_daily_bin267.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/514569/ft2_4FGL_J0948.9+0022_daily_bin267.fits
.....................!
real 11.82
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514569/ft1_filtered_4FGL_J0948.9+0022_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/514569/ft2_4FGL_J0948.9+0022_daily_bin267.fits sctable="SC_DATA" expcube=/scratch/kocevski/514569/ltcube_308534401_308793601_4FGL_J0948.9+0022_daily_bin267.fits outfile=/scratch/kocevski/514569/expmap_308534401_308793601_4FGL_J0948.9+0022_daily_bin267.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/514569/ltcube_308534401_308793601_4FGL_J0948.9+0022_daily_bin267.fits
.....................!
real 192.09
user 185.39
sys 6.17

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/514569/ft1_filtered_4FGL_J0948.9+0022_daily_bin267.fits scfile=/scratch/kocevski/514569/ft2_4FGL_J0948.9+0022_daily_bin267.fits outfile=/scratch/kocevski/514569/cmap_308534401_308793601_4FGL_J0948.9+0022_daily_bin267.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.77
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514569/ft1_filtered_4FGL_J0948.9+0022_daily_bin267.fits scfile=/scratch/kocevski/514569/ft2_4FGL_J0948.9+0022_daily_bin267.fits outfile=/scratch/kocevski/514569/cmap_HighResolution_308534401_308793601_4FGL_J0948.9+0022_daily_bin267.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.015       1.0000         .10000E-03   10000.    
     2 'norm      '    9.0140       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.167       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.688       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.989       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.032       1.0000         .10000E-03   10000.    
     8 'norm      '    .26732E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6448       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1933       1.0000         .10000E-03   10000.    
    11 'norm      '    .96889       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.383       1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.466       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.358       1.0000         .10000E-03   10000.    
    15 'norm      '    .10279E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12358E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    110.47       1.0000         .10000E-03   10000.    
    18 'Prefactor '    75.583       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11862E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0029       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85442       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=   5415.707     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2524 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.017        8.3670        .36271E-06   -.35620E-03
   2  norm          9.0147        7.5669       -.70505E-06   -.10653E-03
   3  Prefactor     37.177        25.256        .11816E-04   -.87320E-04
   4  Prefactor     .10000E-03    6.0283        .41345E-05** at limit **
   5  Prefactor     62.695        46.743        .85996E-05   -.71721E-04
   6  Prefactor     14.997        21.518        .15477E-04   -.13845E-03
   7  Prefactor     25.028        48.725       -.75890E-05   -.68698E-04
   8  norm          .10000E-03    2.2250        .81736E-06** at limit **
   9  norm          1.6451        1.2927        .33474E-06   -.42716E-03
  10  norm          2.1937        .84983       -.13314E-06   -.14485E-02
  11  norm          .96935        1.6850        .37231E-06    .39530E-03
  12  Prefactor     14.387        14.252        .65581E-05   -.24338E-04
  13  Prefactor     63.481        56.034        .18196E-04   -.11426E-04
  14  Prefactor     32.357        34.340       -.18022E-05   -.22964E-04
  15  norm          .10000E-03    9.9631       -.31552E-05** at limit **
  16  Prefactor     .10000E-03    6.4887       -.24386E-05** at limit **
  17  Prefactor     110.48        78.389        .61756E-05   -.19809E-04
  18  Prefactor     75.598        59.153        .17297E-04   -.18587E-04
  19  Prefactor     .10000E-03    8.5497        .51929E-05** at limit **
  20  norm          .10000E-03    .47806       -.76922E-07** at limit **
  21  Prefactor     .10000E-03    6.6929       -.45451E-05** at limit **
  22  Normalizat    1.0023        .24629       -.14296E-04    .22675E-04
  23  Prefactor     .85488        .17296        .64407E-06   -.63278E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 35.0171
  norm       = 9.0147
  Prefactor  = 37.1767
  Prefactor  = 0.0001
  Prefactor  = 62.6952
  Prefactor  = 14.9971
  Prefactor  = 25.0276
  norm       = 0.0001
  norm       = 1.64511
  norm       = 2.19368
  norm       = 0.969349
  Prefactor  = 14.3872
  Prefactor  = 63.4807
  Prefactor  = 32.3574
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 110.48
  Prefactor  = 75.5983
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00227
  Prefactor  = 0.854877
 **********
 **   18 **HESSE 
 **********

 FCN=   5415.707     FROM HESSE     STATUS=OK           368 CALLS     2892 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.017        8.3707        .67724E-04   -1.4524    
   2  norm          9.0147        7.5655        .13350E-03   -1.5107    
   3  Prefactor     37.177        25.247        .65740E-04   -1.4488    
   4  Prefactor     .10000E-03    6.2632        .35198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     62.695        46.727        .50681E-04   -1.4123    
   6  Prefactor     14.997        21.455        .10345E-03   -1.4933    
   7  Prefactor     25.028        48.791        .80066E-04   -1.4707    
   8  norm          .10000E-03    12.994        .21078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6451        1.2830        .71126E-04   -1.5451    
  10  norm          2.1937        .84737        .39729E-04   -1.5412    
  11  norm          .96935        1.3950        .12133E-02   -1.5511    
  12  Prefactor     14.387        14.246        .10561E-03   -1.4949    
  13  Prefactor     63.481        56.114        .50372E-04   -1.4113    
  14  Prefactor     32.357        34.354        .70440E-04   -1.4570    
  15  norm          .10000E-03    9.9918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     110.48        78.576        .38269E-04   -1.3602    
  18  Prefactor     75.598        59.121        .23093E-03   -1.3967    
  19  Prefactor     .10000E-03    8.5313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .48319        .49658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.8097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0023        .29015        .29854E-03   -.92955    
  23  Prefactor     .85488        .20440        .24584E-03   -.97736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08915e-09
Minuit parameter uncertainties:
  1  8.371
  2  7.56626
  3  25.2539
  4  3.82679e-05
  5  46.7543
  6  21.4658
  7  48.8687
  8  0.000116038
  9  1.28301
  10  0.847375
  11  1.39504
  12  14.2497
  13  56.1605
  14  34.3745
  15  0.00015358
  16  0.000149857
  17  78.6502
  18  59.1674
  19  0.000115031
  20  9.84923e-07
  21  5.48625e-05
  22  0.290608
  23  0.204583
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.194e+00  8.474e-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:  8.549e-01  2.046e-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.002e+00  2.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.15
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.68e-07 +/- 6.50e-08
Energy Flux (Fixed Index): 4.20e-05 +/- 1.62e-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) = 5415.68640038
delta logL = 0.0201238551808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5415.68573745
delta logL = 0.0207867893123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2086       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5436       1.0000          .0000       5.0000    
     3 'Normalizat'    .99336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86026       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=   5415.686     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      194 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2086        .93759        .69198E-02   -.22013E-02
   2  alpha         2.5436        .47375        .28731       -.22333E-04
   3  Normalizat    .99331        .22479        .67751E-01    .15137E-04
   4  Prefactor     .86030        .17225        .44497E-01    .11072E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2086
  alpha      = 2.54363
  Normalizat = 0.993314
  Prefactor  = 0.860298
 **********
 **   18 **HESSE 
 **********

 FCN=   5415.686     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2086        .84044        .39557E-04   -1.5411    
   2  alpha         2.5436        .44524        .12203E-01    .17454E-01
   3  Normalizat    .99331        .26753        .29970E-03   -.93255    
   4  Prefactor     .86030        .20391        .24515E-03   -.97543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89606e-10
Minuit parameter uncertainties:
  1  0.840449
  2  0.447626
  3  0.267887
  4  0.204092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514569': 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) = 5415.68573743
delta logL = 0.0207868069865

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.209e+00  8.404e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.544e+00  4.476e-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:  8.603e-01  2.041e-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.933e-01  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.99
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.54 +/- 0.45
Photon Flux (Free Index): 1.75e-07 +/- 7.38e-08
Energy Flux (Free Index): 4.15e-05 +/- 1.60e-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/514569/cmap_HighResolution_308534401_308793601_4FGL_J0948.9+0022_daily_bin267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.68e-07', energy_flux2='4.15e-05', photon_flux_error='6.50e-08', dlogl='2.08e-02', energy_flux='4.20e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-01 02:51:59.059664', photon_index_error2='0.45', photon_index2='2.54', ts='13.15', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.00', time_epoch_completed='1630489919.06', return_code='0', job_id='514569', GAL2='0.86', EG2='0.99', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='7.38e-08', ts2='12.99', photon_index='2.45' WHERE bin_id='267' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:51:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 514569: <4FGL_J0948.9+0022_daily_bin267> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin267 147.244 0.3717 308534401 308793601 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 :                                   524.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             238.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            681 sec.

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

