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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin617
RA = 147.244, Dec = 0.3717
tmin = 399254401, tmax = 399513601
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='516495', job_status='RUN', time_executed='2021-09-01 02:49:30.632751', time_epoch_executed='1630489770.63' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516495

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516495/ft1_4FGL_J0948.9+0022_daily_bin617.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516495/ft2_4FGL_J0948.9+0022_daily_bin617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516495/ft1_4FGL_J0948.9+0022_daily_bin617.fits outfile=/scratch/kocevski/516495/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin617.fits ra=147.244 dec=0.3717 rad=12.0 tmin=399254401.0 tmax=399513601.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.57
user 5.08
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516495/ft1_filtered_4FGL_J0948.9+0022_daily_bin617.fits" evtable="EVENTS" scfile=/scratch/kocevski/516495/ft2_4FGL_J0948.9+0022_daily_bin617.fits sctable="SC_DATA" outfile=/scratch/kocevski/516495/ltcube_399254401_399513601_4FGL_J0948.9+0022_daily_bin617.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/516495/ft2_4FGL_J0948.9+0022_daily_bin617.fits
.....................!
real 12.32
user 11.76
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516495/ft1_filtered_4FGL_J0948.9+0022_daily_bin617.fits evtable="EVENTS" scfile=/scratch/kocevski/516495/ft2_4FGL_J0948.9+0022_daily_bin617.fits sctable="SC_DATA" expcube=/scratch/kocevski/516495/ltcube_399254401_399513601_4FGL_J0948.9+0022_daily_bin617.fits outfile=/scratch/kocevski/516495/expmap_399254401_399513601_4FGL_J0948.9+0022_daily_bin617.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/516495/ltcube_399254401_399513601_4FGL_J0948.9+0022_daily_bin617.fits
.....................!
real 191.67
user 185.20
sys 4.00

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/516495/ft1_filtered_4FGL_J0948.9+0022_daily_bin617.fits scfile=/scratch/kocevski/516495/ft2_4FGL_J0948.9+0022_daily_bin617.fits outfile=/scratch/kocevski/516495/cmap_399254401_399513601_4FGL_J0948.9+0022_daily_bin617.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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516495/ft1_filtered_4FGL_J0948.9+0022_daily_bin617.fits scfile=/scratch/kocevski/516495/ft2_4FGL_J0948.9+0022_daily_bin617.fits outfile=/scratch/kocevski/516495/cmap_HighResolution_399254401_399513601_4FGL_J0948.9+0022_daily_bin617.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 3.55
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57785       1.0000         .10000E-03   10000.    
     2 'norm      '    7.7477       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3762       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.464       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.191       1.0000         .10000E-03   10000.    
     8 'norm      '    4.2541       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11900E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10843E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.572       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1940       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.944       1.0000         .10000E-03   10000.    
    17 'Prefactor '    114.91       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11693E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .42298       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74725       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2954       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=   6992.491     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2626 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57841        3.0008        .45878E-06   -.44110E-03
   2  norm          7.7479        6.8717        .20563E-05   -.53705E-03
   3  Prefactor     .10000E-03    7.6379       -.10101E-06** at limit **
   4  Prefactor     2.3754        4.2208        .58534E-06   -.16659E-03
   5  Prefactor     .10000E-03    10.942       -.82258E-07** at limit **
   6  Prefactor     18.464        14.331        .15960E-07   -.67156E-04
   7  Prefactor     13.181        28.164       -.20070E-05   -.11249E-03
   8  norm          4.2538        3.3581        .12087E-06   -.14081E-04
   9  norm          .10000E-03    .24659        .18058E-07** at limit **
  10  norm          .10000E-03    .33057        .93849E-07** at limit **
  11  norm          .10000E-03    .94853        .82339E-07** at limit **
  12  Prefactor     .10000E-03    10.850       -.31173E-06** at limit **
  13  Prefactor     32.571        34.925        .77163E-07   -.42181E-04
  14  Prefactor     .10000E-03    19.322       -.12572E-06** at limit **
  15  norm          1.1926        28.618        .31464E-05   -.53552E-04
  16  Prefactor     12.950        17.255        .11161E-05   -.52989E-04
  17  Prefactor     114.94        74.186        .36218E-05    .13832E-03
  18  Prefactor     39.878        87.779       -.72148E-05   -.86324E-04
  19  Prefactor     .10000E-03    23.857       -.94451E-06** at limit **
  20  norm          .42280        .97750        .44344E-06    .13176E-03
  21  Prefactor     .10000E-03    1.2061       -.14717E-08** at limit **
  22  Normalizat    .74734        .19478       -.14024E-05   -.15566E-03
  23  Prefactor     1.2953        .15146       -.14530E-06   -.23631E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.578405
  norm       = 7.74791
  Prefactor  = 0.0001
  Prefactor  = 2.37537
  Prefactor  = 0.0001
  Prefactor  = 18.4644
  Prefactor  = 13.181
  norm       = 4.25376
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.5708
  Prefactor  = 0.0001
  norm       = 1.19259
  Prefactor  = 12.95
  Prefactor  = 114.942
  Prefactor  = 39.8781
  Prefactor  = 0.000100001
  norm       = 0.422799
  Prefactor  = 0.0001
  Normalizat = 0.747341
  Prefactor  = 1.29532
 **********
 **   18 **HESSE 
 **********

 FCN=   6992.491     FROM HESSE     STATUS=OK           376 CALLS     3002 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57841        5.8888        .26902E-02   -1.5556    
   2  norm          7.7479        7.0351        .72032E-03   -1.5151    
   3  Prefactor     .10000E-03    7.6643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3754        4.2047        .21234E-03   -1.5400    
   5  Prefactor     .10000E-03    10.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.464        14.331        .93209E-04   -1.4848    
   7  Prefactor     13.181        28.497        .11029E-03   -1.4982    
   8  norm          4.2538        3.3517        .13083E-03   -1.5295    
   9  norm          .10000E-03    .24785        .40546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .78056        .91707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6212        .15775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.571        34.938        .70210E-04   -1.4566    
  14  Prefactor     .10000E-03    19.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1926        28.638        .41634E-03   -1.5490    
  16  Prefactor     12.950        17.299        .11134E-03   -1.4988    
  17  Prefactor     114.94        76.327        .37531E-04   -1.3560    
  18  Prefactor     39.878        90.232        .63447E-04   -1.4444    
  19  Prefactor     .10000E-03    23.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .42280        .93757        .12040E-02   -1.5578    
  21  Prefactor     .10000E-03    1.2100        .89675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .74734        .21894        .31334E-03   -1.0205    
  23  Prefactor     1.2953        .17211        .20445E-03   -.83446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93184e-10
