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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin585
RA = 147.244, Dec = 0.3717
tmin = 390960001, tmax = 391219201
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='516460', job_status='RUN', time_executed='2021-09-01 02:47:58.964458', time_epoch_executed='1630489678.96' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516460

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516460/ft1_4FGL_J0948.9+0022_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516460/ft2_4FGL_J0948.9+0022_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516460/ft1_4FGL_J0948.9+0022_daily_bin585.fits outfile=/scratch/kocevski/516460/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin585.fits ra=147.244 dec=0.3717 rad=12.0 tmin=390960001.0 tmax=391219201.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 4.65
user 4.39
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516460/ft1_filtered_4FGL_J0948.9+0022_daily_bin585.fits" evtable="EVENTS" scfile=/scratch/kocevski/516460/ft2_4FGL_J0948.9+0022_daily_bin585.fits sctable="SC_DATA" outfile=/scratch/kocevski/516460/ltcube_390960001_391219201_4FGL_J0948.9+0022_daily_bin585.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/516460/ft2_4FGL_J0948.9+0022_daily_bin585.fits
.....................!
real 14.19
user 12.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516460/ft1_filtered_4FGL_J0948.9+0022_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/516460/ft2_4FGL_J0948.9+0022_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/516460/ltcube_390960001_391219201_4FGL_J0948.9+0022_daily_bin585.fits outfile=/scratch/kocevski/516460/expmap_390960001_391219201_4FGL_J0948.9+0022_daily_bin585.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/516460/ltcube_390960001_391219201_4FGL_J0948.9+0022_daily_bin585.fits
.....................!
real 192.62
user 185.93
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/516460/ft1_filtered_4FGL_J0948.9+0022_daily_bin585.fits scfile=/scratch/kocevski/516460/ft2_4FGL_J0948.9+0022_daily_bin585.fits outfile=/scratch/kocevski/516460/cmap_390960001_391219201_4FGL_J0948.9+0022_daily_bin585.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.64
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516460/ft1_filtered_4FGL_J0948.9+0022_daily_bin585.fits scfile=/scratch/kocevski/516460/ft2_4FGL_J0948.9+0022_daily_bin585.fits outfile=/scratch/kocevski/516460/cmap_HighResolution_390960001_391219201_4FGL_J0948.9+0022_daily_bin585.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.60
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1402       1.0000         .10000E-03   10000.    
     2 'norm      '    20.642       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.079       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .75691       1.0000         .10000E-03   10000.    
    10 'norm      '    .92878       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2136       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9452       1.0000         .10000E-03   10000.    
    15 'norm      '    5.6554       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.731       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11142E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8793       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88436       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98535       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=   6642.623     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2536 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1408        3.8665        .13977E-05    .10545E-03
   2  norm          20.643        7.1261       -.55633E-07   -.16376E-04
   3  Prefactor     .10000E-03    2.8468       -.61186E-09** at limit **
   4  Prefactor     2.5786        1.7383        .55854E-06   -.39833E-02
   5  Prefactor     .10000E-03    6.7621        .25103E-05** at limit **
   6  Prefactor     14.081        11.491       -.16354E-06   -.20245E-04
   7  Prefactor     .10000E-03    6.6978       -.21886E-05** at limit **
   8  norm          .10000E-03    1.2692        .13389E-07** at limit **
   9  norm          .75727        .94112        .40965E-07   -.69931E-04
  10  norm          .92880        .56320       -.13105E-08   -.10532E-03
  11  norm          1.2139        1.9487        .12780E-06   -.21231E-03
  12  Prefactor     .10000E-03    14.970       -.13136E-05** at limit **
  13  Prefactor     .10000E-03    30.033       -.65980E-05** at limit **
  14  Prefactor     9.9423        17.575       -.13507E-05   -.31859E-04
  15  norm          5.6510        12.397        .71006E-06    .19832E-04
  16  Prefactor     .10000E-03    4.9438       -.29613E-05** at limit **
  17  Prefactor     57.725        62.107       -.44966E-05   -.55784E-04
  18  Prefactor     .10000E-03    24.609        .73931E-05** at limit **
  19  Prefactor     .10000E-03    4.8715        .29881E-05** at limit **
  20  norm          .10000E-03    .78689        .86163E-07** at limit **
  21  Prefactor     5.8783        6.3811       -.96653E-07   -.82568E-04
  22  Normalizat    .88407        .18069        .49803E-06   -.43039E-04
  23  Prefactor     .98551        .14006       -.59525E-06    .33510E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.14075
  norm       = 20.6432
  Prefactor  = 0.0001
  Prefactor  = 2.57859
  Prefactor  = 0.0001
  Prefactor  = 14.0814
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.757266
  norm       = 0.928805
  norm       = 1.21395
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.94228
  norm       = 5.65102
  Prefactor  = 0.0001
  Prefactor  = 57.7247
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.87827
  Normalizat = 0.884074
  Prefactor  = 0.985515
 **********
 **   18 **HESSE 
 **********

 FCN=   6642.623     FROM HESSE     STATUS=OK           374 CALLS     2910 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1408        3.8589        .16970E-03   -1.5354    
   2  norm          20.643        7.1272        .88158E-04   -1.4799    
   3  Prefactor     .10000E-03    2.8485        .13430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5786        3.3801        .81550E-03   -1.5387    
   5  Prefactor     .10000E-03    6.7749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.081        11.488        .10675E-03   -1.4957    
   7  Prefactor     .10000E-03    6.7078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2786        .89624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .75727        .84982        .84467E-03   -1.5534    
  10  norm          .92880        .55184        .44667E-04   -1.5515    
  11  norm          1.2139        1.9278        .13705E-03   -1.5488    
  12  Prefactor     .10000E-03    15.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.9423        17.584        .12706E-03   -1.5077    
  15  norm          5.6510        12.377        .16892E-03   -1.5232    
  16  Prefactor     .10000E-03    4.9353        .17642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     57.725        62.669        .52799E-04   -1.4187    
  18  Prefactor     .10000E-03    24.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.9067        .17627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8760        .13910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.8783        6.3724        .16562E-03   -1.5223    
  22  Normalizat    .88407        .21053        .27053E-03   -.97022    
  23  Prefactor     .98551        .16386        .20909E-03   -.93214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87891e-09
