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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin637
RA = 147.244, Dec = 0.3717
tmin = 404438401, tmax = 404697601
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='516560', job_status='RUN', time_executed='2021-09-01 02:48:49.427895', time_epoch_executed='1630489729.43' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516560

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516560/ft1_4FGL_J0948.9+0022_daily_bin637.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516560/ft2_4FGL_J0948.9+0022_daily_bin637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516560/ft1_4FGL_J0948.9+0022_daily_bin637.fits outfile=/scratch/kocevski/516560/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin637.fits ra=147.244 dec=0.3717 rad=12.0 tmin=404438401.0 tmax=404697601.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 13.83
user 12.37
sys 0.29

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516560/ft1_filtered_4FGL_J0948.9+0022_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/516560/ft2_4FGL_J0948.9+0022_daily_bin637.fits sctable="SC_DATA" expcube=/scratch/kocevski/516560/ltcube_404438401_404697601_4FGL_J0948.9+0022_daily_bin637.fits outfile=/scratch/kocevski/516560/expmap_404438401_404697601_4FGL_J0948.9+0022_daily_bin637.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/516560/ltcube_404438401_404697601_4FGL_J0948.9+0022_daily_bin637.fits
.....................!
real 192.73
user 185.17
sys 5.09

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/516560/ft1_filtered_4FGL_J0948.9+0022_daily_bin637.fits scfile=/scratch/kocevski/516560/ft2_4FGL_J0948.9+0022_daily_bin637.fits outfile=/scratch/kocevski/516560/cmap_404438401_404697601_4FGL_J0948.9+0022_daily_bin637.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516560/ft1_filtered_4FGL_J0948.9+0022_daily_bin637.fits scfile=/scratch/kocevski/516560/ft2_4FGL_J0948.9+0022_daily_bin637.fits outfile=/scratch/kocevski/516560/cmap_HighResolution_404438401_404697601_4FGL_J0948.9+0022_daily_bin637.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9704       1.0000         .10000E-03   10000.    
     2 'norm      '    8.2774       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23373       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1566       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6381       1.0000         .10000E-03   10000.    
     8 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.6671       1.0000         .10000E-03   10000.    
    10 'norm      '    .44051E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1901       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.007       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.816       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1573       1.0000         .10000E-03   10000.    
    15 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    81.698       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3531       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9954       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97593       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1048       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9526.047     FROM MIGRAD    STATUS=CONVERGED    109 CALLS     2171 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9704        3.7318        .22330E-07   -.34738E-03
   2  norm          8.2847        3.7598       -.66151E-06    .41421E-02
   3  Prefactor     .10001E-03    754.58        .44011E-05** at limit **
   4  Prefactor     6.0777        4.1667        .34270E-06    .24121E-03
   5  Prefactor     .10000E-03    11.367       -.22034E-05** at limit **
   6  Prefactor     5.1554        1.1125        .11652E-06    .13702E-03
   7  Prefactor     5.6380        1.0928       -.13541E-06   -.12241E-03
   8  norm          .10000E-03    5.0562       -.10124E-05** at limit **
   9  norm          7.6666        2.0993        .11954E-06    .26022E-03
  10  norm          .47011E-01    1.7632        .59551E-06   -.82450E-05
  11  norm          1.1900        1.1640        .14228E-06    .88995E-04
  12  Prefactor     22.001        3.2846        .69071E-06   -.71008E-02
  13  Prefactor     18.808        1.5757       -.75782E-06    .34729E-02
  14  Prefactor     1.1122        67.472        .25367E-04   -.21491E-03
  15  norm          .10000E-03    4.6424        .19242E-05** at limit **
  16  Prefactor     14.923        7.5693       -.56797E-05   -.49389E-04
  17  Prefactor     81.701        1.7659       -.54294E-06    .51154E-02
  18  Prefactor     .10000E-03    16.607        .91511E-07** at limit **
  19  Prefactor     .10000E-03    3.9041        .18136E-06** at limit **
  20  norm          2.3529        1.1304       -.34135E-06    .12530E-03
  21  Prefactor     9.9942        4.1992        .39175E-05    .44846E-02
  22  Normalizat    .97602        .20599       -.91565E-06   -.11706E-03
  23  Prefactor     1.1049        .16008       -.45632E-06   -.13268E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.97036
  norm       = 8.28475
  Prefactor  = 0.000100013
  Prefactor  = 6.07774
  Prefactor  = 0.0001
  Prefactor  = 5.15537
  Prefactor  = 5.63801
  norm       = 0.0001
  norm       = 7.66659
  norm       = 0.0470112
  norm       = 1.19
  Prefactor  = 22.0009
  Prefactor  = 18.8081
  Prefactor  = 1.11218
  norm       = 0.0001
  Prefactor  = 14.9232
  Prefactor  = 81.701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3529
  Prefactor  = 9.99417
  Normalizat = 0.976016
  Prefactor  = 1.10488
 **********
 **   18 **HESSE 
 **********

 FCN=   9526.047     FROM HESSE     STATUS=OK           442 CALLS     2613 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9704        3.7602        .50606E-02   -1.5309    
   2  norm          8.2847        5.7978        .34836E-02   -1.5132    
   3  Prefactor     .10001E-03    12.791        .11583       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0777        4.1937        .40712E-02   -1.5215    
   5  Prefactor     .10000E-03    11.406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1554        10.098        .44260E-02   -1.5254    
   7  Prefactor     5.6380        21.784        .42295E-02   -1.5233    
   8  norm          .10000E-03    1.2476        .36330E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.6666        2.1033        .36206E-02   -1.5154    
  10  norm          .47011E-01    .24875        .28654E-01   -1.5665    
  11  norm          1.1900        1.1659        .10440E-02   -1.5490    
  12  Prefactor     22.001        13.938        .21346E-02   -1.4770    
  13  Prefactor     18.808        25.272        .23083E-02   -1.4840    
  14  Prefactor     1.1122        70.956        .10723E-01   -1.5497    
  15  norm          .10000E-03    4.6496        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.923        8.3050        .25921E-02   -1.4935    
  17  Prefactor     81.701        53.478        .11109E-02   -1.3898    
  18  Prefactor     .10000E-03    16.702        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9032        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3529        1.1399        .66802E-02   -1.5401    
  21  Prefactor     9.9942        4.9625        .31686E-02   -1.5076    
  22  Normalizat    .97602        .18611        .68921E-01   -.93838    
  23  Prefactor     1.1049        .13689        .37406E-01   -.89311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95196e-07
