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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin927
RA = 147.244, Dec = 0.3717
tmin = 479606401, tmax = 479865601
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='518235', job_status='RUN', time_executed='2021-09-01 02:55:22.661376', time_epoch_executed='1630490122.66' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518235/ft1_4FGL_J0948.9+0022_daily_bin927.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518235/ft2_4FGL_J0948.9+0022_daily_bin927.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518235/ft1_4FGL_J0948.9+0022_daily_bin927.fits outfile=/scratch/kocevski/518235/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin927.fits ra=147.244 dec=0.3717 rad=12.0 tmin=479606401.0 tmax=479865601.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.56
user 3.31
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518235/ft1_filtered_4FGL_J0948.9+0022_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/518235/ft2_4FGL_J0948.9+0022_daily_bin927.fits sctable="SC_DATA" expcube=/scratch/kocevski/518235/ltcube_479606401_479865601_4FGL_J0948.9+0022_daily_bin927.fits outfile=/scratch/kocevski/518235/expmap_479606401_479865601_4FGL_J0948.9+0022_daily_bin927.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/518235/ltcube_479606401_479865601_4FGL_J0948.9+0022_daily_bin927.fits
.....................!
real 192.13
user 185.26
sys 4.91

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/518235/ft1_filtered_4FGL_J0948.9+0022_daily_bin927.fits scfile=/scratch/kocevski/518235/ft2_4FGL_J0948.9+0022_daily_bin927.fits outfile=/scratch/kocevski/518235/cmap_479606401_479865601_4FGL_J0948.9+0022_daily_bin927.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518235/ft1_filtered_4FGL_J0948.9+0022_daily_bin927.fits scfile=/scratch/kocevski/518235/ft2_4FGL_J0948.9+0022_daily_bin927.fits outfile=/scratch/kocevski/518235/cmap_HighResolution_479606401_479865601_4FGL_J0948.9+0022_daily_bin927.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.786       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11325E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.239       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.536       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24568E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5499       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4364       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.169       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.711       1.0000         .10000E-03   10000.    
    14 'Prefactor '    87.968       1.0000         .10000E-03   10000.    
    15 'norm      '    17.818       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.309       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.3749       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4811       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85667       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97433       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=   4917.782     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2580 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1496       -.69339E-07** at limit **
   2  norm          .10000E-03    3.3812       -.41481E-07** at limit **
   3  Prefactor     39.790        28.281       -.44277E-05    .10270E-03
   4  Prefactor     .10000E-03    4.4468       -.17132E-06** at limit **
   5  Prefactor     53.240        45.995       -.20063E-05    .62122E-04
   6  Prefactor     27.543        17.691       -.15544E-04    .70826E-04
   7  Prefactor     .10066E-03    36.052       -.58777E-05** at limit **
   8  norm          .10000E-03    2.6568       -.17179E-06** at limit **
   9  norm          2.5502        1.2508       -.24039E-06    .24267E-03
  10  norm          1.4364        .76205        .45410E-07    .62488E-03
  11  norm          .10000E-03    .77042       -.58650E-07** at limit **
  12  Prefactor     16.172        12.345       -.29349E-06    .92490E-04
  13  Prefactor     28.709        49.010       -.33319E-05    .20814E-04
  14  Prefactor     87.973        53.231        .22755E-05    .46279E-04
  15  norm          17.820        14.056        .11162E-05    .63400E-04
  16  Prefactor     .10000E-03    3.8904        .33047E-06** at limit **
  17  Prefactor     22.261        52.730       -.54122E-04    .21092E-04
  18  Prefactor     .10000E-03    20.995        .31376E-06** at limit **
  19  Prefactor     .10000E-03    9.5663        .42651E-06** at limit **
  20  norm          1.3754        2.0135       -.46563E-06   -.61934E-03
  21  Prefactor     8.4799        8.7265       -.42751E-05   -.53209E-04
  22  Normalizat    .85627        .23048        .14609E-04   -.57974E-04
  23  Prefactor     .97472        .17260       -.17554E-05    .64803E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 39.79
  Prefactor  = 0.0001
  Prefactor  = 53.2398
  Prefactor  = 27.5429
  Prefactor  = 0.000100657
  norm       = 0.0001
  norm       = 2.55015
  norm       = 1.43637
  norm       = 0.0001
  Prefactor  = 16.1724
  Prefactor  = 28.7087
  Prefactor  = 87.9727
  norm       = 17.8204
  Prefactor  = 0.0001
  Prefactor  = 22.2615
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.37542
  Prefactor  = 8.4799
  Normalizat = 0.856275
  Prefactor  = 0.974715
 **********
 **   18 **HESSE 
 **********

 FCN=   4917.782     FROM HESSE     STATUS=OK           370 CALLS     2950 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1735        .10036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.3981        .12591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.790        28.296        .63547E-04   -1.4446    
   4  Prefactor     .10000E-03    4.6440        .28810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     53.240        45.979        .54970E-04   -1.4247    
   6  Prefactor     27.543        17.681        .76344E-04   -1.4658    
   7  Prefactor     .10066E-03    275.65        .81172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.6904        .11159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5502        1.2502        .52817E-04   -1.5389    
  10  norm          1.4364        .75255        .41819E-04   -1.5468    
  11  norm          .10000E-03    .77521        .60101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.172        12.350        .99604E-04   -1.4903    
  13  Prefactor     28.709        48.931        .74770E-04   -1.4636    
  14  Prefactor     87.973        53.287        .42837E-04   -1.3829    
  15  norm          17.820        14.053        .94884E-04   -1.4863    
  16  Prefactor     .10000E-03    3.9011        .13507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.261        52.770        .84804E-04   -1.4764    
  18  Prefactor     .10000E-03    21.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.6099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.3754        1.9880        .11058E-03   -1.5473    
  21  Prefactor     8.4799        8.6966        .13765E-03   -1.5125    
  22  Normalizat    .85627        .26866        .28965E-03   -.98014    
  23  Prefactor     .97472        .20410        .22174E-03   -.93577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17491e-09
