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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin396
RA = 147.244, Dec = 0.3717
tmin = 341971201, tmax = 342230401
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='514811', job_status='RUN', time_executed='2021-09-01 02:43:48.156644', time_epoch_executed='1630489428.16' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514811/ft1_4FGL_J0948.9+0022_daily_bin396.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514811/ft2_4FGL_J0948.9+0022_daily_bin396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514811/ft1_4FGL_J0948.9+0022_daily_bin396.fits outfile=/scratch/kocevski/514811/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin396.fits ra=147.244 dec=0.3717 rad=12.0 tmin=341971201.0 tmax=342230401.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.68
user 3.20
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514811/ft1_filtered_4FGL_J0948.9+0022_daily_bin396.fits" evtable="EVENTS" scfile=/scratch/kocevski/514811/ft2_4FGL_J0948.9+0022_daily_bin396.fits sctable="SC_DATA" outfile=/scratch/kocevski/514811/ltcube_341971201_342230401_4FGL_J0948.9+0022_daily_bin396.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/514811/ft2_4FGL_J0948.9+0022_daily_bin396.fits
.....................!
real 12.63
user 11.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514811/ft1_filtered_4FGL_J0948.9+0022_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/514811/ft2_4FGL_J0948.9+0022_daily_bin396.fits sctable="SC_DATA" expcube=/scratch/kocevski/514811/ltcube_341971201_342230401_4FGL_J0948.9+0022_daily_bin396.fits outfile=/scratch/kocevski/514811/expmap_341971201_342230401_4FGL_J0948.9+0022_daily_bin396.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/514811/ltcube_341971201_342230401_4FGL_J0948.9+0022_daily_bin396.fits
.....................!
real 193.52
user 186.30
sys 5.66

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/514811/ft1_filtered_4FGL_J0948.9+0022_daily_bin396.fits scfile=/scratch/kocevski/514811/ft2_4FGL_J0948.9+0022_daily_bin396.fits outfile=/scratch/kocevski/514811/cmap_341971201_342230401_4FGL_J0948.9+0022_daily_bin396.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=147.244 yref=0.3717 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.61
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514811/ft1_filtered_4FGL_J0948.9+0022_daily_bin396.fits scfile=/scratch/kocevski/514811/ft2_4FGL_J0948.9+0022_daily_bin396.fits outfile=/scratch/kocevski/514811/cmap_HighResolution_341971201_342230401_4FGL_J0948.9+0022_daily_bin396.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.66
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.440       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16800E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.0089       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5232       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9451       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.165       1.0000         .10000E-03   10000.    
    13 'Prefactor '    79.824       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16978E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.756       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24205E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1874       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5137       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1246       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .69813       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=   5320.997     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2530 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.440        4.8853        .33923E-06   -.71553E-04
   2  norm          .10000E-03    1.4317        .20255E-06** at limit **
   3  Prefactor     .10000E-03    14.874       -.49420E-05** at limit **
   4  Prefactor     .10000E-03    2.7962       -.76222E-07** at limit **
   5  Prefactor     .10000E-03    49.047        .14075E-04** at limit **
   6  Prefactor     .10000E-03    34.249       -.13219E-05** at limit **
   7  Prefactor     .10000E-03    16.928        .48448E-05** at limit **
   8  norm          .10000E-03    1.0913        .13830E-06** at limit **
   9  norm          3.0095        1.4325        .60144E-07   -.20304E-03
  10  norm          2.5231        .84249        .26543E-07   -.35055E-03
  11  norm          1.9451        1.5017        .61287E-07    .55243E-04
  12  Prefactor     22.170        14.193       -.21407E-06   -.11791E-04
  13  Prefactor     79.825        56.792        .25660E-06   -.26919E-04
  14  Prefactor     .10000E-03    126.47       -.50583E-05** at limit **
  15  norm          19.764        20.160        .20413E-05   -.75845E-05
  16  Prefactor     .10001E-03    11.714        .39229E-05** at limit **
  17  Prefactor     .10000E-03    41.394       -.92804E-05** at limit **
  18  Prefactor     5.1623        55.142       -.27660E-04   -.83921E-04
  19  Prefactor     .10000E-03    7.9067        .46352E-06** at limit **
  20  norm          .10000E-03    .34090       -.45839E-08** at limit **
  21  Prefactor     3.5167        7.1508        .72770E-05   -.33395E-03
  22  Normalizat    1.1241        .19990       -.20838E-05    .77363E-05
  23  Prefactor     .69832        .15061        .51685E-06   -.13150E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4398
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.00945
  norm       = 2.52308
  norm       = 1.94514
  Prefactor  = 22.1698
  Prefactor  = 79.8245
  Prefactor  = 0.000100001
  norm       = 19.7639
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 5.16233
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 3.51669
  Normalizat = 1.12414
  Prefactor  = 0.698319
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.997     FROM HESSE     STATUS=OK           366 CALLS     2896 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.440        4.8898        .97178E-04   -1.5002    
   2  norm          .10000E-03    1.4326        .85238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8806        .23792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    49.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0935        .74416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.0095        1.4331        .57568E-04   -1.5361    
  10  norm          2.5231        .84389        .36190E-04   -1.5390    
  11  norm          1.9451        1.5051        .76409E-04   -1.5429    
  12  Prefactor     22.170        14.216        .85078E-04   -1.4766    
  13  Prefactor     79.825        56.859        .44951E-04   -1.3919    
  14  Prefactor     .10000E-03    127.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.764        20.151        .90111E-04   -1.4819    
  16  Prefactor     .10001E-03    12.339        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1623        56.674        .17650E-03   -1.5254    
  19  Prefactor     .10000E-03    7.9317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .34298        .41566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5167        6.9399        .21567E-03   -1.5333    
  22  Normalizat    1.1241        .23572        .24478E-03   -.88980    
  23  Prefactor     .69832        .17671        .23975E-03   -1.0359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64289e-09
