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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin186
RA = 147.244, Dec = 0.3717
tmin = 287539201, tmax = 287798401
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='513268', job_status='RUN', time_executed='2021-09-01 02:40:46.394457', time_epoch_executed='1630489246.39' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513268/ft1_4FGL_J0948.9+0022_daily_bin186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513268/ft2_4FGL_J0948.9+0022_daily_bin186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513268/ft1_4FGL_J0948.9+0022_daily_bin186.fits outfile=/scratch/kocevski/513268/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin186.fits ra=147.244 dec=0.3717 rad=12.0 tmin=287539201.0 tmax=287798401.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.21
user 3.36
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513268/ft2_4FGL_J0948.9+0022_daily_bin186.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/513268/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin186.fits evtable="EVENTS" outfile="/scratch/kocevski/513268/ft1_filtered_4FGL_J0948.9+0022_daily_bin186.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.82
user 0.32
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513268/ft1_filtered_4FGL_J0948.9+0022_daily_bin186.fits evtable="EVENTS" scfile=/scratch/kocevski/513268/ft2_4FGL_J0948.9+0022_daily_bin186.fits sctable="SC_DATA" expcube=/scratch/kocevski/513268/ltcube_287539201_287798401_4FGL_J0948.9+0022_daily_bin186.fits outfile=/scratch/kocevski/513268/expmap_287539201_287798401_4FGL_J0948.9+0022_daily_bin186.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/513268/ltcube_287539201_287798401_4FGL_J0948.9+0022_daily_bin186.fits
.....................!
real 193.05
user 186.03
sys 5.00

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/513268/ft1_filtered_4FGL_J0948.9+0022_daily_bin186.fits scfile=/scratch/kocevski/513268/ft2_4FGL_J0948.9+0022_daily_bin186.fits outfile=/scratch/kocevski/513268/cmap_287539201_287798401_4FGL_J0948.9+0022_daily_bin186.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.80
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513268/ft1_filtered_4FGL_J0948.9+0022_daily_bin186.fits scfile=/scratch/kocevski/513268/ft2_4FGL_J0948.9+0022_daily_bin186.fits outfile=/scratch/kocevski/513268/cmap_HighResolution_287539201_287798401_4FGL_J0948.9+0022_daily_bin186.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 1.07
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7740       1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1707       1.0000         .10000E-03   10000.    
     7 'Prefactor '    90.301       1.0000         .10000E-03   10000.    
     8 'norm      '    .61868E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4991       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12675E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.441       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10184E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19624E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.801       1.0000         .10000E-03   10000.    
    20 'norm      '    .89013       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15097       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0822       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0214       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=   5211.027     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2651 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7773        6.0776        .52540E-07   -.88372E-04
   2  norm          .10000E-03    3.1412        .48629E-07** at limit **
   3  Prefactor     .10000E-03    6.6359       -.29566E-07** at limit **
   4  Prefactor     .10000E-03    3.3990        .18919E-07** at limit **
   5  Prefactor     .10000E-03    15.489        .11785E-07** at limit **
   6  Prefactor     5.1727        16.716        .46202E-05   -.35982E-03
   7  Prefactor     90.300        52.709       -.25565E-06   -.45670E-04
   8  norm          .10042E-03    2.5753       -.28445E-06** at limit **
   9  norm          1.4995        1.1267        .34381E-07   -.24814E-04
  10  norm          .10000E-03    .38166       -.10465E-06** at limit **
  11  norm          .10000E-03    1.3799        .32145E-07** at limit **
  12  Prefactor     .10000E-03    24.484       -.17247E-06** at limit **
  13  Prefactor     13.455        39.150        .45512E-05    .14511E-03
  14  Prefactor     .10000E-03    14.271       -.11527E-06** at limit **
  15  norm          .10000E-03    29.950        .48882E-06** at limit **
  16  Prefactor     .10030E-03    12.016       -.45153E-06** at limit **
  17  Prefactor     .10003E-03    78.101        .79068E-05** at limit **
  18  Prefactor     .10001E-03    69.550       -.40953E-05** at limit **
  19  Prefactor     18.792        18.201       -.35970E-06   -.68573E-04
  20  norm          .88987        1.5017        .19250E-06    .87650E-04
  21  Prefactor     .14423        8.2955       -.12537E-06   -.11084E-04
  22  Normalizat    1.0820        .21850       -.12104E-05    .19828E-04
  23  Prefactor     1.0214        .16560       -.11689E-06   -.36086E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.77731
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.1727
  Prefactor  = 90.2996
  norm       = 0.000100417
  norm       = 1.49945
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4546
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100301
  Prefactor  = 0.000100026
  Prefactor  = 0.000100005
  Prefactor  = 18.7923
  norm       = 0.889875
  Prefactor  = 0.144232
  Normalizat = 1.08204
  Prefactor  = 1.02138
 **********
 **   18 **HESSE 
 **********

 FCN=   5211.027     FROM HESSE     STATUS=OK           388 CALLS     3039 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7773        6.0739        .13532E-03   -1.5115    
   2  norm          .10000E-03    3.1514        .12495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.6408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4799        .25971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1727        19.301        .88395E-03   -1.5253    
   7  Prefactor     90.300        52.777        .42285E-04   -1.3805    
   8  norm          .10042E-03    5.0303        .39988E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4995        1.1308        .64024E-04   -1.5463    
  10  norm          .10000E-03    .62821        .85202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2224        .16354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.455        40.179        .10925E-03   -1.4974    
  14  Prefactor     .10000E-03    14.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    30.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10030E-03    122.53        .45092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10003E-03    84.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    70.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.792        17.587        .92369E-04   -1.4841    
  20  norm          .88987        1.3363        .10722E-02   -1.5519    
  21  Prefactor     .14423        10.853        .53763E-01   -1.5632    
  22  Normalizat    1.0820        .25523        .26956E-03   -.90331    
  23  Prefactor     1.0214        .19687        .21945E-03   -.92020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44636e-09
