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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin934
RA = 147.244, Dec = 0.3717
tmin = 481420801, tmax = 481680001
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='518243', job_status='RUN', time_executed='2021-09-01 02:53:49.150764', time_epoch_executed='1630490029.15' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='934'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518243

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518243/ft1_4FGL_J0948.9+0022_daily_bin934.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518243/ft2_4FGL_J0948.9+0022_daily_bin934.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518243/ft1_4FGL_J0948.9+0022_daily_bin934.fits outfile=/scratch/kocevski/518243/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin934.fits ra=147.244 dec=0.3717 rad=12.0 tmin=481420801.0 tmax=481680001.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 4.53
user 3.50
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/518243/ft1_filtered_4FGL_J0948.9+0022_daily_bin934.fits" evtable="EVENTS" scfile=/scratch/kocevski/518243/ft2_4FGL_J0948.9+0022_daily_bin934.fits sctable="SC_DATA" outfile=/scratch/kocevski/518243/ltcube_481420801_481680001_4FGL_J0948.9+0022_daily_bin934.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/518243/ft2_4FGL_J0948.9+0022_daily_bin934.fits
.....................!
real 12.40
user 11.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518243/ft1_filtered_4FGL_J0948.9+0022_daily_bin934.fits evtable="EVENTS" scfile=/scratch/kocevski/518243/ft2_4FGL_J0948.9+0022_daily_bin934.fits sctable="SC_DATA" expcube=/scratch/kocevski/518243/ltcube_481420801_481680001_4FGL_J0948.9+0022_daily_bin934.fits outfile=/scratch/kocevski/518243/expmap_481420801_481680001_4FGL_J0948.9+0022_daily_bin934.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/518243/ltcube_481420801_481680001_4FGL_J0948.9+0022_daily_bin934.fits
.....................!
real 191.45
user 186.27
sys 4.31

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/518243/ft1_filtered_4FGL_J0948.9+0022_daily_bin934.fits scfile=/scratch/kocevski/518243/ft2_4FGL_J0948.9+0022_daily_bin934.fits outfile=/scratch/kocevski/518243/cmap_481420801_481680001_4FGL_J0948.9+0022_daily_bin934.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.61
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518243/ft1_filtered_4FGL_J0948.9+0022_daily_bin934.fits scfile=/scratch/kocevski/518243/ft2_4FGL_J0948.9+0022_daily_bin934.fits outfile=/scratch/kocevski/518243/cmap_HighResolution_481420801_481680001_4FGL_J0948.9+0022_daily_bin934.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46119       1.0000         .10000E-03   10000.    
     2 'norm      '    3.8847       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2003       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29160E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62605E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.515       1.0000         .10000E-03   10000.    
     8 'norm      '    4.9440       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4610       1.0000         .10000E-03   10000.    
    10 'norm      '    .20094       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2823       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-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      '    .49711       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1937       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.552       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4853       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4057       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82846       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1380       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=   6492.829     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     2977 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46670        10.935        .22956E-02    .34366E-03
   2  norm          3.8838        5.2335        .10236E-02   -.40671E-03
   3  Prefactor     5.2273        16.685        .17628E-03    .67718E-04
   4  Prefactor     .10000E-03    6.4511        .22201E-02** at limit **
   5  Prefactor     .10000E-03    215.32        .75022E-02** at limit **
   6  Prefactor     .10000E-03    6.8822        .18142E-02** at limit **
   7  Prefactor     23.517        31.415        .82604E-04   -.47069E-04
   8  norm          4.9443        3.0154        .10596E-03    .17327E-03
   9  norm          2.4608        1.3885        .68557E-04   -.23614E-03
  10  norm          .20094        .41488        .72877E-04    .13102E-02
  11  norm          1.2822        1.1259        .39182E-04   -.10445E-04
  12  Prefactor     .10000E-03    3.0569        .13753E-02** at limit **
  13  Prefactor     .10000E-03    24.946        .18142E-02** at limit **
  14  Prefactor     .10000E-03    23.934        .18142E-02** at limit **
  15  norm          .44667        23.916        .39630E-02   -.27089E-03
  16  Prefactor     2.1986        5.8070        .13892E-02   -.41550E-03
  17  Prefactor     32.548        40.473        .70231E-04    .89064E-04
  18  Prefactor     .10000E-03    20.450        .18142E-02** at limit **
  19  Prefactor     .10000E-03    5.9569        .18142E-02** at limit **
  20  norm          3.4854        1.5806        .64779E-04   -.32661E-03
  21  Prefactor     5.4056        7.2058        .86419E-03   -.35483E-03
  22  Normalizat    .82824        .21758        .29155E-03   -.12287E-03
  23  Prefactor     1.1383        .17215        .20773E-03   -.46549E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.466698
  norm       = 3.88384
  Prefactor  = 5.22732
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 23.5168
  norm       = 4.94427
  norm       = 2.4608
  norm       = 0.200942
  norm       = 1.2822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.446667
  Prefactor  = 2.19862
  Prefactor  = 32.5477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.4854
  Prefactor  = 5.40558
  Normalizat = 0.828242
  Prefactor  = 1.13826
 **********
 **   18 **HESSE 
 **********

 FCN=   6492.829     FROM HESSE     STATUS=OK           350 CALLS     3327 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46670        10.870        .91822E-04   -1.5571    
   2  norm          3.8838        5.2315        .40944E-04   -1.5314    
   3  Prefactor     5.2273        16.659        .70511E-05   -1.5251    
   4  Prefactor     .10000E-03    6.4741        .44402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    223.57        .30009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.517        31.403        .33042E-05   -1.4738    
   8  norm          4.9443        3.0153        .42385E-05   -1.5263    
   9  norm          2.4608        1.3883        .27423E-05   -1.5394    
  10  norm          .20094        .41478        .29151E-05   -1.5618    
  11  norm          1.2822        1.1259        .15673E-05   -1.5481    
  12  Prefactor     .10000E-03    3.0569        .27506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.947        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.937        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .44667        24.039        .15852E-03   -1.5574    
  16  Prefactor     2.1986        5.7962        .55569E-04   -1.5411    
  17  Prefactor     32.548        40.426        .14046E-04   -1.4566    
  18  Prefactor     .10000E-03    20.450        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9570        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4854        1.5802        .25912E-05   -1.5335    
  21  Prefactor     5.4056        7.2006        .34567E-04   -1.5243    
  22  Normalizat    .82824        .21717        .11662E-04   -.99030    
  23  Prefactor     1.1383        .17223        .41545E-04   -.88253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66577e-09
