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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin861
RA = 147.244, Dec = 0.3717
tmin = 462499201, tmax = 462758401
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='518134', job_status='RUN', time_executed='2021-09-01 02:53:04.967731', time_epoch_executed='1630489984.97' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='861'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518134

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518134/ft1_4FGL_J0948.9+0022_daily_bin861.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518134/ft2_4FGL_J0948.9+0022_daily_bin861.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518134/ft1_4FGL_J0948.9+0022_daily_bin861.fits outfile=/scratch/kocevski/518134/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin861.fits ra=147.244 dec=0.3717 rad=12.0 tmin=462499201.0 tmax=462758401.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.56
user 3.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/518134/ft2_4FGL_J0948.9+0022_daily_bin861.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/518134/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin861.fits evtable="EVENTS" outfile="/scratch/kocevski/518134/ft1_filtered_4FGL_J0948.9+0022_daily_bin861.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/518134/ft1_filtered_4FGL_J0948.9+0022_daily_bin861.fits" evtable="EVENTS" scfile=/scratch/kocevski/518134/ft2_4FGL_J0948.9+0022_daily_bin861.fits sctable="SC_DATA" outfile=/scratch/kocevski/518134/ltcube_462499201_462758401_4FGL_J0948.9+0022_daily_bin861.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/518134/ft2_4FGL_J0948.9+0022_daily_bin861.fits
.....................!
real 11.89
user 11.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518134/ft1_filtered_4FGL_J0948.9+0022_daily_bin861.fits evtable="EVENTS" scfile=/scratch/kocevski/518134/ft2_4FGL_J0948.9+0022_daily_bin861.fits sctable="SC_DATA" expcube=/scratch/kocevski/518134/ltcube_462499201_462758401_4FGL_J0948.9+0022_daily_bin861.fits outfile=/scratch/kocevski/518134/expmap_462499201_462758401_4FGL_J0948.9+0022_daily_bin861.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/518134/ltcube_462499201_462758401_4FGL_J0948.9+0022_daily_bin861.fits
.....................!
real 189.87
user 185.37
sys 4.06

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/518134/ft1_filtered_4FGL_J0948.9+0022_daily_bin861.fits scfile=/scratch/kocevski/518134/ft2_4FGL_J0948.9+0022_daily_bin861.fits outfile=/scratch/kocevski/518134/cmap_462499201_462758401_4FGL_J0948.9+0022_daily_bin861.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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518134/ft1_filtered_4FGL_J0948.9+0022_daily_bin861.fits scfile=/scratch/kocevski/518134/ft2_4FGL_J0948.9+0022_daily_bin861.fits outfile=/scratch/kocevski/518134/cmap_HighResolution_462499201_462758401_4FGL_J0948.9+0022_daily_bin861.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.57
user 0.37
sys 0.16

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10630E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.622       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4056       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.754       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.182       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9906       1.0000         .10000E-03   10000.    
     9 'norm      '    1.8890       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3367       1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5655       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1569       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57416       1.0000         .10000E-03   10000.    
    15 'norm      '    24.239       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.683       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3099       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5087       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96866       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0788       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=   5940.643     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2654 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2830        .30289E-06** at limit **
   2  norm          11.625        7.2851        .51200E-06    .30572E-03
   3  Prefactor     3.3679        60.394       -.67675E-05    .85085E-05
   4  Prefactor     .10000E-03    2.5681       -.42643E-06** at limit **
   5  Prefactor     34.834        53.621        .16904E-06   -.18239E-04
   6  Prefactor     .10000E-03    11.159       -.33257E-06** at limit **
   7  Prefactor     16.162        62.599        .38222E-05    .57558E-04
   8  norm          1.9913        2.7392       -.54920E-07    .50950E-04
   9  norm          1.8892        1.5771       -.24844E-06   -.14874E-03
  10  norm          2.3368        .93555       -.59667E-07    .43083E-03
  11  norm          .10000E-03    1.1171       -.81414E-07** at limit **
  12  Prefactor     2.5724        44.771        .28391E-05    .15265E-04
  13  Prefactor     4.1519        32.079        .20838E-06    .15906E-04
  14  Prefactor     .59368        77.232        .29025E-04   -.15007E-03
  15  norm          24.234        32.771       -.28311E-05   -.16662E-03
  16  Prefactor     .10000E-03    6.0583        .69419E-06** at limit **
  17  Prefactor     22.606        73.026        .79633E-05    .46848E-04
  18  Prefactor     .10000E-03    23.690        .14901E-06** at limit **
  19  Prefactor     .10000E-03    7.7220        .10138E-06** at limit **
  20  norm          3.3101        1.7338       -.82777E-07   -.74785E-04
  21  Prefactor     4.5087        6.6958       -.42071E-06   -.72553E-05
  22  Normalizat    .96817        .23021        .44172E-05    .78983E-03
  23  Prefactor     1.0793        .17206       -.16967E-05    .17599E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 11.6246
  Prefactor  = 3.36795
  Prefactor  = 0.0001
  Prefactor  = 34.8338
  Prefactor  = 0.0001
  Prefactor  = 16.1621
  norm       = 1.99129
  norm       = 1.88919
  norm       = 2.33679
  norm       = 0.0001
  Prefactor  = 2.57235
  Prefactor  = 4.15188
  Prefactor  = 0.593685
  norm       = 24.2337
  Prefactor  = 0.0001
  Prefactor  = 22.6061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.31015
  Prefactor  = 4.50875
  Normalizat = 0.968169
  Prefactor  = 1.07925
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.643     FROM HESSE     STATUS=OK           374 CALLS     3028 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3028        .22455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.625        7.2823        .11751E-03   -1.5026    
   3  Prefactor     3.3679        61.491        .21922E-03   -1.5341    
   4  Prefactor     .10000E-03    2.6081        .12058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.834        53.581        .67977E-04   -1.4527    
   6  Prefactor     .10000E-03    11.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.162        62.570        .99565E-04   -1.4904    
   8  norm          1.9913        2.7190        .14422E-03   -1.5426    
   9  norm          1.8892        1.5745        .83755E-04   -1.5433    
  10  norm          2.3368        .93584        .43450E-04   -1.5402    
  11  norm          .10000E-03    2.2012        .15774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5724        39.807        .25486E-03   -1.5387    
  13  Prefactor     4.1519        32.024        .19769E-03   -1.5300    
  14  Prefactor     .59368        79.846        .54845E-02   -1.5554    
  15  norm          24.234        31.244        .81362E-04   -1.4723    
  16  Prefactor     .10000E-03    6.0454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.606        72.652        .84103E-04   -1.4757    
  18  Prefactor     .10000E-03    23.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.7246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3101        1.7313        .69796E-04   -1.5344    
  21  Prefactor     4.5087        6.6859        .18961E-03   -1.5283    
  22  Normalizat    .96817        .26573        .29715E-03   -.94105    
  23  Prefactor     1.0793        .19313        .22466E-03   -.90132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18416e-09
