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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin671
RA = 147.244, Dec = 0.3717
tmin = 413251201, tmax = 413510401
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='516612', job_status='RUN', time_executed='2021-09-01 02:49:38.545161', time_epoch_executed='1630489778.55' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516612

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516612/ft1_4FGL_J0948.9+0022_daily_bin671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516612/ft2_4FGL_J0948.9+0022_daily_bin671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516612/ft1_4FGL_J0948.9+0022_daily_bin671.fits outfile=/scratch/kocevski/516612/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin671.fits ra=147.244 dec=0.3717 rad=12.0 tmin=413251201.0 tmax=413510401.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 5.77
user 5.44
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516612/ft1_filtered_4FGL_J0948.9+0022_daily_bin671.fits evtable="EVENTS" scfile=/scratch/kocevski/516612/ft2_4FGL_J0948.9+0022_daily_bin671.fits sctable="SC_DATA" expcube=/scratch/kocevski/516612/ltcube_413251201_413510401_4FGL_J0948.9+0022_daily_bin671.fits outfile=/scratch/kocevski/516612/expmap_413251201_413510401_4FGL_J0948.9+0022_daily_bin671.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/516612/ltcube_413251201_413510401_4FGL_J0948.9+0022_daily_bin671.fits
.....................!
real 192.37
user 186.39
sys 4.31

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/516612/ft1_filtered_4FGL_J0948.9+0022_daily_bin671.fits scfile=/scratch/kocevski/516612/ft2_4FGL_J0948.9+0022_daily_bin671.fits outfile=/scratch/kocevski/516612/cmap_413251201_413510401_4FGL_J0948.9+0022_daily_bin671.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.59
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516612/ft1_filtered_4FGL_J0948.9+0022_daily_bin671.fits scfile=/scratch/kocevski/516612/ft2_4FGL_J0948.9+0022_daily_bin671.fits outfile=/scratch/kocevski/516612/cmap_HighResolution_413251201_413510401_4FGL_J0948.9+0022_daily_bin671.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.64
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1225       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3873       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8996       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.2607       1.0000         .10000E-03   10000.    
    10 'norm      '    .65410       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2718       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8610       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8264       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.703       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11156E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.623       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4359       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7823       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0014       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84168       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=   5839.968     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2505 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1215        4.4811        .90010E-07   -.20879E-05
   2  norm          1.3879        4.1258        .87927E-06   -.87444E-04
   3  Prefactor     .10000E-03    3.4979        .51286E-07** at limit **
   4  Prefactor     4.8991        4.2926        .28130E-06    .39871E-04
   5  Prefactor     .10000E-03    18.330       -.77972E-06** at limit **
   6  Prefactor     .10000E-03    14.317        .89268E-06** at limit **
   7  Prefactor     .10000E-03    19.246       -.47117E-06** at limit **
   8  norm          .10000E-03    1.9349        .12902E-06** at limit **
   9  norm          4.2603        1.7147        .24303E-07   -.26344E-04
  10  norm          .65406        .51021        .41607E-07    .22216E-04
  11  norm          3.2717        1.7318        .17004E-07    .48786E-05
  12  Prefactor     11.246        11.556       -.10612E-06   -.18280E-04
  13  Prefactor     3.8282        69.190       -.11795E-04   -.12881E-03
  14  Prefactor     .10000E-03    24.689        .11012E-05** at limit **
  15  norm          1.8233        19.212        .14788E-05   -.19784E-04
  16  Prefactor     .10000E-03    6.8925        .76556E-07** at limit **
  17  Prefactor     63.703        61.360       -.24891E-06    .35966E-05
  18  Prefactor     .10000E-03    34.902       -.59609E-06** at limit **
  19  Prefactor     20.626        18.329        .11076E-06    .34570E-04
  20  norm          2.4358        1.3511        .27271E-07   -.25899E-03
  21  Prefactor     6.7812        7.2460        .32606E-05   -.45774E-03
  22  Normalizat    1.0017        .19462        .42194E-06   -.65553E-04
  23  Prefactor     .84144        .14885       -.12338E-05    .47796E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.12145
  norm       = 1.38794
  Prefactor  = 0.0001
  Prefactor  = 4.8991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.26032
  norm       = 0.654057
  norm       = 3.27174
  Prefactor  = 11.2465
  Prefactor  = 3.82822
  Prefactor  = 0.000100001
  norm       = 1.8233
  Prefactor  = 0.0001
  Prefactor  = 63.7029
  Prefactor  = 0.0001
  Prefactor  = 20.6258
  norm       = 2.4358
  Prefactor  = 6.78117
  Normalizat = 1.00175
  Prefactor  = 0.841444
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.968     FROM HESSE     STATUS=OK           376 CALLS     2881 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1215        4.4791        .13111E-03   -1.5213    
   2  norm          1.3879        4.0864        .25839E-03   -1.5472    
   3  Prefactor     .10000E-03    3.5006        .13958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8991        4.2885        .13911E-03   -1.5265    
   5  Prefactor     .10000E-03    18.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.9775        .10377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2603        1.7185        .60530E-04   -1.5295    
  10  norm          .65406        .49198        .45846E-03   -1.5546    
  11  norm          3.2717        1.7344        .70931E-04   -1.5346    
  12  Prefactor     11.246        11.519        .11947E-03   -1.5037    
  13  Prefactor     3.8282        77.102        .20537E-03   -1.5317    
  14  Prefactor     .10000E-03    25.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8233        18.930        .30889E-03   -1.5438    
  16  Prefactor     .10000E-03    6.9234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     63.703        61.329        .50278E-04   -1.4110    
  18  Prefactor     .10000E-03    34.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.626        18.315        .88199E-04   -1.4799    
  20  norm          2.4358        1.3472        .31627E-03   -1.5396    
  21  Prefactor     6.7812        7.3768        .77034E-03   -1.5187    
  22  Normalizat    1.0017        .22778        .25559E-03   -.92972    
  23  Prefactor     .84144        .17357        .22252E-03   -.98218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35084e-10
