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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin203
RA = 147.244, Dec = 0.3717
tmin = 291945601, tmax = 292204801
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='513291', job_status='RUN', time_executed='2021-09-01 02:39:39.667558', time_epoch_executed='1630489179.67' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513291

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513291/ft1_4FGL_J0948.9+0022_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513291/ft2_4FGL_J0948.9+0022_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513291/ft1_4FGL_J0948.9+0022_daily_bin203.fits outfile=/scratch/kocevski/513291/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin203.fits ra=147.244 dec=0.3717 rad=12.0 tmin=291945601.0 tmax=292204801.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.05
user 3.55
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513291/ft1_filtered_4FGL_J0948.9+0022_daily_bin203.fits" evtable="EVENTS" scfile=/scratch/kocevski/513291/ft2_4FGL_J0948.9+0022_daily_bin203.fits sctable="SC_DATA" outfile=/scratch/kocevski/513291/ltcube_291945601_292204801_4FGL_J0948.9+0022_daily_bin203.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/513291/ft2_4FGL_J0948.9+0022_daily_bin203.fits
.....................!
real 12.89
user 11.73
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513291/ft1_filtered_4FGL_J0948.9+0022_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/513291/ft2_4FGL_J0948.9+0022_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/513291/ltcube_291945601_292204801_4FGL_J0948.9+0022_daily_bin203.fits outfile=/scratch/kocevski/513291/expmap_291945601_292204801_4FGL_J0948.9+0022_daily_bin203.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/513291/ltcube_291945601_292204801_4FGL_J0948.9+0022_daily_bin203.fits
.....................!
real 194.12
user 185.37
sys 5.52

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/513291/ft1_filtered_4FGL_J0948.9+0022_daily_bin203.fits scfile=/scratch/kocevski/513291/ft2_4FGL_J0948.9+0022_daily_bin203.fits outfile=/scratch/kocevski/513291/cmap_291945601_292204801_4FGL_J0948.9+0022_daily_bin203.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.91
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513291/ft1_filtered_4FGL_J0948.9+0022_daily_bin203.fits scfile=/scratch/kocevski/513291/ft2_4FGL_J0948.9+0022_daily_bin203.fits outfile=/scratch/kocevski/513291/cmap_HighResolution_291945601_292204801_4FGL_J0948.9+0022_daily_bin203.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.04
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4002       1.0000         .10000E-03   10000.    
     2 'norm      '    3.6954       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.438       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9262       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.446       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5587       1.0000         .10000E-03   10000.    
    10 'norm      '    .84597       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.577       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.6382       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10778E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11745E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.306       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5088       1.0000         .10000E-03   10000.    
    20 'norm      '    .64240       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .55702       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0546       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .73275       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=   4852.562     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2527 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4002        5.4339        .28018E-08   -.12695E-04
   2  norm          3.6952        8.6554        .44401E-06   -.38847E-05
   3  Prefactor     15.439        18.281       -.31668E-07   -.22853E-05
   4  Prefactor     6.9267        4.4013        .67055E-08    .94720E-05
   5  Prefactor     .10000E-03    14.399        .76694E-07** at limit **
   6  Prefactor     28.446        17.963       -.10270E-06   -.66849E-05
   7  Prefactor     .10000E-03    18.410       -.26793E-07** at limit **
   8  norm          .10000E-03    1.5087        .45553E-07** at limit **
   9  norm          2.5588        1.3835        .43814E-08   -.90559E-05
  10  norm          .84617        .69546        .50398E-07   -.13443E-04
  11  norm          .10000E-03    .53059        .23160E-07** at limit **
  12  Prefactor     16.575        14.596       -.13653E-05   -.56005E-05
  13  Prefactor     .10000E-03    41.151        .83677E-06** at limit **
  14  Prefactor     .10000E-03    7.9849        .20824E-07** at limit **
  15  norm          3.6376        11.902        .99461E-05    .58623E-04
  16  Prefactor     .10000E-03    5.8890       -.14599E-05** at limit **
  17  Prefactor     .10000E-03    47.676       -.22684E-05** at limit **
  18  Prefactor     64.228        58.090       -.56603E-06   -.26681E-03
  19  Prefactor     3.5253        22.601       -.23734E-05   -.39599E-05
  20  norm          .64329        1.6437        .41142E-06   -.21680E-03
  21  Prefactor     .53896        4.3444        .10325E-05   -.58740E-03
  22  Normalizat    1.0544        .22803        .17989E-05   -.17259E-03
  23  Prefactor     .73286        .16663       -.20678E-05   -.41209E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.40024
  norm       = 3.69516
  Prefactor  = 15.4394
  Prefactor  = 6.92669
  Prefactor  = 0.0001
  Prefactor  = 28.4463
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.55879
  norm       = 0.846172
  norm       = 0.0001
  Prefactor  = 16.5745
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.63756
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 64.2284
  Prefactor  = 3.52533
  norm       = 0.643289
  Prefactor  = 0.538964
  Normalizat = 1.05443
  Prefactor  = 0.732863
 **********
 **   18 **HESSE 
 **********

 FCN=   4852.562     FROM HESSE     STATUS=OK           376 CALLS     2903 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4002        5.4347        .14013E-03   -1.5202    
   2  norm          3.6952        8.6296        .21009E-03   -1.5323    
   3  Prefactor     15.439        18.271        .10194E-03   -1.4922    
   4  Prefactor     6.9267        4.4104        .11005E-03   -1.5182    
   5  Prefactor     .10000E-03    14.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.446        17.977        .75117E-04   -1.4641    
   7  Prefactor     .10000E-03    18.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5175        .83547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5588        1.3821        .57669E-04   -1.5388    
  10  norm          .84617        .67264        .48922E-03   -1.5524    
  11  norm          .10000E-03    .53193        .49548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.575        14.611        .98371E-04   -1.4894    
  13  Prefactor     .10000E-03    41.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.6376        11.960        .10590E-02   -1.5326    
  16  Prefactor     .10000E-03    5.9179        .16516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     64.228        57.234        .25022E-03   -1.4103    
  19  Prefactor     3.5253        21.951        .21583E-03   -1.5332    
  20  norm          .64329        1.6158        .12946E-03   -1.5548    
  21  Prefactor     .53896        19.088        .26362E-02   -1.5561    
  22  Normalizat    1.0544        .26781        .24983E-03   -.91229    
  23  Prefactor     .73286        .19453        .22957E-03   -1.0225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92086e-09
