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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin45
RA = 147.244, Dec = 0.3717
tmin = 250992001, tmax = 251251201
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='513073', job_status='RUN', time_executed='2021-09-01 02:40:19.871127', time_epoch_executed='1630489219.87' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513073

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513073/ft1_4FGL_J0948.9+0022_daily_bin45.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513073/ft2_4FGL_J0948.9+0022_daily_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513073/ft1_4FGL_J0948.9+0022_daily_bin45.fits outfile=/scratch/kocevski/513073/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin45.fits ra=147.244 dec=0.3717 rad=12.0 tmin=250992001.0 tmax=251251201.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.51
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513073/ft2_4FGL_J0948.9+0022_daily_bin45.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/513073/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin45.fits evtable="EVENTS" outfile="/scratch/kocevski/513073/ft1_filtered_4FGL_J0948.9+0022_daily_bin45.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.53
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513073/ft1_filtered_4FGL_J0948.9+0022_daily_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/513073/ft2_4FGL_J0948.9+0022_daily_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/513073/ltcube_250992001_251251201_4FGL_J0948.9+0022_daily_bin45.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/513073/ft2_4FGL_J0948.9+0022_daily_bin45.fits
.....................!
real 13.23
user 12.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513073/ft1_filtered_4FGL_J0948.9+0022_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/513073/ft2_4FGL_J0948.9+0022_daily_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/513073/ltcube_250992001_251251201_4FGL_J0948.9+0022_daily_bin45.fits outfile=/scratch/kocevski/513073/expmap_250992001_251251201_4FGL_J0948.9+0022_daily_bin45.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/513073/ltcube_250992001_251251201_4FGL_J0948.9+0022_daily_bin45.fits
.....................!
real 191.35
user 186.19
sys 4.27

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/513073/ft1_filtered_4FGL_J0948.9+0022_daily_bin45.fits scfile=/scratch/kocevski/513073/ft2_4FGL_J0948.9+0022_daily_bin45.fits outfile=/scratch/kocevski/513073/cmap_250992001_251251201_4FGL_J0948.9+0022_daily_bin45.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.54
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513073/ft1_filtered_4FGL_J0948.9+0022_daily_bin45.fits scfile=/scratch/kocevski/513073/ft2_4FGL_J0948.9+0022_daily_bin45.fits outfile=/scratch/kocevski/513073/cmap_HighResolution_250992001_251251201_4FGL_J0948.9+0022_daily_bin45.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.830       1.0000         .10000E-03   10000.    
     2 'norm      '    9.7360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10794E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3470       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.805       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.502       1.0000         .10000E-03   10000.    
     8 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1949       1.0000         .10000E-03   10000.    
    10 'norm      '    1.3834       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2082       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.704       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7177       1.0000         .10000E-03   10000.    
    15 'norm      '    .11091E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    55.896       1.0000         .10000E-03   10000.    
    17 'Prefactor '    73.944       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10999E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.049       1.0000         .10000E-03   10000.    
    20 'norm      '    .53625       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.173       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0912       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80856       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=   8830.447     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2645 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.830        4.6503        .35228E-06   -.12292E-03
   2  norm          9.7368        5.4856       -.52126E-07   -.75293E-04
   3  Prefactor     .10000E-03    6.8378        .24450E-06** at limit **
   4  Prefactor     .10000E-03    1.4131        .39568E-07** at limit **
   5  Prefactor     6.2448        38.729       -.14703E-04   -.24068E-04
   6  Prefactor     17.807        13.275        .20567E-06   -.80128E-03
   7  Prefactor     12.496        20.625        .33162E-05   -.19429E-04
   8  norm          .10000E-03    1.6378        .19040E-06** at limit **
   9  norm          1.1945        1.3481        .60443E-08   -.14885E-02
  10  norm          1.3835        .50235        .36711E-07   -.35351E-03
  11  norm          1.2081        1.0561        .58152E-07    .11014E-03
  12  Prefactor     .10000E-03    4.4918       -.22241E-06** at limit **
  13  Prefactor     47.706        32.255        .36751E-05    .91409E-06
  14  Prefactor     8.6745        26.995        .79658E-05   -.19985E-04
  15  norm          .10001E-03    26.404       -.10147E-05** at limit **
  16  Prefactor     55.908        15.958        .12914E-05    .24442E-04
  17  Prefactor     73.968        58.910        .13588E-04   -.60979E-05
  18  Prefactor     .10001E-03    53.641        .12092E-05** at limit **
  19  Prefactor     15.047        19.090        .91140E-05   -.20264E-04
  20  norm          .53556        .91249       -.44658E-06   -.32708E-02
  21  Prefactor     11.173        5.9875       -.81180E-06   -.42533E-04
  22  Normalizat    1.0912        .17843       -.28404E-05    .10263E-03
  23  Prefactor     .80866        .12779        .14555E-06   -.18114E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.8297
  norm       = 9.73676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.24481
  Prefactor  = 17.8069
  Prefactor  = 12.496
  norm       = 0.0001
  norm       = 1.1945
  norm       = 1.38352
  norm       = 1.20814
  Prefactor  = 0.0001
  Prefactor  = 47.7065
  Prefactor  = 8.67451
  norm       = 0.000100006
  Prefactor  = 55.9076
  Prefactor  = 73.9677
  Prefactor  = 0.000100009
  Prefactor  = 15.0471
  norm       = 0.535561
  Prefactor  = 11.173
  Normalizat = 1.09122
  Prefactor  = 0.808656
 **********
 **   18 **HESSE 
 **********

 FCN=   8830.447     FROM HESSE     STATUS=OK           382 CALLS     3027 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.830        4.6523        .10401E-03   -1.4938    
   2  norm          9.7368        5.4857        .12843E-03   -1.5084    
   3  Prefactor     .10000E-03    6.8658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4481        .21799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2448        39.227        .15932E-03   -1.5208    
   6  Prefactor     17.807        13.313        .47459E-03   -1.4864    
   7  Prefactor     12.496        20.582        .11329E-03   -1.5001    
   8  norm          .10000E-03    4.9770        .23257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1945        1.3503        .10525E-03   -1.5489    
  10  norm          1.3835        .49914        .38129E-04   -1.5473    
  11  norm          1.2081        1.0772        .87578E-04   -1.5488    
  12  Prefactor     .10000E-03    4.5046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.706        32.194        .58056E-04   -1.4325    
  14  Prefactor     8.6745        26.905        .13576E-03   -1.5119    
  15  norm          .10001E-03    27.291        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     55.908        15.960        .53654E-04   -1.4211    
  17  Prefactor     73.968        58.623        .46691E-04   -1.3986    
  18  Prefactor     .10001E-03    53.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.047        18.994        .10324E-03   -1.4932    
  20  norm          .53556        .80598        .11209E-02   -1.5562    
  21  Prefactor     11.173        5.9510        .11985E-03   -1.5039    
  22  Normalizat    1.0912        .21132        .26851E-03   -.90034    
  23  Prefactor     .80866        .15110        .24264E-03   -.99410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22346e-09
