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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin662
RA = 147.244, Dec = 0.3717
tmin = 410918401, tmax = 411177601
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='516599', job_status='RUN', time_executed='2021-09-01 02:50:21.489642', time_epoch_executed='1630489821.49' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516599/ft1_4FGL_J0948.9+0022_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516599/ft2_4FGL_J0948.9+0022_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516599/ft1_4FGL_J0948.9+0022_daily_bin662.fits outfile=/scratch/kocevski/516599/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin662.fits ra=147.244 dec=0.3717 rad=12.0 tmin=410918401.0 tmax=411177601.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 9.47
user 6.70
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516599/ft1_filtered_4FGL_J0948.9+0022_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/516599/ft2_4FGL_J0948.9+0022_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/516599/ltcube_410918401_411177601_4FGL_J0948.9+0022_daily_bin662.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/516599/ft2_4FGL_J0948.9+0022_daily_bin662.fits
.....................!
real 12.78
user 12.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516599/ft1_filtered_4FGL_J0948.9+0022_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/516599/ft2_4FGL_J0948.9+0022_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/516599/ltcube_410918401_411177601_4FGL_J0948.9+0022_daily_bin662.fits outfile=/scratch/kocevski/516599/expmap_410918401_411177601_4FGL_J0948.9+0022_daily_bin662.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/516599/ltcube_410918401_411177601_4FGL_J0948.9+0022_daily_bin662.fits
.....................!
real 191.62
user 185.07
sys 5.46

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/516599/ft1_filtered_4FGL_J0948.9+0022_daily_bin662.fits scfile=/scratch/kocevski/516599/ft2_4FGL_J0948.9+0022_daily_bin662.fits outfile=/scratch/kocevski/516599/cmap_410918401_411177601_4FGL_J0948.9+0022_daily_bin662.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.71
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516599/ft1_filtered_4FGL_J0948.9+0022_daily_bin662.fits scfile=/scratch/kocevski/516599/ft2_4FGL_J0948.9+0022_daily_bin662.fits outfile=/scratch/kocevski/516599/cmap_HighResolution_410918401_411177601_4FGL_J0948.9+0022_daily_bin662.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.65
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5832       1.0000         .10000E-03   10000.    
     2 'norm      '    13.492       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.158       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32837E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.3286       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4467       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6116       1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.554       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.3841       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0868       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .88159       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=   3590.689     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2504 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5848        5.0530       -.36278E-06   -.20439E-03
   2  norm          13.494        8.5135        .16084E-07   -.52400E-04
   3  Prefactor     .10000E-03    17.264        .11468E-04** at limit **
   4  Prefactor     .10000E-03    3.7372       -.52746E-07** at limit **
   5  Prefactor     .10000E-03    11.677        .92977E-05** at limit **
   6  Prefactor     17.162        15.907        .93347E-08   -.22471E-04
   7  Prefactor     .10000E-03    173.59       -.29836E-04** at limit **
   8  norm          9.3225        6.8414       -.87879E-06    .65556E-04
   9  norm          2.4472        1.7022       -.40530E-07   -.94561E-04
  10  norm          1.6119        .87650       -.22447E-07   -.12907E-03
  11  norm          .10000E-03    2.7392       -.20272E-08** at limit **
  12  Prefactor     34.559        19.917        .21478E-06    .19328E-03
  13  Prefactor     .10000E-03    84.162        .19171E-05** at limit **
  14  Prefactor     .10000E-03    23.142       -.18417E-04** at limit **
  15  norm          .10000E-03    13.475       -.14527E-04** at limit **
  16  Prefactor     .10000E-03    10.256       -.20050E-05** at limit **
  17  Prefactor     .10000E-03    62.536        .25341E-04** at limit **
  18  Prefactor     .10000E-03    93.180       -.30764E-04** at limit **
  19  Prefactor     .10000E-03    19.962        .97958E-05** at limit **
  20  norm          9.3848        3.0260       -.94946E-08    .63644E-04
  21  Prefactor     .10000E-03    2.9002        .23605E-07** at limit **
  22  Normalizat    1.0866        .25436        .31629E-06    .50933E-04
  23  Prefactor     .88157        .20046        .27091E-06    .52441E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.58475
  norm       = 13.4935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1618
  Prefactor  = 0.000100001
  norm       = 9.32248
  norm       = 2.4472
  norm       = 1.61189
  norm       = 0.0001
  Prefactor  = 34.5592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.38484
  Prefactor  = 0.0001
  Normalizat = 1.0866
  Prefactor  = 0.881574
 **********
 **   18 **HESSE 
 **********

 FCN=   3590.689     FROM HESSE     STATUS=OK           364 CALLS     2868 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5848        5.0495        .13555E-03   -1.5280    
   2  norm          13.494        8.5143        .10905E-03   -1.4973    
   3  Prefactor     .10000E-03    17.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8192        .11299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.162        15.929        .96692E-04   -1.4879    
   7  Prefactor     .10000E-03    175.60        .21351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.3225        6.8412        .12876E-03   -1.5097    
   9  norm          2.4472        1.7026        .62325E-04   -1.5395    
  10  norm          1.6119        .86941        .39317E-04   -1.5454    
  11  norm          .10000E-03    2.7789        .96733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.559        19.935        .68173E-04   -1.4532    
  13  Prefactor     .10000E-03    84.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    62.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    93.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.3848        3.0280        .56872E-04   -1.5095    
  21  Prefactor     .10000E-03    2.9034        .99660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0866        .29724        .26881E-03   -.90183    
  23  Prefactor     .88157        .23393        .23830E-03   -.96788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44097e-11