Minuit parameter uncertainties:
  1  3.69127
  2  7.0358
  3  3.44696e-06
  4  4.2052
  5  1.51602e-06
  6  14.3341
  7  28.5265
  8  3.35189
  9  1.54023e-07
  10  9.5426e-07
  11  3.84776e-06
  12  7.04257e-05
  13  34.9603
  14  2.04806e-06
  15  11.694
  16  17.3053
  17  76.3929
  18  90.5428
  19  0.000221
  20  0.937599
  21  1.05829e-07
  22  0.2192
  23  0.172183
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  9.543e-07  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.295e+00  1.722e-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:  7.473e-01  2.192e-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.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516495/likelihoodResults_399254401_399513601_4FGL_J0948.9+0022_daily_bin617.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) = 6992.49747129
delta logL = -0.00621055714782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6991.78564046
delta logL = 0.705620277944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16560       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .66379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3372       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=   6991.786     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      293 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16562        .44913        .67014E-02    .22018E-02
   2  alpha         5.0000        4.7297        .46267    ** at limit **
   3  Normalizat    .66378        .21519        .74808E-01    .80567E-03
   4  Prefactor     1.3371        .15963        .31992E-01   -.26286E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.165623
  alpha      = 5
  Normalizat = 0.663783
  Prefactor  = 1.33714
 **********
 **   18 **HESSE 
 **********

 FCN=   6991.786     FROM HESSE     STATUS=OK            31 CALLS      324 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16562        .15776        .30773E-03   -1.5627    
   2  alpha         5.0000        .98530        .73583E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .66378        .21500        .16558E-02   -1.0534    
   4  Prefactor     1.3371        .17505        .20168E-03   -.82209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56712e-09
Minuit parameter uncertainties:
  1  0.157764
  2  3.1444e-07
  3  0.215274
  4  0.175128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516495': 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) = 6991.78564041
delta logL = 0.705620326713

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.656e-01  1.578e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  5.000e+00  3.144e-07  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.337e+00  1.751e-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:  6.638e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 147.244 0.372
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.09e-08 +/- 5.77e-08
Energy Flux (Free Index): 8.19e-06 +/- 7.78e-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/516495/cmap_HighResolution_399254401_399513601_4FGL_J0948.9+0022_daily_bin617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-05', comment='SUCCESS', energy_flux2='8.19e-06', dlogl='7.06e-01', photon_flux2='6.09e-08', job_status='DONE', time_completed='2021-09-01 03:00:26.948613', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='8.45e-08', energy_flux_error2='7.78e-06', EG='0.75', time_epoch_completed='1630490426.95', return_code='0', job_id='516495', GAL2='1.34', EG2='0.66', return_code2='0', photon_flux_error2='5.77e-08', ts2='1.55', photon_index='2.45' WHERE bin_id='617' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:00:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 516495: <4FGL_J0948.9+0022_daily_bin617> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin617 147.244 0.3717 399254401 399513601 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 :                                   645.24 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             275.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            866 sec.

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

