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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin390
RA = 147.244, Dec = 0.3717
tmin = 340416001, tmax = 340675201
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='514800', job_status='RUN', time_executed='2021-09-01 02:43:51.846157', time_epoch_executed='1630489431.85' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514800

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514800/ft1_4FGL_J0948.9+0022_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514800/ft2_4FGL_J0948.9+0022_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514800/ft1_4FGL_J0948.9+0022_daily_bin390.fits outfile=/scratch/kocevski/514800/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin390.fits ra=147.244 dec=0.3717 rad=12.0 tmin=340416001.0 tmax=340675201.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 6.97
user 6.43
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514800/ft1_filtered_4FGL_J0948.9+0022_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/514800/ft2_4FGL_J0948.9+0022_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/514800/ltcube_340416001_340675201_4FGL_J0948.9+0022_daily_bin390.fits outfile=/scratch/kocevski/514800/expmap_340416001_340675201_4FGL_J0948.9+0022_daily_bin390.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/514800/ltcube_340416001_340675201_4FGL_J0948.9+0022_daily_bin390.fits
.....................!
real 191.15
user 185.23
sys 4.27

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/514800/ft1_filtered_4FGL_J0948.9+0022_daily_bin390.fits scfile=/scratch/kocevski/514800/ft2_4FGL_J0948.9+0022_daily_bin390.fits outfile=/scratch/kocevski/514800/cmap_340416001_340675201_4FGL_J0948.9+0022_daily_bin390.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.53
user 0.40
sys 0.12

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8132       1.0000         .10000E-03   10000.    
     2 'norm      '    5.2483       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1595       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15466E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.306       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .49004       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1393       1.0000         .10000E-03   10000.    
    11 'norm      '    .70802       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2489       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13778E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13245E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10910E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.563       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.745       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8709       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86164       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2320       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=   6845.201     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2240 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8163        4.3336        .16708E-05   -.43386E-03
   2  norm          5.2495        4.1385       -.45038E-08   -.45744E-04
   3  Prefactor     5.1645        14.802        .13406E-05   -.23802E-04
   4  Prefactor     .10000E-03    2.4642       -.17606E-06** at limit **
   5  Prefactor     .10000E-03    67.439        .53120E-06** at limit **
   6  Prefactor     18.306        17.108        .42731E-06   -.24046E-04
   7  Prefactor     .10000E-03    31.159       -.27028E-06** at limit **
   8  norm          .10000E-03    2.6810       -.10607E-06** at limit **
   9  norm          .49009        .78345        .10290E-06   -.50401E-04
  10  norm          2.1393        .73384        .40817E-07   -.11454E-03
  11  norm          .70803        1.5748        .44528E-06    .25942E-03
  12  Prefactor     4.2647        13.742        .52536E-06   -.16801E-03
  13  Prefactor     .10001E-03    167.37       -.90128E-05** at limit **
  14  Prefactor     .10000E-03    70.350       -.34711E-06** at limit **
  15  norm          .10000E-03    14.404        .77444E-06** at limit **
  16  Prefactor     .10000E-03    19.156        .10145E-04** at limit **
  17  Prefactor     30.567        60.645        .11633E-05   -.35807E-04
  18  Prefactor     15.822        57.182       -.33749E-05   -.11162E-05
  19  Prefactor     .10000E-03    17.041        .63473E-05** at limit **
  20  norm          .10000E-03    .65973        .22082E-06** at limit **
  21  Prefactor     4.8692        6.1114        .30950E-06    .59019E-04
  22  Normalizat    .86150        .20425       -.31109E-05   -.91569E-04
  23  Prefactor     1.2320        .15795        .40896E-06   -.26233E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.81625
  norm       = 5.24952
  Prefactor  = 5.1645
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 18.3064
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.490088
  norm       = 2.13932
  norm       = 0.708034
  Prefactor  = 4.26469
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 30.567
  Prefactor  = 15.8216
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.86922
  Normalizat = 0.861504
  Prefactor  = 1.23201
 **********
 **   18 **HESSE 
 **********

 FCN=   6845.201     FROM HESSE     STATUS=OK           370 CALLS     2610 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8163        4.3045        .65283E-03   -1.5186    
   2  norm          5.2495        4.1348        .14518E-03   -1.5250    
   3  Prefactor     5.1645        14.806        .17699E-03   -1.5253    
   4  Prefactor     .10000E-03    2.5175        .12663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    68.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.306        17.143        .93610E-04   -1.4852    
   7  Prefactor     .10000E-03    31.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7221        .13217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .49009        .78297        .44920E-04   -1.5568    
  10  norm          2.1393        .73058        .39153E-04   -1.5415    
  11  norm          .70803        1.4827        .14877E-02   -1.5540    
  12  Prefactor     4.2647        13.658        .19548E-03   -1.5295    
  13  Prefactor     .10001E-03    172.36        .41073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    72.443        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    14.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.480        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.567        60.574        .72474E-04   -1.4602    
  18  Prefactor     15.822        56.965        .10094E-03   -1.4912    
  19  Prefactor     .10000E-03    17.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .68648        .13113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.8692        6.1016        .18226E-03   -1.5267    
  22  Normalizat    .86150        .23514        .30354E-03   -.97826    
  23  Prefactor     1.2320        .18321        .21377E-03   -.85352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77177e-10
