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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin44
RA = 147.244, Dec = 0.3717
tmin = 250732801, tmax = 250992001
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='513072', job_status='RUN', time_executed='2021-09-01 02:39:04.592737', time_epoch_executed='1630489144.59' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='44'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513072

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513072/ft1_4FGL_J0948.9+0022_daily_bin44.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513072/ft2_4FGL_J0948.9+0022_daily_bin44.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513072/ft1_4FGL_J0948.9+0022_daily_bin44.fits outfile=/scratch/kocevski/513072/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin44.fits ra=147.244 dec=0.3717 rad=12.0 tmin=250732801.0 tmax=250992001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.43
user 1.27
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513072/ft1_filtered_4FGL_J0948.9+0022_daily_bin44.fits evtable="EVENTS" scfile=/scratch/kocevski/513072/ft2_4FGL_J0948.9+0022_daily_bin44.fits sctable="SC_DATA" expcube=/scratch/kocevski/513072/ltcube_250732801_250992001_4FGL_J0948.9+0022_daily_bin44.fits outfile=/scratch/kocevski/513072/expmap_250732801_250992001_4FGL_J0948.9+0022_daily_bin44.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/513072/ltcube_250732801_250992001_4FGL_J0948.9+0022_daily_bin44.fits
.....................!
real 190.91
user 185.08
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/513072/ft1_filtered_4FGL_J0948.9+0022_daily_bin44.fits scfile=/scratch/kocevski/513072/ft2_4FGL_J0948.9+0022_daily_bin44.fits outfile=/scratch/kocevski/513072/cmap_250732801_250992001_4FGL_J0948.9+0022_daily_bin44.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.56
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8257       1.0000         .10000E-03   10000.    
     2 'norm      '    12.860       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7283       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4309       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.237       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2826       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18759       1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.619       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.143       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.861       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    70.986       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .75744       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .50413E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2244       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0180       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8625.824     FROM MIGRAD    STATUS=CONVERGED    946 CALLS     3057 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8223        4.0362        .16303E-03   -.71130E-04
   2  norm          12.856        6.6702        .11170E-03   -.72671E-04
   3  Prefactor     4.3234        35.132        .19321E-03   -.29185E-04
   4  Prefactor     .10000E-03    .76123        .78890E-03** at limit **
   5  Prefactor     6.6512        89.101        .15469E-03   -.23077E-04
   6  Prefactor     3.4189        10.715        .21838E-03    .52477E-04
   7  Prefactor     19.210        32.017        .91319E-04    .12932E-03
   8  norm          .10000E-03    1.7706        .23592E-03** at limit **
   9  norm          .10000E-03    .47989        .10451E-02** at limit **
  10  norm          .10000E-03    .71081        .96743E-03** at limit **
  11  norm          2.2823        1.3873        .82700E-04    .38491E-04
  12  Prefactor     .27065E-01    10.063        .71634E-01    .69408E-03
  13  Prefactor     70.603        42.639        .47769E-04    .17307E-03
  14  Prefactor     17.115        29.950        .96733E-04    .25856E-05
  15  norm          5.5789        12.436        .17078E-03    .28411E-03
  16  Prefactor     27.874        14.095        .75899E-04    .66350E-03
  17  Prefactor     .10000E-03    15.346        .18142E-02** at limit **
  18  Prefactor     71.034        61.191        .23823E-03    .22935E-03
  19  Prefactor     .10000E-03    35.795        .18142E-02** at limit **
  20  norm          .75718        .90845        .10365E-02    .91047E-03
  21  Prefactor     .10091E-02    5.9728        .50869E-01** at limit **
  22  Normalizat    1.2254        .21698        .27105E-03    .81006E-03
  23  Prefactor     1.0175        .16403        .23642E-03    .84705E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.82235
  norm       = 12.8562
  Prefactor  = 4.32341
  Prefactor  = 0.0001
  Prefactor  = 6.65119
  Prefactor  = 3.41894
  Prefactor  = 19.2098
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.28232
  Prefactor  = 0.0270653
  Prefactor  = 70.6034
  Prefactor  = 17.1152
  norm       = 5.5789
  Prefactor  = 27.8738
  Prefactor  = 0.0001
  Prefactor  = 71.0337
  Prefactor  = 0.0001
  norm       = 0.757178
  Prefactor  = 0.00100906
  Normalizat = 1.22539
  Prefactor  = 1.01748
 **********
 **   18 **HESSE 
 **********

 FCN=   8625.824     FROM HESSE     STATUS=OK           368 CALLS     3425 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8223        4.0358        .65211E-05   -1.5269    
   2  norm          12.856        6.6698        .44680E-05   -1.4991    
   3  Prefactor     4.3234        35.029        .77286E-05   -1.5292    
   4  Prefactor     .10000E-03    .76126        .15778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6512        88.932        .61876E-05   -1.5192    
   6  Prefactor     3.4189        10.713        .87350E-05   -1.5338    
   7  Prefactor     19.210        32.016        .18264E-04   -1.4831    
   8  norm          .10000E-03    1.7707        .47184E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .48028        .20902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .71465        .19349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2823        1.3873        .33080E-05   -1.5406    
  12  Prefactor     .27065E-01    8.9468        .77659E-01   -1.5675    
  13  Prefactor     70.603        42.636        .95539E-05   -1.4025    
  14  Prefactor     17.115        29.937        .38693E-05   -1.4880    
  15  norm          5.5789        12.414        .68313E-05   -1.5236    
  16  Prefactor     27.874        14.095        .15180E-04   -1.4652    
  17  Prefactor     .10000E-03    15.346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     71.034        61.183        .95293E-05   -1.4020    
  19  Prefactor     .10000E-03    35.811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .75718        .90782        .41461E-04   -1.5534    
  21  Prefactor     .10091E-02    5.2370        .55038E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2254        .21710        .54210E-04   -.85822    
  23  Prefactor     1.0175        .16419        .47283E-04   -.92149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20668e-09