Minuit parameter uncertainties:
  1  4.65241
  2  5.48598
  3  7.14578e-05
  4  7.82915e-06
  5  31.3326
  6  13.3155
  7  20.5938
  8  4.88965e-05
  9  1.35029
  10  0.499144
  11  1.07717
  12  4.91343e-05
  13  32.2062
  14  26.943
  15  0.000777297
  16  15.961
  17  58.6692
  18  0.00140048
  19  19.0013
  20  0.805997
  21  5.9513
  22  0.211486
  23  0.151174
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.384e+00  4.991e-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.087e-01  1.512e-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.091e+00  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.86
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 3.83e-08
Energy Flux (Fixed Index): 2.65e-05 +/- 9.55e-06

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) = 8825.63308816
delta logL = 4.81425752598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8825.62818792
delta logL = 4.81915776527

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80821       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3166       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75187       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=   8825.628     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80804        .34358        .64725E-02   -.79640E-04
   2  alpha         1.3166        .25248        .20086       -.65014E-04
   3  Normalizat    1.1797        .15996        .58697E-01    .10931E-04
   4  Prefactor     .75189        .12670        .43088E-01    .22951E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.808035
  alpha      = 1.31659
  Normalizat = 1.17966
  Prefactor  = 0.751894
 **********
 **   18 **HESSE 
 **********

 FCN=   8825.628     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80804        .42018        .28562E-04   -1.5528    
   2  alpha         1.3166        .31713        .86379E-02   -.49311    
   3  Normalizat    1.1797        .18739        .25959E-03   -.87234    
   4  Prefactor     .75189        .14840        .25017E-03   -1.0153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3095e-12
Minuit parameter uncertainties:
  1  0.420184
  2  0.318239
  3  0.187495
  4  0.148482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513073': 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) = 8825.62818772
delta logL = 4.8191579637

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.080e-01  4.202e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.317e+00  3.182e-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.519e-01  1.485e-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.180e+00  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.87
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.32 +/- 0.32
Photon Flux (Free Index): 5.83e-08 +/- 2.54e-08
Energy Flux (Free Index): 5.19e-05 +/- 2.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/513073/cmap_HighResolution_250992001_251251201_4FGL_J0948.9+0022_daily_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='5.19e-05', photon_flux_error='3.83e-08', dlogl='4.82e+00', energy_flux='2.65e-05', photon_flux2='5.83e-08', job_status='DONE', time_completed='2021-09-01 02:51:28.049333', photon_index_error2='0.32', photon_index2='1.32', ts='17.86', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='1.09', time_epoch_completed='1630489888.05', return_code='0', job_id='513073', GAL2='0.75', EG2='1.18', return_code2='0', energy_flux_error='9.55e-06', photon_flux_error2='2.54e-08', ts2='27.87', photon_index='2.45' WHERE bin_id='45' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:51:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 513073: <4FGL_J0948.9+0022_daily_bin45> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin45 147.244 0.3717 250992001 251251201 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 :                                   651.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            930 sec.

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