Minuit parameter uncertainties:
  1  3.76038
  2  5.79821
  3  0.000826569
  4  4.19386
  5  3.06515e-05
  6  10.101
  7  21.8151
  8  3.21744e-05
  9  2.10336
  10  0.216048
  11  1.16596
  12  13.9396
  13  25.2868
  14  17.7881
  15  2.94991e-05
  16  8.30563
  17  53.5091
  18  6.23362e-05
  19  5.54209e-06
  20  1.13994
  21  4.96273
  22  0.186235
  23  0.136934
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.701e-02  2.160e-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.105e+00  1.369e-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:  9.760e-01  1.862e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/516560/likelihoodResults_404438401_404697601_4FGL_J0948.9+0022_daily_bin637.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9526.0156373
delta logL = 0.0311327950712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9525.96973777
delta logL = 0.0770323272718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20251       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3474       1.0000          .0000       5.0000    
     3 'Normalizat'    .95318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1136       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9525.970     FROM MIGRAD    STATUS=FAILED        99 CALLS      269 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20217        57.000        .78984E-03    .10833E-01
   2  alpha         3.3503        2.7627        .35722        .42502E-05
   3  Normalizat    .95355        .24064        .30822E-03    .73031E-05
   4  Prefactor     1.1133        .11811        .22839E-03    .83628E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9525.970     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      358 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20217        57.000        .66303E-04    .10833E-01
   2  alpha         3.3503        2.7627        .26321E-02    .42502E-05
   3  Normalizat    .95355        .24064        .10959E-03    .73031E-05
   4  Prefactor     1.1133        .11811        .90457E-04    .83628E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9525.970     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      392 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20217        .54214        .15797E-03   -.20007E-03
   2  alpha         3.3503        1.7171        .72205E-02   -.25381E-05
   3  Normalizat    .95355        .20899        .12329E-04    .70080E-05
   4  Prefactor     1.1133        .16072        .91354E-05    .84623E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.202167
  alpha      = 3.35034
  Normalizat = 0.953549
  Prefactor  = 1.11333
 **********
 **   18 **HESSE 
 **********

 FCN=   9525.970     FROM HESSE     STATUS=OK            25 CALLS      417 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20217        .53682        .63187E-05   -1.5618    
   2  alpha         3.3503        1.7056        .28882E-03    .34706    
   3  Normalizat    .95355        .20884        .24658E-05   -.94603    
   4  Prefactor     1.1133        .16060        .18271E-05   -.89042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.69036e-12
Minuit parameter uncertainties:
  1  0.536833
  2  1.90836
  3  0.209021
  4  0.160667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516560': 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) = 9525.96973447
delta logL = 0.0770356243211

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.022e-01  5.368e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.350e+00  1.908e+00  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.113e+00  1.607e-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:  9.535e-01  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 147.244 0.372

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/516560/cmap_HighResolution_404438401_404697601_4FGL_J0948.9+0022_daily_bin637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-01 03:02:12.658026', job_id='516560', GAL2='1.11', fit_tolerance='1e-08', EG2='0.95', EG='0.98', time_epoch_completed='1630490532.66', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='7.70e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='637' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:02:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 516560: <4FGL_J0948.9+0022_daily_bin637> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin637> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:11 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:46:12 2021
Terminated at Wed Sep  1 03:02:13 2021
Results reported at Wed Sep  1 03:02:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin637 147.244 0.3717 404438401 404697601 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 :                                   789.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

