/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 134 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin372
RA = 147.244, Dec = 0.3717
tmin = 335750401, tmax = 336009601
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='514771', job_status='RUN', time_executed='2021-09-01 02:43:37.539513', time_epoch_executed='1630489417.54' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514771

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514771/ft1_4FGL_J0948.9+0022_daily_bin372.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514771/ft2_4FGL_J0948.9+0022_daily_bin372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514771/ft1_4FGL_J0948.9+0022_daily_bin372.fits outfile=/scratch/kocevski/514771/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin372.fits ra=147.244 dec=0.3717 rad=12.0 tmin=335750401.0 tmax=336009601.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 6.81
user 6.55
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514771/ft1_filtered_4FGL_J0948.9+0022_daily_bin372.fits" evtable="EVENTS" scfile=/scratch/kocevski/514771/ft2_4FGL_J0948.9+0022_daily_bin372.fits sctable="SC_DATA" outfile=/scratch/kocevski/514771/ltcube_335750401_336009601_4FGL_J0948.9+0022_daily_bin372.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/514771/ft2_4FGL_J0948.9+0022_daily_bin372.fits
.....................!
real 12.00
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514771/ft1_filtered_4FGL_J0948.9+0022_daily_bin372.fits evtable="EVENTS" scfile=/scratch/kocevski/514771/ft2_4FGL_J0948.9+0022_daily_bin372.fits sctable="SC_DATA" expcube=/scratch/kocevski/514771/ltcube_335750401_336009601_4FGL_J0948.9+0022_daily_bin372.fits outfile=/scratch/kocevski/514771/expmap_335750401_336009601_4FGL_J0948.9+0022_daily_bin372.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/514771/ltcube_335750401_336009601_4FGL_J0948.9+0022_daily_bin372.fits
.....................!
real 192.31
user 187.33
sys 4.62

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/514771/ft1_filtered_4FGL_J0948.9+0022_daily_bin372.fits scfile=/scratch/kocevski/514771/ft2_4FGL_J0948.9+0022_daily_bin372.fits outfile=/scratch/kocevski/514771/cmap_335750401_336009601_4FGL_J0948.9+0022_daily_bin372.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.54
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7828       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.675       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5916       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9845       1.0000         .10000E-03   10000.    
     9 'norm      '    .86104       1.0000         .10000E-03   10000.    
    10 'norm      '    .38344       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5232       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    180.01       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20587E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.2380       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4156       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95371       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=   6557.116     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2633 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7843        5.1540        .19931E-06   -.44456E-04
   2  norm          .10000E-03    4.7968       -.21979E-07** at limit **
   3  Prefactor     .10000E-03    7.8820        .11135E-07** at limit **
   4  Prefactor     .10000E-03    2.7129       -.58673E-07** at limit **
   5  Prefactor     .10000E-03    78.522        .12887E-05** at limit **
   6  Prefactor     20.681        19.234        .38212E-06   -.56241E-04
   7  Prefactor     4.5897        40.658        .73001E-06   -.30970E-05
   8  norm          1.9841        2.7593        .18411E-06   -.19311E-04
   9  norm          .86116        1.3948        .32314E-06    .55395E-04
  10  norm          .38341        .59314        .18725E-06    .17550E-03
  11  norm          2.5230        1.5864       -.65275E-08   -.11563E-04
  12  Prefactor     .10000E-03    12.686        .61889E-06** at limit **
  13  Prefactor     .10000E-03    17.958       -.19694E-06** at limit **
  14  Prefactor     .10000E-03    61.478       -.11254E-05** at limit **
  15  norm          .10000E-03    7.7868        .27713E-06** at limit **
  16  Prefactor     .10000E-03    20.528        .13530E-05** at limit **
  17  Prefactor     180.04        89.633        .41166E-06    .39070E-04
  18  Prefactor     .10000E-03    147.28        .17525E-05** at limit **
  19  Prefactor     .10000E-03    11.611        .32791E-06** at limit **
  20  norm          .10000E-03    .39460       -.18262E-07** at limit **
  21  Prefactor     9.2393        7.4013        .13381E-05   -.11978E-03
  22  Normalizat    1.4151        .23139       -.17613E-05   -.16520E-04
  23  Prefactor     .95417        .16765        .79319E-06   -.15722E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.78434
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 20.6814
  Prefactor  = 4.58971
  norm       = 1.98411
  norm       = 0.861157
  norm       = 0.383408
  norm       = 2.52303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 180.037
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.23929
  Normalizat = 1.41505
  Prefactor  = 0.954174
 **********
 **   18 **HESSE 
 **********

 FCN=   6557.116     FROM HESSE     STATUS=OK           370 CALLS     3003 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7843        5.1577        .14227E-03   -1.5150    
   2  norm          .10000E-03    4.9197        .34626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7575        .13010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    79.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.681        19.196        .88087E-04   -1.4798    
   7  Prefactor     4.5897        40.650        .18785E-03   -1.5279    
   8  norm          1.9841        2.7426        .15388E-03   -1.5426    
   9  norm          .86116        1.3616        .11569E-03   -1.5522    
  10  norm          .38341        .56141        .72707E-03   -1.5584    
  11  norm          2.5230        1.5902        .78658E-04   -1.5390    
  12  Prefactor     .10000E-03    12.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    62.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.7945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     180.04        89.989        .15043E-03   -1.3016    
  18  Prefactor     .10000E-03    148.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .39900        .49661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.2393        7.3932        .65930E-03   -1.5100    
  22  Normalizat    1.4151        .26914        .26849E-03   -.80194    
  23  Prefactor     .95417        .19718        .24906E-03   -.94273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91902e-10
