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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin686
RA = 147.244, Dec = 0.3717
tmin = 417139201, tmax = 417398401
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='516636', job_status='RUN', time_executed='2021-09-01 02:48:08.399147', time_epoch_executed='1630489688.4' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516636

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516636/ft1_4FGL_J0948.9+0022_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516636/ft2_4FGL_J0948.9+0022_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516636/ft1_4FGL_J0948.9+0022_daily_bin686.fits outfile=/scratch/kocevski/516636/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin686.fits ra=147.244 dec=0.3717 rad=12.0 tmin=417139201.0 tmax=417398401.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.51
user 5.16
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516636/ft1_filtered_4FGL_J0948.9+0022_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/516636/ft2_4FGL_J0948.9+0022_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/516636/ltcube_417139201_417398401_4FGL_J0948.9+0022_daily_bin686.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/516636/ft2_4FGL_J0948.9+0022_daily_bin686.fits
.....................!
real 12.93
user 12.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516636/ft1_filtered_4FGL_J0948.9+0022_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/516636/ft2_4FGL_J0948.9+0022_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/516636/ltcube_417139201_417398401_4FGL_J0948.9+0022_daily_bin686.fits outfile=/scratch/kocevski/516636/expmap_417139201_417398401_4FGL_J0948.9+0022_daily_bin686.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/516636/ltcube_417139201_417398401_4FGL_J0948.9+0022_daily_bin686.fits
.....................!
real 190.98
user 185.33
sys 5.12

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/516636/ft1_filtered_4FGL_J0948.9+0022_daily_bin686.fits scfile=/scratch/kocevski/516636/ft2_4FGL_J0948.9+0022_daily_bin686.fits outfile=/scratch/kocevski/516636/cmap_417139201_417398401_4FGL_J0948.9+0022_daily_bin686.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.63
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516636/ft1_filtered_4FGL_J0948.9+0022_daily_bin686.fits scfile=/scratch/kocevski/516636/ft2_4FGL_J0948.9+0022_daily_bin686.fits outfile=/scratch/kocevski/516636/cmap_HighResolution_417139201_417398401_4FGL_J0948.9+0022_daily_bin686.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.71
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8025       1.0000         .10000E-03   10000.    
     2 'norm      '    11.865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.919       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.669       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5840       1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1198       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4092       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.146       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10723E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11156E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.264       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8613       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74612       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1304       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=   6143.546     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2555 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8023        4.7550        .18070E-05   -.83775E-03
   2  norm          11.865        6.2180        .25968E-06    .27185E-04
   3  Prefactor     .10000E-03    10.007        .34846E-05** at limit **
   4  Prefactor     10.919        5.6491       -.10620E-05   -.21521E-03
   5  Prefactor     .10000E-03    34.091       -.28922E-04** at limit **
   6  Prefactor     .10000E-03    8.3536       -.71829E-06** at limit **
   7  Prefactor     26.657        32.035       -.83942E-05    .79334E-05
   8  norm          2.5839        2.7652        .55365E-07   -.13185E-03
   9  norm          .10000E-03    .54429       -.29969E-07** at limit **
  10  norm          4.1198        .93152       -.18565E-07   -.84906E-05
  11  norm          1.4093        1.3548        .32248E-07    .15207E-03
  12  Prefactor     26.117        17.072        .11677E-05   -.76864E-04
  13  Prefactor     .10000E-03    27.669        .13007E-04** at limit **
  14  Prefactor     .10000E-03    30.409       -.14496E-04** at limit **
  15  norm          .10000E-03    10.836       -.37867E-05** at limit **
  16  Prefactor     .10000E-03    27.248        .11605E-04** at limit **
  17  Prefactor     .10000E-03    102.31       -.55947E-04** at limit **
  18  Prefactor     .10000E-03    61.546        .55318E-04** at limit **
  19  Prefactor     10.214        20.050        .10109E-05   -.35719E-03
  20  norm          2.8611        1.6114       -.97567E-07   -.49598E-03
  21  Prefactor     .10000E-03    3.6328       -.16040E-06** at limit **
  22  Normalizat    .74623        .21570        .33956E-06   -.32133E-04
  23  Prefactor     1.1303        .16591        .17179E-06   -.19784E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.80231
  norm       = 11.865
  Prefactor  = 0.0001
  Prefactor  = 10.919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6571
  norm       = 2.58391
  norm       = 0.0001
  norm       = 4.11976
  norm       = 1.40927
  Prefactor  = 26.1168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2141
  norm       = 2.86114
  Prefactor  = 0.0001
  Normalizat = 0.746229
  Prefactor  = 1.13025
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.546     FROM HESSE     STATUS=OK           372 CALLS     2927 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8023        4.7080        .25841E-03   -1.5439    
   2  norm          11.865        6.2171        .11630E-03   -1.5019    
   3  Prefactor     .10000E-03    10.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.919        5.6545        .12124E-03   -1.5047    
   5  Prefactor     .10000E-03    34.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.3777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.657        32.066        .77574E-04   -1.4675    
   8  norm          2.5839        2.7578        .13068E-03   -1.5386    
   9  norm          .10000E-03    .95426        .11219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1198        .93210        .33924E-04   -1.5302    
  11  norm          1.4093        1.3658        .86812E-04   -1.5471    
  12  Prefactor     26.117        17.080        .78344E-04   -1.4685    
  13  Prefactor     .10000E-03    27.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    102.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    61.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.214        19.920        .12507E-03   -1.5069    
  20  norm          2.8611        1.6088        .71251E-04   -1.5370    
  21  Prefactor     .10000E-03    3.6769        .14583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .74623        .24904        .32153E-03   -1.0210    
  23  Prefactor     1.1303        .19274        .21604E-03   -.88505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50851e-09
