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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin437
RA = 147.244, Dec = 0.3717
tmin = 352598401, tmax = 352857601
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='514865', job_status='RUN', time_executed='2021-09-01 02:44:57.218030', time_epoch_executed='1630489497.22' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514865

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514865/ft1_4FGL_J0948.9+0022_daily_bin437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514865/ft2_4FGL_J0948.9+0022_daily_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514865/ft1_4FGL_J0948.9+0022_daily_bin437.fits outfile=/scratch/kocevski/514865/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin437.fits ra=147.244 dec=0.3717 rad=12.0 tmin=352598401.0 tmax=352857601.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 4.16
user 3.90
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514865/ft1_filtered_4FGL_J0948.9+0022_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/514865/ft2_4FGL_J0948.9+0022_daily_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/514865/ltcube_352598401_352857601_4FGL_J0948.9+0022_daily_bin437.fits outfile=/scratch/kocevski/514865/expmap_352598401_352857601_4FGL_J0948.9+0022_daily_bin437.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/514865/ltcube_352598401_352857601_4FGL_J0948.9+0022_daily_bin437.fits
.....................!
real 191.98
user 187.51
sys 4.14

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/514865/ft1_filtered_4FGL_J0948.9+0022_daily_bin437.fits scfile=/scratch/kocevski/514865/ft2_4FGL_J0948.9+0022_daily_bin437.fits outfile=/scratch/kocevski/514865/cmap_352598401_352857601_4FGL_J0948.9+0022_daily_bin437.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.61
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514865/ft1_filtered_4FGL_J0948.9+0022_daily_bin437.fits scfile=/scratch/kocevski/514865/ft2_4FGL_J0948.9+0022_daily_bin437.fits outfile=/scratch/kocevski/514865/cmap_HighResolution_352598401_352857601_4FGL_J0948.9+0022_daily_bin437.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.464       1.0000         .10000E-03   10000.    
     2 'norm      '    16.643       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.9391       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6636       1.0000         .10000E-03   10000.    
    11 'norm      '    .29147       1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.532       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.762       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2454       1.0000         .10000E-03   10000.    
    15 'norm      '    19.593       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.549       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6282       1.0000         .10000E-03   10000.    
    20 'norm      '    .82301       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.0748       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0622       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0412       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=   6638.104     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2520 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.464        5.5645        .22637E-07    .29353E-04
   2  norm          16.644        7.6723       -.81524E-08   -.10604E-05
   3  Prefactor     .10000E-03    13.881        .17294E-06** at limit **
   4  Prefactor     5.6893        4.3164        .66125E-07    .90117E-05
   5  Prefactor     .10000E-03    9.1639        .18922E-07** at limit **
   6  Prefactor     .10000E-03    22.928       -.59625E-06** at limit **
   7  Prefactor     .10000E-03    26.805        .75481E-06** at limit **
   8  norm          .10000E-03    2.1120        .15472E-07** at limit **
   9  norm          8.9393        2.5057        .56066E-08    .12252E-04
  10  norm          1.6639        .86832        .16807E-07   -.51256E-04
  11  norm          .29137        .97875        .62086E-06   -.23426E-03
  12  Prefactor     41.526        22.906       -.85633E-07   -.78761E-04
  13  Prefactor     21.740        32.088       -.22738E-05   -.15960E-03
  14  Prefactor     2.2684        137.19        .60540E-05    .39609E-04
  15  norm          19.594        17.952        .38998E-06    .25735E-04
  16  Prefactor     .10000E-03    4.7739       -.29414E-06** at limit **
  17  Prefactor     61.515        75.252       -.34091E-05   -.11190E-03
  18  Prefactor     .10000E-03    34.260       -.37141E-06** at limit **
  19  Prefactor     8.6241        11.853        .20484E-06    .97322E-05
  20  norm          .82302        1.4558       -.20060E-07   -.22077E-03
  21  Prefactor     7.0751        6.6049        .26554E-05   -.15622E-03
  22  Normalizat    1.0621        .23783        .17036E-05   -.12240E-03
  23  Prefactor     1.0413        .17167       -.17523E-05    .26081E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.4644
  norm       = 16.6438
  Prefactor  = 0.0001
  Prefactor  = 5.68929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.93933
  norm       = 1.6639
  norm       = 0.291369
  Prefactor  = 41.5255
  Prefactor  = 21.7397
  Prefactor  = 2.2684
  norm       = 19.5935
  Prefactor  = 0.0001
  Prefactor  = 61.5145
  Prefactor  = 0.0001
  Prefactor  = 8.62409
  norm       = 0.823025
  Prefactor  = 7.07511
  Normalizat = 1.06209
  Prefactor  = 1.04132
 **********
 **   18 **HESSE 
 **********

 FCN=   6638.104     FROM HESSE     STATUS=OK           374 CALLS     2894 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.464        5.5651        .10532E-03   -1.4947    
   2  norm          16.644        7.6760        .98175E-04   -1.4892    
   3  Prefactor     .10000E-03    13.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6893        4.3173        .14038E-03   -1.5231    
   5  Prefactor     .10000E-03    9.1663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.1364        .11557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.9393        2.5173        .64098E-04   -1.5110    
  10  norm          1.6639        .86421        .50431E-04   -1.5450    
  11  norm          .29137        1.0115        .14200E-02   -1.5600    
  12  Prefactor     41.526        22.931        .62202E-04   -1.4418    
  13  Prefactor     21.740        32.667        .85862E-04   -1.4775    
  14  Prefactor     2.2684        140.24        .27425E-03   -1.5407    
  15  norm          19.594        17.971        .90486E-04   -1.4822    
  16  Prefactor     .10000E-03    4.7797        .17375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     61.515        76.434        .51145E-04   -1.4138    
  18  Prefactor     .10000E-03    34.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.6241        11.845        .13647E-03   -1.5121    
  20  norm          .82302        1.4146        .12262E-03   -1.5527    
  21  Prefactor     7.0751        6.7264        .75409E-03   -1.5176    
  22  Normalizat    1.0621        .27807        .31149E-03   -.90978    
  23  Prefactor     1.0413        .19951        .24446E-03   -.91365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55714e-08
