/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 80 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 = 7674
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin535
RA = 147.244, Dec = 0.3717
tmin = 378000001, tmax = 378259201
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='515028', job_status='RUN', time_executed='2021-09-01 02:43:12.419625', time_epoch_executed='1630489392.42' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515028

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515028/ft1_4FGL_J0948.9+0022_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515028/ft2_4FGL_J0948.9+0022_daily_bin535.fits


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

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

Done.
real 3.44
user 3.24
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515028/ft1_filtered_4FGL_J0948.9+0022_daily_bin535.fits" evtable="EVENTS" scfile=/scratch/kocevski/515028/ft2_4FGL_J0948.9+0022_daily_bin535.fits sctable="SC_DATA" outfile=/scratch/kocevski/515028/ltcube_378000001_378259201_4FGL_J0948.9+0022_daily_bin535.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/515028/ft2_4FGL_J0948.9+0022_daily_bin535.fits
.....................!
real 11.67
user 11.31
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515028/ft1_filtered_4FGL_J0948.9+0022_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/515028/ft2_4FGL_J0948.9+0022_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/515028/ltcube_378000001_378259201_4FGL_J0948.9+0022_daily_bin535.fits outfile=/scratch/kocevski/515028/expmap_378000001_378259201_4FGL_J0948.9+0022_daily_bin535.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/515028/ltcube_378000001_378259201_4FGL_J0948.9+0022_daily_bin535.fits
.....................!
real 188.82
user 185.17
sys 3.32

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/515028/ft1_filtered_4FGL_J0948.9+0022_daily_bin535.fits scfile=/scratch/kocevski/515028/ft2_4FGL_J0948.9+0022_daily_bin535.fits outfile=/scratch/kocevski/515028/cmap_378000001_378259201_4FGL_J0948.9+0022_daily_bin535.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.56
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1119       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0787       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    66.376       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.849       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8635       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .51061       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4543       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0136       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2345       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.308       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12811E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8931       1.0000         .10000E-03   10000.    
    20 'norm      '    4.1578       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76481       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0785       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=   5729.809     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2601 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1117        3.1521       -.25684E-06   -.45439E-03
   2  norm          1.0784        3.7066       -.10569E-05   -.89917E-03
   3  Prefactor     .10000E-03    31.835       -.17398E-05** at limit **
   4  Prefactor     .10000E-03    2.0995       -.92909E-08** at limit **
   5  Prefactor     66.375        47.503       -.54148E-06    .41252E-04
   6  Prefactor     12.850        15.096        .86804E-06   -.51960E-05
   7  Prefactor     1.8722        77.177       -.36177E-04   -.36270E-04
   8  norm          .10000E-03    1.3124        .54201E-07** at limit **
   9  norm          .51060        1.3984       -.57303E-06   -.14453E-02
  10  norm          4.4543        1.0007       -.25080E-07    .23258E-03
  11  norm          3.0136        1.8720        .43890E-08    .63105E-04
  12  Prefactor     4.2259        15.793        .57710E-05    .16424E-03
  13  Prefactor     .10000E-03    12.425       -.11746E-06** at limit **
  14  Prefactor     .10000E-03    21.470        .63052E-06** at limit **
  15  norm          10.307        16.113       -.95888E-05    .12309E-03
  16  Prefactor     .10000E-03    10.080       -.60125E-06** at limit **
  17  Prefactor     .10001E-03    294.17       -.22679E-03** at limit **
  18  Prefactor     .10006E-03    233.12        .12855E-03** at limit **
  19  Prefactor     4.8834        20.547        .23899E-04   -.65218E-04
  20  norm          4.1577        1.9600       -.27233E-06   -.34704E-03
  21  Prefactor     .10000E-03    1.5211        .37177E-07** at limit **
  22  Normalizat    .76476        .21131       -.37649E-06    .40720E-03
  23  Prefactor     1.0786        .16151        .67088E-06    .32246E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.11174
  norm       = 1.07844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.3753
  Prefactor  = 12.8502
  Prefactor  = 1.87223
  norm       = 0.0001
  norm       = 0.510603
  norm       = 4.4543
  norm       = 3.01358
  Prefactor  = 4.22586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3065
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100063
  Prefactor  = 4.88342
  norm       = 4.15773
  Prefactor  = 0.0001
  Normalizat = 0.764759
  Prefactor  = 1.0786
 **********
 **   18 **HESSE 
 **********

 FCN=   5729.809     FROM HESSE     STATUS=OK           370 CALLS     2971 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1117        3.1315        .15845E-03   -1.5417    
   2  norm          1.0784        3.6387        .26246E-03   -1.5500    
   3  Prefactor     .10000E-03    32.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1290        .10700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     66.375        47.445        .49262E-04   -1.4077    
   6  Prefactor     12.850        15.082        .11174E-03   -1.4991    
   7  Prefactor     1.8722        78.382        .30521E-03   -1.5434    
   8  norm          .10000E-03    1.3193        .84676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .51060        1.4002        .13600E-03   -1.5565    
  10  norm          4.4543        1.0012        .33679E-04   -1.5286    
  11  norm          3.0136        1.8735        .79164E-04   -1.5361    
  12  Prefactor     4.2259        15.699        .19582E-03   -1.5297    
  13  Prefactor     .10000E-03    12.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.307        15.986        .12480E-03   -1.5066    
  16  Prefactor     .10000E-03    10.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    299.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10006E-03    229.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8834        20.083        .18184E-03   -1.5266    
  20  norm          4.1577        1.9582        .68585E-04   -1.5300    
  21  Prefactor     .10000E-03    1.5224        .91167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .76476        .24097        .30882E-03   -1.0139    
  23  Prefactor     1.0786        .18641        .21478E-03   -.90153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58548e-09
