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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin628
RA = 147.244, Dec = 0.3717
tmin = 402105601, tmax = 402364801
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='516506', job_status='RUN', time_executed='2021-09-01 02:50:18.332132', time_epoch_executed='1630489818.33' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516506

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516506/ft1_4FGL_J0948.9+0022_daily_bin628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516506/ft2_4FGL_J0948.9+0022_daily_bin628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516506/ft1_4FGL_J0948.9+0022_daily_bin628.fits outfile=/scratch/kocevski/516506/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin628.fits ra=147.244 dec=0.3717 rad=12.0 tmin=402105601.0 tmax=402364801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.77
user 3.35
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516506/ft1_filtered_4FGL_J0948.9+0022_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/516506/ft2_4FGL_J0948.9+0022_daily_bin628.fits sctable="SC_DATA" expcube=/scratch/kocevski/516506/ltcube_402105601_402364801_4FGL_J0948.9+0022_daily_bin628.fits outfile=/scratch/kocevski/516506/expmap_402105601_402364801_4FGL_J0948.9+0022_daily_bin628.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/516506/ltcube_402105601_402364801_4FGL_J0948.9+0022_daily_bin628.fits
.....................!
real 194.06
user 187.38
sys 5.38

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/516506/ft1_filtered_4FGL_J0948.9+0022_daily_bin628.fits scfile=/scratch/kocevski/516506/ft2_4FGL_J0948.9+0022_daily_bin628.fits outfile=/scratch/kocevski/516506/cmap_402105601_402364801_4FGL_J0948.9+0022_daily_bin628.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516506/ft1_filtered_4FGL_J0948.9+0022_daily_bin628.fits scfile=/scratch/kocevski/516506/ft2_4FGL_J0948.9+0022_daily_bin628.fits outfile=/scratch/kocevski/516506/cmap_HighResolution_402105601_402364801_4FGL_J0948.9+0022_daily_bin628.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.62
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.4728       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21073E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1530       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.8693       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3574       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .14013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.433       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.431       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14364E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.993       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9385       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17544E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5908       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70746       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=   5470.357     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2283 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4936        .47686E-07** at limit **
   2  norm          6.4730        5.8933        .29010E-05   -.12300E-03
   3  Prefactor     .10000E-03    4.1517       -.16478E-07** at limit **
   4  Prefactor     .10000E-03    2.5192       -.49547E-06** at limit **
   5  Prefactor     .10000E-03    21.932        .20662E-05** at limit **
   6  Prefactor     9.1521        17.091        .25044E-06   -.32728E-05
   7  Prefactor     .10000E-03    26.472       -.39273E-05** at limit **
   8  norm          7.8693        4.1058        .40932E-07    .37345E-04
   9  norm          1.3578        1.3343       -.21371E-07   -.41855E-03
  10  norm          .10000E-03    .34282        .48707E-08** at limit **
  11  norm          .10000E-03    1.1370        .20016E-06** at limit **
  12  Prefactor     14.435        10.668       -.48891E-07    .20258E-06
  13  Prefactor     .10000E-03    16.711       -.52758E-06** at limit **
  14  Prefactor     53.413        34.347       -.50052E-05   -.11945E-04
  15  norm          .10000E-03    7.5622        .28255E-06** at limit **
  16  Prefactor     .10000E-03    3.3026        .64454E-07** at limit **
  17  Prefactor     .10000E-03    66.556        .17046E-05** at limit **
  18  Prefactor     .10000E-03    25.054        .23202E-05** at limit **
  19  Prefactor     14.990        13.813       -.36828E-06   -.53115E-05
  20  norm          1.9385        1.3779        .43480E-07   -.23548E-03
  21  Prefactor     .10002E-03    5.1779        .24754E-06** at limit **
  22  Normalizat    1.5906        .22065        .20746E-06    .30853E-04
  23  Prefactor     .70756        .16385       -.18281E-06    .12026E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.47301
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 9.15213
  Prefactor  = 0.0001
  norm       = 7.86929
  norm       = 1.35783
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 14.4351
  Prefactor  = 0.0001
  Prefactor  = 53.4127
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9896
  norm       = 1.93848
  Prefactor  = 0.000100025
  Normalizat = 1.59062
  Prefactor  = 0.707562
 **********
 **   18 **HESSE 
 **********

 FCN=   5470.357     FROM HESSE     STATUS=OK           372 CALLS     2655 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5395        .11401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.4730        5.8315        .15775E-03   -1.5199    
   3  Prefactor     .10000E-03    4.1532        .14718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0056        .22057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1521        17.123        .13247E-03   -1.5103    
   7  Prefactor     .10000E-03    26.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.8693        4.1009        .10518E-03   -1.5147    
   9  norm          1.3578        1.3215        .80600E-04   -1.5475    
  10  norm          .10000E-03    .58489        .83136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.2595        .15202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.435        10.673        .10543E-03   -1.4948    
  13  Prefactor     .10000E-03    16.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     53.413        34.450        .54871E-04   -1.4245    
  15  norm          .10000E-03    7.5845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3059        .13126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    66.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.990        13.817        .10344E-03   -1.4933    
  20  norm          1.9385        1.3628        .70313E-04   -1.5430    
  21  Prefactor     .10002E-03    125.40        .31888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5906        .25512        .23890E-03   -.75263    
  23  Prefactor     .70756        .19082        .26495E-03   -1.0323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.9918e-10
