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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin743
RA = 147.244, Dec = 0.3717
tmin = 431913601, tmax = 432172801
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='516720', job_status='RUN', time_executed='2021-09-01 02:49:31.987529', time_epoch_executed='1630489771.99' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516720

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516720/ft1_4FGL_J0948.9+0022_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516720/ft2_4FGL_J0948.9+0022_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516720/ft1_4FGL_J0948.9+0022_daily_bin743.fits outfile=/scratch/kocevski/516720/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin743.fits ra=147.244 dec=0.3717 rad=12.0 tmin=431913601.0 tmax=432172801.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.44
user 4.94
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516720/ft1_filtered_4FGL_J0948.9+0022_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/516720/ft2_4FGL_J0948.9+0022_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/516720/ltcube_431913601_432172801_4FGL_J0948.9+0022_daily_bin743.fits outfile=/scratch/kocevski/516720/expmap_431913601_432172801_4FGL_J0948.9+0022_daily_bin743.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/516720/ltcube_431913601_432172801_4FGL_J0948.9+0022_daily_bin743.fits
.....................!
real 192.57
user 187.62
sys 4.27

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/516720/ft1_filtered_4FGL_J0948.9+0022_daily_bin743.fits scfile=/scratch/kocevski/516720/ft2_4FGL_J0948.9+0022_daily_bin743.fits outfile=/scratch/kocevski/516720/cmap_431913601_432172801_4FGL_J0948.9+0022_daily_bin743.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.86
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516720/ft1_filtered_4FGL_J0948.9+0022_daily_bin743.fits scfile=/scratch/kocevski/516720/ft2_4FGL_J0948.9+0022_daily_bin743.fits outfile=/scratch/kocevski/516720/cmap_HighResolution_431913601_432172801_4FGL_J0948.9+0022_daily_bin743.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.58
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/516720/ft1_filtered_4FGL_J0948.9+0022_daily_bin743.fits', '/scratch/kocevski/516720/ft2_4FGL_J0948.9+0022_daily_bin743.fits', expMap='/scratch/kocevski/516720/expmap_431913601_432172801_4FGL_J0948.9+0022_daily_bin743.fits', expCube='/scratch/kocevski/516720/ltcube_431913601_432172801_4FGL_J0948.9+0022_daily_bin743.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/516720/Model_4FGL_J0948.9+0022_daily_bin743.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/516720/ft1_filtered_4FGL_J0948.9+0022_daily_bin743.fits
Spacecraft file(s): /scratch/kocevski/516720/ft2_4FGL_J0948.9+0022_daily_bin743.fits
Exposure map: /scratch/kocevski/516720/expmap_431913601_432172801_4FGL_J0948.9+0022_daily_bin743.fits
Exposure cube: /scratch/kocevski/516720/ltcube_431913601_432172801_4FGL_J0948.9+0022_daily_bin743.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/516720/Model_4FGL_J0948.9+0022_daily_bin743.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5525.97266389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .24382E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4963       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8692       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .82867E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4238       1.0000         .10000E-03   10000.    
     8 'norm      '    4.5260       1.0000         .10000E-03   10000.    
     9 'norm      '    3.2757       1.0000         .10000E-03   10000.    
    10 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.7313       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.222       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.976       1.0000         .10000E-03   10000.    
    15 'norm      '    23.367       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11312E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.8971       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0025       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0586       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80203       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=   5525.858     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2222 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8818        .45951E-07** at limit **
   2  norm          .10000E-03    3.9378        .10056E-05** at limit **
   3  Prefactor     4.5235        16.401       -.14603E-04   -.11414E-03
   4  Prefactor     3.8691        2.7611        .12556E-06    .19072E-03
   5  Prefactor     .10000E-03    19.256        .78211E-06** at limit **
   6  Prefactor     .10037E-03    8.6327       -.16964E-05** at limit **
   7  Prefactor     3.4607        94.165        .71764E-04   -.83351E-05
   8  norm          4.5263        3.9212       -.65796E-06   -.37551E-03
   9  norm          3.2756        1.3856        .21600E-07   -.72583E-05
  10  norm          .10000E-03    .22961        .82000E-07** at limit **
  11  norm          4.7320        2.5833       -.40265E-07   -.27240E-03
  12  Prefactor     31.210        20.800        .18349E-05   -.11827E-04
  13  Prefactor     .10000E-03    35.919        .41181E-06** at limit **
  14  Prefactor     22.980        24.135        .11345E-05   -.40197E-05
  15  norm          23.364        20.716        .96012E-06   -.33659E-05
  16  Prefactor     .10000E-03    14.501       -.39272E-06** at limit **
  17  Prefactor     .10000E-03    115.56        .18616E-05** at limit **
  18  Prefactor     .10000E-03    19.299        .45855E-06** at limit **
  19  Prefactor     .10000E-03    5.7906       -.15563E-07** at limit **
  20  norm          7.8960        2.2187        .82817E-07   -.29970E-04
  21  Prefactor     4.0032        6.9702       -.12858E-05   -.32695E-03
  22  Normalizat    1.0593        .20071       -.42415E-06   -.13282E-04
  23  Prefactor     .80151        .15235       -.10448E-05   -.38177E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 4.52349
  Prefactor  = 3.86912
  Prefactor  = 0.0001
  Prefactor  = 0.000100369
  Prefactor  = 3.46069
  norm       = 4.52628
  norm       = 3.27556
  norm       = 0.0001
  norm       = 4.73199
  Prefactor  = 31.2103
  Prefactor  = 0.0001
  Prefactor  = 22.9802
  norm       = 23.3641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.89596
  Prefactor  = 4.00319
  Normalizat = 1.05928
  Prefactor  = 0.801508
 **********
 **   18 **HESSE 
 **********

 FCN=   5525.858     FROM HESSE     STATUS=OK           378 CALLS     2600 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9266        .99540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.8740        .28499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.5235        16.537        .18988E-03   -1.5283    
   4  Prefactor     3.8691        2.7605        .10055E-03   -1.5315    
   5  Prefactor     .10000E-03    19.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10037E-03    42.688        .40792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4607        92.449        .21861E-03   -1.5336    
   8  norm          4.5263        3.9160        .13102E-03   -1.5282    
   9  norm          3.2756        1.3852        .54977E-04   -1.5346    
  10  norm          .10000E-03    .29857        .68511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.7320        2.5787        .84315E-04   -1.5273    
  12  Prefactor     31.210        20.865        .71708E-04   -1.4590    
  13  Prefactor     .10000E-03    35.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.980        24.131        .83565E-04   -1.4749    
  15  norm          23.364        20.707        .82864E-04   -1.4741    
  16  Prefactor     .10000E-03    14.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    116.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7924        .17471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.8960        2.2170        .55741E-04   -1.5146    
  21  Prefactor     4.0032        6.9640        .20158E-03   -1.5308    
  22  Normalizat    1.0593        .23233        .25341E-03   -.91070    
  23  Prefactor     .80151        .17976        .23052E-03   -.99673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09223e-09