Minuit parameter uncertainties:
  1  4.30468
  2  4.13503
  3  14.8164
  4  6.31447e-06
  5  0.000572264
  6  17.1474
  7  1.07514e-05
  8  9.86185e-06
  9  0.782987
  10  0.730582
  11  1.48277
  12  13.6678
  13  0.00256366
  14  0.000387572
  15  5.69698e-05
  16  0.000278869
  17  60.6964
  18  57.1614
  19  1.6773e-05
  20  1.6035e-06
  21  6.1024
  22  0.235422
  23  0.183306
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.139e+00  7.306e-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.232e+00  1.833e-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.615e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.14
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.64e-07 +/- 5.61e-08
Energy Flux (Fixed Index): 4.09e-05 +/- 1.40e-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) = 6844.72643109
delta logL = 0.474201877373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6844.72229165
delta logL = 0.478341314988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0777       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0856       1.0000          .0000       5.0000    
     3 'Normalizat'    .89935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2052       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=   6844.722     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0779        .70677        .71631E-02    .24932E-03
   2  alpha         2.0856        .31812        .24673       -.40605E-04
   3  Normalizat    .89939        .18940        .67316E-01    .20681E-04
   4  Prefactor     1.2051        .15665        .34510E-01    .23323E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.07791
  alpha      = 2.08562
  Normalizat = 0.899388
  Prefactor  = 1.20511
 **********
 **   18 **HESSE 
 **********

 FCN=   6844.722     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0779        .73309        .38602E-04   -1.5420    
   2  alpha         2.0856        .35009        .10361E-01   -.16652    
   3  Normalizat    .89939        .22070        .29779E-03   -.96482    
   4  Prefactor     1.2051        .18212        .21565E-03   -.86174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3602e-10
Minuit parameter uncertainties:
  1  0.73309
  2  0.35128
  3  0.220925
  4  0.182218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514800': 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) = 6844.72229156
delta logL = 0.478341402875

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.078e+00  7.331e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.086e+00  3.513e-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.205e+00  1.822e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  8.994e-01  2.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.07
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.09 +/- 0.35
Photon Flux (Free Index): 1.44e-07 +/- 5.44e-08
Energy Flux (Free Index): 4.69e-05 +/- 1.72e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.64e-07', energy_flux2='4.69e-05', photon_flux_error='5.61e-08', dlogl='4.78e-01', energy_flux='4.09e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-01 02:53:40.974469', photon_index_error2='0.35', photon_index2='2.09', ts='16.14', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.86', time_epoch_completed='1630490020.97', return_code='0', job_id='514800', GAL2='1.21', EG2='0.90', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='5.44e-08', ts2='17.07', photon_index='2.45' WHERE bin_id='390' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:53:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 514800: <4FGL_J0948.9+0022_daily_bin390> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin390 147.244 0.3717 340416001 340675201 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 :                                   568.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