Minuit parameter uncertainties:
  1  5.43511
  2  8.63246
  3  18.2775
  4  4.41064
  5  1.19928e-05
  6  17.9804
  7  3.88545e-05
  8  1.01493e-06
  9  1.38216
  10  0.672646
  11  2.60421e-07
  12  14.6143
  13  0.000340256
  14  3.16146e-06
  15  11.9681
  16  2.6032e-05
  17  0.000468638
  18  57.2835
  19  17.6028
  20  1.61591
  21  6.41654
  22  0.268151
  23  0.194706
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.462e-01  6.726e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.453e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  7.329e-01  1.947e-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.054e+00  2.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.50e-08 +/- 5.16e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/513291/likelihoodResults_291945601_292204801_4FGL_J0948.9+0022_daily_bin203.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) = 4852.20812765
delta logL = 0.353584071901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4852.1980837
delta logL = 0.3636280193

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85966       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1240       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75254       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=   4852.198     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      229 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86017        .65455        .42680E-04   -.12453E-02
   2  alpha         3.1241        .85870        .20875E-01   -.14785E-04
   3  Normalizat    1.0212        .25105        .25328E-03   -.31555E-04
   4  Prefactor     .75207        .19392        .22685E-03   -.59939E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.860167
  alpha      = 3.12406
  Normalizat = 1.02119
  Prefactor  = 0.75207
 **********
 **   18 **HESSE 
 **********

 FCN=   4852.198     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86017        .64399        .17072E-05   -1.5522    
   2  alpha         3.1241        .84530        .83499E-03    .25229    
   3  Normalizat    1.0212        .25140        .10131E-04   -.92324    
   4  Prefactor     .75207        .19412        .90739E-05   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04438e-11
Minuit parameter uncertainties:
  1  0.643996
  2  0.863499
  3  0.251697
  4  0.194294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513291': 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) = 4852.19807981
delta logL = 0.363631913893

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.602e-01  6.440e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.124e+00  8.635e-01  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.521e-01  1.943e-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.021e+00  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.00
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.12 +/- 0.86
Photon Flux (Free Index): 8.98e-08 +/- 6.36e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.16e-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/513291/cmap_HighResolution_291945601_292204801_4FGL_J0948.9+0022_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-05', comment='SUCCESS', photon_flux='6.50e-08', energy_flux2='1.66e-05', photon_flux_error='5.16e-08', dlogl='3.64e-01', energy_flux='1.62e-05', photon_flux2='8.98e-08', job_status='DONE', time_completed='2021-09-01 02:48:55.296566', photon_index_error2='0.86', photon_index2='3.12', ts='2.24', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='1.16e-05', EG='1.05', time_epoch_completed='1630489735.3', return_code='0', job_id='513291', GAL2='0.75', EG2='1.02', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='6.36e-08', ts2='3.00', photon_index='2.45' WHERE bin_id='203' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:48:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 513291: <4FGL_J0948.9+0022_daily_bin203> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin203 147.244 0.3717 291945601 292204801 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 :                                   539.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            760 sec.

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

