/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 150 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 = 7684
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin905
RA = 147.244, Dec = 0.3717
tmin = 473904001, tmax = 474163201
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='518207', job_status='RUN', time_executed='2021-09-01 02:54:11.648213', time_epoch_executed='1630490051.65' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518207

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518207/ft1_4FGL_J0948.9+0022_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518207/ft2_4FGL_J0948.9+0022_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518207/ft1_4FGL_J0948.9+0022_daily_bin905.fits outfile=/scratch/kocevski/518207/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin905.fits ra=147.244 dec=0.3717 rad=12.0 tmin=473904001.0 tmax=474163201.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.24
user 4.80
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518207/ft1_filtered_4FGL_J0948.9+0022_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/518207/ft2_4FGL_J0948.9+0022_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/518207/ltcube_473904001_474163201_4FGL_J0948.9+0022_daily_bin905.fits outfile=/scratch/kocevski/518207/expmap_473904001_474163201_4FGL_J0948.9+0022_daily_bin905.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/518207/ltcube_473904001_474163201_4FGL_J0948.9+0022_daily_bin905.fits
.....................!
real 192.69
user 185.35
sys 4.50

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/518207/ft1_filtered_4FGL_J0948.9+0022_daily_bin905.fits scfile=/scratch/kocevski/518207/ft2_4FGL_J0948.9+0022_daily_bin905.fits outfile=/scratch/kocevski/518207/cmap_473904001_474163201_4FGL_J0948.9+0022_daily_bin905.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.76
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518207/ft1_filtered_4FGL_J0948.9+0022_daily_bin905.fits scfile=/scratch/kocevski/518207/ft2_4FGL_J0948.9+0022_daily_bin905.fits outfile=/scratch/kocevski/518207/cmap_HighResolution_473904001_474163201_4FGL_J0948.9+0022_daily_bin905.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.85
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0390       1.0000         .10000E-03   10000.    
     2 'norm      '    10.400       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.397       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .51118E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1427       1.0000         .10000E-03   10000.    
    10 'norm      '    .30578       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2624       1.0000         .10000E-03   10000.    
    13 'Prefactor '    189.10       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10630E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10492E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.982       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5676       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .90389       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95150       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=   5485.054     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2497 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0401        4.3946        .77177E-06   -.40678E-03
   2  norm          10.403        7.4697        .43771E-07   -.15627E-03
   3  Prefactor     .10000E-03    18.362       -.32603E-05** at limit **
   4  Prefactor     .10000E-03    2.6578        .24016E-06** at limit **
   5  Prefactor     3.3459        103.08        .61075E-04    .16352E-04
   6  Prefactor     22.401        15.986        .13047E-05   -.13347E-03
   7  Prefactor     .10003E-03    107.17       -.11001E-03** at limit **
   8  norm          .10000E-03    1.4972       -.79954E-07** at limit **
   9  norm          2.1430        1.1996        .13889E-06   -.22544E-03
  10  norm          .30600        .60430        .55745E-07   -.77687E-03
  11  norm          .10000E-03    .71929        .23509E-06** at limit **
  12  Prefactor     8.2750        14.111        .10750E-05   -.17912E-03
  13  Prefactor     189.12        81.795        .14226E-04   -.65138E-04
  14  Prefactor     .10000E-03    29.388        .13996E-04** at limit **
  15  norm          .10000E-03    13.719        .45532E-05** at limit **
  16  Prefactor     .10000E-03    3.7733        .49056E-07** at limit **
  17  Prefactor     59.000        59.085        .19901E-04   -.22403E-04
  18  Prefactor     .10000E-03    17.490       -.70752E-05** at limit **
  19  Prefactor     .10000E-03    5.9511       -.27836E-07** at limit **
  20  norm          3.5684        2.1909       -.24686E-06   -.43976E-03
  21  Prefactor     .10000E-03    5.1413        .38275E-06** at limit **
  22  Normalizat    .90360        .21484       -.80447E-05    .27207E-03
  23  Prefactor     .95156        .15592        .47270E-06    .12473E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.04015
  norm       = 10.4027
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.34595
  Prefactor  = 22.4011
  Prefactor  = 0.000100025
  norm       = 0.0001
  norm       = 2.14299
  norm       = 0.306002
  norm       = 0.0001
  Prefactor  = 8.27499
  Prefactor  = 189.123
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.9997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.56837
  Prefactor  = 0.0001
  Normalizat = 0.903597
  Prefactor  = 0.951561
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.054     FROM HESSE     STATUS=OK           368 CALLS     2865 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0401        4.3941        .13510E-03   -1.5259    
   2  norm          10.403        7.4643        .12424E-03   -1.5063    
   3  Prefactor     .10000E-03    18.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7520        .23543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3459        102.74        .22177E-03   -1.5342    
   6  Prefactor     22.401        16.033        .84637E-04   -1.4761    
   7  Prefactor     .10003E-03    107.91        .42293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5049        .88486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1430        1.2002        .58204E-04   -1.5415    
  10  norm          .30600        .60360        .41801E-04   -1.5597    
  11  norm          .10000E-03    .72641        .61334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2750        14.054        .13947E-03   -1.5133    
  13  Prefactor     189.12        81.742        .14683E-03   -1.2949    
  14  Prefactor     .10000E-03    29.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7753        .14049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     59.000        59.148        .52240E-04   -1.4170    
  18  Prefactor     .10000E-03    17.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9526        .17646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5684        2.1861        .81812E-04   -1.5330    
  21  Prefactor     .10000E-03    5.1654        .16396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .90360        .25383        .28753E-03   -.96334    
  23  Prefactor     .95156        .18461        .22019E-03   -.94362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57825e-09
