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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin56
RA = 147.244, Dec = 0.3717
tmin = 253843201, tmax = 254102401
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='513084', job_status='RUN', time_executed='2021-09-01 02:36:21.482220', time_epoch_executed='1630488981.48' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513084

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513084/ft1_4FGL_J0948.9+0022_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513084/ft2_4FGL_J0948.9+0022_daily_bin56.fits


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

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

Done.
real 1.46
user 1.31
sys 0.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513084/ft2_4FGL_J0948.9+0022_daily_bin56.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/513084/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/513084/ft1_filtered_4FGL_J0948.9+0022_daily_bin56.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.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513084/ft1_filtered_4FGL_J0948.9+0022_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/513084/ft2_4FGL_J0948.9+0022_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/513084/ltcube_253843201_254102401_4FGL_J0948.9+0022_daily_bin56.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/513084/ft2_4FGL_J0948.9+0022_daily_bin56.fits
.....................!
real 12.32
user 11.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513084/ft1_filtered_4FGL_J0948.9+0022_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/513084/ft2_4FGL_J0948.9+0022_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/513084/ltcube_253843201_254102401_4FGL_J0948.9+0022_daily_bin56.fits outfile=/scratch/kocevski/513084/expmap_253843201_254102401_4FGL_J0948.9+0022_daily_bin56.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/513084/ltcube_253843201_254102401_4FGL_J0948.9+0022_daily_bin56.fits
.....................!
real 191.90
user 187.19
sys 3.93

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/513084/ft1_filtered_4FGL_J0948.9+0022_daily_bin56.fits scfile=/scratch/kocevski/513084/ft2_4FGL_J0948.9+0022_daily_bin56.fits outfile=/scratch/kocevski/513084/cmap_253843201_254102401_4FGL_J0948.9+0022_daily_bin56.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.66
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513084/ft1_filtered_4FGL_J0948.9+0022_daily_bin56.fits scfile=/scratch/kocevski/513084/ft2_4FGL_J0948.9+0022_daily_bin56.fits outfile=/scratch/kocevski/513084/cmap_HighResolution_253843201_254102401_4FGL_J0948.9+0022_daily_bin56.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.70
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2161       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7678       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0236       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1870       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.670       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.999       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.204       1.0000         .10000E-03   10000.    
     8 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5321       1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8037       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9576       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.927       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.092       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33968E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    148.78       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2588       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91536       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=   6811.970     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2590 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2155        5.3413        .18924E-06   -.93183E-04
   2  norm          2.7677        3.9482        .27845E-06    .16429E-04
   3  Prefactor     3.0229        11.111        .10058E-05   -.16236E-05
   4  Prefactor     1.1868        3.3835        .15160E-05    .92065E-04
   5  Prefactor     18.670        22.821        .17288E-06   -.23766E-04
   6  Prefactor     17.002        17.809        .46165E-07   -.40248E-05
   7  Prefactor     14.203        25.036        .39979E-06   -.25484E-04
   8  norm          .10000E-03    2.8113        .66742E-06** at limit **
   9  norm          1.5320        1.1840        .10735E-06    .36162E-04
  10  norm          .10007E-03    .24916       -.49158E-07** at limit **
  11  norm          1.8035        1.5810        .90642E-07   -.11725E-03
  12  Prefactor     6.9575        8.2554       -.10664E-06   -.16061E-04
  13  Prefactor     37.941        45.211        .96777E-06    .26087E-04
  14  Prefactor     .10000E-03    17.363        .39031E-06** at limit **
  15  norm          .10000E-03    6.2192        .54492E-07** at limit **
  16  Prefactor     25.092        13.949       -.28306E-06   -.73184E-04
  17  Prefactor     .10000E-03    335.61       -.58268E-05** at limit **
  18  Prefactor     148.79        74.746       -.17303E-05   -.72835E-05
  19  Prefactor     .10000E-03    9.9213        .54765E-06** at limit **
  20  norm          .10000E-03    .35394        .75455E-07** at limit **
  21  Prefactor     .10000E-03    4.7087        .17277E-06** at limit **
  22  Normalizat    1.2588        .21337       -.26886E-05   -.98431E-04
  23  Prefactor     .91539        .15519        .80488E-06   -.29025E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.21554
  norm       = 2.76765
  Prefactor  = 3.02288
  Prefactor  = 1.18676
  Prefactor  = 18.6698
  Prefactor  = 17.0024
  Prefactor  = 14.203
  norm       = 0.000100004
  norm       = 1.53204
  norm       = 0.000100065
  norm       = 1.80352
  Prefactor  = 6.95754
  Prefactor  = 37.9414
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.0919
  Prefactor  = 0.000100003
  Prefactor  = 148.794
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25878
  Prefactor  = 0.91539
 **********
 **   18 **HESSE 
 **********

 FCN=   6811.970     FROM HESSE     STATUS=OK           380 CALLS     2970 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2155        5.3328        .13987E-03   -1.5135    
   2  norm          2.7677        3.9339        .19006E-03   -1.5375    
   3  Prefactor     3.0229        11.096        .23338E-03   -1.5360    
   4  Prefactor     1.1868        3.3945        .24273E-03   -1.5490    
   5  Prefactor     18.670        22.804        .92693E-04   -1.4844    
   6  Prefactor     17.002        17.719        .97142E-04   -1.4883    
   7  Prefactor     14.203        25.012        .10628E-03   -1.4954    
   8  norm          .10000E-03    10.252        .26085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5320        1.1718        .75910E-04   -1.5460    
  10  norm          .10007E-03    7.4451        .77370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8035        1.5716        .93864E-04   -1.5439    
  12  Prefactor     6.9575        8.2490        .15210E-03   -1.5180    
  13  Prefactor     37.941        45.306        .65080E-04   -1.4475    
  14  Prefactor     .10000E-03    17.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.2271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.092        13.960        .79970E-04   -1.4706    
  17  Prefactor     .10000E-03    340.22        .42673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     148.79        74.751        .16520E-03   -1.3262    
  19  Prefactor     .10000E-03    9.9725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .35822        .48006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.8664        .34996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2588        .24461        .26519E-03   -.84805    
  23  Prefactor     .91539        .18208        .24232E-03   -.95605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89501e-09