Minuit parameter uncertainties:
  1  1.07199e-05
  2  1.44086e-06
  3  28.3059
  4  2.5611e-05
  5  46.0098
  6  17.684
  7  0.027032
  8  2.59361e-05
  9  1.25026
  10  0.752558
  11  6.01513e-06
  12  12.3522
  13  48.9994
  14  53.3161
  15  14.0556
  16  6.37293e-05
  17  52.8805
  18  0.000237549
  19  0.000119468
  20  1.98809
  21  8.69791
  22  0.269075
  23  0.204266
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.436e+00  7.526e-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.747e-01  2.043e-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.563e-01  2.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.18
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 5.77e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 1.44e-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) = 4917.78135502
delta logL = 0.000950551332608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4917.78128267
delta logL = 0.00102290525774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4423       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4820       1.0000          .0000       5.0000    
     3 'Normalizat'    .85368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97629       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=   4917.781     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      195 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4422        1.0546        .89782E-02   -.32135E-02
   2  alpha         2.4823        .77415        .38928       -.23955E-04
   3  Normalizat    .85365        .21258        .65565E-01    .31189E-03
   4  Prefactor     .97632        .17354        .45970E-01    .45227E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.44223
  alpha      = 2.4823
  Normalizat = 0.853647
  Prefactor  = 0.976321
 **********
 **   18 **HESSE 
 **********

 FCN=   4917.781     FROM HESSE     STATUS=OK            29 CALLS      224 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4422        .75373        .41751E-04   -1.5468    
   2  alpha         2.4823        .64099        .15221E-01   -.70799E-02
   3  Normalizat    .85365        .25503        .29004E-03   -.98109    
   4  Prefactor     .97632        .20463        .22159E-03   -.93523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8347e-10
Minuit parameter uncertainties:
  1  0.753735
  2  0.648232
  3  0.255394
  4  0.20479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518235': 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) = 4917.78128257
delta logL = 0.00102300444087

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.442e+00  7.537e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.482e+00  6.482e-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:  9.763e-01  2.048e-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.536e-01  2.554e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.13
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.48 +/- 0.65
Photon Flux (Free Index): 1.12e-07 +/- 6.72e-08
Energy Flux (Free Index): 2.74e-05 +/- 1.44e-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/518235/cmap_HighResolution_479606401_479865601_4FGL_J0948.9+0022_daily_bin927.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='2.74e-05', photon_flux_error='5.77e-08', dlogl='1.02e-03', energy_flux='2.75e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-01 03:04:26.668697', photon_index_error2='0.65', photon_index2='2.48', ts='6.18', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.86', time_epoch_completed='1630490666.67', return_code='0', job_id='518235', GAL2='0.98', EG2='0.85', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='6.72e-08', ts2='6.13', photon_index='2.45' WHERE bin_id='927' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:04:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 518235: <4FGL_J0948.9+0022_daily_bin927> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin927> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:51:00 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:51:02 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:51:02 2021
Terminated at Wed Sep  1 03:04:27 2021
Results reported at Wed Sep  1 03:04:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin927 147.244 0.3717 479606401 479865601 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 :                                   499.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             246.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