Minuit parameter uncertainties:
  1  4.39438
  2  7.46499
  3  0.00040466
  4  3.45711e-05
  5  37.1505
  6  16.0361
  7  0.00332047
  8  3.70519e-06
  9  1.20017
  10  0.603612
  11  2.5665e-06
  12  14.0597
  13  81.7915
  14  0.000203017
  15  0.000147142
  16  1.81635e-05
  17  59.2074
  18  4.49073e-05
  19  1.63823e-05
  20  2.18618
  21  1.45534e-05
  22  0.25417
  23  0.18473
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.060e-01  6.036e-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.516e-01  1.847e-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.036e-01  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/518207/likelihoodResults_473904001_474163201_4FGL_J0948.9+0022_daily_bin905.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) = 5484.41269282
delta logL = 0.641127810429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5484.40590855
delta logL = 0.647912084443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45618       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1028       1.0000          .0000       5.0000    
     3 'Normalizat'    .83745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98318       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=   5484.406     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      242 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45585        11.789        .93176E-02    .11781E-02
   2  alpha         4.1042        3.4761        .50000        .85285E-06
   3  Normalizat    .83753        .86185E-01    .67188E-01    .17006E-04
   4  Prefactor     .98310        .65259E-01    .46056E-01    .23716E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.455852
  alpha      = 4.1042
  Normalizat = 0.837532
  Prefactor  = 0.983102
 **********
 **   18 **HESSE 
 **********

 FCN=   5484.406     FROM HESSE     STATUS=OK            35 CALLS      277 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45585        .63136        .42477E-03   -1.5573    
   2  alpha         4.1042        1.5291        .44256E-01    .69669    
   3  Normalizat    .83753        .24185        .29725E-03   -.98691    
   4  Prefactor     .98310        .18638        .21686E-03   -.93295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04586e-09
Minuit parameter uncertainties:
  1  0.631372
  2  1.77003
  3  0.242164
  4  0.186499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518207': 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) = 5484.405908
delta logL = 0.647912634096

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.559e-01  6.314e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  4.104e+00  1.770e+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:  9.831e-01  1.865e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  8.375e-01  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 147.244 0.372
Photon Index (Free Index): 4.10 +/- 1.77
Photon Flux (Free Index): 8.74e-08 +/- 7.88e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.17e-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/518207/cmap_HighResolution_473904001_474163201_4FGL_J0948.9+0022_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-05', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='6.48e-01', photon_flux2='8.74e-08', job_status='DONE', time_completed='2021-09-01 03:04:35.707256', photon_index_error2='1.77', photon_index2='4.10', ts='0.31', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='1.17e-05', EG='0.90', time_epoch_completed='1630490675.71', return_code='0', job_id='518207', GAL2='0.98', EG2='0.84', return_code2='0', photon_flux_error2='7.88e-08', ts2='1.69', photon_index='2.45' WHERE bin_id='905' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:04:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 518207: <4FGL_J0948.9+0022_daily_bin905> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin905> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:50:56 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:50:59 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:50:59 2021
Terminated at Wed Sep  1 03:04:36 2021
Results reported at Wed Sep  1 03:04:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin905 147.244 0.3717 473904001 474163201 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 :                                   558.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            820 sec.

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

