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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin226
RA = 147.244, Dec = 0.3717
tmin = 297907201, tmax = 298166401
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='513325', job_status='RUN', time_executed='2021-09-01 02:38:51.175487', time_epoch_executed='1630489131.18' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513325/ft1_4FGL_J0948.9+0022_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513325/ft2_4FGL_J0948.9+0022_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513325/ft1_4FGL_J0948.9+0022_daily_bin226.fits outfile=/scratch/kocevski/513325/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin226.fits ra=147.244 dec=0.3717 rad=12.0 tmin=297907201.0 tmax=298166401.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 3.88
user 3.40
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513325/ft1_filtered_4FGL_J0948.9+0022_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/513325/ft2_4FGL_J0948.9+0022_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/513325/ltcube_297907201_298166401_4FGL_J0948.9+0022_daily_bin226.fits outfile=/scratch/kocevski/513325/expmap_297907201_298166401_4FGL_J0948.9+0022_daily_bin226.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/513325/ltcube_297907201_298166401_4FGL_J0948.9+0022_daily_bin226.fits
.....................!
real 191.73
user 185.20
sys 4.21

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/513325/ft1_filtered_4FGL_J0948.9+0022_daily_bin226.fits scfile=/scratch/kocevski/513325/ft2_4FGL_J0948.9+0022_daily_bin226.fits outfile=/scratch/kocevski/513325/cmap_297907201_298166401_4FGL_J0948.9+0022_daily_bin226.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.91
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513325/ft1_filtered_4FGL_J0948.9+0022_daily_bin226.fits scfile=/scratch/kocevski/513325/ft2_4FGL_J0948.9+0022_daily_bin226.fits outfile=/scratch/kocevski/513325/cmap_HighResolution_297907201_298166401_4FGL_J0948.9+0022_daily_bin226.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.59
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9918       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.254       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0488       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8940       1.0000         .10000E-03   10000.    
     8 'norm      '    7.5565       1.0000         .10000E-03   10000.    
     9 'norm      '    .67395       1.0000         .10000E-03   10000.    
    10 'norm      '    .93168       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.521       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8892       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.864       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .63585E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11900E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.139       1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7190       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83021       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0216       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=   7250.813     FROM MIGRAD    STATUS=CONVERGED    911 CALLS     3327 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9929        4.8088        .12911E-03   -.58909E-04
   2  norm          3.1512        4.8770        .22550E-03   -.14262E-03
   3  Prefactor     13.257        13.601        .11002E-03    .35752E-04
   4  Prefactor     5.8337        4.5124        .14715E-03   -.55705E-04
   5  Prefactor     .10000E-03    8.6735        .18142E-02** at limit **
   6  Prefactor     9.0512        13.460        .13324E-03    .24232E-04
   7  Prefactor     8.9032        30.333        .13440E-03   -.50077E-04
   8  norm          7.5568        3.3895        .10147E-03    .17477E-04
   9  norm          .67382        .89261        .10054E-02    .20092E-02
  10  norm          .93199        .50624        .43263E-04    .42807E-03
  11  norm          1.1986        1.3053        .98704E-04   -.33172E-04
  12  Prefactor     .10000E-03    6.5107        .18142E-02** at limit **
  13  Prefactor     58.508        35.439        .52444E-04    .21327E-03
  14  Prefactor     .10000E-03    13.025        .18142E-02** at limit **
  15  norm          5.8831        10.653        .16548E-03    .10010E-03
  16  Prefactor     11.854        10.363        .11630E-03    .23157E-03
  17  Prefactor     .10000E-03    49.224        .15407    ** at limit **
  18  Prefactor     .10001E-03    71.924        .18142E-02** at limit **
  19  Prefactor     11.127        17.818        .12004E-03    .92909E-04
  20  norm          .10000E-03    1.7399        .11659E-02** at limit **
  21  Prefactor     8.7200        6.6059        .13575E-03    .14765E-03
  22  Normalizat    .82991        .21016        .28763E-03    .33462E-03
  23  Prefactor     1.0217        .15683        .21344E-03    .70309E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.99291
  norm       = 3.15121
  Prefactor  = 13.2566
  Prefactor  = 5.83374
  Prefactor  = 0.0001
  Prefactor  = 9.05123
  Prefactor  = 8.9032
  norm       = 7.55679
  norm       = 0.673821
  norm       = 0.931989
  norm       = 1.19863
  Prefactor  = 0.0001
  Prefactor  = 58.5077
  Prefactor  = 0.0001
  norm       = 5.88307
  Prefactor  = 11.8535
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 11.1272
  norm       = 0.000100003
  Prefactor  = 8.72001
  Normalizat = 0.829906
  Prefactor  = 1.02173
 **********
 **   18 **HESSE 
 **********

 FCN=   7250.813     FROM HESSE     STATUS=OK           358 CALLS     3685 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9929        4.8085        .51644E-05   -1.5108    
   2  norm          3.1512        4.8766        .90201E-05   -1.5353    
   3  Prefactor     13.257        13.601        .44009E-05   -1.4980    
   4  Prefactor     5.8337        4.5121        .58858E-05   -1.5225    
   5  Prefactor     .10000E-03    8.6736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0512        13.458        .53295E-05   -1.5106    
   7  Prefactor     8.9032        30.323        .53760E-05   -1.5111    
   8  norm          7.5568        3.3895        .40590E-05   -1.5158    
   9  norm          .67382        .89185        .40214E-04   -1.5544    
  10  norm          .93199        .50622        .17305E-05   -1.5515    
  11  norm          1.1986        1.3052        .39482E-05   -1.5489    
  12  Prefactor     .10000E-03    6.5114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     58.508        35.438        .10489E-04   -1.4177    
  14  Prefactor     .10000E-03    13.026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8831        10.653        .66192E-05   -1.5223    
  16  Prefactor     11.854        10.362        .46522E-05   -1.5019    
  17  Prefactor     .10000E-03    51.245        .15011       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    71.926        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.127        17.813        .48015E-05   -1.5041    
  20  norm          .10000E-03    1.7637        .23317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.7200        6.6052        .54299E-05   -1.5117    
  22  Normalizat    .82991        .21026        .11505E-04   -.98969    
  23  Prefactor     1.0217        .15697        .85375E-05   -.92009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99697e-09