Minuit parameter uncertainties:
  1  4.47931
  2  4.08724
  3  5.39008e-07
  4  4.28878
  5  0.000128764
  6  4.64852e-05
  7  8.34946e-05
  8  1.39701e-06
  9  1.71852
  10  0.491982
  11  1.73448
  12  11.5216
  13  34.4111
  14  0.000384411
  15  11.7545
  16  1.16568e-06
  17  61.3903
  18  0.000146824
  19  18.3201
  20  1.34726
  21  7.37782
  22  0.228005
  23  0.173687
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  6.541e-01  4.920e-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:  8.414e-01  1.737e-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.002e+00  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.02e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 9.41e-06

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

Saving results to:
/scratch/kocevski/516612/likelihoodResults_413251201_413510401_4FGL_J0948.9+0022_daily_bin671.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) = 5839.79142434
delta logL = 0.176444750023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5839.78874483
delta logL = 0.179124261655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65253       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0321       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82955       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=   5839.789     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65254        .51697        .96572E-02    .72731E-03
   2  alpha         2.0321        .56826        .42101       -.26317E-04
   3  Normalizat    1.0172        .18321        .43804E-01    .10879E-04
   4  Prefactor     .82955        .14865        .44101E-01    .10571E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.652542
  alpha      = 2.03208
  Normalizat = 1.01715
  Prefactor  = 0.829551
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.789     FROM HESSE     STATUS=OK            35 CALLS      238 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65254        .48609        .44040E-03   -1.5546    
   2  alpha         2.0321        .64597        .16329E-01   -.18828    
   3  Normalizat    1.0172        .21395        .25382E-03   -.92458    
   4  Prefactor     .82955        .17306        .22386E-03   -.98648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41945e-10
Minuit parameter uncertainties:
  1  0.486091
  2  0.65366
  3  0.214136
  4  0.173177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516612': 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) = 5839.78874482
delta logL = 0.179124271469

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  6.525e-01  4.861e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.032e+00  6.537e-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:  8.296e-01  1.732e-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.017e+00  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.00
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.03 +/- 0.65
Photon Flux (Free Index): 4.47e-08 +/- 3.49e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.20e-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/516612/cmap_HighResolution_413251201_413510401_4FGL_J0948.9+0022_daily_bin671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-05', comment='SUCCESS', photon_flux='5.02e-08', energy_flux2='1.53e-05', photon_flux_error='3.77e-08', dlogl='1.79e-01', energy_flux='1.25e-05', photon_flux2='4.47e-08', job_status='DONE', time_completed='2021-09-01 02:59:35.399222', photon_index_error2='0.65', photon_index2='2.03', ts='2.64', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.20e-05', EG='1.00', time_epoch_completed='1630490375.4', return_code='0', job_id='516612', GAL2='0.83', EG2='1.02', return_code2='0', energy_flux_error='9.41e-06', photon_flux_error2='3.49e-08', ts2='3.00', photon_index='2.45' WHERE bin_id='671' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:59:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 516612: <4FGL_J0948.9+0022_daily_bin671> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin671> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:15 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:16 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:46:16 2021
Terminated at Wed Sep  1 02:59:36 2021
Results reported at Wed Sep  1 02:59:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin671 147.244 0.3717 413251201 413510401 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 :                                   591.30 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             243.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

