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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin380
RA = 147.244, Dec = 0.3717
tmin = 337824001, tmax = 338083201
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='514784', job_status='RUN', time_executed='2021-09-01 02:41:31.062680', time_epoch_executed='1630489291.06' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='380'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514784

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514784/ft1_4FGL_J0948.9+0022_daily_bin380.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514784/ft2_4FGL_J0948.9+0022_daily_bin380.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514784/ft1_4FGL_J0948.9+0022_daily_bin380.fits outfile=/scratch/kocevski/514784/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin380.fits ra=147.244 dec=0.3717 rad=12.0 tmin=337824001.0 tmax=338083201.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.48
user 3.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514784/ft1_filtered_4FGL_J0948.9+0022_daily_bin380.fits" evtable="EVENTS" scfile=/scratch/kocevski/514784/ft2_4FGL_J0948.9+0022_daily_bin380.fits sctable="SC_DATA" outfile=/scratch/kocevski/514784/ltcube_337824001_338083201_4FGL_J0948.9+0022_daily_bin380.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/514784/ft2_4FGL_J0948.9+0022_daily_bin380.fits
.....................!
real 11.93
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514784/ft1_filtered_4FGL_J0948.9+0022_daily_bin380.fits evtable="EVENTS" scfile=/scratch/kocevski/514784/ft2_4FGL_J0948.9+0022_daily_bin380.fits sctable="SC_DATA" expcube=/scratch/kocevski/514784/ltcube_337824001_338083201_4FGL_J0948.9+0022_daily_bin380.fits outfile=/scratch/kocevski/514784/expmap_337824001_338083201_4FGL_J0948.9+0022_daily_bin380.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/514784/ltcube_337824001_338083201_4FGL_J0948.9+0022_daily_bin380.fits
.....................!
real 190.01
user 184.96
sys 4.43

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/514784/ft1_filtered_4FGL_J0948.9+0022_daily_bin380.fits scfile=/scratch/kocevski/514784/ft2_4FGL_J0948.9+0022_daily_bin380.fits outfile=/scratch/kocevski/514784/cmap_337824001_338083201_4FGL_J0948.9+0022_daily_bin380.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514784/ft1_filtered_4FGL_J0948.9+0022_daily_bin380.fits scfile=/scratch/kocevski/514784/ft2_4FGL_J0948.9+0022_daily_bin380.fits outfile=/scratch/kocevski/514784/cmap_HighResolution_337824001_338083201_4FGL_J0948.9+0022_daily_bin380.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8074       1.0000         .10000E-03   10000.    
     2 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9803       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.2119       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5525       1.0000         .10000E-03   10000.    
    10 'norm      '    1.9839       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6525       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.593       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.676       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.081       1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.271       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.077       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38531E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .83010       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.853       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96115       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94053       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=   5238.204     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2584 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8073        4.4285       -.16680E-06   -.66699E-04
   2  norm          .10000E-03    1.9126        .73599E-07** at limit **
   3  Prefactor     .10000E-03    8.9100        .33060E-06** at limit **
   4  Prefactor     .10000E-03    1.8268        .25304E-06** at limit **
   5  Prefactor     .10000E-03    20.761        .53784E-06** at limit **
   6  Prefactor     3.9889        11.903        .97502E-05   -.18098E-04
   7  Prefactor     .10000E-03    15.324        .14556E-08** at limit **
   8  norm          3.2110        3.2260        .56947E-07   -.40069E-04
   9  norm          1.5523        1.3863       -.84659E-08    .16831E-04
  10  norm          1.9838        .92491       -.18757E-06   -.26927E-03
  11  norm          3.6523        2.2034        .24102E-07   -.20493E-04
  12  Prefactor     .10000E-03    5.1352       -.28386E-06** at limit **
  13  Prefactor     53.566        62.932       -.78077E-06   -.10141E-03
  14  Prefactor     15.671        42.973       -.38239E-06   -.38497E-04
  15  norm          .10000E-03    4.6626       -.27936E-06** at limit **
  16  Prefactor     13.071        16.578        .26747E-06    .30779E-03
  17  Prefactor     70.230        73.150       -.18360E-05   -.16993E-03
  18  Prefactor     22.976        95.887        .24736E-07   -.29194E-04
  19  Prefactor     .10000E-03    42.565       -.18022E-04** at limit **
  20  norm          .82998        1.4538       -.43159E-06   -.54075E-03
  21  Prefactor     16.853        9.7035        .67228E-06    .75934E-04
  22  Normalizat    .96128        .22701        .35521E-05   -.26221E-04
  23  Prefactor     .94048        .16359       -.34084E-05    .20477E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.8073
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.98891
  Prefactor  = 0.0001
  norm       = 3.21103
  norm       = 1.5523
  norm       = 1.98378
  norm       = 3.65231
  Prefactor  = 0.0001
  Prefactor  = 53.5656
  Prefactor  = 15.6708
  norm       = 0.0001
  Prefactor  = 13.0714
  Prefactor  = 70.23
  Prefactor  = 22.9762
  Prefactor  = 0.0001
  norm       = 0.829982
  Prefactor  = 16.8531
  Normalizat = 0.961278
  Prefactor  = 0.940479
 **********
 **   18 **HESSE 
 **********

 FCN=   5238.204     FROM HESSE     STATUS=OK           374 CALLS     2958 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8073        4.4351        .12676E-03   -1.5226    
   2  norm          .10000E-03    1.9177        .97746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8500        .95417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9889        11.982        .10108E-02   -1.5308    
   7  Prefactor     .10000E-03    15.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2110        3.2248        .12618E-03   -1.5350    
   9  norm          1.5523        1.3772        .75661E-04   -1.5459    
  10  norm          1.9838        .92125        .43425E-04   -1.5426    
  11  norm          3.6523        2.2031        .80693E-04   -1.5326    
  12  Prefactor     .10000E-03    5.1434        .16015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     53.566        62.771        .54789E-04   -1.4243    
  14  Prefactor     15.671        42.885        .10116E-03   -1.4916    
  15  norm          .10000E-03    4.6632        .15263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.071        16.524        .11075E-03   -1.4985    
  17  Prefactor     70.230        73.298        .23943E-03   -1.4030    
  18  Prefactor     22.976        94.508        .83382E-04   -1.4749    
  19  Prefactor     .10000E-03    42.641        .21281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .82998        1.2776        .10879E-02   -1.5526    
  21  Prefactor     16.853        9.6728        .48781E-03   -1.4887    
  22  Normalizat    .96128        .25837        .27993E-03   -.94339    
  23  Prefactor     .94048        .18497        .22417E-03   -.94741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08434e-10