Minuit parameter uncertainties:
  1  5.33307
  2  3.93431
  3  11.1036
  4  3.395
  5  22.8149
  6  17.7244
  7  25.0304
  8  0.000400812
  9  1.17179
  10  0.0013959
  11  1.57163
  12  8.25032
  13  45.3476
  14  2.15935e-05
  15  1.97723e-05
  16  13.9623
  17  0.00218476
  18  74.7981
  19  3.78164e-05
  20  1.40652e-06
  21  1.54281e-05
  22  0.244832
  23  0.182199
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.001e-04  1.396e-03  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.154e-01  1.822e-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.259e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513084/likelihoodResults_253843201_254102401_4FGL_J0948.9+0022_daily_bin56.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6811.97056065
delta logL = -0.000740285047868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6811.42527776
delta logL = 0.544542602242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17857       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95720       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=   6811.425     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      297 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17857        .18808        .33873E-04   -.28528E-04
   2  alpha         5.0000        3.9346        .11760    ** at limit **
   3  Normalizat    1.1733        .24002        .27333E-03   -.12894E-05
   4  Prefactor     .95718        .18544        .23760E-03   -.15311E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.178571
  alpha      = 5
  Normalizat = 1.17332
  Prefactor  = 0.957175
 **********
 **   18 **HESSE 
 **********

 FCN=   6811.425     FROM HESSE     STATUS=OK            23 CALLS      320 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17857        .18578        .13549E-05   -1.5623    
   2  alpha         5.0000        3.9365        .47038E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1733        .24026        .10933E-04   -.87431    
   4  Prefactor     .95718        .18564        .95041E-05   -.94171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61374e-13
Minuit parameter uncertainties:
  1  0.185778
  2  2.8022e-06
  3  0.240491
  4  0.185758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513084': 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) = 6811.42527772
delta logL = 0.544542641942

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.786e-01  1.858e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  5.000e+00  2.802e-06  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.572e-01  1.858e-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.173e+00  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 147.244 0.372
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.56e-08 +/- 6.79e-08
Energy Flux (Free Index): 8.83e-06 +/- 9.16e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/513084/cmap_HighResolution_253843201_254102401_4FGL_J0948.9+0022_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', comment='SUCCESS', energy_flux2='8.83e-06', dlogl='5.45e-01', photon_flux2='6.56e-08', job_status='DONE', time_completed='2021-09-01 02:47:05.010721', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='9.16e-06', EG='1.26', time_epoch_completed='1630489625.01', return_code='0', job_id='513084', GAL2='0.96', EG2='1.17', return_code2='0', photon_flux_error2='6.79e-08', ts2='1.19', photon_index='2.45' WHERE bin_id='56' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:47:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 513084: <4FGL_J0948.9+0022_daily_bin56> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin56 147.244 0.3717 253843201 254102401 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 :                                   624.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             355.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            665 sec.

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

