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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin33
RA = 147.244, Dec = 0.3717
tmin = 247881601, tmax = 248140801
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='513061', job_status='RUN', time_executed='2021-09-01 02:36:52.025781', time_epoch_executed='1630489012.03' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513061/ft1_4FGL_J0948.9+0022_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513061/ft2_4FGL_J0948.9+0022_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513061/ft1_4FGL_J0948.9+0022_daily_bin33.fits outfile=/scratch/kocevski/513061/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin33.fits ra=147.244 dec=0.3717 rad=12.0 tmin=247881601.0 tmax=248140801.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.52
user 1.26
sys 0.14

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513061/ft1_filtered_4FGL_J0948.9+0022_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/513061/ft2_4FGL_J0948.9+0022_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/513061/ltcube_247881601_248140801_4FGL_J0948.9+0022_daily_bin33.fits outfile=/scratch/kocevski/513061/expmap_247881601_248140801_4FGL_J0948.9+0022_daily_bin33.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/513061/ltcube_247881601_248140801_4FGL_J0948.9+0022_daily_bin33.fits
.....................!
real 192.89
user 186.72
sys 5.20

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/513061/ft1_filtered_4FGL_J0948.9+0022_daily_bin33.fits scfile=/scratch/kocevski/513061/ft2_4FGL_J0948.9+0022_daily_bin33.fits outfile=/scratch/kocevski/513061/cmap_247881601_248140801_4FGL_J0948.9+0022_daily_bin33.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 2.83
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513061/ft1_filtered_4FGL_J0948.9+0022_daily_bin33.fits scfile=/scratch/kocevski/513061/ft2_4FGL_J0948.9+0022_daily_bin33.fits outfile=/scratch/kocevski/513061/cmap_HighResolution_247881601_248140801_4FGL_J0948.9+0022_daily_bin33.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.83
user 0.38
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.387       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4514       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16829E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .73121       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5742       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.639       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.167       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5767       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.696       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .45069       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11142E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75138       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1936       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=   9000.260     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2966 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.386        4.3746        .12301E-05   -.90498E-03
   2  norm          .10000E-03    1.5152       -.13955E-06** at limit **
   3  Prefactor     .10000E-03    6.4041        .32774E-06** at limit **
   4  Prefactor     3.4503        3.6186       -.88075E-06   -.65624E-03
   5  Prefactor     .10011E-03    16.906       -.58824E-06** at limit **
   6  Prefactor     .10000E-03    22.291       -.38889E-07** at limit **
   7  Prefactor     .10000E-03    9.9062       -.17119E-05** at limit **
   8  norm          .10000E-03    1.1918        .48492E-07** at limit **
   9  norm          .10000E-03    .43799        .68255E-07** at limit **
  10  norm          .73104        .52334        .37913E-07   -.10604E-02
  11  norm          3.5741        1.8063        .52908E-08   -.15484E-03
  12  Prefactor     39.637        12.932        .26539E-07   -.58935E-04
  13  Prefactor     22.171        29.109        .53121E-06    .28429E-05
  14  Prefactor     .10000E-03    13.690       -.55611E-06** at limit **
  15  norm          .10000E-03    9.0986       -.32668E-06** at limit **
  16  Prefactor     6.5765        5.7293       -.40327E-06    .44878E-04
  17  Prefactor     61.704        42.773        .45503E-05   -.16874E-03
  18  Prefactor     .10000E-03    10.962        .25291E-05** at limit **
  19  Prefactor     .10000E-03    3.3197        .22717E-07** at limit **
  20  norm          .45010        .78399       -.33383E-06   -.23010E-02
  21  Prefactor     .10000E-03    2.1039        .11548E-06** at limit **
  22  Normalizat    .75135        .16774       -.10755E-05    .59245E-04
  23  Prefactor     1.1937        .13001        .29865E-06    .10094E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 11.386
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.45026
  Prefactor  = 0.000100106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.731042
  norm       = 3.57415
  Prefactor  = 39.6365
  Prefactor  = 22.1709
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.57652
  Prefactor  = 61.704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.4501
  Prefactor  = 0.0001
  Normalizat = 0.751353
  Prefactor  = 1.19372
 **********
 **   18 **HESSE 
 **********

 FCN=   9000.260     FROM HESSE     STATUS=OK           376 CALLS     3342 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.386        4.2491        .11373E-03   -1.5033    
   2  norm          .10000E-03    1.5242        .11404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4503        3.7471        .17611E-03   -1.5336    
   5  Prefactor     .10011E-03    142.90        .74604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.8805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7965        .20138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .81012        .12083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .73104        .50212        .53908E-03   -1.5537    
  11  norm          3.5741        1.8037        .87538E-04   -1.5330    
  12  Prefactor     39.637        12.922        .63665E-04   -1.4448    
  13  Prefactor     22.171        29.047        .85075E-04   -1.4766    
  14  Prefactor     .10000E-03    13.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.1375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.5765        5.7183        .15648E-03   -1.5195    
  17  Prefactor     61.704        41.880        .51085E-04   -1.4135    
  18  Prefactor     .10000E-03    10.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3210        .16880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .45010        .77334        .11165E-02   -1.5574    
  21  Prefactor     .10000E-03    4.8082        .26623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .75135        .18731        .30439E-03   -1.0190    
  23  Prefactor     1.1937        .14970        .20644E-03   -.86525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7307e-09