Minuit parameter uncertainties:
  1  4.4353
  2  4.16339e-07
  3  8.68775e-08
  4  8.88816e-06
  5  8.11703e-05
  6  11.9892
  7  4.77474e-05
  8  3.22501
  9  1.37723
  10  0.921253
  11  2.20315
  12  3.86378e-07
  13  62.8484
  14  42.9697
  15  2.39181e-06
  16  16.5297
  17  73.3924
  18  93.4527
  19  9.46455e-05
  20  1.27767
  21  9.67371
  22  0.258701
  23  0.185092
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  9.405e-01  1.851e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  9.613e-01  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.49
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.52e-07 +/- 7.07e-08
Energy Flux (Fixed Index): 3.80e-05 +/- 1.76e-05

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) = 5237.1243038
delta logL = 1.0797620603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5237.12270995
delta logL = 1.08135590584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9623       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2612       1.0000          .0000       5.0000    
     3 'Normalizat'    .87748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98631       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=   5237.123     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      199 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9622        13.228        .74027E-02    .34608E-03
   2  alpha         3.2614        3.5714        .34237        .54626E-05
   3  Normalizat    .87743        .13418        .65875E-01    .15527E-04
   4  Prefactor     .98634        .14048        .46096E-01    .44370E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96224
  alpha      = 3.26143
  Normalizat = 0.877431
  Prefactor  = 0.986344
 **********
 **   18 **HESSE 
 **********

 FCN=   5237.123     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .16E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9622        .88813        .37029E-04   -1.5428    
   2  alpha         3.2614        .60023        .14829E-02    .30949    
   3  Normalizat    .87743        .23955        .29141E-03   -.97258    
   4  Prefactor     .98634        .18485        .21943E-03   -.93186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6153e-16
Minuit parameter uncertainties:
  1  0.888131
  2  0.606775
  3  0.239836
  4  0.184965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514784': 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) = 5237.12270987
delta logL = 1.08135598762

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.962e+00  8.881e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.261e+00  6.068e-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:  9.863e-01  1.850e-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.774e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.89
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.26 +/- 0.61
Photon Flux (Free Index): 2.21e-07 +/- 9.26e-08
Energy Flux (Free Index): 3.92e-05 +/- 1.57e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/514784/cmap_HighResolution_337824001_338083201_4FGL_J0948.9+0022_daily_bin380.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.52e-07', energy_flux2='3.92e-05', photon_flux_error='7.07e-08', dlogl='1.08e+00', energy_flux='3.80e-05', photon_flux2='2.21e-07', job_status='DONE', time_completed='2021-09-01 02:50:31.303829', photon_index_error2='0.61', photon_index2='3.26', ts='7.49', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.57e-05', EG='0.96', time_epoch_completed='1630489831.3', return_code='0', job_id='514784', GAL2='0.99', EG2='0.88', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='9.26e-08', ts2='9.89', photon_index='2.45' WHERE bin_id='380' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:50:31 PDT 2021


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

Job <4FGL_J0948.9+0022_daily_bin380> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:40:53 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:40:55 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:40:55 2021
Terminated at Wed Sep  1 02:50:32 2021
Results reported at Wed Sep  1 02:50:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin380 147.244 0.3717 337824001 338083201 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 :                                   510.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             352.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   576 sec.
    Turnaround time :                            579 sec.

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