Minuit parameter uncertainties:
  1  4.50511
  2  5.23207
  3  16.6738
  4  1.86449e-05
  5  0.00112268
  6  5.62606e-05
  7  31.4255
  8  3.01537
  9  1.38828
  10  0.414782
  11  1.1259
  12  2.32924e-05
  13  0.00013687
  14  0.000280585
  15  6.55564
  16  5.79771
  17  40.4603
  18  0.000125319
  19  9.34833e-05
  20  1.58023
  21  7.20176
  22  0.217399
  23  0.172319
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.009e-01  4.148e-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.138e+00  1.723e-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.282e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.29
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 9.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/518243/likelihoodResults_481420801_481680001_4FGL_J0948.9+0022_daily_bin934.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) = 6492.82840993
delta logL = 0.000411110608184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6492.82839148
delta logL = 0.00042955486515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20100       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4927       1.0000          .0000       5.0000    
     3 'Normalizat'    .82779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1386       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.

 FCN=   6492.828     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      233 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20188        .41495        .72869E-04   -.10977E-02
   2  alpha         2.4953        1.3631        .41135E-01   -.10942E-04
   3  Normalizat    .82779        .20693        .29163E-03   -.68351E-03
   4  Prefactor     1.1385        .17100        .20771E-03   -.90855E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.201878
  alpha      = 2.49528
  Normalizat = 0.82779
  Prefactor  = 1.13853
 **********
 **   18 **HESSE 
 **********

 FCN=   6492.828     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20188        .41494        .29148E-05   -1.5618    
   2  alpha         2.4953        1.3643        .16454E-02   -.18881E-02
   3  Normalizat    .82779        .20715        .58325E-04   -.99046    
   4  Prefactor     1.1385        .17110        .41541E-04   -.88244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97983e-10
Minuit parameter uncertainties:
  1  0.414947
  2  1.4431
  3  0.207345
  4  0.171184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518243': 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) = 6492.82838779
delta logL = 0.000433250324022

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.019e-01  4.149e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.495e+00  1.443e+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.139e+00  1.712e-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.278e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
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/518243/cmap_HighResolution_481420801_481680001_4FGL_J0948.9+0022_daily_bin934.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', job_status='DONE', photon_flux_upper_limit='9.37e-08', time_completed='2021-09-01 03:05:15.147210', job_id='518243', GAL2='1.14', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630490715.15', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.33e-04', ts2='0.29', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='934' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:05:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 518243: <4FGL_J0948.9+0022_daily_bin934> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin934 147.244 0.3717 481420801 481680001 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            855 sec.

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