Minuit parameter uncertainties:
  1  9.49795e-05
  2  7.28287
  3  28.8159
  4  7.8018e-06
  5  53.6555
  6  2.17448e-06
  7  62.8258
  8  2.71912
  9  1.57448
  10  0.935846
  11  1.3939e-05
  12  20.254
  13  23.0784
  14  13.7877
  15  31.2652
  16  7.45564e-05
  17  72.9381
  18  0.000207996
  19  7.29109e-05
  20  1.73128
  21  6.68697
  22  0.266088
  23  0.193251
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.337e+00  9.358e-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.079e+00  1.933e-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.682e-01  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.19
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.79e-07 +/- 7.18e-08
Energy Flux (Fixed Index): 4.47e-05 +/- 1.79e-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) = 5940.27849134
delta logL = 0.364196931284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5940.27828152
delta logL = 0.364406749186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3245       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9228       1.0000          .0000       5.0000    
     3 'Normalizat'    .90821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1177       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=   5940.278     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      240 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3245        .92718        .40799E-04   -.93655E-03
   2  alpha         2.9229        .58528        .15168E-01   -.19161E-04
   3  Normalizat    .90820        .25081        .30551E-03   -.44059E-04
   4  Prefactor     1.1177        .19556        .22129E-03    .16594E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.32445
  alpha      = 2.92285
  Normalizat = 0.908204
  Prefactor  = 1.11772
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.278     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3245        .91863        .16319E-05   -1.5403    
   2  alpha         2.9229        .57989        .60671E-03    .16996    
   3  Normalizat    .90820        .25120        .12221E-04   -.96172    
   4  Prefactor     1.1177        .19572        .88515E-05   -.88902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37848e-11
Minuit parameter uncertainties:
  1  0.918632
  2  0.585379
  3  0.25152
  4  0.195844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518134': 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) = 5940.27828152
delta logL = 0.364406749311

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.324e+00  9.186e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.923e+00  5.854e-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.118e+00  1.958e-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.082e-01  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.99
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.92 +/- 0.59
Photon Flux (Free Index): 2.19e-07 +/- 8.95e-08
Energy Flux (Free Index): 4.34e-05 +/- 1.65e-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/518134/cmap_HighResolution_462499201_462758401_4FGL_J0948.9+0022_daily_bin861.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.79e-07', energy_flux2='4.34e-05', photon_flux_error='7.18e-08', dlogl='3.64e-01', energy_flux='4.47e-05', photon_flux2='2.19e-07', job_status='DONE', time_completed='2021-09-01 03:02:41.359258', photon_index_error2='0.59', photon_index2='2.92', ts='10.19', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='0.97', time_epoch_completed='1630490561.36', return_code='0', job_id='518134', GAL2='1.12', EG2='0.91', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='8.95e-08', ts2='10.99', photon_index='2.45' WHERE bin_id='861' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:02:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 518134: <4FGL_J0948.9+0022_daily_bin861> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin861 147.244 0.3717 462499201 462758401 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 :                                   540.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            713 sec.

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