Minuit parameter uncertainties:
  1  4.03607
  2  6.67022
  3  24.6319
  4  1.3513e-06
  5  48.7301
  6  10.7186
  7  32.0447
  8  5.27503e-06
  9  5.56511e-07
  10  4.82538e-06
  11  1.38734
  12  0.982499
  13  42.6546
  14  29.9636
  15  12.4193
  16  14.0963
  17  5.17796e-06
  18  61.237
  19  0.000179148
  20  0.907836
  21  0.138008
  22  0.217261
  23  0.16427
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  4.825e-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:  1.017e+00  1.643e-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.225e+00  2.173e-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.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513072/likelihoodResults_250732801_250992001_4FGL_J0948.9+0022_daily_bin44.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) = 8625.8310627
delta logL = -0.00681276611431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8625.71851656
delta logL = 0.105733369135

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93756E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6476       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0326       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8625.719     FROM MIGRAD    STATUS=FAILED        89 CALLS      327 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93754E-01    21.526        .53030E-03   -.11309E-02
   2  alpha         4.6476        2.9822        .18603       -.12925E-04
   3  Normalizat    1.1922        .29605        .27436E-03   -.32818E-04
   4  Prefactor     1.0326        .15914        .23490E-03    .36782E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8625.719     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      417 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93754E-01    21.526        .28742E-04   -.11309E-02
   2  alpha         4.6476        2.9822        .10787E-01   -.12925E-04
   3  Normalizat    1.1922        .29605        .22375E-03   -.32818E-04
   4  Prefactor     1.0326        .15914        .12724E-03    .36782E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8625.719     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      457 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93755E-01    .32612        .21212E-04   -.17011E-02
   2  alpha         4.6476        4.7647        .74411E-02   -.61846E-05
   3  Normalizat    1.1922        .21363        .10974E-04   -.38537E-04
   4  Prefactor     1.0326        .16618        .93962E-05    .31458E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0937548
  alpha      = 4.64759
  Normalizat = 1.19223
  Prefactor  = 1.03265
 **********
 **   18 **HESSE 
 **********

 FCN=   8625.719     FROM HESSE     STATUS=OK            23 CALLS      480 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93755E-01    .31926        .84848E-06   -1.5647    
   2  alpha         4.6476        4.7853        .29764E-03    1.0334    
   3  Normalizat    1.1922        .21344        .21949E-05   -.86843    
   4  Prefactor     1.0326        .16601        .18792E-05   -.91649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44372e-10
Minuit parameter uncertainties:
  1  0.319265
  2  3.65138
  3  0.213594
  4  0.166097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513072': 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) = 8625.71851656
delta logL = 0.105733369219

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  9.375e-02  3.193e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  4.648e+00  3.651e+00  0.000e+00  5.000e+00 ( 1.000e+00)
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.033e+00  1.661e-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.192e+00  2.136e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/513072/cmap_HighResolution_250732801_250992001_4FGL_J0948.9+0022_daily_bin44.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-05', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2021-09-01 02:51:58.284859', job_id='513072', GAL2='1.03', fit_tolerance='1e-08', EG2='1.19', EG='1.23', time_epoch_completed='1630489918.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.06e-01', ts2='0.23', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='44' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:51:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 513072: <4FGL_J0948.9+0022_daily_bin44> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin44> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 02:35:58 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:36: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:36:02 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_bin44 147.244 0.3717 250732801 250992001 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 :                                   771.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            961 sec.

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

