/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 128 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin22
RA = 147.244, Dec = 0.3717
tmin = 245030401, tmax = 245289601
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='513045', job_status='RUN', time_executed='2021-09-01 02:38:15.501237', time_epoch_executed='1630489095.5' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513045/ft1_4FGL_J0948.9+0022_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513045/ft2_4FGL_J0948.9+0022_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513045/ft1_4FGL_J0948.9+0022_daily_bin22.fits outfile=/scratch/kocevski/513045/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin22.fits ra=147.244 dec=0.3717 rad=12.0 tmin=245030401.0 tmax=245289601.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 1.45
user 1.28
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513045/ft1_filtered_4FGL_J0948.9+0022_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/513045/ft2_4FGL_J0948.9+0022_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/513045/ltcube_245030401_245289601_4FGL_J0948.9+0022_daily_bin22.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/513045/ft2_4FGL_J0948.9+0022_daily_bin22.fits
.....................!
real 12.46
user 12.09
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513045/ft1_filtered_4FGL_J0948.9+0022_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/513045/ft2_4FGL_J0948.9+0022_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/513045/ltcube_245030401_245289601_4FGL_J0948.9+0022_daily_bin22.fits outfile=/scratch/kocevski/513045/expmap_245030401_245289601_4FGL_J0948.9+0022_daily_bin22.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/513045/ltcube_245030401_245289601_4FGL_J0948.9+0022_daily_bin22.fits
.....................!
real 192.29
user 187.67
sys 4.21

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/513045/ft1_filtered_4FGL_J0948.9+0022_daily_bin22.fits scfile=/scratch/kocevski/513045/ft2_4FGL_J0948.9+0022_daily_bin22.fits outfile=/scratch/kocevski/513045/cmap_245030401_245289601_4FGL_J0948.9+0022_daily_bin22.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.72
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513045/ft1_filtered_4FGL_J0948.9+0022_daily_bin22.fits scfile=/scratch/kocevski/513045/ft2_4FGL_J0948.9+0022_daily_bin22.fits outfile=/scratch/kocevski/513045/cmap_HighResolution_245030401_245289601_4FGL_J0948.9+0022_daily_bin22.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.55
user 0.40
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.623       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.502       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16948E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10844E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1121       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.101       1.0000         .10000E-03   10000.    
     8 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4046       1.0000         .10000E-03   10000.    
    11 'norm      '    4.5599       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2083       1.0000         .10000E-03   10000.    
    13 'Prefactor '    93.769       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.668       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.045       1.0000         .10000E-03   10000.    
    17 'Prefactor '    102.25       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.5655       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0285       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85831       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=   6068.378     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2576 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.625        6.2715       -.12913E-07   -.59520E-05
   2  norm          .10000E-03    2.2357       -.13734E-08** at limit **
   3  Prefactor     37.495        20.368       -.11793E-05    .55764E-04
   4  Prefactor     .10000E-03    2.5362       -.48852E-06** at limit **
   5  Prefactor     .10000E-03    129.91        .13024E-06** at limit **
   6  Prefactor     4.1142        10.239        .31884E-05   -.21159E-03
   7  Prefactor     26.091        29.798       -.26456E-05    .52481E-04
   8  norm          .10000E-03    2.7854       -.87748E-07** at limit **
   9  norm          .10000E-03    .49646        .79331E-08** at limit **
  10  norm          1.4044        .68688       -.12164E-06   -.28507E-03
  11  norm          4.5593        2.3994       -.62978E-06   -.39645E-02
  12  Prefactor     7.2072        8.8230       -.12191E-06   -.43208E-03
  13  Prefactor     93.760        54.497       -.44924E-05    .13499E-03
  14  Prefactor     11.656        35.601       -.57210E-05    .52385E-04
  15  norm          .10000E-03    9.9735        .29701E-06** at limit **
  16  Prefactor     29.048        14.652        .33746E-05   -.18253E-03
  17  Prefactor     102.23        72.906       -.14060E-04    .16333E-03
  18  Prefactor     .10000E-03    88.142        .92201E-06** at limit **
  19  Prefactor     .10000E-03    13.185        .55989E-07** at limit **
  20  norm          2.5650        1.6159        .51235E-07   -.15913E-03
  21  Prefactor     .10000E-03    10.859       -.39104E-06** at limit **
  22  Normalizat    1.0287        .21382        .33775E-05   -.29393E-04
  23  Prefactor     .85828        .15702        .28125E-07    .15571E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.6246
  norm       = 0.0001
  Prefactor  = 37.4953
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.11422
  Prefactor  = 26.091
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.40443
  norm       = 4.55929
  Prefactor  = 7.20717
  Prefactor  = 93.7602
  Prefactor  = 11.6562
  norm       = 0.0001
  Prefactor  = 29.0475
  Prefactor  = 102.227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.56504
  Prefactor  = 0.0001
  Normalizat = 1.02871
  Prefactor  = 0.858278
 **********
 **   18 **HESSE 
 **********

 FCN=   6068.378     FROM HESSE     STATUS=OK           370 CALLS     2946 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.625        6.2735        .88199E-04   -1.4799    
   2  norm          .10000E-03    2.2446        .11374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.495        20.401        .65446E-04   -1.4483    
   4  Prefactor     .10000E-03    5.1665        .23838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    131.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1142        10.132        .19879E-03   -1.5302    
   7  Prefactor     26.091        29.771        .78411E-04   -1.4686    
   8  norm          .10000E-03    2.8353        .12686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .72186        .10593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4044        .67830        .42564E-04   -1.5471    
  11  norm          4.5593        2.5396        .44352E-03   -1.5281    
  12  Prefactor     7.2072        8.8404        .74701E-03   -1.5171    
  13  Prefactor     93.760        54.271        .41503E-04   -1.3768    
  14  Prefactor     11.656        35.524        .11728E-03   -1.5025    
  15  norm          .10000E-03    9.9927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.048        14.518        .74339E-04   -1.4630    
  17  Prefactor     102.23        71.325        .39763E-04   -1.3682    
  18  Prefactor     .10000E-03    88.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.5650        1.6109        .74547E-04   -1.5388    
  21  Prefactor     .10000E-03    11.171        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0287        .25140        .27859E-03   -.92075    
  23  Prefactor     .85828        .18642        .23853E-03   -.97615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51764e-09