Minuit parameter uncertainties:
  1  4.70893
  2  6.21741
  3  2.052e-06
  4  5.6548
  5  6.24722e-05
  6  6.16133e-06
  7  32.0869
  8  2.75792
  9  6.8326e-07
  10  0.932105
  11  1.36586
  12  17.0835
  13  1.66068e-05
  14  2.12217e-05
  15  4.34959e-05
  16  0.000537513
  17  0.000302112
  18  0.000297755
  19  19.9329
  20  1.60882
  21  7.0849e-07
  22  0.24942
  23  0.192855
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.120e+00  9.321e-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:  1.130e+00  1.929e-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:  7.462e-01  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 43.41
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.16e-07 +/- 7.15e-08
Energy Flux (Fixed Index): 7.88e-05 +/- 1.78e-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) = 6143.09163344
delta logL = 0.453970831974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6143.08794343
delta logL = 0.457660849876

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0453       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1825       1.0000          .0000       5.0000    
     3 'Normalizat'    .79600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0961       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=   6143.088     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0452        .92409        .50120E-02    .84246E-04
   2  alpha         2.1824        .25584        .18124       -.30892E-04
   3  Normalizat    .79606        .20453        .70617E-01    .22485E-04
   4  Prefactor     1.0960        .16502        .37738E-01    .35437E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.04523
  alpha      = 2.18241
  Normalizat = 0.796056
  Prefactor  = 1.09603
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.088     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0452        .94881        .34120E-04   -1.5306    
   2  alpha         2.1824        .27138        .78056E-02   -.12738    
   3  Normalizat    .79606        .24076        .31249E-03   -1.0022    
   4  Prefactor     1.0960        .19352        .21879E-03   -.89594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83837e-10
Minuit parameter uncertainties:
  1  0.948816
  2  0.271928
  3  0.241087
  4  0.193648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516636': 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) = 6143.08794338
delta logL = 0.457660892853

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.045e+00  9.488e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.182e+00  2.719e-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:  1.096e+00  1.936e-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:  7.961e-01  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.75
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.18 +/- 0.27
Photon Flux (Free Index): 2.86e-07 +/- 7.39e-08
Energy Flux (Free Index): 8.61e-05 +/- 2.13e-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/516636/cmap_HighResolution_417139201_417398401_4FGL_J0948.9+0022_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.16e-07', energy_flux2='8.61e-05', photon_flux_error='7.15e-08', dlogl='4.58e-01', energy_flux='7.88e-05', photon_flux2='2.86e-07', job_status='DONE', time_completed='2021-09-01 02:57:32.030346', photon_index_error2='0.27', photon_index2='2.18', ts='43.41', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='0.75', time_epoch_completed='1630490252.03', return_code='0', job_id='516636', GAL2='1.10', EG2='0.80', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='7.39e-08', ts2='43.75', photon_index='2.45' WHERE bin_id='686' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:57:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 516636: <4FGL_J0948.9+0022_daily_bin686> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin686> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:17 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:46:19 2021
Terminated at Wed Sep  1 02:57:33 2021
Results reported at Wed Sep  1 02:57:33 2021

Your job looked like:

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

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