Minuit parameter uncertainties:
  1  5.15804
  2  7.08633e-06
  3  8.70466e-06
  4  3.47957e-06
  5  0.000951018
  6  19.2022
  7  27.3427
  8  2.74279
  9  1.36166
  10  0.561413
  11  1.59018
  12  1.37939e-05
  13  4.65208e-05
  14  0.000439136
  15  5.90805e-06
  16  2.87356e-06
  17  90.0578
  18  0.000947379
  19  1.67563e-05
  20  5.54874e-07
  21  7.3939
  22  0.269411
  23  0.197324
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.834e-01  5.614e-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.542e-01  1.973e-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.415e+00  2.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/514771/likelihoodResults_335750401_336009601_4FGL_J0948.9+0022_daily_bin372.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) = 6557.033925
delta logL = 0.0824734088874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6557.02547941
delta logL = 0.0909189994818

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44793       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0193       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96402       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6557.025     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      249 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44811        .57693        .65975E-04   -.59794E-04
   2  alpha         3.0193        1.3468        .40063E-01   -.25846E-05
   3  Normalizat    1.3962        .25367        .27000E-03    .77475E-05
   4  Prefactor     .96378        .19595        .24795E-03   -.24484E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.448113
  alpha      = 3.01935
  Normalizat = 1.39621
  Prefactor  = 0.963777
 **********
 **   18 **HESSE 
 **********

 FCN=   6557.025     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44811        .57013        .26390E-05   -1.5574    
   2  alpha         3.0193        1.3330        .16025E-02    .20926    
   3  Normalizat    1.3962        .25418        .10800E-04   -.80738    
   4  Prefactor     .96378        .19617        .99181E-05   -.93947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12375e-12
Minuit parameter uncertainties:
  1  0.570133
  2  1.40983
  3  0.254412
  4  0.196312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514771': 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) = 6557.02547838
delta logL = 0.0909200254891

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.481e-01  5.701e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.019e+00  1.410e+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:  9.638e-01  1.963e-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.396e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
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/514771/cmap_HighResolution_335750401_336009601_4FGL_J0948.9+0022_daily_bin372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-01 02:54:20.171009', job_id='514771', GAL2='0.96', fit_tolerance='1e-08', EG2='1.40', EG='1.42', time_epoch_completed='1630490060.17', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.09e-02', ts2='0.78', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='372' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:54:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 514771: <4FGL_J0948.9+0022_daily_bin372> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin372> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:40:52 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:40:54 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:40:54 2021
Terminated at Wed Sep  1 02:54:21 2021
Results reported at Wed Sep  1 02:54:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin372 147.244 0.3717 335750401 336009601 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 :                                   637.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

