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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin816
RA = 147.244, Dec = 0.3717
tmin = 450835201, tmax = 451094401
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='518034', job_status='RUN', time_executed='2021-09-01 02:54:43.430385', time_epoch_executed='1630490083.43' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518034

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518034/ft1_4FGL_J0948.9+0022_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518034/ft2_4FGL_J0948.9+0022_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518034/ft1_4FGL_J0948.9+0022_daily_bin816.fits outfile=/scratch/kocevski/518034/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin816.fits ra=147.244 dec=0.3717 rad=12.0 tmin=450835201.0 tmax=451094401.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.97
user 3.17
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/518034/ft1_filtered_4FGL_J0948.9+0022_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/518034/ft2_4FGL_J0948.9+0022_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/518034/ltcube_450835201_451094401_4FGL_J0948.9+0022_daily_bin816.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/518034/ft2_4FGL_J0948.9+0022_daily_bin816.fits
.....................!
real 15.33
user 14.36
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518034/ft1_filtered_4FGL_J0948.9+0022_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/518034/ft2_4FGL_J0948.9+0022_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/518034/ltcube_450835201_451094401_4FGL_J0948.9+0022_daily_bin816.fits outfile=/scratch/kocevski/518034/expmap_450835201_451094401_4FGL_J0948.9+0022_daily_bin816.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/518034/ltcube_450835201_451094401_4FGL_J0948.9+0022_daily_bin816.fits
.....................!
real 193.29
user 187.43
sys 4.96

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/518034/ft1_filtered_4FGL_J0948.9+0022_daily_bin816.fits scfile=/scratch/kocevski/518034/ft2_4FGL_J0948.9+0022_daily_bin816.fits outfile=/scratch/kocevski/518034/cmap_450835201_451094401_4FGL_J0948.9+0022_daily_bin816.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518034/ft1_filtered_4FGL_J0948.9+0022_daily_bin816.fits scfile=/scratch/kocevski/518034/ft2_4FGL_J0948.9+0022_daily_bin816.fits outfile=/scratch/kocevski/518034/cmap_HighResolution_450835201_451094401_4FGL_J0948.9+0022_daily_bin816.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.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2256       1.0000         .10000E-03   10000.    
     2 'norm      '    4.6921       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.772       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79711       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5796       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .96341       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6011       1.0000         .10000E-03   10000.    
     9 'norm      '    .10773E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0379       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.716       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.032       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.645       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9027       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.637       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1347       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78741       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=   5815.967     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2626 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2269        5.0114        .25264E-06   -.16669E-03
   2  norm          4.6932        6.1528        .31048E-06    .12352E-03
   3  Prefactor     21.774        18.806        .12602E-07   -.39763E-04
   4  Prefactor     .79771        4.5305        .20077E-05   -.94941E-04
   5  Prefactor     7.5833        36.231       -.10374E-06   -.26305E-04
   6  Prefactor     .96417        22.256        .57337E-05   -.41828E-04
   7  Prefactor     .10000E-03    15.162        .48105E-08** at limit **
   8  norm          2.6012        2.6040        .36708E-07   -.63170E-05
   9  norm          .10000E-03    .57634        .82516E-07** at limit **
  10  norm          .10000E-03    .34105       -.26497E-09** at limit **
  11  norm          2.0381        1.7725        .66615E-07    .17090E-06
  12  Prefactor     12.717        11.080        .10894E-06    .29967E-04
  13  Prefactor     .10000E-03    24.136       -.73065E-06** at limit **
  14  Prefactor     .10000E-03    22.961        .89561E-06** at limit **
  15  norm          .10000E-03    9.5064        .58665E-07** at limit **
  16  Prefactor     11.034        14.306        .19270E-06    .51810E-04
  17  Prefactor     .10000E-03    355.27       -.34325E-05** at limit **
  18  Prefactor     29.621        82.789        .45313E-06   -.99803E-05
  19  Prefactor     .10000E-03    45.575       -.18094E-05** at limit **
  20  norm          3.9027        1.7729        .46189E-07   -.15287E-04
  21  Prefactor     11.637        8.1425        .19624E-06    .26104E-06
  22  Normalizat    1.1346        .19828       -.96578E-06   -.19260E-03
  23  Prefactor     .78749        .14334       -.53663E-06   -.21748E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.22691
  norm       = 4.69324
  Prefactor  = 21.7739
  Prefactor  = 0.797713
  Prefactor  = 7.58333
  Prefactor  = 0.964172
  Prefactor  = 0.0001
  norm       = 2.60123
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.0381
  Prefactor  = 12.7175
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 11.0336
  Prefactor  = 0.0001
  Prefactor  = 29.6213
  Prefactor  = 0.0001
  norm       = 3.9027
  Prefactor  = 11.6374
  Normalizat = 1.13457
  Prefactor  = 0.787489
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.967     FROM HESSE     STATUS=OK           378 CALLS     3004 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2269        4.9821        .19756E-03   -1.5349    
   2  norm          4.6932        6.1366        .18578E-03   -1.5275    
   3  Prefactor     21.774        18.759        .85841E-04   -1.4774    
   4  Prefactor     .79771        4.5120        .29665E-03   -1.5529    
   5  Prefactor     7.5833        36.066        .14566E-03   -1.5157    
   6  Prefactor     .96417        22.082        .52143E-03   -1.5512    
   7  Prefactor     .10000E-03    15.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6012        2.6061        .11931E-03   -1.5385    
   9  norm          .10000E-03    6.0654        .11108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .61805        .84866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0381        1.7767        .91260E-04   -1.5422    
  12  Prefactor     12.717        11.072        .11233E-03   -1.4995    
  13  Prefactor     .10000E-03    24.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.5683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.034        14.296        .12062E-03   -1.5044    
  17  Prefactor     .10000E-03    360.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.621        82.600        .73585E-04   -1.4619    
  19  Prefactor     .10000E-03    45.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9027        1.7699        .65134E-04   -1.5313    
  21  Prefactor     11.637        8.1403        .11744E-03   -1.5026    
  22  Normalizat    1.1346        .23104        .25107E-03   -.88649    
  23  Prefactor     .78749        .16929        .23004E-03   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2273e-10
