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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin854
RA = 147.244, Dec = 0.3717
tmin = 460684801, tmax = 460944001
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='518114', job_status='RUN', time_executed='2021-09-01 02:51:28.341795', time_epoch_executed='1630489888.34' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518114

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518114/ft1_4FGL_J0948.9+0022_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518114/ft2_4FGL_J0948.9+0022_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518114/ft1_4FGL_J0948.9+0022_daily_bin854.fits outfile=/scratch/kocevski/518114/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin854.fits ra=147.244 dec=0.3717 rad=12.0 tmin=460684801.0 tmax=460944001.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.97
user 3.14
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518114/ft1_filtered_4FGL_J0948.9+0022_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/518114/ft2_4FGL_J0948.9+0022_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/518114/ltcube_460684801_460944001_4FGL_J0948.9+0022_daily_bin854.fits outfile=/scratch/kocevski/518114/expmap_460684801_460944001_4FGL_J0948.9+0022_daily_bin854.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/518114/ltcube_460684801_460944001_4FGL_J0948.9+0022_daily_bin854.fits
.....................!
real 193.83
user 186.71
sys 3.98

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/518114/ft1_filtered_4FGL_J0948.9+0022_daily_bin854.fits scfile=/scratch/kocevski/518114/ft2_4FGL_J0948.9+0022_daily_bin854.fits outfile=/scratch/kocevski/518114/cmap_460684801_460944001_4FGL_J0948.9+0022_daily_bin854.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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518114/ft1_filtered_4FGL_J0948.9+0022_daily_bin854.fits scfile=/scratch/kocevski/518114/ft2_4FGL_J0948.9+0022_daily_bin854.fits outfile=/scratch/kocevski/518114/cmap_HighResolution_460684801_460944001_4FGL_J0948.9+0022_daily_bin854.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/518114/ft1_filtered_4FGL_J0948.9+0022_daily_bin854.fits', '/scratch/kocevski/518114/ft2_4FGL_J0948.9+0022_daily_bin854.fits', expMap='/scratch/kocevski/518114/expmap_460684801_460944001_4FGL_J0948.9+0022_daily_bin854.fits', expCube='/scratch/kocevski/518114/ltcube_460684801_460944001_4FGL_J0948.9+0022_daily_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/518114/Model_4FGL_J0948.9+0022_daily_bin854.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/518114/ft1_filtered_4FGL_J0948.9+0022_daily_bin854.fits
Spacecraft file(s): /scratch/kocevski/518114/ft2_4FGL_J0948.9+0022_daily_bin854.fits
Exposure map: /scratch/kocevski/518114/expmap_460684801_460944001_4FGL_J0948.9+0022_daily_bin854.fits
Exposure cube: /scratch/kocevski/518114/ltcube_460684801_460944001_4FGL_J0948.9+0022_daily_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/518114/Model_4FGL_J0948.9+0022_daily_bin854.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5557.32748569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.871       1.0000         .10000E-03   10000.    
     2 'norm      '    12.292       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.074       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0968       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1116       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.5480       1.0000         .10000E-03   10000.    
    10 'norm      '    .52555E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.8284       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1578       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0908       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=   5557.312     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2569 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.871        6.6381       -.15134E-06   -.12101E-04
   2  norm          12.292        11.072       -.76520E-07   -.13715E-04
   3  Prefactor     12.073        16.359        .11800E-06   -.85527E-04
   4  Prefactor     2.0947        2.0646        .97364E-06   -.36230E-02
   5  Prefactor     .10000E-03    30.018        .10464E-04** at limit **
   6  Prefactor     .10000E-03    57.621       -.48016E-05** at limit **
   7  Prefactor     3.0978        60.965       -.20479E-04   -.55836E-04
   8  norm          .10000E-03    3.0956        .66464E-07** at limit **
   9  norm          3.5481        1.4624       -.15471E-07    .18534E-04
  10  norm          .52389E-01    .36778       -.51868E-07    .10073E-03
  11  norm          .10000E-03    .58923        .24867E-08** at limit **
  12  Prefactor     .10000E-03    10.004       -.26922E-05** at limit **
  13  Prefactor     .10000E-03    28.449        .28147E-05** at limit **
  14  Prefactor     .10000E-03    23.625       -.14446E-04** at limit **
  15  norm          .10000E-03    9.3335        .18689E-05** at limit **
  16  Prefactor     .10000E-03    3.7840        .51900E-08** at limit **
  17  Prefactor     .10000E-03    28.248        .18938E-05** at limit **
  18  Prefactor     .10000E-03    15.802        .41345E-05** at limit **
  19  Prefactor     .10000E-03    5.4404        .73539E-08** at limit **
  20  norm          2.8284        2.1201       -.13931E-07   -.51968E-04
  21  Prefactor     .10000E-03    3.5126        .30593E-07** at limit **
  22  Normalizat    1.1577        .22487       -.13704E-06    .10804E-03
  23  Prefactor     1.0909        .17674        .35714E-06    .92244E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8714
  norm       = 12.2919
  Prefactor  = 12.0729
  Prefactor  = 2.09467
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.09783
  norm       = 0.0001
  norm       = 3.54814
  norm       = 0.0523894
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.82843
  Prefactor  = 0.0001
  Normalizat = 1.15768
  Prefactor  = 1.09087
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.312     FROM HESSE     STATUS=OK           368 CALLS     2937 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.871        6.6537        .12151E-03   -1.5048    
   2  norm          12.292        11.071        .11425E-03   -1.5007    
   3  Prefactor     12.073        16.372        .57643E-03   -1.5013    
   4  Prefactor     2.0947        4.3388        .10532E-02   -1.5419    
   5  Prefactor     .10000E-03    30.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    59.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0978        61.732        .22987E-03   -1.5356    
   8  norm          .10000E-03    3.2162        .25605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.5481        1.4644        .55825E-04   -1.5331    
  10  norm          .52389E-01    1.6362        .84298E-03   -1.5662    
  11  norm          .10000E-03    .59111        .55879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.3647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7898        .14162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4423        .16982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.8284        2.1174        .88625E-04   -1.5372    
  21  Prefactor     .10000E-03    3.5280        .13641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1577        .26648        .28166E-03   -.87921    
  23  Prefactor     1.0909        .20829        .23170E-03   -.89759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22038e-08