Minuit parameter uncertainties:
  1  4.24924
  2  2.95407e-07
  3  6.43353e-06
  4  3.74733
  5  0.00780952
  6  4.21893e-05
  7  6.10806e-05
  8  9.2663e-08
  9  3.02763e-07
  10  0.502128
  11  1.80377
  12  12.9232
  13  29.0658
  14  2.71214e-05
  15  2.08197e-05
  16  5.71881
  17  41.9001
  18  0.000101628
  19  4.13125e-06
  20  0.77336
  21  1.27113e-05
  22  0.187474
  23  0.149753
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  7.310e-01  5.021e-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.194e+00  1.498e-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:  7.514e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.18
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.61e-08 +/- 3.85e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 9.61e-06

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

Saving results to:
/scratch/kocevski/513061/likelihoodResults_247881601_248140801_4FGL_J0948.9+0022_daily_bin33.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): 0
logL (Free Index) = 9000.25669258
delta logL = 0.00304004624559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9000.25651254
delta logL = 0.00322008484363

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73871       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5061       1.0000          .0000       5.0000    
     3 'Normalizat'    .74894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1950       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=   9000.257     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73872        2.6065        .11826E-01    .12982E-02
   2  alpha         2.5061        3.6441        .41152       -.43489E-04
   3  Normalizat    .74895        .15674        .68890E-01    .35047E-04
   4  Prefactor     1.1950        .14457        .34749E-01    .20716E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.738724
  alpha      = 2.50606
  Normalizat = 0.748945
  Prefactor  = 1.19504
 **********
 **   18 **HESSE 
 **********

 FCN=   9000.257     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73872        .50599        .53775E-03   -1.5536    
   2  alpha         2.5061        .65307        .21204E-01    .24257E-02
   3  Normalizat    .74895        .17968        .30484E-03   -1.0199    
   4  Prefactor     1.1950        .14910        .20635E-03   -.86484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51938e-10
Minuit parameter uncertainties:
  1  0.505988
  2  0.66073
  3  0.179822
  4  0.149156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513061': 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) = 9000.25651254
delta logL = 0.0032200856258

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  7.387e-01  5.060e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.506e+00  6.607e-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.195e+00  1.492e-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:  7.489e-01  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.51 +/- 0.66
Photon Flux (Free Index): 5.78e-08 +/- 4.36e-08
Energy Flux (Free Index): 1.40e-05 +/- 9.54e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/513061/cmap_HighResolution_247881601_248140801_4FGL_J0948.9+0022_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.29e-05', comment='SUCCESS', photon_flux='5.61e-08', energy_flux2='1.40e-05', photon_flux_error='3.85e-08', dlogl='3.22e-03', energy_flux='1.40e-05', photon_flux2='5.78e-08', job_status='DONE', time_completed='2021-09-01 02:49:42.097225', photon_index_error2='0.66', photon_index2='2.51', ts='3.18', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='9.54e-06', EG='0.75', time_epoch_completed='1630489782.1', return_code='0', job_id='513061', GAL2='1.20', EG2='0.75', return_code2='0', energy_flux_error='9.61e-06', photon_flux_error2='4.36e-08', ts2='3.16', photon_index='2.45' WHERE bin_id='33' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:49:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 513061: <4FGL_J0948.9+0022_daily_bin33> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin33 147.244 0.3717 247881601 248140801 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 :                                   760.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            827 sec.

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