Minuit parameter uncertainties:
  1  4.88999
  2  6.875e-07
  3  2.9738e-05
  4  1.08689e-05
  5  5.19278e-05
  6  0.000151391
  7  7.76052e-06
  8  8.71691e-07
  9  1.43313
  10  0.843892
  11  1.50514
  12  14.218
  13  56.8977
  14  0.000664248
  15  20.1583
  16  0.00080267
  17  0.000236236
  18  34.2503
  19  0.000151585
  20  2.81212e-06
  21  6.94149
  22  0.235944
  23  0.17685
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.523e+00  8.439e-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:  6.983e-01  1.769e-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.124e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.18
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.94e-07 +/- 6.47e-08
Energy Flux (Fixed Index): 4.83e-05 +/- 1.61e-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) = 5320.91745708
delta logL = 0.0793091824189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5320.91649925
delta logL = 0.0802670044623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5615       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6590       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71814       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=   5320.916     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5616        1.2776        .63769E-02    .18326E-03
   2  alpha         2.6598        .72268        .31943       -.83882E-05
   3  Normalizat    1.0918        .19688        .56024E-01    .46570E-05
   4  Prefactor     .71825        .15605        .42642E-01    .10692E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.5616
  alpha      = 2.65984
  Normalizat = 1.0918
  Prefactor  = 0.718253
 **********
 **   18 **HESSE 
 **********

 FCN=   5320.916     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5616        .83035        .35296E-04   -1.5388    
   2  alpha         2.6598        .52415        .13002E-01    .63981E-01
   3  Normalizat    1.0918        .23879        .24773E-03   -.90016    
   4  Prefactor     .71825        .18340        .23676E-03   -1.0282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16893e-11
Minuit parameter uncertainties:
  1  0.830355
  2  0.52808
  3  0.239026
  4  0.183556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514811': 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) = 5320.91649797
delta logL = 0.0802682870435

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.562e+00  8.304e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.660e+00  5.281e-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:  7.183e-01  1.836e-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.092e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.17
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.66 +/- 0.53
Photon Flux (Free Index): 2.13e-07 +/- 8.18e-08
Energy Flux (Free Index): 4.75e-05 +/- 1.56e-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/514811/cmap_HighResolution_341971201_342230401_4FGL_J0948.9+0022_daily_bin396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.94e-07', energy_flux2='4.75e-05', photon_flux_error='6.47e-08', dlogl='8.03e-02', energy_flux='4.83e-05', photon_flux2='2.13e-07', job_status='DONE', time_completed='2021-09-01 02:52:45.142612', photon_index_error2='0.53', photon_index2='2.66', ts='20.18', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.56e-05', EG='1.12', time_epoch_completed='1630489965.14', return_code='0', job_id='514811', GAL2='0.72', EG2='1.09', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='8.18e-08', ts2='20.17', photon_index='2.45' WHERE bin_id='396' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:52:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 514811: <4FGL_J0948.9+0022_daily_bin396> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin396 147.244 0.3717 341971201 342230401 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 :                                   519.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            710 sec.

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