Minuit parameter uncertainties:
  1  6.27374
  2  3.7476e-06
  3  20.4053
  4  0.000150662
  5  0.000188778
  6  10.1362
  7  29.7875
  8  2.83442e-07
  9  1.80332e-05
  10  0.678306
  11  2.53969
  12  8.84196
  13  54.3002
  14  35.5887
  15  7.64198e-05
  16  14.52
  17  71.3847
  18  0.000121892
  19  2.93397e-05
  20  1.6109
  21  4.32097e-06
  22  0.251693
  23  0.186561
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.404e+00  6.783e-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:  8.583e-01  1.866e-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.029e+00  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.77
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 5.20e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.30e-05

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) = 6068.37718533
delta logL = 0.00127011650056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6068.3771242
delta logL = 0.00133124886088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4012       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4228       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85665       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=   6068.377     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      195 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4011        .96189        .91630E-02    .48985E-03
   2  alpha         2.4229        .70016        .38933       -.17906E-04
   3  Normalizat    1.0312        .19875        .62922E-01    .95099E-04
   4  Prefactor     .85666        .15842        .44450E-01    .15231E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40113
  alpha      = 2.42289
  Normalizat = 1.03122
  Prefactor  = 0.85666
 **********
 **   18 **HESSE 
 **********

 FCN=   6068.377     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4011        .67731        .42623E-04   -1.5471    
   2  alpha         2.4229        .57366        .15183E-01   -.30851E-01
   3  Normalizat    1.0312        .23771        .27830E-03   -.91992    
   4  Prefactor     .85666        .18628        .23873E-03   -.97672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11719e-10
Minuit parameter uncertainties:
  1  0.677312
  2  0.578825
  3  0.237953
  4  0.186418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513045': 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) = 6068.37712419
delta logL = 0.00133125593584

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.401e+00  6.773e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.423e+00  5.788e-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:  8.567e-01  1.864e-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.031e+00  2.380e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.67
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.42 +/- 0.58
Photon Flux (Free Index): 1.06e-07 +/- 5.74e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.34e-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/513045/cmap_HighResolution_245030401_245289601_4FGL_J0948.9+0022_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='2.70e-05', photon_flux_error='5.20e-08', dlogl='1.33e-03', energy_flux='2.69e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-01 02:47:09.005193', photon_index_error2='0.58', photon_index2='2.42', ts='6.77', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='1.03', time_epoch_completed='1630489629.01', return_code='0', job_id='513045', GAL2='0.86', EG2='1.03', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='5.74e-08', ts2='6.67', photon_index='2.45' WHERE bin_id='22' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:47:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 513045: <4FGL_J0948.9+0022_daily_bin22> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin22 147.244 0.3717 245030401 245289601 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 :                                   531.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            673 sec.

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