Minuit parameter uncertainties:
  1  3.85919
  2  7.12746
  3  6.41552e-07
  4  3.38035
  5  5.08583e-05
  6  11.49
  7  4.50711e-05
  8  9.71667e-08
  9  0.849829
  10  0.551839
  11  1.92785
  12  1.26539e-05
  13  0.000247327
  14  17.5926
  15  12.3822
  16  3.3715e-05
  17  62.7408
  18  0.000354734
  19  6.06815e-05
  20  7.76431e-06
  21  6.37311
  22  0.210727
  23  0.163947
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  9.288e-01  5.518e-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:  9.855e-01  1.639e-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.841e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.17
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 7.13e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.06e-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) = 6642.23885835
delta logL = 0.384298889146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6642.23614761
delta logL = 0.387009632639

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97202       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0905       1.0000          .0000       5.0000    
     3 'Normalizat'    .84526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0071       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6642.236     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      225 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97195        .54640        .40275E-04   -.91965E-03
   2  alpha         3.0905        .76139        .21656E-01   -.10833E-04
   3  Normalizat    .84526        .20373        .27593E-03    .11141E-03
   4  Prefactor     1.0071        .16276        .20707E-03    .14594E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.97195
  alpha      = 3.09049
  Normalizat = 0.845258
  Prefactor  = 1.00715
 **********
 **   18 **HESSE 
 **********

 FCN=   6642.236     FROM HESSE     STATUS=OK            23 CALLS      248 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97195        .53921        .16110E-05   -1.5511    
   2  alpha         3.0905        .75143        .86624E-03    .23845    
   3  Normalizat    .84526        .20402        .11037E-04   -.98411    
   4  Prefactor     1.0071        .16289        .41414E-04   -.92492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46988e-11
Minuit parameter uncertainties:
  1  0.539218
  2  0.763962
  3  0.204207
  4  0.162974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516460': 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) = 6642.23614759
delta logL = 0.387009655101

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  9.719e-01  5.392e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.090e+00  7.640e-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.007e+00  1.630e-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.453e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.09 +/- 0.76
Photon Flux (Free Index): 9.96e-08 +/- 5.73e-08
Energy Flux (Free Index): 1.86e-05 +/- 9.82e-06

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/516460/cmap_HighResolution_390960001_391219201_4FGL_J0948.9+0022_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.13e-08', energy_flux2='1.86e-05', photon_flux_error='4.23e-08', dlogl='3.87e-01', energy_flux='1.78e-05', photon_flux2='9.96e-08', job_status='DONE', time_completed='2021-09-01 02:57:40.647049', photon_index_error2='0.76', photon_index2='3.09', ts='5.17', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='9.82e-06', EG='0.88', time_epoch_completed='1630490260.65', return_code='0', job_id='516460', GAL2='1.01', EG2='0.85', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='5.73e-08', ts2='6.01', photon_index='2.45' WHERE bin_id='585' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:57:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 516460: <4FGL_J0948.9+0022_daily_bin585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin585 147.244 0.3717 390960001 391219201 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 :                                   571.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            704 sec.

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