Minuit parameter uncertainties:
  1  3.13175
  2  3.63947
  3  0.00011594
  4  1.68935e-06
  5  47.4717
  6  15.0864
  7  24.2614
  8  3.08128e-06
  9  1.40028
  10  1.00119
  11  1.8735
  12  15.7138
  13  2.18343e-06
  14  3.81821e-06
  15  15.9928
  16  0.000175288
  17  0.0024992
  18  0.00760373
  19  19.8176
  20  1.9582
  21  2.67679e-07
  22  0.241308
  23  0.186527
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.454e+00  1.001e+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

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.079e+00  1.865e-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.648e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 44.00
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.42e-07 +/- 7.68e-08
Energy Flux (Fixed Index): 8.52e-05 +/- 1.92e-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) = 5728.83500791
delta logL = 0.974182640276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5728.81531139
delta logL = 0.993879158736

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2685       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0697       1.0000          .0000       5.0000    
     3 'Normalizat'    .83402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0312       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=   5728.815     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2687        .96757        .48753E-02   -.14427E-02
   2  alpha         2.0697        .23510        .16060       -.46512E-04
   3  Normalizat    .83423        .19705        .67177E-01    .19519E-04
   4  Prefactor     1.0311        .15935        .41162E-01    .49655E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.26873
  alpha      = 2.06971
  Normalizat = 0.834229
  Prefactor  = 1.03109
 **********
 **   18 **HESSE 
 **********

 FCN=   5728.815     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2687        1.0249        .33418E-04   -1.5295    
   2  alpha         2.0697        .25543        .69576E-03   -.17298    
   3  Normalizat    .83423        .23107        .29720E-03   -.98811    
   4  Prefactor     1.0311        .18613        .21879E-03   -.91700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.36298e-11
Minuit parameter uncertainties:
  1  1.02492
  2  0.255891
  3  0.231345
  4  0.18625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515028': 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) = 5728.81531086
delta logL = 0.993879694408

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.269e+00  1.025e+00  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.070e+00  2.559e-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.031e+00  1.863e-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:  8.342e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 45.66
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.07 +/- 0.26
Photon Flux (Free Index): 2.94e-07 +/- 7.68e-08
Energy Flux (Free Index): 9.75e-05 +/- 2.40e-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/515028/cmap_HighResolution_378000001_378259201_4FGL_J0948.9+0022_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.42e-07', energy_flux2='9.75e-05', photon_flux_error='7.68e-08', dlogl='9.94e-01', energy_flux='8.52e-05', photon_flux2='2.94e-07', job_status='DONE', time_completed='2021-09-01 02:52:06.201877', photon_index_error2='0.26', photon_index2='2.07', ts='44.00', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='0.76', time_epoch_completed='1630489926.2', return_code='0', job_id='515028', GAL2='1.03', EG2='0.83', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='7.68e-08', ts2='45.66', photon_index='2.45' WHERE bin_id='535' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:52:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 515028: <4FGL_J0948.9+0022_daily_bin535> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin535 147.244 0.3717 378000001 378259201 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 :                                   521.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             284.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            653 sec.

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