Minuit parameter uncertainties:
  1  5.5653
  2  7.67648
  3  1.21699e-05
  4  4.31749
  5  2.38383e-07
  6  0.000102701
  7  0.000104131
  8  4.40011e-07
  9  2.51735
  10  0.864221
  11  1.01156
  12  22.936
  13  32.6943
  14  35.7588
  15  17.9757
  16  6.44548e-06
  17  76.5567
  18  5.57615e-05
  19  11.8482
  20  1.4147
  21  6.72715
  22  0.278457
  23  0.199653
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.664e+00  8.642e-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.041e+00  1.997e-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.062e+00  2.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.69
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 6.63e-08
Energy Flux (Fixed Index): 3.18e-05 +/- 1.65e-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) = 6637.32316527
delta logL = 0.780721266913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6637.32104851
delta logL = 0.782838028766

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7052       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2441       1.0000          .0000       5.0000    
     3 'Normalizat'    .97020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0945       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=   6637.321     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7053        13.224        .80507E-02    .58154E-04
   2  alpha         3.2442        3.3267        .43732        .14962E-04
   3  Normalizat    .97017        .11941        .73228E-01    .19605E-04
   4  Prefactor     1.0945        .12194        .54132E-01    .57914E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70531
  alpha      = 3.24424
  Normalizat = 0.970165
  Prefactor  = 1.09454
 **********
 **   18 **HESSE 
 **********

 FCN=   6637.321     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7053        .87358        .43368E-04   -1.5447    
   2  alpha         3.2442        .70330        .18547E-01    .30228    
   3  Normalizat    .97017        .26533        .32402E-03   -.94037    
   4  Prefactor     1.0945        .20186        .23933E-03   -.89641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59322e-11
Minuit parameter uncertainties:
  1  0.873589
  2  0.7139
  3  0.265687
  4  0.201999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514865': 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) = 6637.32104848
delta logL = 0.782838061845

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.705e+00  8.736e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.244e+00  7.139e-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.095e+00  2.020e-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.702e-01  2.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.42
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.24 +/- 0.71
Photon Flux (Free Index): 1.90e-07 +/- 8.86e-08
Energy Flux (Free Index): 3.39e-05 +/- 1.52e-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/514865/cmap_HighResolution_352598401_352857601_4FGL_J0948.9+0022_daily_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='3.39e-05', photon_flux_error='6.63e-08', dlogl='7.83e-01', energy_flux='3.18e-05', photon_flux2='1.90e-07', job_status='DONE', time_completed='2021-09-01 02:54:24.351103', photon_index_error2='0.71', photon_index2='3.24', ts='5.69', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='1.06', time_epoch_completed='1630490064.35', return_code='0', job_id='514865', GAL2='1.09', EG2='0.97', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='8.86e-08', ts2='7.42', photon_index='2.45' WHERE bin_id='437' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:54:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 514865: <4FGL_J0948.9+0022_daily_bin437> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin437> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:41:00 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:41: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:41:02 2021
Terminated at Wed Sep  1 02:54:25 2021
Results reported at Wed Sep  1 02:54:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin437 147.244 0.3717 352598401 352857601 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 :                                   563.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