Minuit parameter uncertainties:
  1  6.65419
  2  11.0728
  3  16.3781
  4  4.33949
  5  0.000334082
  6  0.000123377
  7  27.6901
  8  5.41061e-06
  9  1.46439
  10  0.585012
  11  1.37986e-07
  12  5.58525e-05
  13  9.16895e-05
  14  0.000432362
  15  3.21168e-05
  16  1.07551e-06
  17  5.46675e-05
  18  9.97003e-05
  19  7.4357e-07
  20  2.11748
  21  4.22883e-07
  22  0.266795
  23  0.208443
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  5.239e-02  5.850e-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.091e+00  2.084e-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.158e+00  2.668e-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.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/518114/likelihoodResults_460684801_460944001_4FGL_J0948.9+0022_daily_bin854.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): 0
logL (Free Index) = 5557.30984796
delta logL = 0.00233458368075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5557.30942045
delta logL = 0.00276209124786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66711E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7669       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0917       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=   5557.309     FROM MIGRAD    STATUS=FAILED       106 CALLS      302 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67496E-01    1.4871        .99736E-03    .75493E-02
   2  alpha         2.7694        3.8630        .10938       -.41821E-05
   3  Normalizat    1.1556        .26005        .28189E-03   -.32022E-04
   4  Prefactor     1.0917        .20749        .23163E-03   -.15706E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5557.309     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      376 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67496E-01    1.4871        .11673E-03   -1.5656    
   2  alpha         2.7694        3.8630        .81759E-02    .10797    
   3  Normalizat    1.1556        .26005        .32597E-03   -.87987    
   4  Prefactor     1.0917        .20749        .31122E-03   -.89732    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5557.309     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      416 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67497E-01    1.2646        .19947E-03    .30231E-03
   2  alpha         2.7694        3.8823        .43754E-02   -.55864E-06
   3  Normalizat    1.1556        .26048        .11276E-04   -.18149E-05
   4  Prefactor     1.0917        .20768        .92651E-05   -.17179E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0674971
  alpha      = 2.7694
  Normalizat = 1.15558
  Prefactor  = 1.0917
 **********
 **   18 **HESSE 
 **********

 FCN=   5557.309     FROM HESSE     STATUS=OK            25 CALLS      441 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67497E-01    1.2600        .39894E-04   -1.5656    
   2  alpha         2.7694        3.8824        .17501E-03    .10797    
   3  Normalizat    1.1556        .26039        .22551E-05   -.87987    
   4  Prefactor     1.0917        .20768        .18530E-05   -.89732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.03265e-13
Minuit parameter uncertainties:
  1  0.582841
  2  4.3234
  3  0.260686
  4  0.207833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518114': 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) = 5557.3094193
delta logL = 0.00276324437164

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  6.750e-02  5.828e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.769e+00  4.323e+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.092e+00  2.078e-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.156e+00  2.607e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/518114/cmap_HighResolution_460684801_460944001_4FGL_J0948.9+0022_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.91e-05', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-01 03:01:16.869888', job_id='518114', GAL2='1.09', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630490476.87', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.76e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='854' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:01:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 518114: <4FGL_J0948.9+0022_daily_bin854> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin854 147.244 0.3717 460684801 460944001 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 :                                   575.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             345.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            627 sec.

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