Minuit parameter uncertainties:
  1  7.9578e-06
  2  0.000293467
  3  16.5536
  4  2.7606
  5  0.000150323
  6  0.00793953
  7  35.8347
  8  3.9162
  9  1.38524
  10  3.96124e-06
  11  2.57877
  12  20.8699
  13  2.9823e-05
  14  24.141
  15  20.7135
  16  6.10839e-05
  17  0.000386331
  18  1.42837e-05
  19  3.60885e-06
  20  2.21705
  21  6.96537
  22  0.232558
  23  0.17989
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  3.961e-06  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.015e-01  1.799e-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.059e+00  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/516720/likelihoodResults_431913601_432172801_4FGL_J0948.9+0022_daily_bin743.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): 102
logL (Free Index) = 5525.85963232
delta logL = -0.0012566078467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5525.84091297
delta logL = 0.0174627429406

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32238E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80941       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=   5525.841     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      293 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32260E-01    .20042E-01   -.67681E-07   -.93282E-03
   2  alpha         5.0000        5.0000        .13306E-05** at limit **
   3  Normalizat    1.0431        .19168        .17778E-06   -.38390E-03
   4  Prefactor     .80947        .15418       -.79959E-07   -.77484E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0322598
  alpha      = 5
  Normalizat = 1.0431
  Prefactor  = 0.809468
 **********
 **   18 **HESSE 
 **********

 FCN=   5525.841     FROM HESSE     STATUS=OK            29 CALLS      322 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32260E-01    .24512        .18366E-03   -1.5672    
   2  alpha         5.0000        4.9926        .18532        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0431        .23758        .25507E-03   -.91600    
   4  Prefactor     .80947        .18304        .22952E-03   -.99380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80123e-10
Minuit parameter uncertainties:
  1  0.177572
  2  0.000228963
  3  0.237822
  4  0.183178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516720': 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) = 5525.84091282
delta logL = 0.0174628975674

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.226e-02  1.776e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  5.000e+00  2.290e-04  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.095e-01  1.832e-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.043e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 147.244 0.372

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/516720/cmap_HighResolution_431913601_432172801_4FGL_J0948.9+0022_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-05', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-09-01 02:59:13.390777', job_id='516720', GAL2='0.81', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1630490353.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.75e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='743' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:59:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 516720: <4FGL_J0948.9+0022_daily_bin743> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin743> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:23 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:25 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:46:25 2021
Terminated at Wed Sep  1 02:59:14 2021
Results reported at Wed Sep  1 02:59:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin743 147.244 0.3717 431913601 432172801 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 :                                   570.03 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             308.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            771 sec.

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