Minuit parameter uncertainties:
  1  6.07437
  2  5.25165e-06
  3  2.06196e-07
  4  7.69059e-06
  5  8.39585e-06
  6  19.3244
  7  52.8044
  8  0.00289739
  9  1.1308
  10  6.93812e-07
  11  2.09282e-05
  12  2.54079e-05
  13  40.2599
  14  3.09622e-05
  15  0.000169504
  16  0.0121666
  17  0.00296314
  18  0.00122315
  19  17.5916
  20  1.3363
  21  2.50188
  22  0.255524
  23  0.197004
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  6.938e-07  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.021e+00  1.970e-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.082e+00  2.555e-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.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513268/likelihoodResults_287539201_287798401_4FGL_J0948.9+0022_daily_bin186.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) = 5211.03417995
delta logL = -0.00762132524233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5211.02655778
delta logL = 8.48553099786e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5211.026     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      284 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69444E-02    5.9939        .13046E-01   -.15400E-02
   2  alpha         5.0000        4.9943        .41156    ** at limit **
   3  Normalizat    1.0790        .44966E-01    .61026E-01    .12134E-04
   4  Prefactor     1.0228        .34805E-01    .42007E-01    .96417E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00694441
  alpha      = 5
  Normalizat = 1.07899
  Prefactor  = 1.02283
 **********
 **   18 **HESSE 
 **********

 FCN=   5211.026     FROM HESSE     STATUS=OK            37 CALLS      321 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69444E-02    1.1162        .45448E-03   -1.5725    
   2  alpha         5.0000        4.4788        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0790        .25465        .26991E-03   -.90429    
   4  Prefactor     1.0228        .19766        .21932E-03   -.91972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40928e-11
Minuit parameter uncertainties:
  1  0.174815
  2  0.00105051
  3  0.254939
  4  0.197802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513268': 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) = 5211.02570467
delta logL = 0.000853957397339

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  6.944e-03  1.748e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  5.000e+00  1.051e-03  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.023e+00  1.978e-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.079e+00  2.549e-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/513268/cmap_HighResolution_287539201_287798401_4FGL_J0948.9+0022_daily_bin186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-01 02:50:33.524119', job_id='513268', GAL2='1.02', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630489833.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='8.54e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='186' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:50:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 513268: <4FGL_J0948.9+0022_daily_bin186> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin186 147.244 0.3717 287539201 287798401 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 :                                   558.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             231.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