Minuit parameter uncertainties:
  1  4.98276
  2  6.1374
  3  18.7638
  4  3.79454
  5  33.108
  6  9.23168
  7  2.98185e-06
  8  2.60622
  9  3.05193e-06
  10  3.90721e-07
  11  1.77679
  12  11.0741
  13  0.000351461
  14  0.000358558
  15  3.26527e-06
  16  14.3008
  17  0.000650879
  18  82.9217
  19  7.38539e-05
  20  1.76989
  21  8.14111
  22  0.231243
  23  0.169402
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  3.907e-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.875e-01  1.694e-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.135e+00  2.312e-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.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/518034/likelihoodResults_450835201_451094401_4FGL_J0948.9+0022_daily_bin816.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) = 5815.97522741
delta logL = -0.00777097191713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5815.44894463
delta logL = 0.518511803773

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17666       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82221       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=   5815.449     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      364 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17664        .21728        .32907E-03    .38431E-03
   2  alpha         5.0000        4.1014        .50000    ** at limit **
   3  Normalizat    1.0587        .22635        .25887E-03   -.27711E-04
   4  Prefactor     .82231        .17110        .22562E-03   -.19147E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.176639
  alpha      = 5
  Normalizat = 1.05868
  Prefactor  = 0.822309
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.449     FROM HESSE     STATUS=OK            31 CALLS      395 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17664        .21135        .13163E-04   -1.5624    
   2  alpha         5.0000        4.0427        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0587        .22667        .10355E-04   -.91090    
   4  Prefactor     .82231        .17132        .90249E-05   -.98911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58197e-12
Minuit parameter uncertainties:
  1  0.21135
  2  3.4839e-06
  3  0.226879
  4  0.171436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518034': 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) = 5815.44894423
delta logL = 0.518512206485

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.766e-01  2.113e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  5.000e+00  3.484e-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:  8.223e-01  1.714e-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.059e+00  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 147.244 0.372
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.49e-08 +/- 7.72e-08
Energy Flux (Free Index): 8.74e-06 +/- 1.04e-05

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/518034/cmap_HighResolution_450835201_451094401_4FGL_J0948.9+0022_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', comment='SUCCESS', energy_flux2='8.74e-06', dlogl='5.19e-01', photon_flux2='6.49e-08', job_status='DONE', time_completed='2021-09-01 03:05:30.082403', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='9.34e-08', energy_flux_error2='1.04e-05', EG='1.13', time_epoch_completed='1630490730.08', return_code='0', job_id='518034', GAL2='0.82', EG2='1.06', return_code2='0', photon_flux_error2='7.72e-08', ts2='1.12', photon_index='2.45' WHERE bin_id='816' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:05:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 518034: <4FGL_J0948.9+0022_daily_bin816> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin816 147.244 0.3717 450835201 451094401 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 :                                   590.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             262.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            886 sec.

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