Minuit parameter uncertainties:
  1  4.80869
  2  4.87725
  3  13.6039
  4  4.51233
  5  2.6762e-07
  6  13.4626
  7  30.3756
  8  3.38956
  9  0.891867
  10  0.506226
  11  1.30527
  12  4.62064e-05
  13  35.4507
  14  4.6179e-05
  15  10.656
  16  10.3631
  17  0.000346818
  18  0.00137219
  19  17.8213
  20  0.000156061
  21  6.60578
  22  0.210471
  23  0.157037
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  9.320e-01  5.062e-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:  1.022e+00  1.570e-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.299e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.81
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 7.16e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 9.69e-06

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) = 7250.47462774
delta logL = 0.338028170589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7250.46176015
delta logL = 0.350895763182

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84725       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0041       1.0000          .0000       5.0000    
     3 'Normalizat'    .85087       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0088       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=   7250.462     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84733        .46127        .91011E-02    .50300E-03
   2  alpha         2.0041        .41429        .35060       -.40617E-04
   3  Normalizat    .85086        .16359        .64286E-01    .37096E-04
   4  Prefactor     1.0088        .13383        .43508E-01    .27137E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.84733
  alpha      = 2.00411
  Normalizat = 0.850864
  Prefactor  = 1.0088
 **********
 **   18 **HESSE 
 **********

 FCN=   7250.462     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84733        .49380        .40961E-04   -1.5524    
   2  alpha         2.0041        .49810        .14080E-01   -.19968    
   3  Normalizat    .85086        .18917        .28436E-03   -.98209    
   4  Prefactor     1.0088        .15477        .21457E-03   -.92437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10588e-09
Minuit parameter uncertainties:
  1  0.4938
  2  0.501596
  3  0.189314
  4  0.154836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513325': 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) = 7250.46176013
delta logL = 0.350895778264

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.009e+00  1.548e-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.509e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.50
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.00 +/- 0.50
Photon Flux (Free Index): 5.77e-08 +/- 3.57e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.14e-05

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/513325/cmap_HighResolution_297907201_298166401_4FGL_J0948.9+0022_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.16e-08', energy_flux2='2.03e-05', photon_flux_error='3.88e-08', dlogl='3.51e-01', energy_flux='1.78e-05', photon_flux2='5.77e-08', job_status='DONE', time_completed='2021-09-01 02:49:34.425203', photon_index_error2='0.50', photon_index2='2.00', ts='5.81', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.83', time_epoch_completed='1630489774.43', return_code='0', job_id='513325', GAL2='1.01', EG2='0.85', return_code2='0', energy_flux_error='9.69e-06', photon_flux_error2='3.57e-08', ts2='6.50', photon_index='2.45' WHERE bin_id='226' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:49:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 513325: <4FGL_J0948.9+0022_daily_bin226> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin226> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 02:36:19 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:36:22 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:22 2021
Terminated at Wed Sep  1 02:49:35 2021
Results reported at Wed Sep  1 02:49:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin226 147.244 0.3717 297907201 298166401 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 :                                   636.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             278.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            796 sec.

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

