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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin958
RA = 147.244, Dec = 0.3717
tmin = 487641601, tmax = 487900801
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='518282', job_status='RUN', time_executed='2021-09-01 02:54:23.233580', time_epoch_executed='1630490063.23' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518282

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518282/ft1_4FGL_J0948.9+0022_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518282/ft2_4FGL_J0948.9+0022_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518282/ft1_4FGL_J0948.9+0022_daily_bin958.fits outfile=/scratch/kocevski/518282/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin958.fits ra=147.244 dec=0.3717 rad=12.0 tmin=487641601.0 tmax=487900801.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 5.19
user 4.80
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/518282/ft2_4FGL_J0948.9+0022_daily_bin958.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/518282/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin958.fits evtable="EVENTS" outfile="/scratch/kocevski/518282/ft1_filtered_4FGL_J0948.9+0022_daily_bin958.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.29
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/518282/ft1_filtered_4FGL_J0948.9+0022_daily_bin958.fits" evtable="EVENTS" scfile=/scratch/kocevski/518282/ft2_4FGL_J0948.9+0022_daily_bin958.fits sctable="SC_DATA" outfile=/scratch/kocevski/518282/ltcube_487641601_487900801_4FGL_J0948.9+0022_daily_bin958.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/518282/ft2_4FGL_J0948.9+0022_daily_bin958.fits
.....................!
real 14.56
user 13.46
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518282/ft1_filtered_4FGL_J0948.9+0022_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/518282/ft2_4FGL_J0948.9+0022_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/518282/ltcube_487641601_487900801_4FGL_J0948.9+0022_daily_bin958.fits outfile=/scratch/kocevski/518282/expmap_487641601_487900801_4FGL_J0948.9+0022_daily_bin958.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/518282/ltcube_487641601_487900801_4FGL_J0948.9+0022_daily_bin958.fits
.....................!
real 191.29
user 185.50
sys 4.89

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/518282/ft1_filtered_4FGL_J0948.9+0022_daily_bin958.fits scfile=/scratch/kocevski/518282/ft2_4FGL_J0948.9+0022_daily_bin958.fits outfile=/scratch/kocevski/518282/cmap_487641601_487900801_4FGL_J0948.9+0022_daily_bin958.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.59
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518282/ft1_filtered_4FGL_J0948.9+0022_daily_bin958.fits scfile=/scratch/kocevski/518282/ft2_4FGL_J0948.9+0022_daily_bin958.fits outfile=/scratch/kocevski/518282/cmap_HighResolution_487641601_487900801_4FGL_J0948.9+0022_daily_bin958.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.63
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9642       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.850       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.488       1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.841       1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3980       1.0000         .10000E-03   10000.    
    10 'norm      '    .52155E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8439       1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.389       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.743       1.0000         .10000E-03   10000.    
    15 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.663       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.765       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.0331       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .62271       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0988       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=   5085.953     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2531 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4556       -.12254E-06** at limit **
   2  norm          3.9638        5.8025       -.61116E-06   -.32541E-03
   3  Prefactor     24.848        21.841       -.29894E-05    .24257E-04
   4  Prefactor     .10000E-03    1.7392       -.14901E-06** at limit **
   5  Prefactor     31.486        36.624       -.24712E-05    .33563E-04
   6  Prefactor     45.740        19.010        .60206E-05    .42366E-03
   7  Prefactor     73.839        48.702       -.23443E-05    .17667E-04
   8  norm          .10000E-03    1.5982       -.16538E-06** at limit **
   9  norm          3.3983        1.6921       -.88799E-07    .79751E-04
  10  norm          .10000E-03    .34901       -.91863E-06** at limit **
  11  norm          .10000E-03    .79630       -.31701E-07** at limit **
  12  Prefactor     3.8473        12.354        .14368E-04    .66077E-04
  13  Prefactor     60.416        57.112        .32951E-04    .14778E-03
  14  Prefactor     10.732        46.830       -.32277E-04    .13052E-05
  15  norm          .10000E-03    10.259       -.97724E-06** at limit **
  16  Prefactor     .10001E-03    13.464        .63969E-05** at limit **
  17  Prefactor     31.600        78.035       -.10635E-03   -.34872E-04
  18  Prefactor     14.769        50.515        .13366E-04   -.33866E-04
  19  Prefactor     .10000E-03    14.463       -.16171E-05** at limit **
  20  norm          4.0328        1.8948       -.29633E-06   -.41533E-04
  21  Prefactor     .10000E-03    6.0322        .10291E-07** at limit **
  22  Normalizat    .62229        .23048        .12357E-04    .13638E-03
  23  Prefactor     1.0992        .16871       -.43102E-05    .88989E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.96382
  Prefactor  = 24.8484
  Prefactor  = 0.0001
  Prefactor  = 31.4863
  Prefactor  = 45.7403
  Prefactor  = 73.8386
  norm       = 0.0001
  norm       = 3.39828
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 3.84732
  Prefactor  = 60.4163
  Prefactor  = 10.7319
  norm       = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 31.6003
  Prefactor  = 14.7686
  Prefactor  = 0.000100002
  norm       = 4.03281
  Prefactor  = 0.0001
  Normalizat = 0.62229
  Prefactor  = 1.09922
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.953     FROM HESSE     STATUS=OK           366 CALLS     2897 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4640        .84004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9638        5.7881        .19940E-03   -1.5310    
   3  Prefactor     24.848        21.813        .80357E-04   -1.4711    
   4  Prefactor     .10000E-03    1.7603        .91788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.486        36.608        .71405E-04   -1.4585    
   6  Prefactor     45.740        19.024        .59289E-04   -1.4354    
   7  Prefactor     73.839        48.704        .46723E-04   -1.3987    
   8  norm          .10000E-03    1.6037        .88024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3983        1.6933        .61854E-04   -1.5339    
  10  norm          .10000E-03    4.0998        .79159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .80369        .62128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8473        12.282        .20584E-03   -1.5316    
  13  Prefactor     60.416        57.197        .51631E-04   -1.4152    
  14  Prefactor     10.732        46.744        .12224E-03   -1.5053    
  15  norm          .10000E-03    10.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    13.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.600        78.156        .71208E-04   -1.4583    
  18  Prefactor     14.769        50.023        .10423E-03   -1.4939    
  19  Prefactor     .10000E-03    14.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0328        1.8928        .64298E-04   -1.5306    
  21  Prefactor     .10000E-03    6.0863        .17095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .62229        .26109        .32578E-03   -1.0705    
  23  Prefactor     1.0992        .19381        .20249E-03   -.89492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02597e-09