Minuit parameter uncertainties:
  1  4.46947e-06
  2  5.83202
  3  3.7077e-06
  4  0.000332488
  5  1.36072e-05
  6  17.1322
  7  1.27844e-06
  8  4.10101
  9  1.32148
  10  8.04588e-07
  11  0.000391805
  12  10.6742
  13  2.06948e-05
  14  34.4628
  15  5.05209e-07
  16  5.70179e-07
  17  7.35443e-06
  18  4.10044e-06
  19  13.8198
  20  1.36286
  21  0.00353768
  22  0.255326
  23  0.190999
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  8.046e-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:  7.076e-01  1.910e-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.591e+00  2.553e-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: 9.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516506/likelihoodResults_402105601_402364801_4FGL_J0948.9+0022_daily_bin628.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) = 5470.35751479
delta logL = -9.13878038773e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5470.35736683
delta logL = 5.65647278563e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1625       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70752       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=   5470.350     FROM MIGRAD    STATUS=CONVERGED    144 CALLS      328 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20480E-01    .13628        .90712E-02   -.35627E-02
   2  alpha         5.0000        4.3826        .50000    ** at limit **
   3  Normalizat    1.5814        .20950        .54165E-01   -.26292E-04
   4  Prefactor     .71193        .16283        .42501E-01   -.93229E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0204802
  alpha      = 5
  Normalizat = 1.58139
  Prefactor  = 0.711929
 **********
 **   18 **HESSE 
 **********

 FCN=   5470.350     FROM HESSE     STATUS=OK            31 CALLS      359 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20480E-01    .35355        .52529E-03   -1.5737    
   2  alpha         5.0000        4.6591        .20000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5814        .25238        .23948E-03   -.75516    
   4  Prefactor     .71193        .19202        .26423E-03   -1.0306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31956e-11
Minuit parameter uncertainties:
  1  0.169771
  2  8.14691e-06
  3  0.25258
  4  0.192198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516506': 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) = 5470.34983001
delta logL = 0.0075933839089

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.048e-02  1.698e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  5.000e+00  8.147e-06  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:  7.119e-01  1.922e-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.581e+00  2.526e-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/516506/cmap_HighResolution_402105601_402364801_4FGL_J0948.9+0022_daily_bin628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='9.97e-08', time_completed='2021-09-01 02:59:51.587393', job_id='516506', GAL2='0.71', fit_tolerance='1e-08', EG2='1.58', EG='1.59', time_epoch_completed='1630490391.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='7.59e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='628' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:59:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 516506: <4FGL_J0948.9+0022_daily_bin628> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin628 147.244 0.3717 402105601 402364801 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 :                                   562.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             227.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