Minuit parameter uncertainties:
  1  5.04992
  2  8.51504
  3  5.89096e-05
  4  1.92453e-06
  5  1.65683e-06
  6  15.933
  7  0.000688514
  8  6.84172
  9  1.70266
  10  0.869419
  11  4.59428e-06
  12  19.9393
  13  8.80399e-06
  14  4.36435e-06
  15  9.45699e-07
  16  1.88606e-07
  17  2.56164e-05
  18  9.23161e-06
  19  1.82211e-06
  20  3.02806
  21  1.15751e-07
  22  0.297694
  23  0.234191
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.612e+00  8.694e-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:  8.816e-01  2.342e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  1.087e+00  2.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.24
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 6.67e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 1.66e-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) = 3590.67973006
delta logL = 0.00935459108268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3590.67924847
delta logL = 0.00983618103055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6015       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3537       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87573       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=   3590.679     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      193 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6013        .95358        .83746E-02    .37329E-02
   2  alpha         2.3541        .66126        .35578        .16232E-04
   3  Normalizat    1.0953        .24913        .60567E-01    .35047E-05
   4  Prefactor     .87579        .20142        .44695E-01    .70326E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60127
  alpha      = 2.35409
  Normalizat = 1.09534
  Prefactor  = 0.875787
 **********
 **   18 **HESSE 
 **********

 FCN=   3590.679     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6013        .86778        .39249E-04   -1.5455    
   2  alpha         2.3541        .68113        .14104E-01   -.58396E-01
   3  Normalizat    1.0953        .29422        .26787E-03   -.89902    
   4  Prefactor     .87579        .23616        .23896E-03   -.96992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18531e-10
Minuit parameter uncertainties:
  1  0.867785
  2  0.689885
  3  0.294659
  4  0.236432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516599': 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) = 3590.67924824
delta logL = 0.00983640782533

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.601e+00  8.678e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.354e+00  6.899e-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:  8.758e-01  2.364e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  1.095e+00  2.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.19
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.35 +/- 0.69
Photon Flux (Free Index): 1.19e-07 +/- 7.25e-08
Energy Flux (Free Index): 3.16e-05 +/- 1.79e-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/516599/cmap_HighResolution_410918401_411177601_4FGL_J0948.9+0022_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='3.16e-05', photon_flux_error='6.67e-08', dlogl='9.84e-03', energy_flux='3.08e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-01 02:58:20.767386', photon_index_error2='0.69', photon_index2='2.35', ts='6.24', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.79e-05', EG='1.09', time_epoch_completed='1630490300.77', return_code='0', job_id='516599', GAL2='0.88', EG2='1.10', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='7.25e-08', ts2='6.19', photon_index='2.45' WHERE bin_id='662' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:58:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 516599: <4FGL_J0948.9+0022_daily_bin662> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin662 147.244 0.3717 410918401 411177601 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 :                                   463.50 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             236.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            727 sec.

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