Minuit parameter uncertainties:
  1  1.29912e-05
  2  5.78888
  3  21.82
  4  2.91844e-05
  5  36.6339
  6  19.0264
  7  48.7307
  8  2.32448e-06
  9  1.69328
  10  0.000235298
  11  2.25748e-06
  12  12.2905
  13  57.2488
  14  44.8543
  15  0.000235479
  16  0.000598636
  17  78.4108
  18  50.1656
  19  0.000360807
  20  1.89283
  21  7.73343e-05
  22  0.261614
  23  0.19393
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  2.353e-04  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.099e+00  1.939e-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:  6.223e-01  2.616e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/518282/likelihoodResults_487641601_487900801_4FGL_J0948.9+0022_daily_bin958.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): 102
logL (Free Index) = 5085.95407715
delta logL = -0.00126144023398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5085.93983613
delta logL = 0.0129795774155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59934E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8170       1.0000          .0000       5.0000    
     3 'Normalizat'    .61252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1030       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=   5085.940     FROM MIGRAD    STATUS=FAILED       104 CALLS      384 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59524E-01    3.7447        .72004E-03    .89720E-02
   2  alpha         3.8139        2.7596        .90666E-01    .46631E-05
   3  Normalizat    .61255        .24512        .32822E-03    .16280E-05
   4  Prefactor     1.1029        .19153        .20220E-03    .28113E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5085.940     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      457 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59524E-01    3.7447        .98946E-04   -1.5659    
   2  alpha         3.8139        2.7596        .93526E-02    .55337    
   3  Normalizat    .61255        .24512        .28178E-03   -1.0745    
   4  Prefactor     1.1029        .19153        .19149E-03   -.89373    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5085.940     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      492 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59524E-01    .89816        .14401E-03    .35489E-03
   2  alpha         3.8139        3.7525        .18133E-01   -.88401E-07
   3  Normalizat    .61255        .24150        .13129E-04    .15587E-05
   4  Prefactor     1.1029        .19185        .80878E-05    .28113E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0595244
  alpha      = 3.8139
  Normalizat = 0.612552
  Prefactor  = 1.10294
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.940     FROM HESSE     STATUS=OK            25 CALLS      517 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59524E-01    .81086        .28802E-04   -1.5659    
   2  alpha         3.8139        3.9169        .72533E-03    .55337    
   3  Normalizat    .61255        .24181        .26258E-05   -1.0745    
   4  Prefactor     1.1029        .19216        .16176E-05   -.89373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0722e-13
Minuit parameter uncertainties:
  1  0.439029
  2  6.46881
  3  0.242232
  4  0.192285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518282': 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) = 5085.93983505
delta logL = 0.012980658782

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  5.952e-02  4.390e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.814e+00  6.469e+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.103e+00  1.923e-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:  6.126e-01  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/518282/cmap_HighResolution_487641601_487900801_4FGL_J0948.9+0022_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-01 03:04:45.719434', job_id='518282', GAL2='1.10', fit_tolerance='1e-08', EG2='0.61', EG='0.62', time_epoch_completed='1630490685.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.30e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='958' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:04:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 518282: <4FGL_J0948.9+0022_daily_bin958> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin958 147.244 0.3717 487641601 487900801 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 :                                   559.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             294.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            822 sec.

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

